/* ===================================================
   FULLDOT — System Development Service Page
   system-dev.css
   =================================================== */

/* ---------- 0. CSS Custom Properties ---------- */
:root {
  --accent: #d15b27;
  --accent-light: #fb923c;
  --accent-glow: rgba(209, 91, 39, .35);
  --bg-white: #fafaf9;
  --bg-dark: #0a0a0a;
  --bg-warm: #f6f1eb;
  --ink-blue: #0f1923;
  --ink-warm: #1a1510;
  --text-primary: #1a1a1a;
  --text-dark: #1c1917;
  --text-secondary: #555;
  --text-muted: #78716c;
  --text-light: #a8a29e;
  --text-invert: #f5f5f5;
  --border: rgba(0, 0, 0, .08);
  --border-light: rgba(255, 255, 255, .08);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', 'Noto Sans TC', sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);
  --nav-h: 64px;
}

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- 2. Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100001;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  font-size: .875rem;
  transition: top .2s var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

/* ---------- 3. Focus Styles ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- 4. Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 24px 48px;
  z-index: 1000;
  background: rgba(250, 250, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: padding .3s, box-shadow .3s;
}

.navbar.scrolled {
  padding: 16px 48px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  font-size: .9rem;
  letter-spacing: .5px;
  font-weight: 500;
  position: relative;
  transition: color .3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s var(--ease-out);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  width: 100%;
}

.btn-contact {
  border: 1.5px solid var(--text-dark);
  padding: 8px 24px;
  border-radius: 30px;
  transition: background .3s, color .3s;
}

.btn-contact:hover,
.btn-contact:focus-visible {
  background: var(--text-dark);
  color: #fff;
}

.btn-contact::after {
  display: none;
}

/* ---- Menu Toggle ---- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  position: absolute;
  left: 0;
  transition: all .4s var(--ease-out);
  border-radius: 2px;
}

.menu-toggle span:first-child { top: 2px; }
.menu-toggle span:last-child { bottom: 2px; }

.menu-toggle.active span {
  background: var(--text-dark);
}

.menu-toggle.active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #f6f1eb;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(209, 91, 39, .06), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(37, 99, 235, .04), transparent 50%);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 28px 40px;
  gap: 36px;
  position: relative;
  z-index: 1;
}

/* Brand */
.mm-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(28, 25, 23, .08);
}

.mm-brand-en {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  letter-spacing: .5px;
}

.mm-brand-zh {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-muted);
}

/* Nav Links */
.mm-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mm-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 14px;
  border-radius: 12px;
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
  color: var(--text-dark);
  opacity: 0;
  transform: translateX(-16px);
}

.mobile-menu.active .mm-link {
  opacity: 1;
  transform: translateX(0);
}

.mm-link:hover,
.mm-link:focus-visible {
  background: rgba(28, 25, 23, .04);
}

.mm-link:active {
  transform: scale(.98);
}

.mm-link-active {
  background: rgba(209, 91, 39, .07);
}

.mm-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: .7;
}

.mm-icon svg {
  width: 100%;
  height: 100%;
}

.mm-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mm-label {
  font-family: var(--font-serif);
  font-size: .65rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-light);
}

.mm-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text-dark);
}

.mm-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-light);
  opacity: .4;
  transition: color .25s, transform .25s, opacity .25s;
}

.mm-link:hover .mm-arrow {
  color: var(--accent);
  opacity: 1;
  transform: translateX(3px);
}

/* CTA */
.mm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--text-dark);
  color: #fff;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .5px;
  transition: all .3s var(--ease-out);
  opacity: 0;
  transform: translateY(8px);
}

.mobile-menu.active .mm-cta {
  opacity: 1;
  transform: translateY(0);
}

.mm-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(209, 91, 39, .2);
}

.mm-cta-icon {
  width: 18px;
  height: 18px;
}

/* Footer */
.mm-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(28, 25, 23, .06);
  opacity: 0;
}

.mobile-menu.active .mm-footer {
  opacity: 1;
}

