/* =========================================================
   Vaaani — landing site
   ========================================================= */

/* ---------------------------------------------------------
   2026-05-28 commercial strip — hide mascot-style chrome.
   Adobe-grade refined identity: no curtain splash, no custom
   cursor, no decorative floating cards for features that
   have been removed (Listen, Feynman/Coverage, Integrations).
   The Knowledge-graph floating card stays — it represents the
   actual product. Hiding (not deleting) so GSAP scripts that
   reference these nodes don't crash; trivial to bring back.
   --------------------------------------------------------- */
.intro-curtain,
.cursor-dot,
.cursor-ring,
.hf-listen,
.hf-explain,
.hf-integrations {
  display: none !important;
}
/* The custom-cursor system added `body.has-cursor { cursor: none }` on
   the assumption that the cursor-dot/cursor-ring divs would replace
   the native pointer. We hid those, so the native pointer must come
   back — force `cursor: auto` on body + interactive elements with
   higher specificity to defeat the original rules. */
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor input,
body.has-cursor textarea,
body.has-cursor select,
body.has-cursor label {
  cursor: auto !important;
}
body.has-cursor a,
body.has-cursor button {
  cursor: pointer !important;
}


/* =========================================================
   INTRO CURTAIN — fullscreen lift on first paint
   ========================================================= */
.intro-curtain {
  position: fixed; inset: 0; z-index: 500;
  background:
    radial-gradient(ellipse 600px 400px at 50% 40%, rgba(37, 99, 235,0.08), transparent 70%),
    var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
}
.curtain-content {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.curtain-brand {
  width: 48px; height: 48px; color: var(--c-accent);
}
.curtain-brand circle { fill: currentColor; }
.curtain-word {
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--c-text);
}

:root {
  /* Brand */
  --c-bg:            #fafafa;
  --c-bg-2:          #f4f4f5;
  --c-surface:       #ffffff;
  --c-surface-2:     #f4f4f5;
  --c-border:        #e4e4e7;
  --c-border-strong: #d4d4d8;

  --c-text:          #18181b;
  --c-muted:         #71717a;
  --c-muted-strong:  #3f3f46;

  --c-accent:        #2563eb;
  --c-accent-soft:   #3b82f6;
  --c-accent-deep:   #1e40af;
  --c-accent-glow:   rgba(37, 99, 235, 0.15);

  /* Type */
  --font-display: 'Inter', -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-serif:   'Instrument Serif', Georgia, serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Timing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --dur:      0.7s;

  /* Layout */
  --max-w:    1180px;
  --nav-h:    72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.container.center { text-align: center; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.accent { color: var(--c-accent); }
.accent-text { color: var(--c-accent); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; z-index: 100;
  background: rgba(250,250,250,0.6); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nav.scrolled {
  background: rgba(250,250,250,0.92);
  border-bottom-color: var(--c-border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--c-text); }
.brand-mark { width: 22px; height: 22px; color: var(--c-accent); transition: transform 0.45s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(25deg) scale(1.15); }
.brand-mark circle { fill: currentColor; transform-origin: center; transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out); }
.brand:hover .brand-mark circle { animation: brand-pulse 0.9s ease-in-out; }
.brand:hover .brand-mark circle:nth-child(1) { animation-delay: 0s; }
.brand:hover .brand-mark circle:nth-child(2) { animation-delay: 0.06s; }
.brand:hover .brand-mark circle:nth-child(3) { animation-delay: 0.12s; }
.brand:hover .brand-mark circle:nth-child(4) { animation-delay: 0.18s; }
.brand:hover .brand-mark circle:nth-child(5) { animation-delay: 0.24s; }
@keyframes brand-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.55); opacity: 0.4; }
}
.brand-word .accent { color: var(--c-accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 13.5px; color: var(--c-muted); transition: color 0.2s var(--ease-out);
  font-weight: 500;
}
.nav-links a:hover { color: var(--c-text); }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-signin {
  font-size: 13.5px; color: var(--c-muted-strong); font-weight: 500;
  transition: color 0.2s var(--ease-out);
}
.nav-signin:hover { color: var(--c-text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn .arr { transition: transform 0.25s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-deep); }
.btn-ghost { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); }
.btn-ghost:hover { border-color: var(--c-border-strong); background: var(--c-surface-2); }
.btn.lg { padding: 13px 22px; font-size: 14px; border-radius: 8px; }

/* =========================================================
   HERO  (ChronoTask-inspired: massive headline, single CTA,
   floating product preview cards around the headline)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh; padding: calc(var(--nav-h) + 80px) 32px 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--c-bg);
}

/* Subtle dot grid — calmer than the old constellation. */
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(60,83,64,0.12) 1px, transparent 0);
  background-size: 28px 28px;
  background-position: center;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 50%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 50%, #000 60%, transparent 100%);
  opacity: 0.55;
}

