/* ════════════════════════════════════════════════════
   SYSGUARD — DESIGN SYSTEM
   ════════════════════════════════════════════════════ */

:root {
  /* Colour palette */
  --void:          #050810;
  --navy:          #080d1a;
  --navy-mid:      #0d1526;
  --navy-light:    #132040;
  --cobalt:        #2463eb;
  --cobalt-bright: #3b82f6;
  --cobalt-dim:    #1d4ed8;
  --cyan:          #06b6d4;
  --cyan-bright:   #22d3ee;
  --white:         #ffffff;
  --white-90:      rgba(255,255,255,.9);
  --white-70:      rgba(255,255,255,.7);
  --white-50:      rgba(255,255,255,.5);
  --white-30:      rgba(255,255,255,.3);
  --white-15:      rgba(255,255,255,.15);
  --white-08:      rgba(255,255,255,.08);
  --white-04:      rgba(255,255,255,.04);
  --light-bg:      #f0f5ff;
  --light-mid:     #dde9ff;
  --dark-text:     #0d1526;
  --mid-text:      #334155;
  --err-red:       #ef4444;
  --warn-amber:    #f59e0b;
  --ok-green:      #22c55e;

  /* Glow effects */
  --glow-cobalt:   0 0 80px rgba(36,99,235,.35);
  --glow-cyan:     0 0 80px rgba(6,182,212,.35);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* Scale */
  --text-hero:   clamp(3.2rem, 8vw, 8.5rem);
  --text-h2:     clamp(2.2rem, 5vw, 5rem);
  --text-h3:     clamp(1.4rem, 2.5vw, 2.5rem);
  --text-body:   1.0625rem;
  --text-sm:     0.875rem;
  --text-xs:     0.75rem;
  --text-mono:   0.875rem;

  /* Spacing */
  --sec-py:      clamp(5rem, 10vw, 10rem);
  --gap-lg:      clamp(3rem, 6vw, 6rem);
  --gap-md:      clamp(1.5rem, 3vw, 3rem);
  --gap-sm:      1rem;

  /* Layout */
  --container:   1280px;
  --container-md: 960px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;

  /* Animation */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    0.25s;
  --dur-med:     0.45s;
  --dur-slow:    0.7s;
}

/* ════ RESET ════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  background: var(--navy);
  color: var(--white-90);
  line-height: 1.65;
  overflow-x: hidden;
}
img, figure { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; font-weight: 600; }

/* ════ LAYOUT UTILITIES ════ */
.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.container-md {
  width: min(100%, var(--container-md));
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ════ SECTION LABEL ════ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-bright);
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--cobalt-bright);
}
.section-label-cyan { color: var(--cyan); }
.section-label-cyan::before { background: var(--cyan); }
.section-label-dark { color: var(--cobalt-dim); }
.section-label-dark::before { background: var(--cobalt-dim); }

/* ════ BUTTONS ════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78em 1.6em;
  background: var(--cobalt);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 9px;
  letter-spacing: -0.01em;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn-primary:hover {
  background: var(--cobalt-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(59,130,246,.45);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.78em 1.6em;
  background: transparent;
  color: rgba(255,255,255,.8);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.15);
  letter-spacing: -0.01em;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.28);
  color: var(--white);
}
.btn-lg { font-size: 1rem; padding: 0.88em 2em; }
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52em 1.15em;
  background: var(--cobalt);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 7px;
  letter-spacing: -0.01em;
  transition: background var(--dur-fast), box-shadow var(--dur-fast);
}
.btn-nav-cta:hover {
  background: var(--cobalt-bright);
  box-shadow: 0 4px 16px rgba(59,130,246,.4);
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1em 2.5em;
  background: var(--cobalt);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.btn-cta:hover {
  background: var(--cobalt-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(59,130,246,.5);
}

/* ════ IMAGE PLACEHOLDER ════ */
.img-placeholder {
  position: relative;
  background: var(--navy-light);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(36,99,235,.04) 12px,
    rgba(36,99,235,.04) 24px
  );
}
/* Real images inside feature/hero/mobile figures */
.fs-img img,
.hero-dash img,
.mobile-ph-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

/* Blend images into section backgrounds.
   mix-blend-mode must be on the figure, not the img,
   because clip-path on .fs-img creates an isolated stacking context */
.fs-img          { mix-blend-mode: lighten; }
.hero-dash       { mix-blend-mode: lighten; }

.hero-dash:not(.img-placeholder) {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--white-15);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), var(--glow-cobalt);
}
.ph-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  width: 100%;
  height: 100%;
  min-height: 200px;
  text-align: center;
  color: var(--cobalt-bright);
}
.ph-inner svg { opacity: 0.4; }
.ph-inner span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.ph-inner em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  opacity: 0.9;
}


