/* ============================================================
   Prism — site styles
   A quiet, editorial theme: warm paper, hairline borders,
   restrained red→violet spectrum accents.
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #F6F4F0;
  --bg-soft: #F0EDE7;
  --surface: #FFFFFF;
  --surface-2: #FAF8F5;
  --ink: #1B1823;
  --ink-2: #413C4E;
  --muted: #6F6A7A;
  --faint: #9A94A6;
  --line: rgba(27, 24, 35, 0.09);
  --line-strong: rgba(27, 24, 35, 0.18);
  --accent: #6D4AE0;
  --accent-soft: rgba(109, 74, 224, 0.08);
  --accent-underline: rgba(109, 74, 224, 0.30);
  --red: #D9553F;
  --red-soft: rgba(217, 85, 63, 0.08);
  --ok: #3F8F6E;
  --grad: linear-gradient(100deg, #D9553F 0%, #B868B8 55%, #7C5CFF 100%);
  --nav-bg: rgba(246, 244, 240, 0.85);
  --footer-bg: #17151D;
  --footer-ink: #B9B3C6;
  --footer-faint: #8E88A0;
  --footer-line: rgba(255, 255, 255, 0.08);
  --shadow-1: 0 1px 2px rgba(27, 24, 35, 0.05), 0 10px 30px -16px rgba(27, 24, 35, 0.16);
  --shadow-2: 0 2px 4px rgba(27, 24, 35, 0.05), 0 26px 60px -26px rgba(27, 24, 35, 0.24);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --nav-h: 64px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121118;
  --bg-soft: #17161D;
  --surface: #1B1A23;
  --surface-2: #201F29;
  --ink: #EDEAF3;
  --ink-2: #CBC5D6;
  --muted: #9C96AB;
  --faint: #6E6880;
  --line: rgba(237, 234, 243, 0.09);
  --line-strong: rgba(237, 234, 243, 0.20);
  --accent: #9B84FF;
  --accent-soft: rgba(155, 132, 255, 0.10);
  --accent-underline: rgba(155, 132, 255, 0.35);
  --red: #EC7358;
  --red-soft: rgba(236, 115, 88, 0.10);
  --ok: #5FB48D;
  --nav-bg: rgba(18, 17, 24, 0.82);
  --footer-bg: #0D0C11;
  --footer-ink: #A9A3B8;
  --footer-faint: #7A7488;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px -16px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 26px 60px -26px rgba(0, 0, 0, 0.7);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg { vertical-align: middle; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-underline);
  transition: color .25s, text-decoration-color .25s;
}
a:hover { text-decoration-color: currentColor; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

code {
  font: 500 0.9em var(--font-mono);
  background: var(--accent-soft);
  color: var(--ink);
  padding: 0.12em 0.38em;
  border-radius: 6px;
  white-space: nowrap;
}

pre { margin: 0; }

.container {
  width: min(1140px, 100% - 2.4rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 120;
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-300%);
  transition: transform .25s;
}
.skip-link:focus { transform: none; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .grain { opacity: 0.11; }

.spectrum-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: linear-gradient(90deg, #D9553F, #B868B8 50%, #7C5CFF);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  opacity: 0.5;
}

/* ---------- icons ---------- */

.i {
  width: 1em;
  height: 1em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-inline { font-size: 0.82em; vertical-align: -0.08em; margin-left: 0.15em; }
.logo-mark { display: block; flex: none; }

html[data-theme="light"] .i-sun { display: none; }
html[data-theme="dark"] .i-moon { display: none; }

/* ---------- navigation ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-nav.is-scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand-by {
  font-size: 11px;
  color: var(--faint);
  border-left: 1px solid var(--line-strong);
  padding-left: 0.55rem;
  margin-left: 0.1rem;
}
.nav-links {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 1.5px;
  background: var(--grad);
  transition: right .3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
}
.icon-btn .i { font-size: 17px; }
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.nav-toggle { display: none; }
.nav-toggle .i { display: none; }
.nav-toggle .i-menu { display: block; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-x { display: block; }

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 55;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.2rem 1.4rem;
  max-height: calc(100vh - var(--nav-h));
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.mobile-menu nav { display: grid; gap: 0.1rem; margin-bottom: 1rem; }
.mobile-menu nav a {
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}
.mobile-menu nav a:hover { background: var(--bg-soft); color: var(--ink); }
.mobile-menu .btn { width: 100%; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font: 500 14px/1 var(--font-body);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s, color .25s, background .25s;
  border: 1px solid transparent;
}
.btn .i { font-size: 15px; }
.btn-primary {
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -12px rgba(124, 92, 255, 0.55);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-sm { padding: 0.62rem 1.05rem; font-size: 13px; }

/* ---------- shared section chrome ---------- */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 500 11.5px/1.4 var(--font-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--grad);
  flex: none;
}
.eyebrow .i { font-size: 12px; color: var(--accent); }
.eyebrow a { color: inherit; }