.hero-content {
  position: relative; z-index: 2; text-align: center; max-width: 900px;
}
.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--c-muted-strong); text-transform: uppercase;
  padding: 6px 14px; border: 1px solid rgba(60,83,64,0.18); border-radius: 999px;
  margin-bottom: 32px; background: rgba(255,255,255,0.4);
}
.hero-title {
  font-size: clamp(48px, 7.5vw, 104px);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.04em;
  margin-bottom: 24px; color: #2a3a2b;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; }
.hero-title .tonal { color: var(--c-muted); font-weight: 400; }
.hero-sub {
  max-width: 600px; margin: 0 auto 40px;
  font-size: 17px; line-height: 1.6; color: var(--c-muted-strong);
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* -----------------------------------------------------------
   Floating product preview cards. Positioned with absolute
   coords + slight rotation so they read as "real product screens
   floating around the headline" — same trick ChronoTask uses
   with their sticky-note + reminders cards.
   ----------------------------------------------------------- */
.hero-float-card {
  position: absolute; z-index: 1;
  background: #fefaef;
  border: 1px solid rgba(60,83,64,0.12);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(60,83,64,0.08), 0 2px 6px rgba(60,83,64,0.05);
  pointer-events: none;
  animation: float-bob 6s ease-in-out infinite;
}
@keyframes float-bob {
  0%,100% { transform: translateY(0) var(--rot, rotate(0deg)); }
  50%     { transform: translateY(-8px) var(--rot, rotate(0deg)); }
}

/* Listen card — top-left */
.hf-listen {
  top: 14%; left: 6%;
  width: 250px; --rot: rotate(-5deg);
  transform: rotate(-5deg);
  animation-delay: 0.2s;
}
.hf-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hf-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.hf-icon svg { width: 16px; height: 16px; }
.hf-icon.listen { background: #2563eb; }
.hf-title { font-weight: 600; font-size: 12.5px; color: #2a3a2b; }
.hf-sub   { font-size: 10.5px; color: var(--c-muted); margin-top: 1px; }
.hf-wave {
  display: flex; align-items: center; gap: 3px; height: 28px;
  margin-bottom: 8px;
}
.hf-wave span {
  flex: 1; background: var(--c-accent); border-radius: 2px;
  opacity: 0.6;
}
.hf-wave span:nth-child(1)  { height: 30%; }
.hf-wave span:nth-child(2)  { height: 55%; }
.hf-wave span:nth-child(3)  { height: 80%; }
.hf-wave span:nth-child(4)  { height: 45%; }
.hf-wave span:nth-child(5)  { height: 70%; }
.hf-wave span:nth-child(6)  { height: 90%; }
.hf-wave span:nth-child(7)  { height: 60%; }
.hf-wave span:nth-child(8)  { height: 35%; }
.hf-wave span:nth-child(9)  { height: 75%; }
.hf-wave span:nth-child(10) { height: 50%; }
.hf-wave span:nth-child(11) { height: 85%; }
.hf-wave span:nth-child(12) { height: 40%; }
.hf-wave span:nth-child(13) { height: 65%; }
.hf-wave span:nth-child(14) { height: 30%; }
.hf-wave span:nth-child(15) { height: 55%; }
.hf-wave span:nth-child(16) { height: 70%; }
.hf-wave span:nth-child(17) { height: 25%; }
.hf-wave span:nth-child(18) { height: 50%; }
.hf-wave span:nth-child(19) { height: 35%; }
.hf-wave span:nth-child(1), .hf-wave span:nth-child(2), .hf-wave span:nth-child(3) { opacity: 1; }
.hf-time {
  font-size: 10.5px; color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}

/* Graph card — top-right */
.hf-graph {
  top: 11%; right: 5%;
  width: 200px; --rot: rotate(4deg);
  transform: rotate(4deg);
  animation-delay: 1.2s;
}
.hf-pill {
  display: inline-block; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-muted); background: rgba(60,83,64,0.06);
  padding: 3px 8px; border-radius: 999px; margin-bottom: 10px;
}
.hf-mini-graph { width: 100%; height: auto; display: block; }

/* Explain card — bottom-left */
.hf-explain {
  bottom: 12%; left: 8%;
  width: 230px; --rot: rotate(3deg);
  transform: rotate(3deg);
  animation-delay: 2.4s;
}
.hf-explain-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px;
}
.hf-explain-pct {
  font-size: 28px; font-weight: 700; color: var(--c-accent);
  letter-spacing: -0.02em; line-height: 1;
}
.hf-explain-pct small { font-size: 16px; font-weight: 600; }
.hf-explain-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--c-muted); text-transform: uppercase;
}
.hf-explain-row { display: flex; gap: 4px; flex-wrap: wrap; }
.hf-chip {
  font-size: 10px; font-weight: 600;
  padding: 3px 7px; border-radius: 5px;
}
.hf-chip.covered { background: rgba(37, 99, 235,0.12); color: var(--c-accent); }
.hf-chip.missed  { background: transparent; color: var(--c-muted); border: 1px dashed rgba(60,83,64,0.3); }