/* ════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--dur-med), backdrop-filter var(--dur-med), padding var(--dur-med);
}
.navbar.scrolled {
  background: rgba(8,13,26,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--white-08);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  max-width: var(--container);
  margin-inline: auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-brand em { color: var(--cobalt-bright); font-style: normal; }
.nav-logo-img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline: auto;
}
.nav-links a {
  padding: 0.4em 0.8em;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-70);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover { color: var(--white); background: var(--white-08); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white-70);
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}


/* ════ MOBILE NAV OVERLAY ════ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--void);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-out);
}
.mobile-nav.open { transform: translateX(0); }
.mn-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem clamp(1.25rem, 6vw, 2.5rem);
}
.mn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--white-08);
}
.mn-close { color: var(--white-70); transition: color var(--dur-fast); }
.mn-close:hover { color: var(--white); }
.mn-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  flex: 1;
}
.mn-link {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 500;
  color: var(--white-70);
  border-bottom: 1px solid var(--white-04);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
  opacity: 0;
  transform: translateX(20px);
}
.mobile-nav.open .mn-link {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(var(--i, 0) * 0.06s + 0.1s);
}
.mn-link:hover { color: var(--white); padding-left: 0.5rem; }
.mn-footer {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.mn-cta { width: 100%; justify-content: center; }
.mn-url {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--white-50);
}


/* ════════════════════════════════════════════════════
   SECTION 1 · HERO
   ════════════════════════════════════════════════════ */
.s-hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  padding-top: 5rem;
  overflow: hidden;
  background: #04070f;
}

/* Hero image at ultra-low opacity — texture only */
.hero-texture {
  position: absolute;
  inset: -4%; /* slight overflow so edges stay covered during drift */
  z-index: 0;
  background: url('/static/images/hero.jpg') center 28% / cover no-repeat;
  opacity: 0.07;
  mix-blend-mode: screen;
  animation: textureDrift 32s ease-in-out infinite;
}
@keyframes textureDrift {
  0%   { transform: translate(0,    0); }
  25%  { transform: translate(1.5%, 0.5%); }
  50%  { transform: translate(0,    1%); }
  75%  { transform: translate(-1.5%, 0.5%); }
  100% { transform: translate(0,    0); }
}

/* Flowing blue light background — layered radial glows */
.hero-bg-img {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 65% at 50% 52%, rgba(10,38,130,0.82) 0%, transparent 60%);
  animation: lightDrift 20s ease-in-out infinite alternate;
}
.hero-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 48% 46%, rgba(6,60,180,0.35) 0%, transparent 55%);
  animation: lightDrift2 26s ease-in-out infinite alternate;
}
@keyframes lightDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(2%, 3%) scale(1.03); }
}
@keyframes lightDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-2%, -2%) scale(1.04); }
}

/* Bottom gradient fade into next section */
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--void));
  z-index: 2;
  pointer-events: none;
}

/* Subtle dot grid */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(circle, rgba(36,99,235,.18) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, black 30%, transparent 100%);
  opacity: 0.5;
}

/* Content wrapper — vertically centered, nudged up slightly for visual balance */
.hero-content-wrap {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  max-width: 860px;
  margin-inline: auto;
  width: 100%;
  padding-bottom: 4rem; /* compensate for scroll cue height — keeps content visually centered */
}

/* Eyebrow — editorial label with flanking lines, not a pill */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.75);
  margin-bottom: 2.25rem;
  opacity: 0;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}
.eyebrow-pulse { display: none; }

/* Headline */
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.h1-line { display: block; overflow: hidden; }
.h1-accent { color: var(--cobalt-bright); }

/* Subheading */
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,.52);
  line-height: 1.7;
  max-width: 50ch;
  margin-bottom: 2.75rem;
  opacity: 0;
  font-weight: 400;
}

/* CTAs */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  opacity: 0;
}

/* Scroll cue */
.hero-scroll-cue {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 2.25rem;
}
.sc-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
}
.sc-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.25), transparent);
  animation: scLine 2s ease-in-out infinite;
}
@keyframes scLine {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50%      { transform: scaleY(0.55); opacity: 0.35; }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(59,130,246,.7); }
  50%      { box-shadow: 0 0 0 6px rgba(59,130,246,0); }
}


/* ════════════════════════════════════════════════════
   SECTION 2 · PROBLEM
   ════════════════════════════════════════════════════ */
.s-problem {
  background: var(--void);
  padding-block: var(--sec-py);
  position: relative;
  overflow: hidden;
}
.s-problem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(36,99,235,.3));
}
.problem-h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--gap-md);
  color: var(--white);
}
.ph-line { display: block; }

