/* ============================================================
   ReMynd — landing page
   Light theme · operator command-center accents · Poppins + JetBrains Mono
   Flat accent colors — deep indigo primary, pink for secondary distinction
   ============================================================ */

:root {
  /* Surfaces — light theme */
  --bg:        #F4F5FA;   /* page base, cool off-white */
  --bg-deep:   #E8EAF3;   /* footer / agent band */
  --bg-band:   #ECEEF6;   /* alternating band */
  --panel:     #FFFFFF;   /* cards */
  --panel-2:   #F2F4FB;

  /* Accents. --cyan is repurposed as the deep accent for text/icons on light. */
  --cyan:      #3A53D4;   /* deep indigo accent (text/icons) */
  --peri:      #6889FF;
  --pink:      #F23CB8;
  --green:     #1E9E57;   /* deep green for text/icons on light */

  /* Text */
  --text:      #16171F;
  --muted:     #585A68;
  --faint:     #9598A6;

  /* Lines & radius */
  --hair:      rgba(22,23,45,.09);
  --hair-2:    rgba(22,23,45,.15);
  --r-sm:      6px;     /* matches in-app radius */
  --r:         12px;
  --r-lg:      18px;
  --r-win:     14px;

  /* Flat now (were gradients) — same token names so every call site below
     stays untouched; kept as vars in case that changes again. */
  --grad-action: var(--cyan);
  --grad-ident:  var(--pink);
  --grad-tri:    var(--cyan);

  /* Layout */
  --maxw:      1180px;
  --gut:       24px;

  /* Type scale */
  --display: "Poppins", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow:    0 30px 70px -28px rgba(38,42,90,.20);
  --glow-cyan: 0 0 0 1px rgba(58,83,212,.08), 0 26px 64px -30px rgba(58,83,212,.18);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.06; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 11vw, 132px); position: relative; }
.band { background: var(--bg-band); }
.band-deep { background: var(--bg-deep); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: var(--cyan); opacity: .55;
}

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 16px; }
.section-head p { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin-top: 18px; max-width: 640px; }

.grad-text {
  background: var(--grad-tri);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* (the hero used to override .grad-text for its dark footage — the hero is
   light now, so the default light-tuned deep indigo applies everywhere) */

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: var(--r-sm);
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--grad-action); color: #fff; font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(58,83,212,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(58,83,212,.65); }
.btn-ghost { background: rgba(22,23,45,.04); border-color: var(--hair-2); color: var(--text); }
.btn-ghost:hover { background: rgba(22,23,45,.07); border-color: rgba(22,23,45,.22); transform: translateY(-2px); }
.btn .ic { width: 17px; height: 17px; }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }

.linkcta { color: var(--cyan); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.linkcta .arr { transition: transform .2s ease; }
.linkcta:hover .arr { transform: translateX(4px); }

/* ---------- scrub rail (signature: scrolling = scrubbing a recording) ---------- */
.railwrap { display: none; position: fixed; left: 0; top: 0; bottom: 0; width: 64px; z-index: 60; pointer-events: none; }
@media (min-width: 1160px) {
  body { padding-left: 64px; }
  .railwrap { display: flex; }
}
.rail { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; padding-block: 28px; }
.rail-time {
  font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: .08em;
  writing-mode: vertical-rl; text-orientation: mixed; flex: none;
}
.rail-time-end { color: var(--faint); opacity: .55; }
.rail-track { position: relative; width: 2px; flex: 1; background: var(--hair-2); border-radius: 2px; margin-block: 16px; }
.rail-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--cyan); border-radius: 2px; }
.rail-chapters { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.rail-chapter { position: absolute; left: -4px; width: 10px; height: 10px; transform: translateY(-50%); pointer-events: auto; }
.rail-chapter::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--panel);
  border: 2px solid var(--faint); transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.rail-chapter:hover::before, .rail-chapter.active::before { border-color: var(--peri); transform: scale(1.2); }