/* Integrations card — bottom-right */
.hf-integrations {
  bottom: 14%; right: 7%;
  width: 200px; --rot: rotate(-3deg);
  transform: rotate(-3deg);
  animation-delay: 3.6s;
}
.hf-int-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--c-muted-strong); font-weight: 600;
  margin-bottom: 10px;
}
.hf-int-status { color: var(--c-accent); font-size: 10px; }
.hf-int-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.hf-int-tile {
  width: 100%; aspect-ratio: 1; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.hf-int-tile svg { width: 12px; height: 12px; }
.hf-int-tile.tg  { background: #2aabee; }
.hf-int-tile.wa  { background: #25d366; }
.hf-int-tile.ank { background: #2a4f8e; }
.hf-int-tile.yt  { background: #ff0000; }
.hf-int-tile.gd  {
  background: linear-gradient(135deg, #1fa463 0%, #ffc107 60%, #4285f4 100%);
}

/* Hide floating cards on narrow viewports — they'd collide with the headline */
@media (max-width: 980px) {
  .hero-float-card { display: none; }
  .hero { padding: calc(var(--nav-h) + 40px) 24px 60px; }
}

/* =========================================================
   SECTION COMMON
   ========================================================= */
section { padding: var(--space-xl) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
  margin-bottom: 18px;
}
.section-title.big { font-size: clamp(40px, 6vw, 80px); }
.section-sub {
  font-size: 16px; color: var(--c-muted-strong); line-height: 1.65; max-width: 580px; margin: 0 auto;
}

/* Reveal base — hidden until GSAP fades it in. Falls back to visible if JS fails. */
.reveal { opacity: 1; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how { background: linear-gradient(180deg, var(--c-bg), var(--c-bg-2)); }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.step {
  position: relative; padding: 36px 28px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 12px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.step:hover { border-color: var(--c-border-strong); transform: translateY(-3px); }
.step-num {
  display: inline-block; font-family: var(--font-serif); font-size: 22px;
  color: var(--c-accent); margin-bottom: 22px;
  font-style: italic;
}
.step h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.015em; }
.step p { font-size: 14.5px; color: var(--c-muted-strong); line-height: 1.65; }

/* =========================================================
   SUBJECTS
   ========================================================= */
.subjects { background: var(--c-bg); }
.subject-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.subject-card {
  padding: 32px 26px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 12px;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  cursor: default;
}
.subject-card:hover {
  border-color: var(--c-accent);
  background: var(--c-surface-2);
  transform: translateY(-4px);
}
.subject-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(37, 99, 235,0.08);
  border: 1px solid rgba(37, 99, 235,0.18);
  color: var(--c-accent);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease-out);
}
.subject-card:hover .subject-icon { transform: rotate(-6deg) scale(1.06); }
.subject-icon svg { width: 22px; height: 22px; }
.subject-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.015em; }
.subject-card p { font-size: 13.5px; color: var(--c-muted-strong); line-height: 1.6; }

/* =========================================================
   SOCRATIC COMPARE
   ========================================================= */
.socratic { background: linear-gradient(180deg, var(--c-bg), var(--c-bg-2)); }
.dialog-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 1080px; margin: 0 auto;
}
.dialog {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 14px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.dialog-bad { opacity: 0.85; }
.dialog-good { border-color: rgba(37, 99, 235,0.4); }
.dialog-good::before {
  content: ''; position: absolute; inset: -1px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(37, 99, 235,0.5), transparent 60%);
  z-index: -1; opacity: 0.4;
}
.dialog-head { margin-bottom: 8px; }
.dialog-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-muted); font-weight: 600;
}
.dialog-tag.good { color: var(--c-accent); }
.dialog-subtag { display: block; font-size: 13px; color: var(--c-muted-strong); margin-top: 4px; font-weight: 500; }
.bubble {
  padding: 12px 16px; border-radius: 10px; font-size: 13.5px; line-height: 1.6;
  border: 1px solid var(--c-border);
}
.bubble.user {
  background: var(--c-surface-2); align-self: flex-end; max-width: 80%;
  border-bottom-right-radius: 2px;
  color: var(--c-text);
}
.bubble.assistant {
  background: var(--c-bg-2); border-bottom-left-radius: 2px;
  color: var(--c-muted-strong);
}
.dialog-good .bubble.assistant { color: var(--c-text); }

/* =========================================================
   CONSTELLATION EXPLAINER (split)
   ========================================================= */
.constellation-section { background: var(--c-bg); }
.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: center;
}
.split-text .eyebrow { margin-bottom: 22px; }
.split-text .section-title { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 22px; text-align: left; }
.split-text { text-align: left; }
.split-text .section-head { text-align: left; margin: 0 0 24px; }
.lede { font-size: 17px; color: var(--c-muted-strong); margin-bottom: 26px; line-height: 1.65; }
.bullet-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.bullet-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; color: var(--c-muted-strong); line-height: 1.6; }
.bullet-list .bullet {
  flex: 0 0 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-surface); border: 1px solid var(--c-border-strong);
  border-radius: 6px; color: var(--c-accent); font-size: 13px;
}
.bullet-list strong { color: var(--c-text); font-weight: 600; }
.split-visual {
  position: relative;
  background: radial-gradient(ellipse 500px 400px at 50% 50%, rgba(37, 99, 235,0.08), transparent 65%);
}
.big-constellation { width: 100%; height: auto; max-width: 540px; margin: 0 auto; display: block; }