/* Terminal */
.problem-terminal {
  background: #090d18;
  border: 1px solid var(--white-08);
  border-radius: var(--radius-md);
  margin-block: var(--gap-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--white-08);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.td-red    { background: var(--err-red); }
.td-yellow { background: var(--warn-amber); }
.td-green  { background: var(--ok-green); }
.term-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--white-50);
  letter-spacing: 0.05em;
}
.term-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  overflow: hidden;
}
.tl { display: flex; align-items: baseline; gap: 0.6rem; opacity: 0; transition: opacity 0.3s; line-height: 1.4; }
.tl.visible { opacity: 1; }
.ts { color: var(--white-30); white-space: nowrap; flex-shrink: 0; }
.tb {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1em 0.45em;
  border-radius: 3px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.tb-crit { background: rgba(239,68,68,.2); color: #fca5a5; }
.tb-err  { background: rgba(245,158,11,.15); color: #fcd34d; }
.tb-warn { background: rgba(245,158,11,.1); color: #fde68a; }
.tm { color: var(--white-70); }
.term-cursor {
  color: var(--ok-green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  animation: blink 1.2s step-end infinite;
  padding: 0.2rem 1rem;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Problem copy */
.problem-copy {
  max-width: 64ch;
  margin-block: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.problem-copy p { color: var(--white-70); }
.problem-copy-em {
  color: var(--white-90) !important;
  font-size: 1.05em;
  line-height: 1.55;
}

/* Stats */
.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-block: var(--gap-lg);
}
.pstat {
  padding: 2rem 1.5rem;
  border: 1px solid var(--white-08);
  border-radius: var(--radius-md);
  background: var(--white-04);
  position: relative;
  overflow: hidden;
}
.pstat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
  opacity: 0;
  transition: opacity var(--dur-med);
}
.pstat.in-view::before { opacity: 1; }
.pstat-num {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.pstat-desc { font-size: var(--text-sm); color: var(--white-60, rgba(255,255,255,.6)); line-height: 1.5; }

/* Closer */
.problem-closer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: var(--gap-lg);
}
.closer-rule { flex: 1; height: 1px; background: var(--white-15); }
.problem-closer p {
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  color: var(--white-90);
  white-space: nowrap;
}


/* ════════════════════════════════════════════════════
   SECTION 3 · PLATFORM
   ════════════════════════════════════════════════════ */
.s-platform {
  background: var(--navy);
  padding-block: var(--sec-py);
  overflow: hidden;
}
.platform-header {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--gap-lg);
}
.platform-h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 1rem;
}
.platform-intro { color: var(--white-60, rgba(255,255,255,.6)); }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.pillar-sep {
  display: flex;
  align-items: stretch;
  padding: 0 1rem;
  color: var(--white-15);
}
.pillar-sep svg { width: 1px; height: 100%; min-height: 160px; }
.pillar { padding: 2.5rem 1.5rem; }
.pillar-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--cobalt-bright);
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow), transform var(--dur-slow);
}
.pillar.in-view .pillar-num { opacity: 1; transform: none; }
.pillar-word {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) 0.1s, transform var(--dur-slow) 0.1s;
}
.pillar.in-view .pillar-word { opacity: 1; transform: none; }
.pillar-desc {
  color: var(--white-60, rgba(255,255,255,.6));
  font-size: var(--text-sm);
  line-height: 1.65;
  max-width: 36ch;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity var(--dur-slow) 0.2s, transform var(--dur-slow) 0.2s;
}
.pillar.in-view .pillar-desc { opacity: 1; transform: none; }


/* ════════════════════════════════════════════════════
   SECTION 4 · HOW IT WORKS
   ════════════════════════════════════════════════════ */
.s-hiw {
  background: var(--void);
  position: relative;
}

/* Desktop pinned panel */
.hiw-pin-wrap {
  height: 600vh; /* scroll space for 5 stages + intro */
}
.hiw-panel {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--gap-lg);
  align-items: center;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  max-width: var(--container);
  margin-inline: auto;
  padding-block: var(--sec-py);
  height: 100vh;
  align-content: center;
}
.hiw-left { position: relative; }
.hiw-h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.hiw-sub { color: var(--white-50); font-size: 0.95rem; margin-bottom: 2rem; }
.hiw-nav { display: flex; flex-direction: column; gap: 0; }
.hn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast), color var(--dur-fast);
  text-align: left;
  color: var(--white-50);
  border-left: 2px solid transparent;
}
.hn:hover { color: var(--white-90); background: var(--white-04); }
.hn.active { color: var(--white); border-left-color: var(--cobalt-bright); background: var(--white-04); }
.hn-num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; opacity: 0.7; min-width: 24px; }
.hn-lbl { font-size: 0.9rem; font-weight: 500; }