.sec-head { max-width: 780px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.sec-head h2 {
  font: 380 clamp(1.75rem, 3.4vw, 2.7rem)/1.15 var(--font-display);
  letter-spacing: -0.015em;
  margin: 0.9rem 0 0.9rem;
}
.sec-head h2 em { color: var(--accent); font-style: italic; }
.sec-head .lede {
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.72;
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(0.22, 0.7, 0.3, 1);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */

.hero { padding: calc(var(--nav-h) + clamp(2.6rem, 7vw, 5.4rem)) 0 clamp(2.6rem, 6vw, 4.6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font: 350 clamp(2.5rem, 5.6vw, 4.4rem)/1.04 var(--font-display);
  letter-spacing: -0.022em;
  margin: 1.15rem 0 1.25rem;
}
.hero h1 em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
.hero-lede {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.72;
  color: var(--muted);
  max-width: 56ch;
}
.try-line {
  margin: 1.6rem 0 1.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-height: 1.7em;
  font-size: 0.98rem;
  color: var(--ink-2);
}
.try-label { color: var(--faint); font-size: 0.85rem; letter-spacing: 0.02em; }
.try-quote { font-family: var(--font-display); font-style: italic; font-size: 1.14rem; }
.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-notes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.7rem;
  font-size: 12.5px;
  color: var(--faint);
}
.hero-notes li { display: flex; align-items: center; gap: 0.42rem; }
.hero-notes .i { color: var(--ok); font-size: 13px; stroke-width: 2.3; }

.hero-art { position: relative; min-height: 440px; }
.prism-svg { width: 100%; height: auto; display: block; }
.brain-fold {
  fill: none;
  stroke: #B868B8;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.45;
}
.synapse-travel {
  stroke: #8B6EF3;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 10 32;
  animation: synapseTravel 2.6s linear infinite;
}
@keyframes synapseTravel {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -42; }
}
.twinkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 4.4s ease-in-out infinite;
}
.twinkle.t2 { animation-delay: 1.4s; }
.twinkle.t3 { animation-delay: 2.6s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 0.9; transform: scale(1.06); }
}
.float-chip {
  position: absolute;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 500 12.5px var(--font-body);
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
  white-space: nowrap;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50% { transform: rotate(var(--rot, 0deg)) translateY(-7px); }
}
.fc1 { --rot: -2deg; top: 5%; left: 0; }
.fc2 { --rot: 1.5deg; top: 26%; right: 0; animation-delay: 0.9s; }
.fc3 { --rot: -1deg; bottom: 15%; left: -2%; animation-delay: 1.7s; }
.fc4 { --rot: 2deg; bottom: 2%; right: 9%; animation-delay: 2.4s; }