.rail-chapter.active::before { background: var(--peri); box-shadow: 0 0 0 4px rgba(104,137,255,.18); }
.rail-chapter .lbl {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); opacity: 0; transition: opacity .18s ease;
  background: var(--panel); border: 1px solid var(--hair); border-radius: 6px; padding: 5px 10px;
  box-shadow: 0 10px 26px -14px rgba(20,22,50,.35); pointer-events: none;
}
.rail-chapter:hover .lbl, .rail-chapter.active .lbl { opacity: 1; }
.rail-chapter.active .lbl { color: var(--text); border-color: var(--hair-2); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,249,253,.72);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--hair); background: rgba(248,249,253,.92); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; margin-left: 14px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; }

/* ---------- hero — full-bleed footage, scrubbed by scroll (the signature moment) ---------- */
.hero { position: relative; height: 210vh; }
.hero-stage {
  position: sticky; top: 0; height: 100vh; min-height: 620px; max-height: 100vh;
  /* matches the footage's own background — the video edges dissolve into the stage */
  overflow: hidden; background: var(--bg);
  /* column flex with exactly 2 in-flow children (hud row, overlay copy) pins one to
     the top and one to the bottom with justify-content — structurally impossible for
     them to overlap, unlike the old independent-absolute-position approach. */
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-scrub { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  /* light veils (was a dark scrim): settle the footage under the dark headline
     text — bottom for the overlay copy, left for the headline column */
  background:
    linear-gradient(180deg, rgba(244,245,250,0) 55%, rgba(244,245,250,.9) 100%),
    linear-gradient(90deg, rgba(244,245,250,.8) 0%, transparent 42%);
}
.hero-scrub-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); display: flex; align-items: center; gap: 8px;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

.rec-chip {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px;
  letter-spacing: .06em; color: var(--muted); border: 1px solid var(--hair-2); border-radius: 100px;
  padding: 6px 13px; margin-bottom: clamp(10px, 1vw + 1.4vh, 22px); background: rgba(255,255,255,.6); backdrop-filter: blur(6px);
}
.rec-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229,72,77,.6); animation: pulse-red 2s infinite; }
@keyframes pulse-red { 0%{box-shadow:0 0 0 0 rgba(229,72,77,.55);} 70%{box-shadow:0 0 0 6px rgba(229,72,77,0);} 100%{box-shadow:0 0 0 0 rgba(229,72,77,0);} }

/* hero-overlay bottom-anchors inside a 100vh sticky stage (see .hero-stage) — every
   size below must scale with vh, not just vw, or short/wide laptop windows (1280x720,
   1366x768 are extremely common) overflow the top and clip behind the sticky nav. */
.hero-overlay {
  position: relative; z-index: 2; width: 100%;
  padding: 0 clamp(22px, 6vw, 100px) clamp(24px, 3vw + 3vh, 108px);
}
.hero h1 { font-size: clamp(26px, 2.6vw + 3.2vh, 72px); line-height: 1.05; font-weight: 800; max-width: 13ch; color: var(--text); }
.hero .sub { color: var(--muted); font-size: clamp(14px, .7vw + 1vh, 20px); line-height: 1.4; max-width: 46ch; margin-top: clamp(10px, 1vw + 1.4vh, 22px); }
.hero-cta { display: flex; gap: 14px; align-items: center; margin-top: clamp(14px, 1.4vw + 1.6vh, 32px); flex-wrap: wrap; }
/* ghost button needs a touch of solid fill here — it can sit over footage,
   not just flat page background like the base .btn-ghost assumes */
