/* ============================================================
   NeroView — base styles, theme variables, primitives
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--fg);
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }

/* ============================================================
   THEME — modes
   ============================================================ */

:root {
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;

  /* density */
  --section-py: 120px;
  --container-px: 48px;
  --container-max: 1320px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

[data-density="compact"] {
  --section-py: 80px;
  --container-px: 32px;
}

/* CINEMATIC DARK */
[data-mode="dark"] {
  --bg: #0a0a0b;
  --bg-elev: #131316;
  --bg-elev-2: #1c1c20;
  --bg-inverse: #f6f4ef;
  --fg: #f6f4ef;
  --fg-muted: #9b9b9f;
  --fg-dim: #57575c;
  --fg-inverse: #0a0a0b;
  --border: #25252a;
  --border-strong: #34343a;
  --scrim: rgba(255,255,255,0.04);
  --waveform: rgba(255,255,255,0.08);
  --grid-line: rgba(255,255,255,0.05);
}

/* EDITORIAL LIGHT */
[data-mode="light"] {
  --bg: #f6f4ef;
  --bg-elev: #ffffff;
  --bg-elev-2: #ece9e2;
  --bg-inverse: #0a0a0b;
  --fg: #0a0a0b;
  --fg-muted: #57575c;
  --fg-dim: #9b9b9f;
  --fg-inverse: #f6f4ef;
  --border: #d6d3cc;
  --border-strong: #b8b4ab;
  --scrim: rgba(0,0,0,0.03);
  --waveform: rgba(0,0,0,0.08);
  --grid-line: rgba(0,0,0,0.06);
}

/* HYBRID — uses dark by default but alternates per-section */
[data-mode="hybrid"] {
  --bg: #0a0a0b;
  --bg-elev: #131316;
  --bg-elev-2: #1c1c20;
  --bg-inverse: #f6f4ef;
  --fg: #f6f4ef;
  --fg-muted: #9b9b9f;
  --fg-dim: #57575c;
  --fg-inverse: #0a0a0b;
  --border: #25252a;
  --border-strong: #34343a;
  --scrim: rgba(255,255,255,0.04);
  --waveform: rgba(255,255,255,0.08);
  --grid-line: rgba(255,255,255,0.05);
}
[data-mode="hybrid"] .section--light {
  --bg: #f6f4ef;
  --bg-elev: #ffffff;
  --bg-elev-2: #ece9e2;
  --bg-inverse: #0a0a0b;
  --fg: #0a0a0b;
  --fg-muted: #57575c;
  --fg-dim: #9b9b9f;
  --fg-inverse: #f6f4ef;
  --border: #d6d3cc;
  --border-strong: #b8b4ab;
  --scrim: rgba(0,0,0,0.03);
  --waveform: rgba(0,0,0,0.08);
  --grid-line: rgba(0,0,0,0.06);
  background: var(--bg);
  color: var(--fg);
}

/* ACCENT */
[data-accent="yellow"] { --accent: #f5d142; --accent-2: #ffe97a; --accent-ink: #0a0a0b; }
[data-accent="amber"]  { --accent: #ff9d4a; --accent-2: #ffb877; --accent-ink: #0a0a0b; }
[data-accent="electric"] { --accent: #6b7dff; --accent-2: #95a3ff; --accent-ink: #ffffff; }
[data-accent="lime"]   { --accent: #c8f068; --accent-2: #dcf593; --accent-ink: #0a0a0b; }

/* ============================================================
   LAYOUT primitives
   ============================================================ */

.app {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  transition: background-color 240ms ease, color 240ms ease;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  position: relative;
}

.section {
  padding: var(--section-py) 0;
  background: var(--bg);
  color: var(--fg);
  position: relative;
}

.section--tight { padding: calc(var(--section-py) * 0.55) 0; }

/* eyebrow label */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* large display heading */
.display {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}
.display-xl { font-size: clamp(44px, 4.8vw, 72px); }
.display-lg { font-size: clamp(40px, 4.4vw, 60px); }
.display-md { font-size: clamp(32px, 3.2vw, 48px); }

.body-lg {
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 56ch;
}

.mono { font-family: var(--mono); }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  padding: 0 var(--container-px);
  max-width: var(--container-max);
  margin: 0 auto;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.nav__logo-mark {
  width: 22px; height: 22px;
  background: var(--accent);
  position: relative;
  border-radius: 3px;
}
.nav__logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--bg);
  border-radius: 50%;
}
.nav__logo-mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 1;
}
.nav__links {
  display: flex; gap: 22px;
  margin-left: 16px;
  flex: 1;
  flex-wrap: nowrap;
}
.nav__link {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .nav__links { display: none; }
}
.nav__link:hover { color: var(--fg); }
.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 120ms ease, background-color 160ms, color 160ms, border-color 160ms;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn--primary:hover { background: var(--accent-2); }

.btn--inverse {
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
}
.btn--inverse:hover { background: var(--fg-muted); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--scrim); }

.btn--lg { padding: 14px 22px; font-size: 15px; }

.btn-arrow {
  display: inline-block;
  transition: transform 140ms ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 72px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero__copy { position: relative; z-index: 2; }
.hero__trustline {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__trustline-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}
.hero__ctas {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__sub {
  margin: 28px 0 0;
  font-size: 20px;
  line-height: 1.45;
  color: var(--fg-muted);
  max-width: 54ch;
}
.hero__sub strong { color: var(--fg); font-weight: 500; }

/* background grid */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HERO VISUAL — composed product mockup
   ============================================================ */

.heroviz {
  position: relative;
  aspect-ratio: 4/4.0;
  width: 100%;
  min-height: 520px;
}
@media (max-width: 1000px) {
  .heroviz { aspect-ratio: 4/3.6; }
}

.heroviz__connector {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  z-index: 2;
}

.card--accent {
  border-color: color-mix(in oklab, var(--accent) 50%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--accent) 25%, transparent),
    0 18px 60px -20px color-mix(in oklab, var(--accent) 22%, transparent);
}

.card__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__label-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* video tile mock */
.videotile {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elev-2);
  aspect-ratio: 16/10;
  position: relative;
  border: 1px solid var(--border);
}
.videotile__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 55%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 70%),
    repeating-linear-gradient(45deg, var(--bg-elev) 0 2px, transparent 2px 8px);
}
.videotile__person {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 50%;
  aspect-ratio: 1/1.1;
  background: linear-gradient(180deg, color-mix(in oklab, var(--fg) 28%, transparent), color-mix(in oklab, var(--fg) 12%, transparent));
  border-radius: 50% 50% 8% 8% / 60% 60% 8% 8%;
}
.videotile__chip {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.videotile__chip-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #ff5252;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.4s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.videotile__timestamp {
  position: absolute;
  bottom: 10px; right: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-muted);
}
.videotile__waveform {
  position: absolute;
  bottom: 14px; left: 12px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
}
.videotile__waveform span {
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* transcript */
.transcript {
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg);
}
.transcript__time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  margin-right: 8px;
}
.transcript__highlight {
  background: color-mix(in oklab, var(--accent) 30%, transparent);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--fg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* emotion timeline */
.timeline {
  position: relative;
  height: 56px;
  width: 100%;
}
.timeline__bg {
  position: absolute; inset: 0;
  border-bottom: 1px dashed var(--border);
}
.timeline__line {
  position: absolute;
  inset: 0;
}
.timeline__moments {
  position: absolute; inset: 0;
}
.timeline__moment {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: color-mix(in oklab, var(--accent) 70%, transparent);
}
.timeline__moment::after {
  content: "";
  position: absolute;
  top: -4px; left: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.timeline__axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  margin-top: 6px;
}

/* insight card */
.insight__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.25;
}
.insight__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.insight__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.insight__bullet {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--fg-dim);
}
.confidence {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-muted);
}
.confidence__bar {
  flex: 1;
  height: 4px;
  background: var(--bg-elev-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.confidence__bar > i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  display: block;
}

/* tag pills */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
  background: var(--bg-elev);
  white-space: nowrap;
}
.tag--accent {
  border-color: color-mix(in oklab, var(--accent) 60%, var(--border));
  color: var(--fg);
  background: color-mix(in oklab, var(--accent) 12%, var(--bg-elev));
}
.tag--dot::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================================
   SOCIAL PROOF / STATS BAR
   ============================================================ */