/* =========================================================
   FEATURES
   ========================================================= */
.features { background: linear-gradient(180deg, var(--c-bg-2), var(--c-bg)); }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: 12px; overflow: hidden;
}
.feature {
  background: var(--c-bg);
  padding: 36px 28px;
  transition: background 0.3s var(--ease-out);
}
.feature:hover { background: var(--c-surface); }
.feature h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; color: var(--c-text); }
.feature h4::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--c-accent); margin-right: 10px;
  vertical-align: middle; opacity: 0.8;
}
.feature p { font-size: 13.5px; color: var(--c-muted-strong); line-height: 1.65; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  background:
    radial-gradient(ellipse 900px 500px at 50% 50%, rgba(37, 99, 235,0.1), transparent 65%),
    var(--c-bg);
  padding: 120px 32px;
}
.final-cta .section-title { margin-bottom: 22px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding: 60px 0 28px;
  background: var(--c-bg);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 60px;
  padding-bottom: 48px; border-bottom: 1px solid var(--c-border);
}
.footer-brand p { color: var(--c-muted-strong); font-size: 13.5px; margin-top: 14px; max-width: 280px; line-height: 1.6; }
.footer-col h5 {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-muted); font-weight: 600; margin-bottom: 16px;
}
.footer-col a {
  display: block; color: var(--c-muted-strong); font-size: 13.5px; padding: 4px 0;
  transition: color 0.2s var(--ease-out);
}
.footer-col a:hover { color: var(--c-text); }
.footer-line {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--c-muted); font-size: 12.5px;
}
.footer-line a { color: var(--c-muted-strong); transition: color 0.2s var(--ease-out); }
.footer-line a:hover { color: var(--c-accent); }
.footer-line strong { color: var(--c-text); font-weight: 600; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .container { padding: 0 22px; }
  .nav { padding: 0 22px; }
  .nav-links { display: none; }
  section { padding: 80px 0; }
  .steps, .subject-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dialog-compare { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-text { text-align: left; }
  .build-grid { grid-template-columns: 1fr; gap: 40px; }
  .build-line { font-size: 15px; }
  .trap-line { font-size: clamp(24px, 7vw, 36px); }
  .subjects-pin { height: auto; }
  .subjects-track {
    flex-direction: column; padding: 0 24px 60px;
    overflow-x: visible;
  }
  .subject-panel { flex: 0 0 auto; width: 100%; height: auto; min-height: 0; }
}
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--nav-h) + 30px); }
  .hero-title { font-size: clamp(40px, 11vw, 64px); }
  .steps, .subject-grid, .feature-grid { grid-template-columns: 1fr; }
  .feature-grid { gap: 1px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-line { flex-direction: column; text-align: center; }
  .scroll-hint { display: none; }
  .nav-cta .btn { padding: 8px 14px; font-size: 12.5px; }
  .nav-cta .btn .arr { display: none; }
}