/* Stage content */
.hiw-right { position: relative; }
.hiw-stage-wrap { position: relative; }
.hiw-stage {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 3rem;
  background: var(--navy-mid);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
  min-height: 360px;
}
.hiw-stage.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}
.hs-icon { width: 56px; height: 56px; color: var(--cobalt-bright); }
.hs-icon svg { width: 100%; height: 100%; }
.hs-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.kpi-label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; color: var(--white-50); }
.kpi-value { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--cyan); }
.hiw-stage h3 { font-size: 1.8rem; font-weight: 700; color: var(--white); }
.hiw-stage p { color: var(--white-70); line-height: 1.65; max-width: 50ch; }

/* Mobile HIW */
.hiw-mobile { display: none; padding-block: var(--sec-py); }
.hiw-mobile-list { display: flex; flex-direction: column; gap: 0; margin-top: 2rem; }
.hiw-mi {
  display: flex;
  gap: 1.25rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--white-08);
}
.hmi-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--cobalt-bright);
  padding-top: 0.2rem;
  min-width: 24px;
}
.hiw-mi h3 { font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 0.3rem; }
.hiw-mi p { font-size: var(--text-sm); color: var(--white-60, rgba(255,255,255,.6)); margin-bottom: 0.5rem; }
.hmi-kpi { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--cyan); letter-spacing: 0.08em; }


/* ════════════════════════════════════════════════════
   SECTION 5 · FEATURES
   ════════════════════════════════════════════════════ */
.s-features { background: var(--navy); }
.features-header {
  padding-block: var(--sec-py) 0;
}
.features-h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: var(--gap-lg);
}

/* Feature scene */
.fs {
  padding-block: clamp(5rem, 8vw, 9rem);
  overflow: hidden;
}
.fs[data-theme="dark"]     { background: var(--navy); }
.fs[data-theme="blue"]     { background: #071430; }
.fs[data-theme="midnight"] { background: var(--void); }
.fs[data-theme="split"] {
  background: linear-gradient(135deg, var(--navy) 50%, #071430 50%);
}

.fs-inner {
  display: grid;
  gap: var(--gap-lg);
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.fs-lr { grid-template-columns: 1fr 1fr; }
.fs-rl { grid-template-columns: 1fr 1fr; }

.fs-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-bright);
  margin-bottom: 1rem;
}
.fs[data-theme="blue"] .fs-tag { color: var(--cyan); }
.fs[data-theme="midnight"] .fs-tag { color: var(--cyan); }

.fs-text h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}
.fs-text p { color: var(--white-70); line-height: 1.7; max-width: 48ch; }

.fs-img {
  width: 100%;
  aspect-ratio: 16/10;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s var(--ease-out);
}
.fs-img.revealed { clip-path: inset(0 0% 0 0); }

/* Autopilot feature — wider image column */
#f-ap-prev .fs-lr { grid-template-columns: 1fr 1.6fr; }
#f-ap-prev .fs-img { aspect-ratio: 16/9; }

.platform-tags { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
.ptag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--white-60, rgba(255,255,255,.6));
  padding: 0.4em 0.8em;
  background: var(--white-04);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-sm);
  width: fit-content;
}


/* ════════════════════════════════════════════════════
   SECTION 6 · AUTOPILOT
   ════════════════════════════════════════════════════ */
.s-autopilot {
  background: var(--void);
  position: relative;
  overflow: hidden;
  padding-top: var(--sec-py);
}
.ap-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ap-glow {
  position: absolute;
  width: 70vw;
  height: 70vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(36,99,235,.08) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.ap-header-wrap {
  padding-block: var(--sec-py) 4rem;
  position: relative;
  z-index: 1;
  text-align: center;
}
.ap-h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 1rem;
}
.ap-sub {
  color: var(--white-60, rgba(255,255,255,.6));
  font-size: 1.05rem;
  max-width: 58ch;
  margin-inline: auto;
  line-height: 1.6;
}

/* Chat stage — normal flow, no scroll story */
.ap-story {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  padding-bottom: var(--sec-py);
}
.ap-chat-anchor {
  width: min(100%, 620px);
}