.mm-footer a,
.mm-footer span {
  font-size: .75rem;
  color: var(--text-light);
  letter-spacing: .5px;
  transition: color .25s;
}

.mm-footer a:hover {
  color: var(--accent);
}

.mm-footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-light);
  opacity: .3;
  display: inline-block;
}

/* ---------- 5. WebGL Container ---------- */
#webgl-container {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity .6s var(--ease-out);
}

.webgl-dark {
  mix-blend-mode: screen;
}

.webgl-light {
  mix-blend-mode: multiply;
}

/* ---------- 6. Block / Container / Section Head ---------- */
.sd-block {
  position: relative;
  z-index: 3;
}

.sd-light {
  background: var(--bg-white);
  color: var(--text-primary);
}

.sd-dark {
  background: var(--ink-blue);
  color: var(--text-invert);
}

.sd-warm {
  background: var(--ink-warm);
  color: var(--text-invert);
}

.sd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
}

.sd-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.sd-counter {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: .5rem;
}

.sd-counter-light {
  color: var(--accent-light);
}

.sd-block-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.sd-title-light {
  color: var(--text-invert);
}

.sd-en {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: .75rem;
  letter-spacing: .15em;
  color: var(--text-muted);
  margin-top: .35rem;
}

.sd-title-light .sd-en {
  color: rgba(255, 255, 255, .35);
}

.sd-block-desc {
  font-size: .95rem;
  color: var(--text-secondary);
  margin-top: .75rem;
  line-height: 1.7;
}

.sd-desc-light {
  color: rgba(255, 255, 255, .5);
}

/* ---------- 7. Hero — .sd-hero ---------- */
.sd-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) clamp(1.5rem, 5vw, 4rem) 4rem;
  z-index: 3;
}

.sd-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sd-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 25s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.08) translate(-1%, -1%);
  }
}

/* Multi-layer overlay */
.sd-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .62) 0%, rgba(10, 10, 10, .35) 50%, rgba(10, 10, 10, .7) 100%),
    linear-gradient(135deg, rgba(209, 91, 39, .1) 0%, rgba(251, 146, 60, .08) 50%, rgba(15, 25, 35, .12) 100%);
}

.sd-hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  color: #fff;
}

.sd-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.sd-h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.sd-h1-serif {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, .6);
  margin-bottom: .25rem;
}

.sd-hero-desc {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, .75);
  margin-top: 1rem;
  line-height: 1.7;
}

.sd-hero-desc strong {
  color: rgba(255, 255, 255, .95);
  font-weight: 700;
}

.sd-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.5rem;
}

.sd-tag-pill {
  display: inline-block;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .06);
  transition: background .25s, border-color .25s;
}

.sd-tag-pill:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .35);
}

/* ---------- 8. Flow Timeline ---------- */
.sd-flow-timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 60px;
}

/* Vertical connecting line */
.sd-flow-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.flow-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-marker {
  position: absolute;
  left: -60px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-white);
}

.flow-marker-end {
  position: absolute;
  left: -60px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-white);
}

.flow-body {
  flex: 1;
}

.flow-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.flow-body p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- 9. System Types — .sd-types-grid ---------- */
.sd-dark .sd-section-head .sd-block-desc {
  color: rgba(255, 255, 255, .5);
}

.sd-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.sd-type-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background .3s, border-color .3s, transform .35s var(--ease-out);
}

.sd-type-card:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
  transform: translateY(-4px);
}

.sd-type-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.sd-type-icon svg {
  width: 100%;
  height: 100%;
}

.sd-type-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: #fff;
}

.sd-type-card p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.65;
}

.sd-type-badge {
  display: inline-block;
  margin-top: .75rem;
  padding: 3px 12px;
  font-size: .68rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(209, 91, 39, .12);
  border-radius: var(--radius-pill);
}

/* ---------- 10. Tech Focus — .sd-tech-grid ---------- */
.sd-tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.sd-tech-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}

.sd-tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.sd-tech-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: .85rem;
  flex-shrink: 0;
}

.sd-tech-icon svg {
  width: 100%;
  height: 100%;
}

