/* =========================================================
   Asserta — People + AI, testing wonderfully together
   Deep navy-violet dark base · dual accents:
   warm amber (human) × cyan (AI) meeting in one gradient
   ========================================================= */

:root {
  /* Asserta palette (from asserta-ui design tokens) */
  --bg-0: #0c0c1d;          /* darkest — page edge */
  --bg-1: #12122a;          /* panels */
  --bg-2: #1a1a3e;          /* elevated cards */
  --bg-3: #222256;          /* hover */
  --cyan: #2CE1D2;          /* AI accent */
  --cyan-soft: rgba(44, 225, 210, 0.14);
  --amber: #FFB84D;         /* human accent */
  --amber-soft: rgba(255, 184, 77, 0.14);
  --blue: #4d8aff;          /* map mode */
  --orange: #ff8a4d;        /* review mode */
  --red: #ff4d6a;           /* gap mode */
  --green: #4dff91;         /* approved */

  --text-1: #f0f0f5;
  --text-2: #9898b8;
  --text-3: #6868a0;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --line-accent: rgba(44, 225, 210, 0.3);

  /* The duet gradient — human warmth flowing into AI cyan */
  --duet: linear-gradient(100deg, var(--amber) 0%, #ffd9a0 28%, #9ff0e7 62%, var(--cyan) 100%);
  --duet-dim: linear-gradient(100deg, rgba(255,184,77,0.35), rgba(44,225,210,0.35));

  /* Type */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Rhythm */
  --header-h: 72px;
  --maxw: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 50px -22px rgba(0, 0, 0, 0.65);
  --glow-cyan: 0 0 40px rgba(44, 225, 210, 0.18);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* NOTE: no `scroll-behavior: smooth` here — it makes every programmatic
   scrollTo() start a browser-managed glide, which fights ScrollTrigger's
   per-frame scroll writes (rubber-band lag on the intro). Smooth anchor
   navigation is done in main.js instead. scroll-padding still applies. */
html { scroll-padding-top: 90px; }

body {
  font-family: var(--body);
  color: var(--text-1);
  background: var(--bg-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain overlay — quiet analog texture over the whole site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.015em; }

.grad-text {
  background: var(--duet);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 100;
  background: var(--cyan); color: #04252a;
  padding: 10px 18px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: calc(12px + var(--safe-top)); }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  margin-bottom: 18px;
  text-wrap: balance;
}

.section-sub {
  color: var(--text-2);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 12px;
  text-decoration: none; border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.btn-solid {
  background: var(--cyan); color: #04252a;
  box-shadow: var(--glow-cyan);
}
.btn-solid:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 0 56px rgba(44, 225, 210, 0.3); }
.btn-ghost {
  color: var(--text-1); border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding-top: var(--safe-top);
  /* No backdrop-filter: re-blurring the animating canvas behind the header
     on every frame is a notorious scroll-jank source. Solid tint instead. */
  background: rgba(12, 12, 29, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; color: var(--text-1);
}
.brand-dot { color: var(--cyan); }

.site-nav { display: flex; gap: 26px; margin-inline: auto; }
.site-nav a {
  text-decoration: none; color: var(--text-2); font-size: 14.5px; font-weight: 500;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--cyan); }

.header-cta { display: flex; gap: 10px; }
.header-cta .btn { padding: 9px 18px; font-size: 14px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text-1); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Cinematic intro ---------- */
/* Pure CSS sticky scrollytelling: the section is tall, the child pins
   itself via position:sticky (compositor-handled — cannot lag), and JS
   only READS scroll position to drive the canvas. No pinning library. */
.intro { position: relative; height: 440vh; height: 440svh; }
.intro__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--bg-0);
}
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.intro__overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding-inline: 24px;
  pointer-events: none;
}
.intro-stage {
  grid-area: 1 / 1;
  font-size: clamp(30px, 5.4vw, 62px);
  font-weight: 700;
  text-align: center;
  max-width: 15em;
  opacity: 0;
  color: var(--text-1);
  text-shadow: 0 2px 30px rgba(12, 12, 29, 0.8);
  text-wrap: balance;
  will-change: opacity, transform;
}