/* Chat window */
.ap-chat-window {
  width: min(100%, 640px);
  background: var(--navy-mid);
  border: 1px solid var(--white-15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 0 1px rgba(36,99,235,.15);
}
.ap-chat-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--white-08);
  background: rgba(255,255,255,.03);
}
.ap-chat-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white-90);
}
.ap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok-green);
  animation: pulse 2s ease-in-out infinite;
}
.ap-badge-sm {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--cobalt-bright);
  padding: 0.2em 0.6em;
  background: rgba(36,99,235,.15);
  border-radius: 100px;
}
.ap-chat-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
[data-reveal].ap-visible { opacity: 1; transform: none; }
.ap-msg { display: flex; flex-direction: column; gap: 0.3rem; }
.ap-user { align-items: flex-end; }
.ap-sys  { flex-direction: row; gap: 0.75rem; align-items: flex-start; }
.ap-bubble {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 88%;
}
.ap-user .ap-bubble {
  background: var(--cobalt);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.ap-sys .ap-bubble {
  background: var(--navy-light);
  color: var(--white-90);
  border-bottom-left-radius: 4px;
}
.ap-success .ap-bubble { border-left: 2px solid var(--ok-green); }
.ap-meta { font-family: var(--font-mono); font-size: 0.65rem; color: var(--white-40, rgba(255,255,255,.4)); letter-spacing: 0.05em; }
.ap-user .ap-meta { text-align: right; }
.ap-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: rgba(36,99,235,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt-bright);
  margin-top: 2px;
}
.ap-avatar-ok { background: rgba(34,197,94,.2); color: var(--ok-green); }

/* Thinking dots */
.ap-thinking {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
}
.ap-dots { display: flex; gap: 4px; }
.ap-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt-bright);
  animation: dotBounce 1.4s ease-in-out infinite both;
}
.ap-dots span:nth-child(2) { animation-delay: 0.16s; }
.ap-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes dotBounce {
  0%,80%,100% { transform: scale(0.7); opacity: 0.4; }
  40%          { transform: scale(1);   opacity: 1; }
}
.ap-thinking span { font-size: 0.78rem; color: var(--white-50); font-style: italic; }

/* Script block */
.ap-script {
  background: #0a0f1c;
  border: 1px solid var(--white-08);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ap-script-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--white-08);
  background: rgba(255,255,255,.03);
}
.ap-script-lbl { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--white-60, rgba(255,255,255,.6)); }
.ap-risk {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.2em 0.6em;
  border-radius: 100px;
}
.ap-risk-med { background: rgba(245,158,11,.15); color: var(--warn-amber); }
.ap-risk-low { background: rgba(34,197,94,.15); color: var(--ok-green); }
.ap-risk-high { background: rgba(239,68,68,.15); color: var(--err-red); }
.ap-code {
  margin: 0;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--white-80, rgba(255,255,255,.8));
  overflow-x: auto;
}
.c-comment { color: var(--white-30); }
.c-cmd     { color: var(--white-70); }
.c-hl      { color: var(--cyan-bright); font-weight: 500; }

/* Approval */
.ap-approval {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(36,99,235,.06);
  border: 1px solid rgba(36,99,235,.2);
  border-radius: var(--radius-sm);
}
.ap-approval-q { font-size: 0.85rem; font-weight: 500; color: var(--white-90); }
.ap-approval-btns { display: flex; gap: 0.5rem; }
.ap-btn-approve {
  padding: 0.45em 1em;
  background: var(--cobalt);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  transition: background var(--dur-fast);
}
.ap-btn-approve:not(:disabled):hover { background: var(--cobalt-bright); }
.ap-approved { background: rgba(34,197,94,.2); color: var(--ok-green); }
.ap-btn-reject {
  padding: 0.45em 1em;
  background: var(--white-04);
  color: var(--white-60, rgba(255,255,255,.6));
  border: 1px solid var(--white-15);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

/* Resolution stats row */
.ap-resolution-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.ap-resolution-row span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--white-60, rgba(255,255,255,.6));
  padding: 0.2em 0.6em;
  background: rgba(34,197,94,.1);
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}
.ap-resolution-row span strong { color: var(--ok-green); }

/* Capabilities */
.ap-caps-wrap {
  position: relative;
  z-index: 1;
  padding-block: 5rem var(--sec-py);
}
.ap-caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}
.ap-cap {
  padding: 2rem;
  border: 1px solid var(--white-08);
  border-radius: var(--radius-md);
  background: var(--white-04);
}
.ap-cap-icon {
  width: 44px;
  height: 44px;
  color: var(--cobalt-bright);
  margin-bottom: 1.25rem;
}
.ap-cap-icon svg { width: 100%; height: 100%; }
.ap-cap h4 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; }
.ap-cap p { font-size: var(--text-sm); color: var(--white-60, rgba(255,255,255,.6)); line-height: 1.6; }


/* ════════════════════════════════════════════════════
   SECTION 7 · AI INTELLIGENCE
   ════════════════════════════════════════════════════ */
.s-ai {
  background: var(--navy);
  padding-block: var(--sec-py);
  overflow: hidden;
}
.ai-header {
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: var(--gap-lg);
}
.ai-h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 1rem;
}
.ai-intro { color: var(--white-60, rgba(255,255,255,.6)); line-height: 1.65; }

