/* ============================================================
   LiveCoaching - livecoaching.app
   Design language: deep-space dark, blue-violet brand gradient,
   glass surfaces, soft glow, restrained motion.
   ============================================================ */

:root {
  --bg: #05070c;
  --bg-alt: #070a12;
  --panel: rgba(17, 22, 32, 0.66);
  --panel-solid: #10141d;
  --panel-2: #1c212c;
  --border: rgba(140, 160, 200, 0.14);
  --border-strong: rgba(140, 160, 200, 0.26);
  --ink: #eaf0f7;
  --muted: #96a0b5;
  --faint: #6b7488;
  --brand: #6ea8fe;
  --brand-2: #8b7cff;
  --good: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

::selection { background: rgba(110, 168, 254, 0.35); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(110, 168, 254, 0.09), transparent 60%),
    radial-gradient(1000px 700px at -10% 30%, rgba(139, 124, 255, 0.07), transparent 60%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.orb-a {
  width: 520px; height: 520px;
  top: -160px; right: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(110, 168, 254, 0.35), transparent 68%);
  animation: drift 26s ease-in-out infinite alternate;
}
.orb-b {
  width: 460px; height: 460px;
  top: 42%; left: -180px;
  background: radial-gradient(circle at 60% 40%, rgba(139, 124, 255, 0.3), transparent 68%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
.orb-c {
  width: 380px; height: 380px;
  bottom: -140px; right: 12%;
  background: radial-gradient(circle at 50% 50%, rgba(110, 168, 254, 0.22), transparent 70%);
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 160, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 200, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 20%, transparent 75%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}
.container.narrow { width: min(820px, 92vw); }

.section { padding: clamp(88px, 12vh, 150px) 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(13, 17, 26, 0.55) 18%, rgba(13, 17, 26, 0.55) 82%, transparent);
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; }

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.06;
  font-weight: 700;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  text-align: center;
  text-wrap: balance;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  text-align: center;
  margin-bottom: 18px;
}

.section-sub {
  max-width: 620px;
  margin: 20px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.06rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  background: rgba(140, 160, 200, 0.07);
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: rgba(140, 160, 200, 0.13); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  border: none;
  color: #0a0d14;
  box-shadow: 0 8px 28px rgba(110, 168, 254, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  background: var(--grad);
  box-shadow: 0 12px 36px rgba(110, 168, 254, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:disabled { opacity: 0.7; cursor: default; transform: none; }
.btn-ghost { backdrop-filter: blur(8px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: min(1180px, 92vw);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { flex: none; filter: drop-shadow(0 4px 14px rgba(110, 168, 254, 0.4)); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-cta { margin-left: 6px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 72px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(17, 22, 32, 0.55);
  border-radius: 999px;
  padding: 7px 14px;
  backdrop-filter: blur(6px);
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px var(--good);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-sub {
  margin-top: 24px;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.1rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 0.84rem; color: var(--faint); }

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 3px; height: 8px;
  border-radius: 3px;
  background: var(--brand);
  animation: scrollNudge 2s ease-in-out infinite;
}
@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

/* ---------- Hero product mock ---------- */
.hero-visual { position: relative; perspective: 1400px; }

.app-window {
  background: linear-gradient(180deg, rgba(22, 27, 38, 0.92), rgba(13, 17, 26, 0.94));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 80px rgba(110, 168, 254, 0.08);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 13, 20, 0.6);
}
.wdot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.window-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--faint);
  font-weight: 500;
}
.window-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--good);
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
  animation: blink 1.8s ease-in-out infinite;
}

.window-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  padding: 18px;
}

.avatar-pane {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(110, 168, 254, 0.08), transparent 55%), rgba(10, 13, 20, 0.5);
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-ring { position: relative; width: 92px; height: 92px; }
.avatar-core {
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: rgba(110, 168, 254, 0.1);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pulse-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(110, 168, 254, 0.5);
  animation: pulse 2.6s var(--ease-out) infinite;
}
.pulse-2 { animation-delay: 1.3s; }
@keyframes pulse {
  0% { transform: scale(0.82); opacity: 0.9; }
  100% { transform: scale(1.25); opacity: 0; }
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  margin-top: 16px;
}
.wave span {
  width: 3px;
  height: 30%;
  border-radius: 3px;
  background: var(--grad);
  animation: waveBar 1.1s ease-in-out infinite;
}
.wave span:nth-child(2n) { animation-delay: 0.12s; }
.wave span:nth-child(3n) { animation-delay: 0.24s; }
.wave span:nth-child(4n) { animation-delay: 0.36s; }
.wave span:nth-child(5n) { animation-delay: 0.48s; }
@keyframes waveBar {
  0%, 100% { height: 22%; opacity: 0.65; }
  50% { height: 96%; opacity: 1; }
}

.avatar-q {
  margin-top: 14px;
  font-size: 0.83rem;
  color: var(--ink);
  min-height: 3.2em;
  max-width: 240px;
}
.caret {
  display: inline-block;
  width: 1.5px; height: 0.95em;
  background: var(--brand);
  margin-left: 2px;
  vertical-align: -0.12em;
  animation: blink 1s step-end infinite;
}

.hud-pane { display: flex; flex-direction: column; gap: 10px; }

.hud-chip {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 13, 20, 0.55);
  padding: 10px 12px;
}
.hud-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.hud-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.hud-val { font-size: 0.78rem; font-weight: 600; }
.hud-val.good { color: var(--good); }