/* =========================================================
   LENIS smooth-scroll integration
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* =========================================================
   MASKED WORD REVEALS
   Wraps every word in <span class="split-word"><span class="split-word-i">word</span></span>
   The outer span clips overflow; the inner translates up from below the line.
   ========================================================= */
.split-word {
  display: inline-block; overflow: hidden; vertical-align: top;
  /* preserve whitespace by relying on real spaces between split-word spans */
}
.split-word-i {
  display: inline-block; transform: translateY(110%);
  will-change: transform;
}
.split-ready .split-word-i { /* JS adds .split-ready to parent once GSAP set is done */ }

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300;
  border-radius: 50%; mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px; background: #fff;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.5);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.cursor-hover .cursor-ring {
  width: 64px; height: 64px; border-color: var(--c-accent); background: rgba(37, 99, 235,0.06);
}
@media (max-width: 980px) {
  .cursor-dot, .cursor-ring { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
}
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button, body.has-cursor input, body.has-cursor textarea { cursor: none; }

/* =========================================================
   SECTION-ENTRY WIPE LINE
   A 1px accent line that draws across when a chapter enters viewport.
   Use by adding <span class="wipe-line"></span> inside a section-head.
   ========================================================= */
.wipe-line {
  display: block; height: 1px; width: 0%;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  margin: 0 auto 18px;
}

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--c-border); z-index: 200; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-soft));
  transition: width 0.05s linear;
}

/* =========================================================
   CHAPTER FRAME
   ========================================================= */
.chapter {
  position: relative;
  background: var(--c-bg);
}
.chapter-inner {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 32px;
  position: relative;
}
.chapter-num {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-accent); font-weight: 600;
  padding: 6px 14px; border: 1px solid rgba(37, 99, 235,0.28); border-radius: 999px;
  margin-bottom: 32px;
}
.chapter-head {
  text-align: center; max-width: 760px; margin: 0 auto 64px;
}
.chapter-head .chapter-num { margin-bottom: 24px; }

/* =========================================================
   CHAPTER 01 — THE TRAP (pinned, scrubbed text)
   ========================================================= */
.chapter-trap {
  background:
    radial-gradient(ellipse 900px 500px at 30% 30%, rgba(37, 99, 235,0.06), transparent 65%),
    radial-gradient(ellipse 700px 500px at 80% 70%, rgba(91,141,239,0.04), transparent 65%),
    var(--c-bg);
}
.trap-lines {
  position: relative;
  height: 200px;
  max-width: 1000px; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.trap-line {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: clamp(28px, 4.6vw, 56px);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.12;
  margin: 0; padding: 0 16px;
  opacity: 0;
}
.trap-line .serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; }
.trap-progress {
  display: flex; gap: 8px; margin-top: 60px;
}
.trap-progress span {
  width: 28px; height: 3px; background: var(--c-border); border-radius: 999px;
  transition: background 0.25s var(--ease-out);
}
.trap-progress span.on { background: var(--c-accent); }