.intro__hint {
  position: absolute; bottom: calc(26px + var(--safe-bottom)); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-2);
}
.intro__hint-arrow { animation: hint-bob 1.6s ease-in-out infinite; color: var(--cyan); }
@keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.intro__hint-mobile { display: none; }
@media (hover: none) and (pointer: coarse) {
  .intro__hint-desktop { display: none; }
  .intro__hint-mobile { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + var(--safe-top) + clamp(60px, 9vh, 110px)) 0 clamp(70px, 10vh, 120px);
  overflow: hidden;
}
.hero-atmosphere {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 46% at 82% 8%, rgba(44, 225, 210, 0.11), transparent 65%),
    radial-gradient(46% 42% at 6% 88%, rgba(255, 184, 77, 0.09), transparent 65%),
    radial-gradient(70% 60% at 50% 115%, rgba(34, 34, 86, 0.7), transparent 70%);
}
/* dotted grid — the studio's quiet engineering paper */
.hero-atmosphere::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, black, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 22px;
}
.eyebrow-spark { color: var(--amber); }

.hero h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  font-weight: 800;
  margin-bottom: 22px;
}

.hero-sub {
  color: var(--text-2);
  font-size: clamp(16px, 1.7vw, 19px);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }

.hero-note {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.hero-note .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(77, 255, 145, 0.14);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 4px rgba(77,255,145,0.14); } 50% { box-shadow: 0 0 0 7px rgba(77,255,145,0.05); } }

/* ---- Product mock ---- */
.hero-mock { position: relative; }
.mock-window {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), var(--glow-cyan);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.mock-dots { display: inline-flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-3); }
.mock-dots i:first-child { background: var(--red); opacity: 0.75; }
.mock-dots i:nth-child(2) { background: var(--amber); opacity: 0.75; }
.mock-dots i:last-child { background: var(--green); opacity: 0.75; }
.mock-url {
  flex: 1;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-3);
  background: var(--bg-0); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-live {
  font-family: var(--mono); font-size: 10.5px; color: var(--green);
  animation: blink-soft 2s ease-in-out infinite;
}
@keyframes blink-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.mock-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mock-page, .mock-panel { min-width: 0; }
.mock-page { padding: 18px; border-right: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.mock-skel { background: var(--bg-2); border-radius: 8px; }
.mock-skel--nav { height: 16px; width: 70%; }
.mock-skel--hero { height: 44px; }
.mock-skel--wide { height: 26px; opacity: 0.7; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-skel--card { height: 58px; position: relative; }

.cap { border: 1.5px solid transparent; }
.cap--map { border-color: var(--blue); box-shadow: 0 0 14px rgba(77, 138, 255, 0.3); }
.cap--review { border-color: var(--orange); box-shadow: 0 0 14px rgba(255, 138, 77, 0.3); }
.cap--gap { border-style: dashed; border-color: var(--red); }
.cap-tag {
  position: absolute; top: -9px; left: 7px;
  font-family: var(--mono); font-size: 9px;
  background: var(--bg-0); color: var(--text-2);
  padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line);
}
.cap--map .cap-tag { color: var(--blue); }
.cap--review .cap-tag { color: var(--orange); }
.cap--gap .cap-tag { color: var(--red); }

.mock-panel { padding: 16px 14px; display: grid; gap: 10px; align-content: start; background: rgba(255,255,255,0.015); }
.mock-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-2);
  padding-bottom: 4px;
}
.el-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 11px;
}
.el-card--ai { border-color: var(--line-accent); }
.el-name { font-family: var(--mono); font-size: 11px; color: var(--text-1); }