/* ---------- trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.2rem;
  padding: 1rem 0;
  font: 500 11.8px var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.trust-row span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grad);
  margin-right: 0.55rem;
  vertical-align: 2px;
  opacity: 0.7;
}

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
}
.table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
.table th {
  text-align: left;
  font: 500 11px var(--font-body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  white-space: nowrap;
}
.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
  line-height: 1.58;
}
.table tr:last-child td { border-bottom: 0; }
.table td strong { color: var(--ink); }
.table-compact td, .table-compact th { padding: 0.65rem 0.85rem; font-size: 12.6px; }
.muted { color: var(--faint); font-size: 0.92em; }

/* ---------- problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.quote-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  box-shadow: var(--shadow-1);
  transition: transform .35s, box-shadow .35s;
}
.quote-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .35s;
}
.quote-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.quote-card:hover::before { opacity: 0.85; }
.quote-card blockquote {
  font: 380 clamp(1.15rem, 1.8vw, 1.38rem)/1.45 var(--font-display);
  letter-spacing: -0.01em;
}
.quote-card figcaption { margin-top: 0.85rem; font-size: 13px; color: var(--muted); }
.problem-close {
  margin-top: 2.2rem;
  font: 380 clamp(1.2rem, 2.1vw, 1.55rem)/1.5 var(--font-display);
  max-width: 62ch;
  letter-spacing: -0.01em;
}
.problem-close strong { color: var(--accent); font-weight: 500; }

/* ---------- diagrams ---------- */

.diagram-figure {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  padding: clamp(1rem, 2.5vw, 1.8rem);
  box-shadow: var(--shadow-1);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.diagram-figure figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 12.5px;
  color: var(--faint);
}
.mermaid {
  overflow-x: auto;
  white-space: pre;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.mermaid svg { display: block; margin: 0 auto; max-width: none; }
.diagram-scroll { overflow-x: auto; }

/* ---------- how it works ---------- */

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.pipeline { list-style: none; display: grid; gap: 0.4rem; }
.pipe-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-m);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.pipe-step.is-active {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-1);
}
.pipe-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font: 500 12.5px var(--font-mono);
  color: var(--muted);
  transition: .35s;
}
.pipe-step.is-active .pipe-num {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(124, 92, 255, 0.55);
}
.pipe-step.is-done .pipe-num { color: var(--ink); border-color: var(--line-strong); }
.pipe-body h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.pipe-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-2);
  margin-top: 0.15rem;
}
.pipe-note { font-size: 13.2px; color: var(--muted); margin-top: 0.45rem; max-width: 52ch; }