.proofbar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.proofbar__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
.proofbar__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  max-width: 18ch;
  line-height: 1.5;
}
.proofbar__logos {
  display: flex;
  gap: 56px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.85;
}
.proofbar__logo {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 8px;
}
.proofbar__logo svg { opacity: 0.9; }
.proofbar__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--border);
}
.proofbar__stat {
  padding: 28px 0 24px;
  border-right: 1px solid var(--border);
}
.proofbar__stat:last-child { border-right: 0; }
.proofbar__stat-value {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.proofbar__stat-value sup {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--fg-muted);
  margin-left: 4px;
}
.proofbar__stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 10px;
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */

.problem__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 96px;
  align-items: start;
}
@media (max-width: 900px) { .problem__grid { grid-template-columns: 1fr; gap: 48px; } }

.problem__list {
  list-style: none;
  margin: 0; padding: 0;
}
.problem__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.problem__item:last-child { border-bottom: 0; }
.problem__item-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}
.problem__item-text {
  font-size: 19px;
  line-height: 1.4;
}
.problem__item-strike {
  text-decoration: line-through;
  text-decoration-color: color-mix(in oklab, var(--fg) 35%, transparent);
  text-decoration-thickness: 1px;
  color: var(--fg-muted);
}

/* ============================================================
   EVIDENCE ENGINE PIPELINE
   ============================================================ */