.badge {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  padding: 2px 8px; border-radius: 7px; white-space: nowrap;
}
.badge-db { background: var(--cyan-soft); color: var(--cyan); }
.badge-ok { background: rgba(77, 255, 145, 0.12); color: var(--green); }
.badge-review { background: rgba(255, 184, 77, 0.12); color: var(--amber); }
.badge-ai { background: var(--cyan-soft); color: var(--cyan); }
.badge-p { background: rgba(255, 77, 106, 0.14); color: var(--red); }

.mock-coverage {
  display: flex; align-items: center; gap: 10px;
  padding-top: 6px;
  font-family: var(--mono); font-size: 10.5px; color: var(--text-2);
}
.mock-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.mock-bar i { display: block; height: 100%; border-radius: 99px; background: var(--duet); }
.mock-coverage-num { color: var(--cyan); }

.mock-chat {
  position: absolute; right: -8px; bottom: -26px;
  display: flex; gap: 12px; align-items: center;
  background: rgba(18, 18, 42, 0.94);
  border: 1px solid var(--line-accent);
  border-radius: 16px;
  padding: 13px 17px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.4deg);
  max-width: 92%;
}
.mock-chat-orb {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #b8fff7, var(--cyan) 55%, #0f7d73);
  animation: orb-breathe 2.6s ease-in-out infinite;
}
@keyframes orb-breathe {
  0%, 100% { box-shadow: 0 0 12px rgba(44, 225, 210, 0.5); transform: scale(1); }
  50% { box-shadow: 0 0 26px rgba(44, 225, 210, 0.8); transform: scale(1.07); }
}
.mock-chat-title { font-size: 12.5px; font-weight: 600; color: var(--text-1); }
.mock-chat-line { font-family: var(--mono); font-size: 11px; color: var(--text-2); margin-top: 3px; }

/* ---------- Stat strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-1); }
.strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding-block: 34px;
}
.stat { display: grid; gap: 3px; }
.stat-num {
  font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700;
  background: var(--duet);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--text-2); font-size: 13.5px; line-height: 1.45; }

/* ---------- Sections rhythm ---------- */
.duet, .how, .features, .exports,
.what, .problem, .different, .teams, .trust, .roi, .roadmap, .faq {
  padding-block: clamp(80px, 11vh, 130px);
}

/* Centered narrative sections */
.what .kicker, .what .section-title,
.different .kicker, .different .section-title,
.trust .kicker, .trust .section-title,
.roi .kicker, .roi .section-title,
.roadmap .kicker, .roadmap .section-title,
.faq .kicker, .faq .section-title {
  text-align: center;
}
.roi .section-sub, .roadmap .section-sub {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Prose blocks ---------- */
.prose {
  max-width: 680px;
  display: grid;
  gap: 16px;
  margin-top: 26px;
}
.prose--center { margin-inline: auto; text-align: center; }
.prose p { color: var(--text-2); font-size: clamp(16px, 1.6vw, 18.5px); }
.prose strong { color: var(--text-1); font-weight: 600; }
.stanza { line-height: 1.75; }

/* Multi-paragraph cards */
.feature p + p, .how-step p + p { margin-top: 10px; }
.how-step p:last-child { margin-bottom: 0; }

/* ---------- Workflow rail (echoes Asserta's stepped flow UI) ---------- */
.how-flow {
  list-style: none;
  position: relative;
  max-width: 780px;
  margin: 54px auto 0;
  display: grid;
  gap: 22px;
}
/* the rail: human (amber) hands off to AI (cyan) down the flow */
.how-flow::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--amber), var(--amber) 38%, var(--cyan) 72%, var(--cyan));
  opacity: 0.45;
}
.how-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
}
.how-node {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin-top: 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: var(--bg-2);
  border: 1px solid var(--line-accent);
  box-shadow: 0 0 18px rgba(44, 225, 210, 0.22);
}
.how-node--warm {
  color: var(--amber);
  border-color: rgba(255, 184, 77, 0.4);
  box-shadow: 0 0 18px rgba(255, 184, 77, 0.2);
}