.how-demo { position: sticky; top: calc(var(--nav-h) + 20px); }
.mock {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  font-size: 13px;
}
.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mock-brand { display: flex; align-items: center; gap: 0.42rem; font-weight: 600; font-size: 12.8px; }
.mock-tabs { display: flex; gap: 0.25rem; }
.mock-tab { padding: 0.22rem 0.62rem; border-radius: 999px; color: var(--muted); font-size: 11.8px; }
.mock-tab.is-on { background: var(--accent-soft); color: var(--ink); }
.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(95, 180, 141, 0.18);
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.25); opacity: 0.55; } }
.mock-thread {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 420px;
}
.mock-user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 0.85rem;
  border-radius: 14px 14px 4px 14px;
  max-width: 82%;
  font-size: 12.8px;
}
.mock-think {
  position: relative;
  padding-left: 1.15rem;
  font-size: 12.2px;
  font-style: italic;
  color: var(--muted);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .45s, transform .45s;
}
.mock-think::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}
.mock-think.is-on { opacity: 1; transform: none; }
.mock-results {
  display: grid;
  gap: 0.55rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s 0.1s, transform .5s 0.1s;
}
.mock-results.is-on { opacity: 1; transform: none; }
.mock-card {
  display: flex;
  gap: 0.7rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.thumb {
  width: 86px;
  height: 56px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
}
.thumb .i { font-size: 16px; opacity: 0.92; }
.t1 { background: linear-gradient(135deg, #D98A76, #8B6EC9); }
.t2 { background: linear-gradient(135deg, #C9B6E8, #D98A76); }
.t3 { background: linear-gradient(135deg, #B868B8, #D9553F); }
.mock-card-body { min-width: 0; }
.mock-title { font-weight: 600; font-size: 12.7px; line-height: 1.38; }
.mock-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.22rem;
  font-size: 11.4px;
  color: var(--muted);
}
.chip-approx {
  font: 500 10.5px var(--font-mono);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.08rem 0.42rem;
  color: var(--ink-2);
}
.mock-why {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.28rem;
  font-size: 11.4px;
  color: var(--accent);
}
.mock-why .i { font-size: 11px; }
.mock-chips, .mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mock-chips span, .mini-chips span {
  font: 500 11.3px var(--font-body);
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  background: var(--surface);
}
.mock-composer {
  margin: 0 0.95rem 0.95rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--faint);
  font-size: 12.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.mock-caption { margin-top: 0.8rem; text-align: center; font-size: 12px; color: var(--faint); }

/* ---------- folds (details) ---------- */

.fold {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.fold--spaced { margin-top: 2.4rem; }
.fold summary, .qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
.fold summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.fold summary::after, .qa summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  margin-right: 4px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s;
}
.fold[open] summary::after, .qa[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.fold .table-wrap, .fold .caveat-list, .fold .fold-note, .fold > p { margin: 0 1.2rem 1.2rem; }
.fold .table-wrap { max-width: calc(100% - 2.4rem); }
.fold-note { font-size: 12.6px; color: var(--muted); }
.fold--inline { border-radius: var(--r-s); margin-top: 0.9rem; }
.fold--inline summary { padding: 0.8rem 1rem; font-size: 13px; }
.fold--inline .filetree { margin: 0; }

/* ---------- research ---------- */

.research-note { margin-top: 1.4rem; font-size: 13.5px; color: var(--muted); }

/* ---------- tabs & powers ---------- */

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  width: max-content;
  max-width: 100%;
  margin-bottom: 1.4rem;
}
.tab-btn {
  border: 0;
  background: transparent;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  font: 500 13.2px var(--font-body);
  color: var(--muted);
  cursor: pointer;
  transition: color .25s, background .25s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn[aria-selected="true"] { background: var(--ink); color: var(--bg); }

.tab-panel { animation: panelIn .45s cubic-bezier(0.22, 0.7, 0.3, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.power-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.power-ask {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font: 400 italic 1.22rem/1.4 var(--font-display);
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.power-ask .i { font-size: 1rem; color: var(--accent); }
.power-copy > p:not(.power-ask) { font-size: 14.2px; color: var(--muted); max-width: 58ch; }
.power-copy strong { color: var(--ink); }

.ticks { list-style: none; display: grid; gap: 0.7rem; margin-top: 1.1rem; }
.ticks li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.6;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad);
  opacity: 0.65;
  transform: rotate(45deg);
}
.ticks li strong { color: var(--ink); }
.ticks-tight { gap: 0.5rem; margin-top: 0.9rem; }
.ticks-tight li { font-size: 13px; }

.power-art { display: grid; gap: 0.9rem; }

.mini-stack { display: grid; gap: 0.6rem; }
.mini-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.mini-card.dim { opacity: 0.72; transform: translateX(14px); }
.mini-card.dimmer { opacity: 0.45; transform: translateX(28px); }
.mini-chip {
  font: 500 10.5px var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--accent);
}
.mini-line { height: 8px; border-radius: 4px; background: var(--line-strong); opacity: 0.6; }
.mini-line.w80 { width: 80%; } .mini-line.w70 { width: 70%; } .mini-line.w60 { width: 60%; }
.mini-line.w55 { width: 55%; } .mini-line.w40 { width: 40%; } .mini-line.w35 { width: 35%; }

.mini-path { list-style: none; display: grid; gap: 0.5rem; }
.mini-path li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 12.8px;
  color: var(--ink-2);
}
.mini-path li span {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font: 500 11px var(--font-mono);
  color: var(--muted);
}
.mini-path li.done { opacity: 0.62; }
.mini-path li.done span { background: var(--ok); border-color: transparent; color: #fff; }
.mini-path li.now { border-color: var(--accent); }
.mini-path li.now span { border-color: var(--accent); color: var(--accent); }
.mini-progress {
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}
.mini-progress i {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: var(--grad);
  border-radius: 999px;
}
.mini-caption { font-size: 12px; color: var(--faint); }

.mini-moments { display: grid; gap: 0.5rem; }
.mini-moment {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 12.8px;
  color: var(--ink-2);
}
.mini-moment code { color: var(--accent); background: transparent; padding: 0; }
.mini-quote {
  margin-top: 0.4rem;
  padding-left: 0.9rem;
  border-left: 2px solid transparent;
  border-image: var(--grad) 1;
  font: 400 italic 1rem/1.55 var(--font-display);
  color: var(--ink-2);
}

.mini-deck { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.mini-deck-card {
  display: grid;
  gap: 0.3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 12.4px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.4;
}
.mini-deck-card em {
  font: 500 10.5px var(--font-mono);
  font-style: normal;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.mini-player {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #141318;
}
.mini-player-screen {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #241F2E, #3A2F4A);
  color: #fff;
}
.mini-player-screen .i { font-size: 26px; opacity: 0.9; }
.mini-player-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.85rem;
  font-size: 11.6px;
  color: #B8B3C6;
}
.mini-player-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-player-pos { font-family: var(--font-mono); font-size: 10.6px; }
.mini-player-btns { display: flex; gap: 4px; }
.mini-player-btns i { width: 14px; height: 4px; border-radius: 2px; background: #6F6A7E; }

.mini-toggles { display: grid; gap: 0.55rem; }
.mini-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12.8px;
  color: var(--muted);
}
.mini-toggle i {
  position: relative;
  width: 34px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: .3s;
}
.mini-toggle i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--faint);
  transition: .3s;
}
.mini-toggle.on { color: var(--ink); }
.mini-toggle.on i { background: var(--grad); border-color: transparent; }
.mini-toggle.on i::after { left: 16px; background: #fff; }

/* ---------- graph demo ---------- */

.graph-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 3.5vw, 2.6rem);
  align-items: start;
}
.demo {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  padding: clamp(1.25rem, 2.6vw, 1.8rem);
}
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.demo-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 600;
}
.demo-title .i { color: var(--accent); }
.demo-reset {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font: 500 12px var(--font-body);
  cursor: pointer;
  transition: .25s;
}
.demo-reset:hover { color: var(--ink); border-color: var(--line-strong); }
.graph-rows { list-style: none; display: grid; gap: 0.85rem; }
.graph-row {
  display: grid;
  grid-template-columns: minmax(118px, 172px) 1fr 44px;
  gap: 0.9rem;
  align-items: center;
  font-size: 13px;
}
.graph-name { color: var(--ink-2); }
.bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}
.bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.9s cubic-bezier(0.22, 0.7, 0.3, 1), background .4s;
}
.graph-row.is-neg .bar i { background: var(--red); opacity: 0.55; }
.graph-val {
  font: 500 12.5px var(--font-mono);
  text-align: right;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.graph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.3rem 0 1.1rem;
}
.chip-btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 0.88rem;
  font: 500 12.3px/1.2 var(--font-body);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .25s, color .25s, transform .25s;
}
.chip-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chip-btn:active { transform: translateY(0); }
.graph-log { list-style: none; display: grid; gap: 0.35rem; min-height: 4.6rem; align-content: start; }
.graph-log li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 12.3px;
  color: var(--muted);
  animation: logIn .4s ease both;
}
.graph-log li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--grad);
}
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.graph-note {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

.graph-side h3 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 1.6rem 0 0.85rem;
}
.graph-side h3:first-child { margin-top: 0; }
.why-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.why-chips span {
  font: 400 italic 12.5px var(--font-display);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  background: var(--surface);
}