.ai-models {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--gap-md);
  align-items: center;
  margin-bottom: var(--gap-lg);
}
.ai-model {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--white-08);
  position: relative;
  overflow: hidden;
}
.ai-model::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.ai-planner::before { background: linear-gradient(90deg, var(--cobalt), var(--cyan)); }
.ai-executor::before { background: linear-gradient(90deg, var(--cyan), var(--cobalt)); }
.ai-planner { background: linear-gradient(145deg, rgba(36,99,235,.06) 0%, var(--navy-mid) 100%); }
.ai-executor { background: linear-gradient(145deg, rgba(6,182,212,.05) 0%, var(--navy-mid) 100%); }

.aim-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-bright);
  margin-bottom: 0.75rem;
}
.ai-executor .aim-badge { color: var(--cyan); }
.aim-name {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.aim-stat { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1.25rem; }
.aim-stat-k { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--white-50); letter-spacing: 0.08em; }
.aim-stat-v { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--white-90); }
.aim-desc { font-size: var(--text-sm); color: var(--white-60, rgba(255,255,255,.6)); line-height: 1.65; margin-bottom: 1.5rem; }
.aim-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.aim-tags span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.25em 0.65em;
  background: var(--white-08);
  border-radius: 100px;
  color: var(--white-60, rgba(255,255,255,.6));
}

/* Connector */
.ai-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
}
.aicon-line { width: 1px; height: 40px; background: var(--white-15); }
.aicon-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--white-50);
  line-height: 1.5;
  white-space: nowrap;
}
.aicon-label small { color: var(--white-30); }

/* Numbers */
.ai-numbers {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 2.5rem;
  background: var(--navy-mid);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  margin-bottom: var(--gap-md);
}
.ain-item { flex: 1; padding: 0 2rem; text-align: center; }
.ain-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.ain-lbl { font-size: var(--text-sm); color: var(--white-50); line-height: 1.4; }
.ain-sep { width: 1px; background: var(--white-08); align-self: stretch; }
.ai-closer {
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  color: var(--white-70);
  font-weight: 400;
  font-style: italic;
  max-width: 64ch;
  margin-inline: auto;
  line-height: 1.5;
}


/* ════════════════════════════════════════════════════
   SECTION 8 · MOBILE COMPANION
   ════════════════════════════════════════════════════ */
.s-mobile {
  background: var(--navy-mid);
  padding-block: var(--sec-py);
  overflow: hidden;
  color: var(--white);
}
.s-mobile .section-label-dark { color: var(--cobalt-bright); }
.s-mobile .section-label-dark::before { background: var(--cobalt-bright); }
.mobile-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gap-lg);
  align-items: center;
}
.mobile-h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 1rem;
}
.mobile-intro {
  color: var(--white-60, rgba(255,255,255,.6));
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 48ch;
}
.mobile-feats {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}
.mfeat {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-block: 1rem;
  border-bottom: 1px solid var(--white-08);
}
.mfeat-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(36,99,235,.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt-bright);
  margin-top: 2px;
}
.mfeat-icon svg { width: 18px; height: 18px; }
.mfeat strong { display: block; font-size: 0.95rem; color: var(--white-90); margin-bottom: 0.2rem; }
.mfeat span { font-size: var(--text-sm); color: var(--white-50); }
.mobile-closer { font-family: var(--font-head); color: var(--cobalt-bright); font-weight: 500; }

/* Phone frame */
.mobile-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.mobile-ph-img {
  width: 100%;
  max-width: 380px;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
}

/* Phone badges */
.phone-badge {
  position: absolute;
  background: #1e2535;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: rgba(255,255,255,.82);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.45);
  white-space: nowrap;
}
.pb-top {
  top: 30px; right: -50px;
  opacity: 0; /* GSAP owns all animation on these */
}
.pb-bot {
  bottom: 60px; left: -50px;
  opacity: 0;
}
.pb-dot { width: 6px; height: 6px; border-radius: 50%; }
.pb-red   { background: var(--err-red); }
.pb-green { background: var(--ok-green); }


/* ════════════════════════════════════════════════════
   SECTION 9 · USE CASES
   ════════════════════════════════════════════════════ */
.s-usecases {
  background: var(--void);
  padding-block: var(--sec-py);
}

/* ── Desktop: lock section to viewport so it always fits when pinned ── */
@media (min-width: 769px) {
  .s-usecases {
    height: 100svh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(2.5rem, 5vh, 5rem);
    box-sizing: border-box;
  }
  .uc-scroll-outer {
    flex: 1;
    min-height: 0; /* allow flex child to shrink */
    display: flex;
    align-items: center;
  }
}

.uc-header-wrap { margin-bottom: clamp(1.5rem, 3vh, 2.5rem); }
.uc-h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.uc-sub { color: var(--white-60, rgba(255,255,255,.6)); max-width: 52ch; font-size: 0.95rem; }