/* ---------- Trust divider (duet threads reused standalone) ---------- */
.trust-join {
  flex-direction: row;
  width: 100%;
  max-width: 460px;
  min-height: 54px;
  margin: 34px auto;
}
.trust-join .duet-thread { height: 2px; width: auto; flex: 1; }
.trust-join .duet-thread--warm { background: linear-gradient(90deg, transparent, var(--amber)); }
.trust-join .duet-thread--cool { background: linear-gradient(90deg, var(--cyan), transparent); }

/* ---------- Security bullet chips ---------- */
.lg--onprem { background: var(--amber); box-shadow: 0 0 10px rgba(255, 184, 77, 0.6); }
.lg--cloud { background: var(--blue); box-shadow: 0 0 10px rgba(77, 138, 255, 0.6); }
.lg--byol { background: var(--cyan); box-shadow: 0 0 10px rgba(44, 225, 210, 0.6); }
.lg--verified { background: var(--green); box-shadow: 0 0 10px rgba(77, 255, 145, 0.6); }
.lg--web { background: var(--text-1); box-shadow: 0 0 10px rgba(240, 240, 245, 0.5); }
.lg--mobile { background: transparent; border: 2px dashed var(--text-3); }

/* ---------- ROI stats ---------- */
.roi-grid {
  grid-template-columns: repeat(3, 1fr);
  padding-block: 44px 10px;
  text-align: center;
}
.roi .prose { margin-top: 30px; }

/* ---------- Roadmap ---------- */
.roadmap .export-row { margin-top: 40px; }
.roadmap .prose { margin-top: 36px; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 48px auto 0;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease;
}
.faq-item[open] { border-color: var(--line-accent); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--cyan);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.faq-item > p {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 15.5px;
  max-width: 64ch;
}

/* ---------- Waitlist form ---------- */
.hero-sub--lead { color: var(--text-1); font-weight: 500; }
.hero-copy .hero-sub { margin-bottom: 14px; }
.hero-copy .hero-sub:last-of-type { margin-bottom: 30px; }

.cta-lines { line-height: 1.8; }

.cta-form--waitlist {
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 16px;
  max-width: 520px;
  margin-top: 8px;
}
.cta-form--waitlist label {
  display: grid;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
}
.cta-form--waitlist .optional { color: var(--text-3); font-weight: 400; }
.cta-form--waitlist .btn { justify-content: center; width: 100%; }
.cta-form select, .cta-form textarea {
  font-family: var(--body);
  font-size: 15px;
  color: var(--text-1);
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 18px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cta-form select:focus, .cta-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.cta-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239898b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.cta-form select option { background: var(--bg-2); color: var(--text-1); }
.cta-form textarea { resize: vertical; min-height: 84px; }
.form-note { font-size: 12.5px; color: var(--text-3); text-align: center; }
.form-success {
  max-width: 520px;
  margin: 8px auto 0;
  background: var(--bg-1);
  border: 1px solid var(--line-accent);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: var(--glow-cyan);
}
.form-success p { color: var(--text-2); margin: 0; }
.form-success strong { color: var(--text-1); display: block; margin-bottom: 4px; font-size: 18px; }

/* ---------- Duet ---------- */
.duet { position: relative; }
.duet .section-sub { margin-inline: auto; text-align: center; }
.duet .kicker, .duet .section-title { text-align: center; }

.duet-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 3vw, 34px);
  align-items: stretch;
  margin-top: 54px;
}

.duet-card {
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.duet-card:hover { transform: translateY(-4px); }
.duet-card--human:hover { border-color: rgba(255, 184, 77, 0.4); }
.duet-card--ai:hover { border-color: var(--line-accent); }
.duet-card::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
}
.duet-card--human::before { background: radial-gradient(90% 70% at 10% 0%, var(--amber-soft), transparent 60%); }
.duet-card--ai::before { background: radial-gradient(90% 70% at 90% 0%, var(--cyan-soft), transparent 60%); }