.formula-card {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.formula-title {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--muted);
}
.formula {
  padding: 1.25rem;
  overflow-x: auto;
  font: 12.5px/1.8 var(--font-mono);
  color: var(--ink-2);
}
.formula .c { color: var(--faint); }

/* ---------- honesty ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.compare-col {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  box-shadow: var(--shadow-1);
}
.compare-col h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 15px;
  margin-bottom: 1.1rem;
}
.compare-col.is h3 .i { color: var(--ok); stroke-width: 2.2; }
.compare-col.isnt h3 .i { color: var(--red); stroke-width: 2.2; }
.compare-col ul { list-style: none; display: grid; gap: 0.95rem; }
.compare-col li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.62;
}
.compare-col.is li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  opacity: 0.75;
}
.compare-col.isnt li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.6;
}
.compare-col li strong { color: var(--ink); }

.caveat-list { list-style: none; display: grid; gap: 0.75rem; }
.caveat-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 13.6px;
  color: var(--ink-2);
  line-height: 1.62;
}
.caveat-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.5;
}
.caveat-list li strong { color: var(--ink); }

/* ---------- benefits ---------- */

.benefit-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.benefit-col {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  padding: clamp(1.35rem, 2.6vw, 1.85rem);
  box-shadow: var(--shadow-1);
}
.benefit-col h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 14.8px;
  line-height: 1.4;
}
.benefit-col h3 .i { color: var(--accent); font-size: 17px; }
.benefit-list { list-style: none; display: grid; gap: 0.85rem; margin-top: 1.15rem; }
.benefit-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 13.6px;
  color: var(--ink-2);
  line-height: 1.6;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad);
  opacity: 0.6;
  transform: rotate(45deg);
}
.benefit-list li strong { color: var(--ink); }
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.stat {
  font-size: 11.8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}