.pipeline {
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--bg-elev);
  position: relative;
}
.pipeline__steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 1100px) {
  .pipeline__steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.pipeline__step {
  padding: 0 16px;
  border-left: 1px solid var(--border);
  min-height: 120px;
}
.pipeline__step:first-child { border-left: 0; padding-left: 0; }
.pipeline__step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pipeline__step-num::after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}
.pipeline__step-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.pipeline__step-desc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.pipeline__step--accent .pipeline__step-num::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.pipeline__caption {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ============================================================
   RESEARCH MODES
   ============================================================ */

.modes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
@media (max-width: 900px) { .modes__grid { grid-template-columns: 1fr; } }

.mode {
  background: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  min-height: 380px;
}
.mode:hover { background: var(--bg-elev); }
.mode__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  white-space: nowrap;
}
.mode__num > span { white-space: nowrap; }
.mode__num-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
}
.mode__title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  max-width: 18ch;
}
.mode__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 44ch;
}
.mode__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* ============================================================
   DEMOS — interactive playground
   ============================================================ */

.demo {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
}
.demo__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg);
}
.demo__head-dots {
  display: flex; gap: 6px;
}
.demo__head-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  display: block;
}
.demo__tab-row {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.demo__tab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.demo__tab--active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.demo__body {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 900px) { .demo__body { grid-template-columns: 1fr; } }

.demo__input-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo__input-prefix {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
}
.demo__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg);
  padding: 6px 0;
}
.demo__input::placeholder { color: var(--fg-dim); }
.demo__textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  outline: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--fg);
  resize: none;
  min-height: 96px;
  line-height: 1.45;
}
.demo__textarea:focus { border-color: var(--border-strong); }

.demo__examples {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 10px;
}
.demo__example {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
  cursor: pointer;
}
.demo__example:hover { background: var(--scrim); color: var(--fg); }