.hud-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(140, 160, 200, 0.12);
  overflow: hidden;
}
.hud-bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: 4px;
  background: var(--grad);
  transform-origin: left;
  animation: barIn 1.2s var(--ease-out) both;
}
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.evidence-card {
  margin-top: auto;
  border: 1px solid rgba(110, 168, 254, 0.25);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(110, 168, 254, 0.1), rgba(139, 124, 255, 0.07));
  padding: 12px;
}
.evidence-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}
.evidence-text { font-size: 0.8rem; font-style: italic; color: var(--ink); }
.evidence-src { margin-top: 6px; font-size: 0.7rem; color: var(--muted); }
.evidence-src b { color: var(--ink); font-weight: 600; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: rgba(13, 17, 26, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip svg { color: var(--brand); }
.chip-a { top: -16px; right: 8%; animation-delay: 0.4s; }
.chip-b { bottom: 14%; left: -26px; animation-delay: 1.4s; }
.chip-c { bottom: -18px; right: 14%; animation-delay: 2.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Statement ---------- */
.statement { padding: clamp(56px, 8vh, 96px) 0; }
.statement-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.42;
  text-align: center;
  color: var(--muted);
  text-wrap: balance;
}
.statement-text span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Cards / steps ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 168, 254, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(110, 168, 254, 0.12) inset;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.step { padding: 30px 26px; position: relative; overflow: hidden; }
.step-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.step-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  background: linear-gradient(140deg, rgba(110, 168, 254, 0.14), rgba(139, 124, 255, 0.1));
  border: 1px solid rgba(110, 168, 254, 0.25);
  margin-bottom: 22px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.step p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Science / findings ---------- */
.science-intro { max-width: 640px; margin: 20px auto 0; text-align: center; color: var(--muted); font-size: 1.06rem; }

.finding {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  padding: clamp(48px, 7vh, 72px) 0;
}
.finding + .finding { border-top: 1px solid var(--border); }
.finding:first-of-type { margin-top: 26px; }
.finding.rev .finding-copy { order: 2; }
.finding.rev .finding-visual { order: 1; }

.findtag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.finding-copy h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; max-width: 480px; }
.finding-copy p { margin-top: 14px; font-size: 0.97rem; color: var(--muted); max-width: 510px; }
.finding-copy .sowhat {
  color: var(--ink);
  border-left: 2px solid var(--brand);
  padding-left: 16px;
  margin-top: 20px;
}
.cites { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cite {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
}

.finding-visual {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 24px 20px 16px;
}
.finding-visual svg { width: 100%; height: auto; }
.finding-visual figcaption {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
  color: var(--faint);
}

/* svg vocabulary */
.finding-visual text { font-family: var(--font-body); }
.ax { fill: var(--faint); font-size: 11px; letter-spacing: 0.04em; }
.ax-y { text-anchor: end; }
.lbl { fill: var(--muted); font-size: 11.5px; }
.lbl-brand { fill: var(--brand); }
.lbl-good { fill: var(--good); }
.blabel { fill: #c6d2df; font-size: 12px; font-weight: 500; }
.lane-l { fill: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.c-brand { stroke: var(--brand); }
.c-good { stroke: var(--good); }
.c-mut { stroke: var(--faint); }
.c-brand-f { fill: var(--brand); }
.c-good-f { fill: var(--good); }
.c-mut-f { fill: #35415a; }
.dot.c-good { fill: var(--good); stroke: none; }

.loopnode rect { fill: var(--panel-2); stroke: var(--border-strong); }
.loopnode text { fill: var(--ink); font-size: 12.5px; font-weight: 500; text-anchor: middle; }
.loopnode-good rect { stroke: rgba(74, 222, 128, 0.5); }
.looparrow { stroke: var(--border-strong); }

/* draw-in animation: JS sets dash lengths, .in releases them */
.draw { transition: stroke-dashoffset 1.4s var(--ease-out) 0.25s; }
.bar { transform: scaleX(0); transform-origin: left; transform-box: fill-box; transition: transform 1s var(--ease-out) 0.25s; }
.finding.in .bar { transform: scaleX(1); }

/* sources */
.sources {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.sources-head {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.sources ol {
  list-style: decimal;
  padding-left: 20px;
  columns: 2;
  column-gap: 48px;
}
.sources li {
  font-size: 0.78rem;
  color: var(--faint);
  margin-bottom: 8px;
  break-inside: avoid;
}
.sources i { font-style: italic; }

/* ---------- Compare ---------- */
.compare { margin-top: 56px; }
.compare-grid {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: blur(12px);
}
.cg-head, .cg-row {
  display: grid;
  grid-template-columns: 1.7fr 0.65fr 0.65fr;
  align-items: center;
}
.cg-head {
  background: rgba(10, 13, 20, 0.6);
  border-bottom: 1px solid var(--border);
}
.cg-head span {
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.cg-head .cg-brand { color: var(--brand); }
.cg-row { border-bottom: 1px solid var(--border); }
.cg-row:last-child { border-bottom: none; }
.cg-row span { padding: 15px 20px; font-size: 0.92rem; }
.cg-row span:first-child { color: var(--ink); }
.cg-row span:nth-child(2), .cg-row span:nth-child(3),
.cg-head span:nth-child(2), .cg-head span:nth-child(3) { text-align: center; }
.cg-row span:nth-child(3) { background: rgba(110, 168, 254, 0.05); }
.mark-yes { color: var(--good); font-size: 0.8rem; }
.mark-no { color: var(--faint); font-size: 1.3rem; line-height: 1; }
.mark-part { color: var(--muted); }
.compare-note {
  margin-top: 12px;
  font-size: 0.74rem;
  color: var(--faint);
  text-align: center;
}

/* ---------- Privacy ---------- */
.privacy-copy {
  max-width: 640px;
  margin: 26px auto 0;
  text-align: center;
}
.privacy-copy p { color: var(--muted); font-size: 1rem; }
.privacy-copy p + p { margin-top: 16px; }
.privacy-copy p:first-child { color: var(--ink); font-size: 1.06rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.stat {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px 16px 24px;
  backdrop-filter: blur(10px);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- The film ---------- */
.film-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05070c;
}

/* ---------- Video placeholder ---------- */
.video-frame {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(110, 168, 254, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(22, 27, 38, 0.9), rgba(10, 13, 20, 0.95));
  box-shadow: var(--shadow), 0 0 100px rgba(110, 168, 254, 0.08);
  overflow: hidden;
  position: relative;
}
.video-inner {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
}
.video-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.05) 48%, transparent 62%);
  background-size: 240% 100%;
  animation: sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -60% 0; }
}
.play-btn {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--grad);
  color: #0a0d14;
  display: flex; align-items: center; justify-content: center;
  padding-left: 6px;
  box-shadow: 0 14px 44px rgba(110, 168, 254, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.play-btn:hover { transform: scale(1.07); box-shadow: 0 18px 56px rgba(110, 168, 254, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.video-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand);
}
.video-sub { font-size: 0.85rem; color: var(--faint); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-list details[open] { border-color: rgba(110, 168, 254, 0.35); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--brand); }
.faq-icon {
  flex: none;
  position: relative;
  width: 18px; height: 18px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1.8px;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list details p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 660px;
}
.faq-list details a { color: var(--brand); }
.faq-list details a:hover { text-decoration: underline; }

/* ---------- Access ---------- */
.access { padding-bottom: clamp(100px, 14vh, 170px); }
.access-card {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius-lg) + 6px);
  background: linear-gradient(180deg, rgba(22, 27, 38, 0.92), rgba(13, 17, 26, 0.96));
  box-shadow: var(--shadow);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
}
.access-glow {
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  width: 480px; height: 280px;
  background: radial-gradient(ellipse, rgba(110, 168, 254, 0.22), transparent 65%);
  pointer-events: none;
}
.access-card h2 { position: relative; }
.access-card .section-sub { position: relative; }

.access-form {
  position: relative;
  margin-top: 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.field .opt { color: var(--faint); font-weight: 400; }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(10, 13, 20, 0.7);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.18);
}
.form-status { min-height: 1.2em; font-size: 0.86rem; color: var(--good); text-align: center; }
.form-status.error { color: var(--bad); }
.form-status a { color: var(--brand); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 15, 0.8);
  padding: 64px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-tag {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 300px;
}
.footer-credit { margin-top: 14px; font-size: 0.8rem; color: var(--faint); }
.footer-credit b { color: var(--ink); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-head {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
  width: fit-content;
}
.footer-col a:hover { color: var(--ink); }
.footer-legal {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--faint);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 64px); }
  .hero-copy { text-align: center; }
  .hero-badges, .hero-cta { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .finding { grid-template-columns: 1fr; gap: 36px; }
  .finding.rev .finding-copy { order: 1; }
  .finding.rev .finding-visual { order: 2; }
  .finding-visual { max-width: 560px; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .sources ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scroll-hint { display: none; }
}

@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(5, 7, 12, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 5vw 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 13px 6px; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-cta { margin: 14px 0 0; justify-content: center; }
  /* variant for pages without a burger (privacy.html): keep inline */
  .nav-links.static {
    position: static;
    flex-direction: row;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: none;
    border: none;
    padding: 0;
    backdrop-filter: none;
  }
  .nav-links.static .nav-cta, .nav-links.static .btn { margin: 0; }
  .nav-links.static a:not(.btn) { padding: 0; border-bottom: none; font-size: 0.9rem; }

  .window-body { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .cg-head span, .cg-row span { padding: 12px 12px; font-size: 0.82rem; }
}

/* ---------- Split sections (copy + visual) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.split .eyebrow, .split h2 { text-align: left; }
.split .section-sub { margin-left: 0; text-align: left; }

.signal-list { margin-top: 40px; display: flex; flex-direction: column; gap: 26px; }
.signal { display: flex; gap: 18px; align-items: flex-start; }
.signal-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  background: rgba(110, 168, 254, 0.1);
  border: 1px solid rgba(110, 168, 254, 0.25);
}
.signal h3 { font-size: 1.05rem; margin-bottom: 5px; }
.signal p { font-size: 0.92rem; color: var(--muted); }

.fine-print {
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--faint);
  border-left: 2px solid var(--border-strong);
  padding-left: 14px;
}

/* Mesh visual */
.mesh-frame {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 70% at 50% 20%, rgba(110, 168, 254, 0.09), transparent 60%),
    rgba(10, 13, 20, 0.6);
  padding: 34px 28px 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mesh { width: 100%; height: auto; }
.mesh-dots circle { animation: dotPulse 3.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.mesh-dots circle:nth-child(3n) { animation-delay: 0.7s; }
.mesh-dots circle:nth-child(4n) { animation-delay: 1.5s; }
@keyframes dotPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}
.scanline { animation: scan 4.5s ease-in-out infinite; }
@keyframes scan {
  0%, 100% { transform: translateY(30px); opacity: 0; }
  12% { opacity: 0.7; }
  50% { transform: translateY(350px); opacity: 0.7; }
  62% { opacity: 0; }
}
.mesh-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.mesh-readout .mono { color: var(--faint); }

/* ---------- Science summary cards ---------- */
.sci-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.sci-card {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sci-card .findtag { margin-bottom: 0; }
.sci-card h3 { font-size: 1.08rem; line-height: 1.3; }
.sci-card p { font-size: 0.9rem; color: var(--muted); }
.sci-card .mini { margin-top: auto; padding-top: 12px; }
.sci-card .mini svg { width: 100%; height: auto; opacity: 0.9; }
.sci-card .cite-line {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}
.sci-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
}
.sci-more-note { font-size: 0.82rem; color: var(--faint); }

/* ---------- Layers / architecture ---------- */
.arch {
  display: grid;
  grid-template-columns: 1.4fr auto 0.6fr;
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
  margin: 64px auto 0;
  max-width: 940px;
}
.arch-mac {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 27, 38, 0.9), rgba(13, 17, 26, 0.92));
  box-shadow: var(--shadow), 0 0 60px rgba(110, 168, 254, 0.07);
  padding: 22px 22px 16px;
}
.arch-mac-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--ink);
}
.arch-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.arch-block {
  border: 1px solid rgba(110, 168, 254, 0.22);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(110, 168, 254, 0.09), rgba(139, 124, 255, 0.06));
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.arch-block b { color: var(--brand); font-size: 0.85rem; font-weight: 600; }
.arch-block small { color: var(--muted); font-size: 0.74rem; line-height: 1.45; }
.arch-secure {
  margin-top: 14px;
  text-align: center;
  color: var(--good);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  border-top: 1px dashed rgba(74, 222, 128, 0.35);
  padding-top: 10px;
}
.arch-gap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.no-signal {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px dashed rgba(248, 113, 113, 0.5);
  display: flex; align-items: center; justify-content: center;
}
.no-signal-x { color: var(--bad); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.arch-zero { color: var(--bad); letter-spacing: 0.16em; }
.arch-cloud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}
.arch-cloud small { color: var(--faint); }
.arch-note {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Research page (science.html) ---------- */
.page-head { padding: calc(var(--nav-h) + clamp(56px, 9vh, 100px)) 0 clamp(20px, 4vh, 40px); }
.page-head h1 { text-align: center; }
.page-head .eyebrow { margin-bottom: 22px; }
.page-head .section-sub { margin-top: 24px; }
.research .finding:first-of-type { border-top: none; margin-top: 10px; }
.research-cta {
  margin-top: 60px;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 27, 38, 0.92), rgba(13, 17, 26, 0.96));
  padding: clamp(32px, 5vw, 52px);
}
.research-cta h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.research-cta p { margin: 14px auto 26px; color: var(--muted); max-width: 460px; }

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .sci-cards { grid-template-columns: 1fr 1fr; }
  .arch { grid-template-columns: 1fr; justify-items: center; }
  .arch-mac { width: 100%; max-width: 520px; }
  .arch-gap { flex-direction: row; }
}
@media (max-width: 720px) {
  .sci-cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; margin-top: 44px; }
  .arch-blocks { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bar { transform: scaleX(1); }
}