.stat em {
  display: block;
  font: 500 1.25rem/1.2 var(--font-display);
  font-style: normal;
  color: var(--ink);
}

/* ---------- privacy ---------- */

.privacy-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem);
}
.p-stat {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
}
.p-stat em {
  font: 400 1.85rem/1.1 var(--font-display);
  font-style: normal;
  color: var(--ink);
}
.p-stat span { font-size: 12px; color: var(--muted); }

.privacy-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  align-items: start;
}
.privacy-grid h3 { font-size: 15px; margin-bottom: 0.95rem; }
.referer-note {
  margin-top: 1.1rem;
  padding-left: 0.95rem;
  border-left: 2px solid var(--line-strong);
  font-size: 12.6px;
  color: var(--muted);
}
.controls-title { margin: 2.6rem 0 1.2rem; font-size: 15px; }
.controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.control-card {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  padding: 1.25rem;
  transition: transform .3s, box-shadow .3s;
}
.control-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.control-card .i { font-size: 20px; color: var(--accent); margin-bottom: 0.75rem; }
.control-card h4 { font-size: 13.6px; margin-bottom: 0.35rem; }
.control-card p { font-size: 12.7px; color: var(--muted); line-height: 1.6; }

/* ---------- architecture ---------- */

.modules { margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.modules h3 { font-size: 15px; margin-bottom: 1rem; }
.supporting { margin-top: 1rem; font-size: 12.8px; color: var(--muted); line-height: 1.9; }

.protocol { margin-top: clamp(2rem, 4vw, 3rem); }
.protocol h3 { font-size: 15px; }
.protocol-lede { margin: 0.5rem 0 1.1rem; font-size: 13.5px; color: var(--muted); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track span {
  font: 500 12px var(--font-mono);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  background: var(--surface);
  white-space: nowrap;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.tech-card {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  padding: clamp(1.25rem, 2.4vw, 1.65rem);
  box-shadow: var(--shadow-1);
}
.tech-card h3 { font-size: 14.8px; margin-bottom: 0.75rem; }
.tech-card p { font-size: 13.4px; color: var(--muted); line-height: 1.66; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.95rem 0; }
.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 500 12px var(--font-mono);
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.62rem;
}
.sp-chip span {
  font: 400 11.4px var(--font-body);
  color: var(--muted);
}
.filetree {
  font: 400 11.3px/1.65 var(--font-mono);
  color: var(--ink-2);
  background: var(--bg-soft);
  padding: 1rem;
  overflow-x: auto;
}

/* ---------- getting started ---------- */

.start-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: start;
}
.start-card {
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  box-shadow: var(--shadow-1);
}
.start-card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 15px;
  line-height: 1.4;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font: 600 12px var(--font-body);
}
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.3rem;
  font-size: 13.7px;
  color: var(--ink-2);
  line-height: 1.62;
}
.steps li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0;
  font: 500 13px var(--font-mono);
  color: var(--accent);
}
.steps li strong { color: var(--ink); }
.start-note, .steps-more {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 12.6px;
  color: var(--muted);
  line-height: 1.66;
}

/* ---------- faq ---------- */