/* =========================================================
   CHAPTER 02 — THE FLIP (existing dialog compare, repurposed)
   ========================================================= */
.chapter-flip { padding: var(--space-xl) 0; }
.chapter-flip .dialog-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 1080px; margin: 0 auto;
}
.chapter-flip .dialog { opacity: 0; }   /* JS will fade them in */

/* =========================================================
   CHAPTER 03 — THE CONSTELLATION (build on scroll)
   ========================================================= */
.chapter-build { padding: 0; }
.chapter-build .chapter-inner { padding: 60px 32px; }
.build-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; max-width: 1180px; width: 100%; align-items: center;
}
.build-text { display: flex; flex-direction: column; }
.build-text .section-title {
  font-size: clamp(32px, 3.8vw, 48px); margin-bottom: 28px;
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
}
.build-line {
  font-size: 17px; line-height: 1.65; color: var(--c-muted-strong);
  padding: 14px 0; border-top: 1px solid var(--c-border);
  opacity: 0.25;
  transition: opacity 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.build-line.on { opacity: 1; color: var(--c-text); }
.build-line strong { color: var(--c-accent); font-weight: 600; }
.build-line:last-child { border-bottom: 1px solid var(--c-border); }
.build-visual {
  background: radial-gradient(ellipse 500px 500px at 50% 50%, rgba(37, 99, 235,0.06), transparent 65%);
  border-radius: 16px;
}
.build-svg { width: 100%; height: auto; max-width: 600px; display: block; margin: 0 auto; }
.build-svg .build-stars circle { opacity: 0; transform-origin: center; }
.build-svg .build-lines line { stroke-dasharray: 600; stroke-dashoffset: 600; }
.build-svg .build-clusters { opacity: 0; }
.build-svg .build-labels { opacity: 0; }

/* =========================================================
   CHAPTER 04 — FOUR SUBJECTS (horizontal pinned)
   ========================================================= */
.chapter-subjects { padding: 0; overflow: hidden; background: var(--c-bg-2); }
.subjects-pin {
  height: 100vh;
  display: flex; flex-direction: column;
  position: relative;
}
.subjects-head {
  padding: 60px 32px 28px; text-align: center; max-width: 820px; margin: 0 auto;
  flex: 0 0 auto;
}
.subjects-head .section-title { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 12px; }
.subjects-track {
  flex: 1; display: flex; align-items: center;
  gap: 28px; padding: 0 6vw;
  will-change: transform;
}
.subject-panel {
  flex: 0 0 min(620px, 80vw);
  height: 56vh; min-height: 360px; max-height: 520px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 18px;
  padding: 36px 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
  scroll-snap-align: center;
}
.subject-panel:hover { border-color: var(--c-border-strong); }
.subject-panel.is-center {
  border-color: var(--c-accent);
  box-shadow: 0 0 60px rgba(37, 99, 235,0.08), 0 0 120px rgba(37, 99, 235,0.03);
}
.subject-tag {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-accent); font-weight: 600;
}
.subject-frame h3 {
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em;
  margin: 16px 0 24px; line-height: 1.18;
}
.mini-dialog { display: flex; flex-direction: column; gap: 12px; }
.mini-dialog .bubble {
  padding: 12px 16px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.6;
  border: 1px solid var(--c-border);
}
.mini-dialog .bubble.user {
  background: var(--c-bg-2); align-self: flex-end; max-width: 78%;
  border-bottom-right-radius: 2px; color: var(--c-text);
}
.mini-dialog .bubble.assistant {
  background: var(--c-bg-2); border-bottom-left-radius: 2px;
  color: var(--c-muted-strong);
  border-color: rgba(37, 99, 235,0.3);
}

/* Respect users who don't want motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .intro-curtain { display: none !important; }
  .trap-line { opacity: 1 !important; position: static !important; }
  .trap-lines { height: auto !important; flex-direction: column; gap: 18px; }
  .build-line { opacity: 1 !important; color: var(--c-text) !important; }
  .build-svg .build-stars circle, .build-svg .build-clusters, .build-svg .build-labels { opacity: 1 !important; }
  .build-svg .build-lines line { stroke-dashoffset: 0 !important; }
  .chapter-flip .dialog { opacity: 1 !important; }
  .parallax-particles { display: none; }
}