.sd-tech-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.sd-tech-card p {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sd-tech-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.sd-tech-card a:hover {
  color: #b84e20;
}

/* ---------- 11. Industry — .sd-industry-grid ---------- */
.sd-warm .sd-section-head .sd-block-desc {
  color: rgba(255, 255, 255, .5);
}

.sd-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.sd-industry-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: background .3s, border-color .3s, transform .35s var(--ease-out);
}

.sd-industry-card:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
  transform: translateY(-4px);
}

.sd-industry-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-light);
  margin: 0 auto .85rem;
}

.sd-industry-icon svg {
  width: 100%;
  height: 100%;
}

.sd-industry-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .3rem;
  color: #fff;
}

.sd-industry-card p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.6;
}

/* ---------- 12. Results — .sd-results-grid ---------- */
.sd-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.result-card {
  padding: 1.5rem 1rem;
}

.result-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.result-num .plus {
  font-size: 1.5rem;
  font-weight: 700;
}

.result-label,
.result-card p {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-top: .35rem;
  line-height: 1.5;
}

/* ---------- 13. CTA — .sd-cta-section ---------- */
.sd-cta-section {
  background: var(--ink-blue);
  color: var(--text-invert);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sd-cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.sd-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 5vw, 4rem);
}

.sd-cta-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--accent-light);
  display: block;
  margin-bottom: 20px;
}

.sd-cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: .75rem;
}

.sd-cta-desc {
  font-size: .95rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.sd-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: var(--text-dark);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all .3s var(--ease-out);
  border: 2px solid var(--text-dark);
}

.cta-btn-primary:hover,
.cta-btn-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(209, 91, 39, .3);
}

.cta-btn-primary svg {
  width: 18px;
  transition: transform .3s;
}

.cta-btn-primary:hover svg {
  transform: translateX(4px);
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 18px 40px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #fff;
  transition: all .3s var(--ease-out);
}

.cta-btn-secondary:hover,
.cta-btn-secondary:focus-visible {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .06);
  transform: translateY(-2px);
}

.sd-cta-links {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sd-cta-links a {
  font-size: .8rem;
  color: rgba(255, 255, 255, .4);
  transition: color .2s;
}

.sd-cta-links a:hover {
  color: var(--accent-light);
}

.sd-cta-links span {
  color: rgba(255, 255, 255, .15);
}

/* ---------- 14. Footer ---------- */
.footer {
  padding: 80px 48px 40px;
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  z-index: 2;
}

.footer-main {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-logo {
  font-size: clamp(4rem, 14vw, 12rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: .85;
  text-align: center;
  margin-bottom: 60px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .06);
  position: relative;
  cursor: default;
  display: flex;
  justify-content: center;
  gap: 0;
}

/* Each character */
.fl-char {
  display: inline-block;
  position: relative;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .06);
  transition: color .5s ease, -webkit-text-stroke .5s ease,
              text-shadow .5s ease, transform .4s var(--ease-out);
  will-change: transform, color;
  opacity: 0;
  transform: translateY(30px);
}

/* Hover: character lights up */
.fl-char:hover {
  color: rgba(255, 255, 255, .15);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .25);
  text-shadow:
    0 0 40px rgba(230, 170, 120, .25),
    0 0 80px rgba(160, 195, 225, .15),
    0 0 120px rgba(230, 170, 120, .08);
  transform: translateY(-4px);
}

/* JS-driven glow class: proximity-based lighting */
.fl-char.fl-glow-1 {
  color: rgba(255, 255, 255, .06);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .12);
  text-shadow: 0 0 30px rgba(230, 170, 120, .08);
}

.fl-char.fl-glow-2 {
  color: rgba(255, 255, 255, .12);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .20);
  text-shadow:
    0 0 30px rgba(230, 170, 120, .15),
    0 0 60px rgba(160, 195, 225, .08);
}

.fl-char.fl-glow-3 {
  color: rgba(255, 255, 255, .20);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .30);
  text-shadow:
    0 0 40px rgba(230, 170, 120, .30),
    0 0 80px rgba(160, 195, 225, .15),
    0 0 120px rgba(230, 170, 120, .08);
  transform: translateY(-3px);
}