/* Desktop horizontal scroll */
.uc-scroll-outer {
  overflow: hidden;
  width: 100%;
}
.uc-track {
  display: flex;
  gap: 1.5rem;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  will-change: transform;
}
.uc-card {
  min-width: 300px;
  max-width: 300px;
  background: var(--navy-mid);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  flex-shrink: 0;
}
.uc-card:hover {
  border-color: var(--white-15);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.uc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.uc-card:hover::before { opacity: 1; }
.uc-outcome {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
}
.uc-tag-line {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--white-40, rgba(255,255,255,.4));
  text-transform: uppercase;
}
.uc-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--white); }
.uc-card p { font-size: var(--text-sm); color: var(--white-60, rgba(255,255,255,.6)); line-height: 1.6; flex: 1; }

/* Mobile UC list (same cards, rewrap) */
.uc-mobile-stack { display: none; }


/* ════════════════════════════════════════════════════
   SECTION 10 · IMPACT
   ════════════════════════════════════════════════════ */
.s-impact {
  background: var(--navy);
  padding-block: var(--sec-py);
  border-top: 1px solid var(--white-08);
}
.impact-h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  text-align: center;
  margin-bottom: var(--gap-lg);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--white-08);
  border: 1px solid var(--white-08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.impact-item {
  background: var(--navy);
  padding: 3rem 2rem;
  text-align: center;
}
.impact-num {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.impact-lbl { font-size: var(--text-sm); color: var(--white-60, rgba(255,255,255,.6)); line-height: 1.5; }


/* ════════════════════════════════════════════════════
   SECTION 11 · FINAL CTA
   ════════════════════════════════════════════════════ */
.s-cta {
  background: var(--void);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.cg1 {
  width: 60vw;
  height: 60vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(36,99,235,.15) 0%, transparent 65%);
}
.cg2 {
  width: 40vw;
  height: 40vw;
  bottom: -10%;
  right: 0;
  background: radial-gradient(circle, rgba(6,182,212,.08) 0%, transparent 65%);
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: var(--sec-py);
  max-width: 64ch;
  margin-inline: auto;
}
.cta-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 1.75rem;
  line-height: 1.06;
}
.cta-h2-line { display: block; }
.cta-h2-accent { color: var(--cobalt-bright); }
.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 52ch;
  margin-inline: auto;
}
.cta-url-display {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--white-40, rgba(255,255,255,.4));
  letter-spacing: 0.05em;
}
.cta-footnote {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--white-30);
  letter-spacing: 0.08em;
}


/* ════════════════════════════════════════════════════
   SECTION · PRICING
   ════════════════════════════════════════════════════ */
.s-pricing {
  background: var(--navy);
  padding-block: var(--sec-py);
  position: relative;
  text-align: center;
}

.s-pricing .section-label {
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.pricing-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.pricing-sub {
  text-align: center;
  font-size: 1rem;
  color: var(--white-50);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

/* Card base */
.pricing-card {
  background: var(--navy-mid);
  border: 1px solid var(--white-08);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.2s ease;
}
.pricing-card:hover {
  border-color: var(--white-15);
}

/* Featured card */
.pricing-card--featured {
  background: var(--navy-light);
  border-color: var(--cobalt);
  border-width: 1.5px;
  box-shadow: 0 0 40px rgba(36, 99, 235, 0.18);
}
.pricing-card--featured:hover {
  border-color: var(--cobalt-bright);
}

/* Recommended badge */
.pc-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cobalt);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* Header */
.pc-header { margin-bottom: 1.25rem; }
.pc-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.pc-desc {
  font-size: 0.8rem;
  color: var(--white-50);
}

/* Price row */
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 1.75rem;
}
.pc-currency {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white-70);
  align-self: flex-end;
  padding-bottom: 0.45rem;
  letter-spacing: 0.03em;
}
.pc-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pc-per {
  font-size: 0.8rem;
  color: var(--white-50);
  align-self: flex-end;
  padding-bottom: 0.25rem;
}

/* Feature list */
.pc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.pc-feat {
  font-size: 0.875rem;
  color: var(--white-70);
  padding-left: 1.5rem;
  position: relative;
}
.pc-feat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 13px;
  height: 8px;
  border-left: 2px solid;
  border-bottom: 2px solid;
  transform: rotate(-45deg) translate(1px, -1px);
  border-radius: 1px;
}
.pc-feat--on::before  { border-color: var(--cobalt-bright); }
.pc-feat--off {
  color: var(--white-30);
  text-decoration: line-through;
  text-decoration-color: var(--white-15);
}
.pc-feat--off::before {
  border: none;
  content: '×';
  font-size: 1rem;
  line-height: 1;
  color: var(--white-20, rgba(255,255,255,.2));
  top: 0;
  left: 1px;
  transform: none;
}