.duet-card h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 21px; margin-bottom: 18px;
}
.duet-glyph { font-size: 18px; }
.duet-card--human .duet-glyph { color: var(--amber); }
.duet-card--ai .duet-glyph { color: var(--cyan); }

.duet-card ul { list-style: none; display: grid; gap: 11px; }
.duet-card li {
  color: var(--text-2); font-size: 15.5px;
  padding-left: 22px; position: relative;
}
.duet-card li::before {
  content: "—"; position: absolute; left: 0;
}
.duet-card--human li::before { color: var(--amber); }
.duet-card--ai li::before { color: var(--cyan); }

.duet-join {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; min-width: 54px;
}
.duet-thread { width: 2px; flex: 1; border-radius: 2px; }
.duet-thread--warm { background: linear-gradient(180deg, transparent, var(--amber)); }
.duet-thread--cool { background: linear-gradient(180deg, var(--cyan), transparent); }
.duet-knot {
  font-family: var(--display); font-weight: 700; font-size: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text-1);
  box-shadow: 0 0 22px rgba(44, 225, 210, 0.2), 0 0 22px rgba(255, 184, 77, 0.14);
}

.duet-result {
  text-align: center; margin-top: 44px;
  color: var(--text-2); font-size: clamp(16px, 1.8vw, 20px);
}
.duet-result strong { color: var(--text-1); font-weight: 600; }

/* ---------- How it works ---------- */
.how { background: var(--bg-1); border-block: 1px solid var(--line); position: relative; overflow: hidden; }
.how::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(44, 225, 210, 0.05), transparent 70%);
}

.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  margin-top: 54px;
  counter-reset: step;
}
.how-step {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.how-step:hover {
  transform: translateY(-5px);
  border-color: var(--line-accent);
  box-shadow: var(--glow-cyan);
}
.how-num {
  font-family: var(--mono); font-size: 13px; color: var(--cyan);
  letter-spacing: 0.14em;
}
.how-step h3 { font-size: 23px; margin: 12px 0 12px; }
.how-step p { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.how-code {
  display: block;
  font-family: var(--mono); font-size: 12px;
  color: var(--text-2);
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  overflow-x: auto; white-space: nowrap;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
  margin-top: 54px;
}
.feature {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute; inset: auto -30% -50% -30%; height: 70%;
  background: radial-gradient(50% 100% at 50% 100%, var(--cyan-soft), transparent 70%);
  opacity: 0; transition: opacity 0.35s ease;
  pointer-events: none;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.feature:hover::after { opacity: 1; }
.feature-icon {
  display: inline-block;
  width: 27px; height: 27px;
  margin-bottom: 14px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(44, 225, 210, 0.35));
}
.feature-icon--warm {
  color: var(--amber);
  filter: drop-shadow(0 0 8px rgba(255, 184, 77, 0.3));
}
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--text-2); font-size: 14.5px; }

/* ---------- Graph section ---------- */
.graph {
  position: relative;
  min-height: 640px;
  display: flex; align-items: center;
  border-block: 1px solid var(--line);
  background: var(--bg-0);
  overflow: hidden;
  padding-block: clamp(80px, 11vh, 130px);
}
.graph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph-inner { position: relative; width: 100%; }
.graph-copy {
  max-width: 480px;
  background: rgba(12, 12, 29, 0.88); /* solid — no per-frame re-blur over the animating graph */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 42px);
}
.graph-legend { list-style: none; display: grid; gap: 13px; margin-top: 26px; }
.graph-legend li { display: flex; align-items: baseline; gap: 12px; color: var(--text-2); font-size: 15px; }
.graph-legend strong { color: var(--text-1); font-weight: 600; }
.lg { flex: none; width: 12px; height: 12px; border-radius: 4px; transform: translateY(1px); }
.lg--map { background: var(--blue); box-shadow: 0 0 10px rgba(77, 138, 255, 0.6); }
.lg--review { background: var(--orange); box-shadow: 0 0 10px rgba(255, 138, 77, 0.6); }
.lg--gap { background: transparent; border: 2px dashed var(--red); border-radius: 4px; }

