:root {
  --bg: #07080a;
  --bg-2: #0c0e12;
  --fg: #eef0f3;
  --fg-dim: #8a8f98;
  --fg-faint: #3a3e46;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --accent: #7cc4ff;
  --accent-2: #3a8dff;
  --grid: rgba(255,255,255,0.04);

  --font-display: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

:root[data-mode="light"] {
  --bg: #f4f3ef;
  --bg-2: #eceae4;
  --fg: #111214;
  --fg-dim: #55585e;
  --fg-faint: #b8b6af;
  --line: rgba(0,0,0,0.1);
  --line-strong: rgba(0,0,0,0.22);
  --grid: rgba(0,0,0,0.04);
}

:root[data-font="serif"] {
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01","zero"; }

/* ─── Top nav ─── */
.nav {
  position: fixed;
  top: 14px; left: 14px; right: 14px;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; font-weight: 600; }
.nav-logo .dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 18px var(--accent);
}
.nav ul { display: flex; gap: 22px; list-style: none; font-size: 13.5px; color: var(--fg-dim); }
.nav ul a:hover { color: var(--fg); }
.nav .cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--fg);
}
.nav .cta:hover { background: var(--fg); color: var(--bg); }

@media (max-width: 780px) { .nav ul { display: none; } }

/* ─── Shared atoms ─── */
.container { max-width: 1360px; margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}
.h1 {
  font-size: clamp(44px, 7.6vw, 128px);
  line-height: 0.92; letter-spacing: -0.04em; font-weight: 500;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 72px);
  line-height: 0.96; letter-spacing: -0.035em; font-weight: 500;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 500;
}
.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--fg-dim); max-width: 62ch; line-height: 1.5;
}
:root[data-font="serif"] .h1,
:root[data-font="serif"] .h2 { font-weight: 400; letter-spacing: -0.02em; }

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh; padding-top: 92px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 0;
}
.hero-canvas canvas { width: 100%; height: 100%; display: block; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 0%, transparent 40%, color-mix(in oklab, var(--bg) 90%, transparent) 90%),
    linear-gradient(to bottom, color-mix(in oklab, var(--bg) 40%, transparent) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 60px 0 56px;
}
.hero-top {
  position: absolute; top: 120px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0 28px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.hero-top .col { display: flex; flex-direction: column; gap: 4px; max-width: 220px; }
.hero-top .col b { color: var(--fg); font-weight: 500; }
.hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end;
}
.hero-lede { color: var(--fg-dim); font-size: 17px; line-height: 1.45; max-width: 44ch; }
.hero-meta {
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
}
.hero-meta .row { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.hero-meta .row span:last-child { color: var(--fg); }
.hero-cta {
  display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--line-strong);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.primary:hover { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.btn:hover { transform: translateY(-1px); }
.btn .arr { font-family: var(--font-mono); font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-top { position: static; padding: 0 0 24px; flex-wrap: wrap; gap: 20px; }
}

/* Wordmark hero-row */
.wordmark {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 240px);
  letter-spacing: -0.06em;
  line-height: 0.85;
  font-weight: 500;
  display: flex; align-items: baseline; gap: 14px;
}
.wordmark .small {
  font-size: 14px; color: var(--fg-dim);
  font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  align-self: flex-start; margin-top: 8px;
}

/* ─── Stats strip ─── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 40px 28px 32px;
  border-right: 1px solid var(--line);
  position: relative;
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-size: clamp(48px, 6vw, 96px);
  letter-spacing: -0.04em; line-height: 0.9; font-weight: 500;
}
.stat .num sup { font-size: 0.4em; vertical-align: top; color: var(--fg-dim); }
.stat .label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--fg-dim);
}
.stat-spark { height: 28px; margin-top: 10px; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ─── Manifesto / big-quote ─── */
.manifesto {
  padding: 180px 0 180px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.manifesto-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.manifesto .container { position: relative; z-index: 2; }
.manifesto h2 {
  font-size: clamp(34px, 5.2vw, 84px);
  line-height: 0.98; letter-spacing: -0.03em; font-weight: 500;
  max-width: 18ch; text-wrap: balance;
}
.manifesto h2 em { font-style: normal; color: var(--fg-dim); }
.manifesto .sub {
  margin-top: 26px; color: var(--fg-dim); font-size: 16px; max-width: 54ch; line-height: 1.5;
}

/* ─── Agents grid ─── */
.agents { padding: 120px 0; border-bottom: 1px solid var(--line); }
.agents-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
  margin-bottom: 72px; align-items: end;
}
@media (max-width: 900px) { .agents-head { grid-template-columns: 1fr; gap: 24px; } }
.agent-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1100px) { .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .agent-grid { grid-template-columns: 1fr; } }