/* Buttons */
.pc-btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}
.pc-btn--ghost {
  background: transparent;
  border: 1px solid var(--white-15);
  color: var(--white-90);
}
.pc-btn--ghost:hover {
  background: var(--white-08);
  border-color: var(--white-30);
}
.pc-btn--primary {
  background: var(--cobalt);
  border: 1px solid var(--cobalt);
  color: var(--white);
}
.pc-btn--primary:hover {
  background: var(--cobalt-bright);
  border-color: var(--cobalt-bright);
}

/* Responsive */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}


/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--white-08);
  padding-block: 3rem 2rem;
}
.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--gap-lg);
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--white-08);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-logo em { color: var(--cobalt-bright); font-style: normal; }
.footer-tagline { font-size: var(--text-sm); color: var(--white-50); margin-bottom: 0.75rem; }
.footer-live {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--cyan);
  letter-spacing: 0.05em;
  transition: color var(--dur-fast);
}
.footer-live:hover { color: var(--cyan-bright); }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: start;
}
.footer-nav a {
  font-size: var(--text-sm);
  color: var(--white-50);
  transition: color var(--dur-fast);
}
.footer-nav a:hover { color: var(--white-90); }
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
}
.footer-demo-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--cobalt-bright);
  letter-spacing: 0.05em;
  transition: color var(--dur-fast);
  margin-bottom: 0.5rem;
  display: block;
}
.footer-demo-link:hover { color: var(--cyan); }
.footer-meta span { font-size: var(--text-xs); color: var(--white-40, rgba(255,255,255,.4)); font-family: var(--font-mono); }
.footer-bottom p {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--white-30);
  letter-spacing: 0.06em;
}


/* ════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }

  .pillars { grid-template-columns: 1fr; }
  .pillar-sep { display: none; }
  .pillar { padding: 2rem 0; border-bottom: 1px solid var(--white-08); }

  .hiw-pin-wrap { display: none; }
  .hiw-mobile { display: block; }

  .ai-models { grid-template-columns: 1fr; }
  .ai-connector { flex-direction: row; padding: 1rem 0; }
  .aicon-line { width: 40px; height: 1px; }

  .ai-numbers { flex-direction: column; gap: 1.5rem; }
  .ain-sep { display: none; }

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

  .footer-layout { grid-template-columns: 1fr 1fr; }
  .footer-meta { text-align: left; grid-column: 1 / -1; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Problem section entry line — overlaps text on mobile */
  .s-problem::before { display: none; }

  /* Nav */
  .nav-links  { display: none; }
  .btn-nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Set mobile link stagger delays */
  .mn-link:nth-child(1) { --i: 0; }
  .mn-link:nth-child(2) { --i: 1; }
  .mn-link:nth-child(3) { --i: 2; }
  .mn-link:nth-child(4) { --i: 3; }
  .mn-link:nth-child(5) { --i: 4; }

  /* Hero */
  .s-hero { padding-top: 4.5rem; }
  .hero-h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 20px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 320px; justify-content: center; }

  /* Problem stats */
  .problem-stats { grid-template-columns: 1fr; }
  .problem-closer { flex-direction: column; }
  .closer-rule { width: 60px; height: 1px; align-self: auto; }

  /* Platform pillars */
  .pillar-word { font-size: clamp(2.5rem, 12vw, 4rem); }

  /* Feature scenes */
  .fs-lr, .fs-rl {
    grid-template-columns: 1fr;
  }
  .fs-rl .fs-img { order: -1; }

  /* Autopilot — mobile shows all messages immediately */
  [data-reveal] { opacity: 1 !important; transform: none !important; }

  /* AI */
  .ai-numbers { padding: 1.5rem; }
  .ain-item { padding: 0.5rem 0; }

  /* Mobile section */
  .mobile-layout { grid-template-columns: 1fr; }
  .mobile-phone-wrap { order: -1; margin-bottom: 2rem; }
  .mobile-ph-img { max-width: 200px; margin-inline: auto; }
  .pb-top { right: -16px; top: 16px; font-size: 0.65rem; padding: 0.25rem 0.55rem; }
  .pb-bot { left: -16px; bottom: 30px; font-size: 0.65rem; padding: 0.25rem 0.55rem; }

  /* Use cases — mobile list instead of horizontal scroll */
  .uc-scroll-outer { display: none; }
  .uc-mobile-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  /* Impact */
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-item { padding: 1.75rem 1.25rem; }

  /* Autopilot caps */
  .ap-caps { grid-template-columns: 1fr; }

  /* Footer */
  .footer-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-meta { text-align: left; }

  /* CTA */
  .btn-cta { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  :root { --text-body: 1rem; }
  .trust-pill { font-size: 0.65rem; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .ap-chat-window { border-radius: var(--radius-md); }
}

/* ════ GSAP init states (set by JS) ════ */
.gsap-hide { opacity: 0; }