.faq-list { display: grid; gap: 0.6rem; max-width: 880px; }
.qa {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  transition: border-color .3s;
}
.qa[open] { border-color: var(--line-strong); }
.qa-body { padding: 0 1.2rem 1.15rem; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ---------- glossary ---------- */

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.8rem;
}
.gloss { padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.gloss dt { font-size: 13.6px; font-weight: 600; }
.gloss dd { margin: 0.2rem 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- early access ---------- */

.early { padding-bottom: clamp(4.5rem, 9vw, 7rem); }
.early-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
}
.early-copy .ticks { margin-top: 1.4rem; }
.early-alt { margin-top: 1.6rem; font-size: 13.5px; color: var(--muted); }
.dev-access {
  margin-top: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--surface);
  padding: 1.2rem 1.3rem;
}
.dev-access h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 13.8px;
}
.dev-access h3 .i { color: var(--accent); font-size: 15px; }
.dev-access .ticks { margin-top: 0.95rem; }
.dev-access .ticks li { font-size: 13px; }

.form-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  min-height: 640px;
}
.form-shell iframe {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0;
  background: #fff;
}
.form-shell.is-placeholder iframe { display: none; }
.form-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 2rem;
  background: var(--surface-2);
}
.form-placeholder .logo-mark { margin-bottom: 0.8rem; }
.form-placeholder h3 { font-size: 15px; }
.form-placeholder p { max-width: 40ch; font-size: 13px; color: var(--muted); }
.form-fallback { padding: 1.2rem; font-size: 13px; color: var(--muted); }
.form-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.form-privacy {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  color: var(--faint);
}
.form-privacy .i { font-size: 13px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { color: #C9B6FF; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding: clamp(2.6rem, 5vw, 4rem) 0 2rem;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-tag {
  margin-top: 0.9rem;
  max-width: 36ch;
  font-size: 13px;
  color: var(--footer-faint);
  line-height: 1.7;
}
.footer-tag a { color: #C9B6FF; text-decoration: underline; text-decoration-color: rgba(201, 182, 255, 0.3); }
.footer-col h4 {
  font: 500 11.5px var(--font-body);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--footer-faint);
  margin-bottom: 0.95rem;
}
.footer-col a {
  display: block;
  padding: 0.32rem 0;
  font-size: 13.4px;
  opacity: 0.85;
  transition: opacity .25s, color .25s;
}
.footer-col a:hover { opacity: 1; }
.footer-col .i { font-size: 11px; opacity: 0.6; }
.footer-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--footer-line);
  font: 500 11.5px var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--footer-faint);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
  padding: 1.2rem 0 2.2rem;
  border-top: 1px solid var(--footer-line);
  font-size: 12.2px;
  color: var(--footer-faint);
}

/* ---------- back to top ---------- */

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 45;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top .i { transform: rotate(180deg); font-size: 18px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; max-width: 620px; margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; }
  .how-demo { position: static; }
  .graph-grid { grid-template-columns: 1fr; }
  .power-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .benefit-cols { grid-template-columns: 1fr; max-width: 640px; }
  .tech-grid { grid-template-columns: 1fr; max-width: 720px; }
  .controls-grid { grid-template-columns: repeat(2, 1fr); }
  .start-grid { grid-template-columns: 1fr; }
  .early-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .problem-grid { grid-template-columns: 1fr; }
  .privacy-stats { grid-template-columns: repeat(2, 1fr); }
  .glossary-grid { grid-template-columns: 1fr; }
  .tablist {
    width: 100%;
    border-radius: var(--r-m);
    justify-content: flex-start;
  }
  .fc1 { left: 2%; }
  .fc2 { right: 2%; }
  .fc3 { left: 0; }
  .fc4 { display: none; }
  .mock-thread { min-height: 340px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 1.8rem); }
  .controls-grid { grid-template-columns: 1fr; }
  .trust-row { gap: 0.45rem 1.2rem; font-size: 11px; }
  .graph-row {
    grid-template-columns: 1fr 40px;
    grid-template-areas: "name name" "bar val";
    row-gap: 0.4rem;
  }
  .graph-name { grid-area: name; }
  .bar { grid-area: bar; }
  .graph-val { grid-area: val; }
  .footer-top { grid-template-columns: 1fr; gap: 1.6rem; }
  .brand-by { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .form-shell, .form-shell iframe { min-height: 560px; }
  .mini-deck { grid-template-columns: 1fr; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .synapse-travel { animation: none; stroke-dasharray: none; }
}