.hero-overlay .btn-ghost { background: rgba(255,255,255,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-overlay .btn-ghost:hover { background: rgba(255,255,255,.85); }
.platforms {
  font-family: var(--mono); font-size: 12.5px; color: var(--faint);
  margin: clamp(10px, 1vw + 1.4vh, 22px) 0 0; letter-spacing: .03em;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; width: 100%;
}
.platforms b { color: var(--muted); font-weight: 500; }
.dot { color: var(--faint); }

/* ---------- vision frame — signature treatment on capture media, echoes the product's own vision HUD ---------- */
.vision-frame { position: relative; border-radius: var(--r-win); overflow: hidden; background: #0c0d12; box-shadow: var(--shadow), var(--glow-cyan); }
.vision-frame video, .vision-frame img { width: 100%; height: auto; display: block; }
.vf-corner { position: absolute; width: 22px; height: 22px; z-index: 3; pointer-events: none; }
.vf-corner.tl { top: 14px; left: 14px; border-top: 2px solid var(--peri); border-left: 2px solid var(--peri); border-radius: 4px 0 0 0; }
.vf-corner.tr { top: 14px; right: 14px; border-top: 2px solid var(--peri); border-right: 2px solid var(--peri); border-radius: 0 4px 0 0; }
.vf-corner.bl { bottom: 14px; left: 14px; border-bottom: 2px solid var(--peri); border-left: 2px solid var(--peri); border-radius: 0 0 0 4px; }
.vf-corner.br { bottom: 14px; right: 14px; border-bottom: 2px solid var(--peri); border-right: 2px solid var(--peri); border-radius: 0 0 4px 0; }
.vf-hud, .vf-tag {
  position: absolute; z-index: 3; font-family: var(--mono); font-size: 11px; letter-spacing: .03em;
  border-radius: 100px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 7px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.vf-hud { top: 14px; left: 46px; color: #fff; background: rgba(10,12,20,.6); border: 1px solid rgba(255,255,255,.18); }
.vf-hud .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--peri); box-shadow: 0 0 8px var(--peri); }
.vf-tag { top: 14px; right: 46px; color: #8FE6C4; background: rgba(10,12,20,.6); border: 1px solid rgba(101,209,143,.35); }

/* hero-stage's corner brackets sit at the true viewport edges, larger, since the whole screen is "the frame" */
.hero-stage .vf-corner { width: 30px; height: 30px; z-index: 2; }
.hero-stage .vf-corner.tl { top: 90px; left: clamp(18px, 4vw, 40px); }
.hero-stage .vf-corner.tr { top: 90px; right: clamp(18px, 4vw, 40px); }
.hero-stage .vf-corner.bl { bottom: clamp(18px, 4vw, 40px); left: clamp(18px, 4vw, 40px); }
.hero-stage .vf-corner.br { bottom: clamp(18px, 4vw, 40px); right: clamp(18px, 4vw, 40px); }

/* hud row is a normal-flow flex row (not absolutely positioned), pinned to the top
   of .hero-stage's column layout — see the justify-content: space-between comment above */
.hero-hud-row {
  position: relative; z-index: 2; width: 100%; flex: none;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: clamp(22px, 4vh, 34px) clamp(46px, 7vw, 84px) 0;
  transition: padding-top .2s ease;
}
/* .hero-stage only needs its own nav-clearance padding once actually pinned
   under the nav via position:sticky (see the "pinned" class toggle in the
   hero-scrub script) — at rest, the nav already occupies its 66px in normal
   document flow, so applying the same padding there just doubles the gap. */
.hero-stage.pinned .hero-hud-row { padding-top: clamp(70px, 8.5vh, 90px); }
/* light-glass HUD chips — the base .vf-hud/.vf-tag dark pills are for the
   agent section's dark footage; the hero is light now */
.hero-stage .vf-hud, .hero-stage .vf-tag { position: static; font-size: 12px; background: rgba(255,255,255,.6); }
.hero-stage .vf-hud { color: var(--text); border-color: var(--hair-2); }
/* darker than --green: the chip's mono text is ~11px, and #1E9E57 on the white
   pill is only ~3.2:1 */
.hero-stage .vf-tag { color: #15803D; border-color: rgba(30,158,87,.3); }

/* ---------- mac window (signature frame) ---------- */
.macwin {
  border-radius: var(--r-win);
  background: var(--panel);
  border: 1px solid var(--hair-2);
  box-shadow: var(--shadow), var(--glow-cyan);
  overflow: hidden;
}
.macwin-bar {
  height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 15px;
  background: #f2f3f7;
  border-bottom: 1px solid var(--hair);
}
.macwin-bar .tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.r { background: #ff6159; } .tl.y { background: #ffbd2e; } .tl.g { background: #28c840; }
.macwin-bar .addr {
  margin-left: 14px; font-family: var(--mono); font-size: 12px; color: var(--faint);
  background: rgba(0,0,0,.05); border-radius: 5px; padding: 4px 12px; flex: 1; max-width: 360px;
}
.macwin-body { background: var(--bg); }
.macwin-body img, .macwin-body video { width: 100%; height: auto; display: block; }
.media-badge {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(14,16,24,.72); border: 1px solid rgba(255,255,255,.18);
  padding: 6px 11px; border-radius: 100px; backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; gap: 7px;
}
.media-badge .live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(101,209,143,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(101,209,143,.55);} 70%{box-shadow:0 0 0 7px rgba(101,209,143,0);} 100%{box-shadow:0 0 0 0 rgba(101,209,143,0);} }

/* video frame — clips render their own chrome, so no title bar here */
.videoframe {
  position: relative; border-radius: var(--r-win); overflow: hidden;
  border: 1px solid var(--hair-2); background: var(--bg);
  box-shadow: var(--shadow), var(--glow-cyan); line-height: 0;
}
.videoframe video { width: 100%; height: auto; display: block; }

/* ---------- ambient background texture (Higgsfield atmosphere, kept quiet) ---------- */
.ambient-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .15; pointer-events: none; z-index: 0;
}
.ambient-host { position: relative; overflow: hidden; }
.ambient-host > .wrap { position: relative; z-index: 1; }

/* ---------- problem ---------- */
.problem { text-align: center; }
.problem h2 { font-size: clamp(30px, 5vw, 56px); max-width: 16ch; margin-inline: auto; }
.problem p { color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); max-width: 600px; margin: 22px auto 0; }
.problem .strike { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(242,60,184,.6); }

/* ---------- pillars (4-up) ---------- */
.pillars-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.pillar {
  background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r);
  overflow: hidden; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(58,83,212,.35); box-shadow: var(--glow-cyan); }
.pillar-demo { line-height: 0; background: #26262E; border-bottom: 1px solid var(--hair); }
.pillar-demo video { width: 100%; height: auto; display: block; }
.pillar-body { padding: 24px 26px 28px; }
.pillar-head { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }
.pillar .ico { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(64,209,255,.12); border: 1px solid rgba(58,83,212,.22); }
.pillar .ico svg { width: 21px; height: 21px; stroke: var(--cyan); }
.pillar h3 { font-size: 20px; margin: 0; }
.pillar p { color: var(--muted); font-size: 14.5px; }

/* ---------- use-cases grid ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.uc {
  position: relative; background: #ffffff;
  border: 1px solid var(--hair); border-radius: var(--r); padding: 28px 24px;
  overflow: hidden; transition: transform .22s ease, border-color .22s ease;
}
.uc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-tri); opacity: .0; transition: opacity .25s ease; }
.uc:hover { transform: translateY(-4px); border-color: var(--hair-2); box-shadow: var(--glow-cyan); }
.uc:hover::before { opacity: 1; }
.uc-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(104,137,255,.12); border: 1px solid rgba(104,137,255,.25); margin-bottom: 16px; }
.uc-ico svg { width: 19px; height: 19px; stroke: var(--peri); }
.uc .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
/* the example query IS the headline — the hook a scanner can't skip */
.uc h3 { font-size: clamp(20px, 1.35vw + 12px, 24px); margin: 10px 0 12px; line-height: 1.25; overflow-wrap: break-word; }
.uc-pain { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.uc-answer {
  display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--text); font-weight: 500;
  background: rgba(30,158,87,.06);
  border: 1px solid rgba(30,158,87,.25); border-left: 3px solid var(--green);
  border-radius: 8px; padding: 10px 12px;
}
.uc-answer svg { flex: none; margin-top: 3px; width: 13px; height: 13px; stroke: var(--green); }

/* ---------- deep-dive rows ---------- */
.dive { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.dive + .dive { margin-top: clamp(56px, 8vw, 104px); }
.dive.flip .dive-media { order: -1; }
.dive h3 { font-size: clamp(26px, 3.4vw, 38px); margin: 14px 0 16px; }
.dive p { color: var(--muted); font-size: 17px; }
.dive .example { margin-top: 22px; }

/* code/prompt chip */
.prompt-chip {
  font-family: var(--mono); font-size: 13.5px; color: var(--text);
  background: var(--bg-deep); border: 1px solid var(--hair); border-left: 3px solid var(--cyan);
  border-radius: 8px; padding: 14px 16px; line-height: 1.5;
}
.prompt-chip .you { color: var(--cyan); }

/* transcript mock */
.transcript { padding: 18px; display: grid; gap: 12px; }
.tline { display: flex; gap: 12px; align-items: flex-start; }
.tline .av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #0c1220; }
.tline .av.a { background: var(--grad-action); color: #fff; } .tline .av.b { background: var(--grad-ident); }
.tline .tx { font-size: 14px; color: var(--muted); } .tline .tx b { color: var(--text); }
.tline .ts { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-left: auto; flex: none; }
.tline mark { background: rgba(101,209,143,.18); color: var(--green); border-radius: 3px; padding: 0 3px; }

/* ---------- agent spotlight ---------- */
.agent { position: relative; overflow: hidden; }
.agent .wrap { position: relative; z-index: 1; }
.agent-glow { display: none; }
.agent-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.agent h2 { font-size: clamp(30px, 4.4vw, 50px); }
.agent .sub { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin-top: 18px; max-width: 520px; }
.agent .moat { margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--green); display: inline-flex; align-items: center; gap: 8px; }
.term {
  background: #1c1c24; border: 1px solid var(--hair-2); border-radius: var(--r-win);
  box-shadow: var(--shadow); overflow: hidden;
}
.term-body { padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.term-body .l { color: var(--muted); white-space: pre-wrap; }
.term-body .p { color: var(--cyan); }
.term-body .ok { color: var(--green); }
.term-body .d { color: var(--faint); }
.term-body .out { color: var(--text); }

/* ---------- privacy ---------- */
.privacy { text-align: center; }
.priv-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 52px; text-align: left; }
.priv {
  background: #ffffff;
  border: 1px solid var(--hair); border-radius: var(--r); padding: 26px 24px;
}
.priv .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(101,209,143,.1); border: 1px solid rgba(101,209,143,.22); margin-bottom: 16px; }
.priv .ico svg { width: 22px; height: 22px; stroke: var(--green); }
.priv h3 { font-size: 18px; margin-bottom: 8px; }
.priv p { color: var(--muted); font-size: 14.5px; }
.trust-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.trust-pill { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--hair); border-radius: 100px; padding: 9px 16px; display: inline-flex; gap: 8px; align-items: center; }
.trust-pill svg { width: 14px; height: 14px; stroke: var(--green); }

/* ---------- social proof ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.quote-card {
  margin: 0; background: var(--panel);
  border: 1px solid var(--hair); border-radius: var(--r); padding: 28px 24px;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  transition: transform .22s ease, border-color .22s ease;
}
.quote-card:hover { transform: translateY(-4px); border-color: var(--hair-2); }
.quote-card .stars { display: flex; gap: 3px; margin-bottom: 16px; }
.quote-card .stars svg { width: 16px; height: 16px; fill: #EBA53A; }
.quote-card blockquote { margin: 0 0 18px; font-size: 16.5px; line-height: 1.55; font-weight: 500; color: var(--text); }
.quote-card figcaption { margin-top: auto; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 1px solid var(--hair); }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--cyan); font-weight: 600; }
.step h3 { font-size: 19px; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- pricing teaser ---------- */
.price-teaser { text-align: center; background: #ffffff; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: clamp(36px, 5vw, 56px); }
.price-teaser h2 { font-size: clamp(26px, 3.6vw, 40px); }
.price-teaser p { color: var(--muted); margin: 16px auto 28px; max-width: 460px; }

/* ---------- faq ---------- */
.faq-grid { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { margin-left: auto; color: var(--cyan); font-size: 22px; line-height: 1; transition: transform .25s ease; flex: none; }
.faq[open] summary .pm { transform: rotate(45deg); }
.faq .a { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; max-width: 64ch; }

/* ---------- final cta ---------- */
.final { text-align: center; position: relative; overflow: hidden; }
.download-form { display: inline-flex; gap: 10px; align-items: stretch; flex-wrap: wrap; justify-content: center; }
.download-form input {
  font-family: var(--display); font-size: 16px; color: var(--text);
  background: var(--panel); border: 1px solid var(--hair-2); border-radius: var(--r-sm);
  padding: 14px 18px; min-width: 280px; outline: none;
  transition: border-color .2s ease, box-shadow .25s ease;
}
.download-form input::placeholder { color: var(--faint); }
.download-form input:focus { border-color: rgba(58,83,212,.55); box-shadow: 0 0 0 3px rgba(58,83,212,.14); }
.final p.download-error { color: #C0392B; font-size: 14px; margin: 12px auto 0; max-width: 420px; }
[hidden] { display: none !important; } /* .download-form/.dl-steps set display, which beats the UA [hidden] rule */
.download-sent { max-width: 460px; margin-inline: auto; }
.download-sent .sent-ic {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green); background: rgba(30,158,87,.12); border: 1px solid rgba(30,158,87,.28);
}
.download-sent .sent-ic svg { width: 22px; height: 22px; }
.download-sent h3 { font-size: 22px; }
.final .download-sent p { font-size: 16px; margin: 10px auto 0; }
.final p.consent-note { font-size: 13px; color: var(--faint); margin: 14px auto 0; }
.final p.consent-note a { color: var(--muted); text-decoration: underline; }

/* Download page (download.html) */
.dlpage .final h1 { font-size: clamp(32px, 5vw, 56px); max-width: 18ch; margin-inline: auto; }
.dlpage .final p a { color: var(--muted); text-decoration: underline; }
.dl-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 920px; margin: 56px auto 0; text-align: left;
}
.dl-step { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 26px 24px; }
.dl-step-num { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.dl-step h3 { margin: 10px 0 8px; font-size: 18px; }
.dl-step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 720px) { .dl-steps { grid-template-columns: 1fr; } }

/* Document pages (about.html, privacy-policy.html, terms.html) */
.docpage main { padding-top: 120px; }
.doc { max-width: 760px; margin: 0 auto; padding: 0 24px 96px; }
.doc h1 { font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 10px; }
.doc .doc-updated { font-family: var(--mono); font-size: 13px; color: var(--faint); margin-bottom: 40px; }
.doc h2 { font-size: 24px; margin: 44px 0 14px; scroll-margin-top: 96px; }
.doc h3 { font-size: 18px; margin: 28px 0 10px; }
.doc p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.doc ul, .doc ol { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 14px; padding-left: 24px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--text); text-decoration: underline; }
.doc blockquote { border-left: 2px solid var(--hair-2); margin: 20px 0; padding: 4px 0 4px 20px; color: var(--muted); font-style: italic; }
.doc img { max-width: 100%; border-radius: var(--r-sm); border: 1px solid var(--hair); margin: 20px 0; }
.doc-toc { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 20px 24px; margin-bottom: 24px; }
.doc-toc h2 { font-size: 16px; margin: 0 0 10px; }
.doc-toc ul { margin: 0; }
.doc-toc a { color: var(--muted); text-decoration: none; }
.doc-toc a:hover { color: var(--text); text-decoration: underline; }
.final-glow { display: none; }
.final .wrap { position: relative; z-index: 1; }
.final h2 { font-size: clamp(32px, 5.4vw, 60px); max-width: 16ch; margin-inline: auto; }
.final p { color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); margin: 20px auto 32px; max-width: 520px; }

/* ---------- footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--hair); padding-block: 56px 40px; }
.footer-top { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,1fr)); gap: 32px; }
.footer .brand { margin-bottom: 14px; }
.footer .tagline { color: var(--faint); font-size: 14px; max-width: 30ch; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; font-weight: 500; }
.footer-col a { color: var(--muted); font-size: 14.5px; display: block; padding: 5px 0; transition: color .2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hair); flex-wrap: wrap; }
.footer-bottom .copy { font-size: 13px; color: var(--faint); }
.footer-bottom .legal { margin-left: auto; display: flex; gap: 20px; }
.footer-bottom .legal a { font-size: 13px; color: var(--faint); }
.footer-bottom .legal a:hover { color: var(--muted); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .media-badge .live, .recall-bar .cursor { animation: none; }
  .hero { height: auto; }
  .hero-stage { position: relative; }
  .hero-scrub-hint { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { height: 180vh; }
  /* the 1920-wide coverflow can't survive a full-height object-fit:cover crop
     on narrow screens — it slices the focused window in half. Rather than hide
     it behind a blur, letterbox it: a top-anchored strip that keeps most of the
     canvas in frame, biased toward the focused-window column (~66% across).
     The footage's own edges are near-black like the stage bg, and the mask
     fades the strip's hard bottom edge before the headline starts. */
  .hero-scrub {
    height: 46%;
    /* --scrub-slide (set by the hero-scrub script, 0→1 over the BACK half of the
       scrub, after the headline has fully faded) recenters the strip vertically
       so the end-of-scrub state reads as a deliberate letterbox, not a mostly
       blank screen. 28% centers the strip's visual mass (the window band sits in
       the upper part of the footage frame). 80% horizontal bias: the focused
       window drifts right through the clip (Music ends near x=1730/1920) — 66%
       sliced it mid-scrub. */
    top: calc(28% * var(--scrub-slide, 0));
    object-position: 80% 42%;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  }
  /* the HUD chips read as "live capture" set dressing — fade them with the
     headline while scrubbing so they never sit on top of the footage's window
     chrome (the strip rides high near 980px wide and on short phones) */
  .hero-hud-row { opacity: calc(1 - var(--scrub-fade, 0)); }
  /* the horizontal half of the scrim was tuned for desktop's left-anchored
     copy — over the narrow strip it only dims the footage */
  .hero-scrim { background: linear-gradient(180deg, rgba(244,245,250,0) 55%, rgba(244,245,250,.9) 100%); }
  .hero-stage .vf-hud, .hero-stage .vf-tag { font-size: 10.5px; padding: 5px 10px; }
  .pillars-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .uc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .agent-grid, .dive { grid-template-columns: minmax(0,1fr); }
  .dive.flip .dive-media { order: 0; }
  .footer-top { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
/* the full nav needs ~800px to fit on one line — between 720 and 800 the links
   used to wrap mid-label ("Use / cases") */
@media (max-width: 800px) {
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .pillars-grid, .uc-grid, .priv-grid, .steps, .quotes-grid { grid-template-columns: minmax(0,1fr); }
  .footer-top { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .footer-bottom .legal { margin-left: 0; }
  .hero { height: 165vh; }
  .hero-stage .vf-corner.tl, .hero-stage .vf-corner.tr { top: 78px; }
  /* on phones the platforms caption wraps to a second line that used to land
     inside the bottom-left corner bracket — keep the copy above the brackets */
  .hero-overlay { padding-bottom: 48px; }
  .hero-stage .vf-corner.bl, .hero-stage .vf-corner.br { bottom: 12px; }
}
/* short phones (SE-class): the taller overlay copy reaches the strip's window
   content — trade a little footage size for clearance (and slide the smaller
   strip proportionally further to settle centered) */
@media (max-width: 720px) and (max-height: 700px) {
  .hero-scrub { height: 40%; top: calc(31% * var(--scrub-slide, 0)); }
  .hero-hud-row { padding-top: clamp(18px, 4vh, 28px); }
  .hero-stage.pinned .hero-hud-row { padding-top: clamp(58px, 9vh, 78px); }
  .hero-scrub-hint { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero h1 { font-size: clamp(34px, 8.6vw, 52px); }
  .recall { max-width: 100%; }
  .problem h2 { font-size: clamp(28px, 8vw, 40px); }
  .final h2 { font-size: clamp(30px, 8.5vw, 44px); }
  .section-head h2, .agent h2, .privacy h2 { font-size: clamp(26px, 7vw, 38px); }
  .recall-bar .q { font-size: 12.5px; }
}