/* Scroll-triggered entrance animation */
.footer-logo.fl-visible .fl-char {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay per character */
.footer-logo.fl-visible .fl-char:nth-child(1) { transition-delay: 0.0s; }
.footer-logo.fl-visible .fl-char:nth-child(2) { transition-delay: 0.06s; }
.footer-logo.fl-visible .fl-char:nth-child(3) { transition-delay: 0.12s; }
.footer-logo.fl-visible .fl-char:nth-child(4) { transition-delay: 0.18s; }
.footer-logo.fl-visible .fl-char:nth-child(5) { transition-delay: 0.24s; }
.footer-logo.fl-visible .fl-char:nth-child(6) { transition-delay: 0.30s; }
.footer-logo.fl-visible .fl-char:nth-child(7) { transition-delay: 0.36s; }

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-light);
}

.footer-col h4 {
  font-size: .8rem;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
}

.footer-col address {
  font-style: normal;
}

.footer-col p,
.footer-col a {
  display: block;
  font-size: .9rem;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 8px;
  transition: color .3s;
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-col nav {
  display: flex;
  flex-direction: column;
}

.footer-bottom {
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: .75rem;
  color: rgba(255, 255, 255, .3);
  letter-spacing: 1px;
}

/* ---------- 15. Responsive — 1024px ---------- */
@media (max-width: 1024px) {
  .navbar {
    padding: 16px 24px;
  }

  .navbar.scrolled {
    padding: 12px 24px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .sd-types-grid {
    grid-template-columns: 1fr;
  }

  .sd-tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sd-industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sd-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  #webgl-container {
    display: none;
  }
}

/* ---------- 16. Responsive — 640px ---------- */
@media (max-width: 640px) {
  :root {
    --nav-h: 56px;
  }

  .sd-hero {
    min-height: 90vh;
    padding-top: calc(var(--nav-h) + 2rem);
  }

  .sd-h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .sd-tag-pill {
    font-size: .72rem;
    padding: 5px 12px;
  }

  .sd-flow-timeline {
    padding-left: 50px;
  }

  .flow-marker,
  .flow-marker-end {
    left: -50px;
    width: 34px;
    height: 34px;
    font-size: .9rem;
  }

  .sd-flow-timeline::before {
    left: 16px;
  }

  .sd-tech-grid {
    grid-template-columns: 1fr;
  }

  .sd-industry-grid {
    grid-template-columns: 1fr;
  }

  .sd-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .result-num {
    font-size: 2.5rem;
  }

  .sd-cta-actions {
    flex-direction: column;
  }

  .cta-btn-primary,
  .cta-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .footer {
    padding: 60px 24px 32px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    font-size: clamp(3rem, 12vw, 6rem);
  }
}

/* ---------- 17. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .sd-hero-bg img {
    animation: none;
  }

  .sd-type-card:hover,
  .sd-tech-card:hover,
  .sd-industry-card:hover {
    transform: none;
  }

  .cta-btn-primary:hover,
  .cta-btn-secondary:hover {
    transform: none;
  }

  #webgl-container {
    display: none;
  }
}

/* ---------- 18. Forced Colors (High Contrast) ---------- */
@media (forced-colors: active) {
  .sd-tag-pill,
  .sd-type-badge {
    border: 1px solid CanvasText;
  }

  .flow-marker,
  .flow-marker-end {
    border: 2px solid CanvasText;
    forced-color-adjust: none;
  }

  .sd-hero-overlay {
    background: rgba(0, 0, 0, .5);
  }

  .cta-btn-primary,
  .cta-btn-secondary,
  .btn-contact {
    border: 2px solid ButtonText;
  }

  .sd-type-card,
  .sd-tech-card,
  .sd-industry-card {
    border: 1px solid CanvasText;
  }

  a:focus-visible,
  button:focus-visible {
    outline: 2px solid Highlight;
  }
}