.demo__output {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  padding: 20px;
  min-height: 280px;
  font-size: 14px;
  position: relative;
}
.demo__output-empty {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  text-align: center;
  letter-spacing: 0.05em;
}

.demo__progress {
  height: 2px;
  width: 100%;
  background: var(--bg-elev-2);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 16px;
}
.demo__progress > i {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 360ms ease;
}

.demo__finding {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.demo__finding:last-child { border-bottom: 0; }
.demo__finding-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.demo__finding-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.demo__finding-body {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ============================================================
   SAMPLE REPORT
   ============================================================ */

.report {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  margin-top: 48px;
  min-height: 540px;
}
@media (max-width: 900px) { .report { grid-template-columns: 1fr; } }

.report__side {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
}
.report__side-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.report__toc {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 2px;
}
.report__toc li {
  font-size: 13px;
  color: var(--fg-muted);
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.report__toc li.active {
  background: var(--scrim);
  color: var(--fg);
}
.report__toc-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
}

.report__main {
  padding: 32px 36px;
}
.report__title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.report__sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.report__sub span { display: inline-flex; align-items: center; gap: 6px; }
.report__sub span::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--fg-dim);
  border-radius: 50%;
  display: inline-block;
}

.report__findings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) { .report__findings { grid-template-columns: 1fr; } }

.finding {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--bg);
}
.finding--accent {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  background: color-mix(in oklab, var(--accent) 7%, var(--bg-elev));
}
.finding__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.finding__title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.3;
}
.finding__quote {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin: 8px 0 12px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}
.finding__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-dim);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.finding__meta span { white-space: nowrap; }

/* ============================================================
   TRUST / SECURITY
   ============================================================ */

.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 56px;
}
@media (max-width: 900px) { .trust__grid { grid-template-columns: 1fr; } }
.trust__cell {
  background: var(--bg);
  padding: 28px;
}
.trust__cell-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.trust__cell-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.trust__cell-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.tquote {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: end;
  border-top: 1px solid var(--border);
  padding: 56px 0;
}
@media (max-width: 900px) { .tquote { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; } }
.tquote:last-child { border-bottom: 1px solid var(--border); }
.tquote__text {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 32ch;
  margin: 0;
}
.tquote__text::before {
  content: "“";
  color: var(--accent);
  font-size: 1em;
  margin-right: 0.1em;
}
.tquote__attr {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  line-height: 1.6;
}
.tquote__attr strong {
  display: block;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 15px;
}

/* ============================================================
   USE CASES
   ============================================================ */

.uc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 900px) { .uc__grid { grid-template-columns: 1fr; } }
.uc {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
}
.uc:hover { border-color: var(--border-strong); }
.uc__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.uc__title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}
.uc__desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-top: auto;
}
.uc__arrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-top: 8px;
}

/* ============================================================
   FINAL CTA
   ============================================================ */

.finalcta {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}
.finalcta__inner {
  position: relative;
  z-index: 2;
}
.finalcta__title {
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 28px;
}
.finalcta__sub {
  font-size: 19px;
  color: var(--fg-muted);
  max-width: 52ch;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.finalcta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 80%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 60%);
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  background: var(--bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer__tag {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 30ch;
  line-height: 1.5;
}
.footer__col-h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 14px;
}
.footer__col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer__col a {
  font-size: 14px;
  color: var(--fg-muted);
}
.footer__col a:hover { color: var(--fg); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */

.s-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .s-head { grid-template-columns: 1fr; gap: 24px; } }
.s-head__title {
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 16px 0 0;
  max-width: 22ch;
}
.s-head__desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 44ch;
}

/* ============================================================
   small utilities
   ============================================================ */

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.text-mute { color: var(--fg-muted); }
.text-dim  { color: var(--fg-dim); }
.text-accent { color: var(--accent); }

/* selection */
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* tweaks panel host overrides if needed */