.agent {
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-2) 60%, var(--bg));
  border-radius: 10px;
  padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 0;
  position: relative; overflow: hidden;
  transition: background .3s ease, border-color .3s ease;
  min-height: 620px;
}
.agent:hover { background: color-mix(in oklab, var(--fg) 3%, transparent); }

/* Card top strip: index + status pill */
.agent-top {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-dim);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.agent-top .idx { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.agent-top .idx b { color: var(--fg); font-weight: 500; }
.agent-top .status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border: 1px solid var(--line);
  border-radius: 999px; background: color-mix(in oklab, var(--bg) 40%, transparent);
}
.agent-top .status .pip {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

/* Motion canvas — portrait-ish, inside its own well */
.agent-icon {
  width: 100%; aspect-ratio: 16/10;
  margin: 0 0 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 85%, transparent), var(--bg-2) 100%),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 48px);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  position: relative; overflow: hidden;
}
.agent-icon canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.agent-icon .mini-badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg);
  padding: 4px 8px;
  background: #1a1d23;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
:root[data-mode="light"] .agent-icon .mini-badge { background: #e8e6df; color: var(--fg); }
.agent-icon .mini-badge.right { left: auto; right: 10px; color: var(--accent); border-color: color-mix(in oklab, var(--accent) 35%, var(--line-strong)); }

.agent-body { padding: 16px 4px 4px; }
.agent-body h3 {
  font-size: 22px; letter-spacing: -0.018em; font-weight: 500;
  margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 10px;
}
.agent-body h3 .ver {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
  letter-spacing: 0.04em;
  border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px;
}
.agent-body p { color: var(--fg-dim); font-size: 14px; line-height: 1.5; margin-bottom: 20px; max-width: 44ch; }

/* Metric row */
.agent-metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.agent-metric {
  background: var(--bg);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.agent-metric .k {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-dim);
}
.agent-metric .v {
  font-size: 22px; letter-spacing: -0.02em; line-height: 1; font-weight: 500;
  display: flex; align-items: baseline; gap: 4px;
}
.agent-metric .v small { font-size: 12px; color: var(--fg-dim); font-weight: 400; }
.agent-metric .v.accent { color: var(--accent); }

/* Integrations / toolchain line */
.agent-tools {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-dim);
  letter-spacing: 0.06em;
}
.agent-tools .label { margin-right: 4px; opacity: 0.7; }
.agent-tools .tool {
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--fg); background: color-mix(in oklab, var(--fg) 3%, transparent);
  white-space: nowrap;
}
.agent-tools .tool.accent { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.agent-tools .more { opacity: 0.5; }

/* Push tools/footer to bottom of card */
.agent-body { flex: 1; display: flex; flex-direction: column; }
.agent-body .spacer { flex: 1; min-height: 14px; }

/* Live event stream */
.agent-feed {
  padding: 12px 0; margin-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim);
  min-height: 74px;
}
.agent-feed .feed-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 2px;
}
.agent-feed .feed-title > span { white-space: nowrap; }
.agent-feed .line .t { white-space: nowrap; }
.agent-feed .feed-title .live {
  display: inline-flex; align-items: center; gap: 6px; color: var(--accent);
}
.agent-feed .feed-title .live::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.agent-feed .line {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: baseline;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.agent-feed .line .t { color: var(--fg); opacity: 0.7; }
.agent-feed .line .ev { color: var(--fg); overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); letter-spacing: -0.005em; font-size: 12.5px; }
.agent-feed .line .ev b { color: var(--accent); font-weight: 500; }
.agent-feed .line .tag-sm { color: var(--fg-dim); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Bottom mini-bar chart */
.agent-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 30px; margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.agent-bars .bar {
  flex: 1; background: var(--fg); opacity: 0.25;
  min-width: 2px; border-radius: 1px 1px 0 0;
  transition: height .6s ease, opacity .6s ease;
}
.agent-bars .bar.on { background: var(--accent); opacity: 0.95; }

/* Hover: slow reveal corner arrow */
.agent .open {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 11px;
  width: 26px; height: 26px; border: 1px solid var(--line);
  display: grid; place-items: center; border-radius: 999px;
  color: var(--fg-dim); transition: all .2s;
  opacity: 0; transform: translate(4px, -4px);
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.agent:hover .open { opacity: 1; transform: translate(0, 0); color: var(--fg); border-color: var(--line-strong); }


/* ─── How it works ─── */
.how { padding: 140px 0; border-bottom: 1px solid var(--line); }
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }
.step {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step .num { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.1em; }
.step .vis { height: 160px; margin: 24px 0 20px; border: 1px solid var(--line); position: relative; overflow: hidden; background: var(--bg-2); }
.step h3 { font-size: 22px; letter-spacing: -0.01em; font-weight: 500; margin-bottom: 8px; }
.step p { color: var(--fg-dim); font-size: 14.5px; line-height: 1.5; max-width: 34ch; }
@media (min-width: 900px) { .step { padding: 40px 32px; } .step:first-child { padding-left: 0; } }

/* ─── Case studies ─── */
.cases { padding: 120px 0; border-bottom: 1px solid var(--line); }
.case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 56px;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
.case {
  border: 1px solid var(--line); background: var(--bg-2);
  padding: 0; overflow: hidden; position: relative;
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.case:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.case .thumb { aspect-ratio: 4/3; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.case .meta { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.case .company { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.case h4 { margin-top: 10px; font-size: 19px; letter-spacing: -0.01em; font-weight: 500; }
.case .stat-row {
  display: flex; gap: 20px; margin-top: auto; padding-top: 20px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
}
.case .stat-row b { color: var(--fg); font-weight: 500; font-size: 15px; font-family: var(--font-display); letter-spacing: -0.02em; }
.case .stat-row .s { display: flex; flex-direction: column; gap: 2px; }

/* ─── Live demo mock ─── */
.demo { padding: 140px 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.demo-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.demo-head .lede { margin: 20px auto 0; }
.demo-window {
  max-width: 1200px; margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px; overflow: hidden;
  background: var(--bg);
  box-shadow: 0 80px 160px -60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.demo-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim);
}
.demo-bar .dots { display: flex; gap: 6px; }
.demo-bar .dots span { width: 10px; height: 10px; border-radius: 999px; background: var(--fg-faint); }
.demo-body { display: grid; grid-template-columns: 220px 1fr 280px; min-height: 480px; }
@media (max-width: 900px) { .demo-body { grid-template-columns: 1fr; } .demo-body > aside, .demo-body > .demo-side { display: none; } }
.demo-body aside {
  border-right: 1px solid var(--line); padding: 20px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.demo-body aside h5 {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-dim); margin: 16px 6px 8px; font-weight: 400;
}
.demo-body aside h5:first-child { margin-top: 0; }
.demo-body aside .item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px;
  font-size: 13px; color: var(--fg-dim); cursor: pointer;
}
.demo-body aside .item.active { color: var(--fg); background: color-mix(in oklab, var(--fg) 7%, transparent); }
.demo-body aside .item .pip { width: 6px; height: 6px; border-radius: 999px; background: var(--fg-faint); }
.demo-body aside .item.run .pip { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity: 1; } 50%{ opacity: 0.4; } }

.demo-main { padding: 24px 28px; min-width: 0; }
.demo-main .topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); }
.demo-main h4 { font-size: 22px; letter-spacing: -0.01em; font-weight: 500; margin-bottom: 4px; }
.demo-main .sub { color: var(--fg-dim); font-size: 13.5px; margin-bottom: 22px; }

.task-list { display: flex; flex-direction: column; gap: 8px; }
.task {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13.5px;
  transition: border-color .25s, background .25s;
}
.task .check {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.2px solid var(--fg-faint);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px; color: transparent;
}
.task.done .check { background: var(--accent); border-color: var(--accent); color: #000; }
.task.done { opacity: 0.6; }
.task.run { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, transparent); }
.task .who { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-dim); letter-spacing: 0.06em; }
.task .t { color: var(--fg); }

.demo-side { border-left: 1px solid var(--line); padding: 20px 20px; display: flex; flex-direction: column; gap: 22px; }
.demo-side .mini-title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.demo-side .activity { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; color: var(--fg-dim); }
.demo-side .activity .line { display: flex; gap: 10px; align-items: baseline; }
.demo-side .activity .line .t { color: var(--fg); font-family: var(--font-mono); font-size: 10.5px; min-width: 46px; }
.demo-side .chart { height: 90px; border: 1px solid var(--line); background: var(--bg-2); position: relative; overflow: hidden; }

/* ─── Logo wall ─── */
.logos { padding: 100px 0; border-bottom: 1px solid var(--line); text-align: center; }
.logos h2 { font-size: clamp(26px, 3vw, 44px); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 56px; color: var(--fg-dim); }
.logos h2 b { color: var(--fg); font-weight: 500; }
.logo-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.logo {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 20px;
  display: grid; place-items: center;
  height: 110px;
  color: var(--fg-dim);
  font-weight: 500;
  transition: color .2s, background .2s;
}
.logo:hover { color: var(--fg); background: var(--bg-2); }
@media (max-width: 900px) { .logo-row { grid-template-columns: repeat(3, 1fr); } }

/* ─── Testimonials ─── */
.testimonials { padding: 140px 0; border-bottom: 1px solid var(--line); }
.test-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px;
}
@media (max-width: 900px) { .test-grid { grid-template-columns: 1fr; } }
.quote {
  border: 1px solid var(--line); padding: 28px 26px 24px;
  display: flex; flex-direction: column; gap: 20px; background: var(--bg-2);
  min-height: 280px;
}
.quote p { font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }
.quote .who { margin-top: auto; display: flex; gap: 14px; align-items: center; font-size: 13px; }
.quote .avatar { width: 36px; height: 36px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: #000; font-weight: 600; }
.quote .who b { display: block; font-weight: 500; }
.quote .who span { color: var(--fg-dim); }

/* ─── Footer CTA ─── */
.cta-section {
  padding: 160px 0 120px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.5; }
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { font-size: clamp(44px, 7vw, 120px); letter-spacing: -0.04em; line-height: 0.92; font-weight: 500; max-width: 16ch; margin: 0 auto; }
.cta-section .buttons { margin-top: 48px; display: inline-flex; gap: 10px; }

footer {
  padding: 60px 0 40px;
  background: var(--bg);
}
footer .row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); }
footer .row a:hover { color: var(--fg); }
footer .legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); flex-wrap: wrap; gap: 10px; }
footer .big-mark {
  font-size: clamp(120px, 22vw, 320px);
  letter-spacing: -0.06em; line-height: 0.9; font-weight: 500;
  margin-top: 60px;
  color: var(--fg);
  user-select: none;
}

/* ─── Ambient grid background ─── */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 30%, black, transparent 80%);
}

/* ─── Tweaks panel ─── */
.tweaks {
  position: fixed; right: 14px; bottom: 14px; z-index: 100;
  width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px 16px 14px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim);
  display: none;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.tweaks[data-open="1"] { display: block; }
.tweaks h5 { color: var(--fg); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; font-weight: 500; display: flex; justify-content: space-between; }
.tweaks .row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); gap: 8px; }
.tweaks .row:first-of-type { border-top: 0; }
.tweaks .swatches { display: flex; gap: 6px; }
.tweaks .swatch { width: 18px; height: 18px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; }
.tweaks .swatch.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--fg); }
.tweaks select, .tweaks .opt {
  background: var(--bg); color: var(--fg); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; border-radius: 6px;
}
.tweaks .opts { display: flex; gap: 4px; }
.tweaks .opt { cursor: pointer; }
.tweaks .opt.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Section spacer label */
.sec-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-dim); display: flex; justify-content: space-between;
  padding: 18px 0; border-top: 1px solid var(--line);
  margin-bottom: 40px;
}

/* Motion-safe */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition: none !important; }
}