/* ---------- Exports ---------- */
.exports .kicker, .exports .section-title { text-align: center; }
.export-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin-top: 46px;
}
.export-pill {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--display); font-weight: 600; font-size: 17px;
  padding: 16px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-1);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.export-pill em {
  font-family: var(--mono); font-style: normal; font-weight: 400;
  font-size: 11px; color: var(--text-3);
}
.export-pill:hover {
  transform: translateY(-4px);
  border-color: var(--line-accent);
  box-shadow: var(--glow-cyan);
}

/* ---------- Quote ---------- */
.quote-band {
  padding-block: clamp(70px, 10vh, 110px);
  background: var(--bg-1);
  border-block: 1px solid var(--line);
}
.quote-band blockquote { max-width: 820px; margin-inline: auto; text-align: center; }
.quote-band p {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600; line-height: 1.35;
  margin-bottom: 22px;
  text-wrap: balance;
}
.quote-band cite { font-style: normal; color: var(--text-2); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding-block: clamp(90px, 13vh, 150px); overflow: hidden; }
.cta-atmosphere {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 30% 100%, rgba(255, 184, 77, 0.1), transparent 65%),
    radial-gradient(50% 60% at 70% 100%, rgba(44, 225, 210, 0.12), transparent 65%);
}
.cta-inner { position: relative; text-align: center; max-width: 660px; }
.cta h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin-bottom: 18px; }
.cta p { color: var(--text-2); font-size: clamp(16px, 1.7vw, 19px); margin-bottom: 34px; }

.cta-form {
  display: flex; gap: 12px; justify-content: center;
  max-width: 480px; margin-inline: auto; margin-bottom: 18px;
}
.cta-form input {
  flex: 1; min-width: 0;
  font-family: var(--body); font-size: 15px;
  color: var(--text-1);
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cta-form input::placeholder { color: var(--text-3); }
.cta-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }

.cta-small { font-size: 14px; color: var(--text-3); }
.cta-small a { color: var(--cyan); text-decoration: none; }
.cta-small a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding-block: 46px calc(34px + var(--safe-bottom));
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 30px; align-items: start;
}
.footer-brand p { color: var(--text-3); font-size: 14px; margin-top: 14px; }
.footer-brand a { color: var(--text-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-end; align-self: center; }
.footer-nav a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--cyan); }
.footer-fine { grid-column: 1 / -1; color: var(--text-3); font-size: 12.5px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
/* Stagger siblings */
.reveal.in:nth-child(2) { transition-delay: 0.08s; }
.reveal.in:nth-child(3) { transition-delay: 0.16s; }
.reveal.in:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-mock { width: 100%; max-width: 640px; margin-inline: auto; min-width: 0; }
  .hero-copy { min-width: 0; }
  .how-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed; inset: calc(var(--header-h) + var(--safe-top)) 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(12, 12, 29, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .header-cta .btn-ghost { display: none; }
  .header-cta { margin-left: auto; }
  .header-cta .btn { padding: 8px 14px; font-size: 13px; }
  .nav-toggle { display: flex; margin-left: 0; }
  .eyebrow { font-size: 10.5px; letter-spacing: 0.12em; }

  .how-grid, .feature-grid { grid-template-columns: 1fr; }
  .duet-grid { grid-template-columns: 1fr; }
  .duet-join { flex-direction: row; min-height: 54px; width: 100%; }
  .duet-thread { height: 2px; width: auto; flex: 1; }
  .duet-thread--warm { background: linear-gradient(90deg, transparent, var(--amber)); }
  .duet-thread--cool { background: linear-gradient(90deg, var(--cyan), transparent); }
  .mock-chat { position: static; margin-top: 14px; transform: none; max-width: 100%; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-page { border-right: 0; border-bottom: 1px solid var(--line); }
  .cta-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .graph { min-height: 0; }
}

@media (max-width: 460px) {
  .strip-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
