/* Provable — sophisticated editorial palette
   Warm cream + deep amber + forest green
   Intentionally NOT the typical AI purple/cyan */

:root {
  /* Background — warm cream, not stark white */
  --bg: #faf8f3;
  --bg-soft: #f5f2ea;
  --bg-card: #ffffff;
  --bg-deep: #2a2520;

  /* Text — warm dark brown-black, not cold gray */
  --text: #1f1a14;
  --text-dim: #5a5048;
  --text-faint: #8a7f74;

  /* Borders — warm gray */
  --border: #e8e2d6;
  --border-strong: #d8d0c0;

  /* Primary accent — deep amber/walnut (editorial, scholarly, NOT AI-purple) */
  --accent: #92400e;
  --accent-hi: #b45309;
  --accent-soft: rgba(146, 64, 14, 0.07);

  /* Secondary accent — forest green (for verified states) */
  --verified: #15803d;
  --verified-soft: rgba(21, 128, 61, 0.08);

  /* Status colors */
  --amber: #b45309;
  --amber-soft: rgba(180, 83, 9, 0.08);
  --red: #b91c1c;
  --red-soft: rgba(185, 28, 28, 0.07);

  /* Shadows — warm */
  --shadow-sm: 0 1px 2px rgba(31, 26, 20, 0.04);
  --shadow-md: 0 4px 16px rgba(31, 26, 20, 0.06), 0 1px 3px rgba(31, 26, 20, 0.03);
  --shadow-lg: 0 16px 50px rgba(31, 26, 20, 0.08), 0 3px 10px rgba(31, 26, 20, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
.container { max-width: 1200px; margin: 0 auto; padding: 32px 36px 120px; }

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ─── TOP BAR ──────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.4px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link { color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: color 0.2s; }
.nav-link:hover { color: var(--text); }
.nav-link.cta {
  background: var(--text); color: var(--bg);
  padding: 11px 19px; border-radius: 10px;
  font-weight: 600;
}
.nav-link.cta:hover { background: var(--accent); color: white; }

/* ─── HERO ──────────────────────────────────────── */
.hero {
  padding: 24px 0 96px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  max-width: none;
  text-align: left;
  align-items: center;
  padding: 16px 0 56px;
}
.hero-left { display: flex; flex-direction: column; align-items: flex-start; }
.hero-left h1 { text-align: left; }
.hero-left .sub { text-align: left; margin: 0 0 36px; }
.hero-left .hero-cta { justify-content: flex-start; margin-bottom: 28px; }
.hero-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.hero-mode {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hero-mode:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.hero-mode-alt:hover { border-color: var(--verified); }
.hm-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 6px;
}
.hero-mode-alt .hm-tag { color: var(--verified); }
.hm-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  margin-bottom: 4px;
}
.hm-body {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-dim);
}
.hero-right { position: relative; }
.hero-code {
  background: #1f1a14;
  border-radius: 14px;
  box-shadow:
    0 32px 64px -16px rgba(31, 26, 20, 0.28),
    0 0 0 1px #2a2520;
  overflow: hidden;
  transform: rotate(-0.6deg);
  transition: transform 0.4s ease;
}
.hero-code:hover { transform: rotate(0deg) translateY(-2px); }
.hero-code .code-bar {
  background: #15110c;
  padding: 12px 16px;
  border-bottom: 1px solid #2a2520;
  display: flex; align-items: center; gap: 8px;
}
.hero-code .code-file {
  margin-left: 12px;
  color: #8a7f74;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}
.hero-code pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
}
.hero-code code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.85;
  color: #e8e2d6;
}
.hero-code .kw  { color: #d97706; font-weight: 600; }
.hero-code .str { color: #84cc16; }
.hero-code .cm  { color: #8a7f74; font-style: italic; }
.hero-code-foot {
  background: #15110c;
  padding: 12px 16px;
  border-top: 1px solid #2a2520;
  display: flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #8a7f74;
}
.hcf-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse-dot 2s infinite;
}
@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; padding: 24px 0 56px; }
  .hero-code { transform: none; }
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: white; color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
  margin-bottom: 36px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.badge .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(146, 64, 14, 0.5);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(146, 64, 14, 0.45); }
  100% { box-shadow: 0 0 0 8px rgba(146, 64, 14, 0); }
}
h1 {
  font-size: 84px; line-height: 0.98; font-weight: 800;
  letter-spacing: -3.2px; margin-bottom: 32px;
  color: var(--text);
}
h1 .accent { color: var(--accent); font-style: italic; font-weight: 800; }

.sub {
  font-size: 20px; color: var(--text-dim);
  max-width: 720px; line-height: 1.55; margin: 0 auto 40px;
  font-weight: 400;
}
.hero-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
}
.cta-primary {
  background: var(--text); color: var(--bg);
  padding: 14px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  transition: all 0.2s;
}
.cta-primary:hover {
  background: var(--accent); color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(146, 64, 14, 0.25);
}
.cta-secondary {
  background: transparent; color: var(--text);
  padding: 14px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  border: 1px solid var(--border-strong);
  transition: all 0.2s;
}
.cta-secondary:hover {
  background: white;
  border-color: var(--text);
}
.hero-meta {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}
.meta-item { display: flex; align-items: center; gap: 8px; }
.m-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ─── METRICS ROW (Vercel-style outcome strip) ─────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 8px;
  margin: 0 0 64px;
  box-shadow: var(--shadow-sm);
}
.m-cell {
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid var(--border);
}
.m-cell:last-child { border-right: 0; }
.m-num {
  font-family: 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}
.m-lbl {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.1px;
}
@media (max-width: 880px) {
  .metrics { grid-template-columns: repeat(2, 1fr); padding: 24px 8px; }
  .m-cell:nth-child(2) { border-right: 0; }
  .m-cell:nth-child(1), .m-cell:nth-child(2) { border-bottom: 1px solid var(--border); padding-bottom: 22px; }
  .m-cell:nth-child(3), .m-cell:nth-child(4) { padding-top: 22px; }
  .m-num { font-size: 36px; }
}

/* ─── HOW IT WORKS — split layout (Stripe/Modal-style) ─────────── */
.how-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  margin: 0 0 64px;
}
.how-left .section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.how-left h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0 0 36px;
}
.how-step {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.how-step:last-child { border-bottom: 1px solid var(--border); }
.how-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  min-width: 28px;
  padding-top: 4px;
}
.how-step-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 6px;
}
.how-step-body {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.how-window {
  background: #1f1a14;
  border-radius: 14px;
  box-shadow:
    0 24px 60px -16px rgba(31, 26, 20, 0.32),
    0 0 0 1px #2a2520;
  overflow: hidden;
}
.how-window .code-bar {
  background: #15110c;
  padding: 12px 16px;
  border-bottom: 1px solid #2a2520;
  display: flex; align-items: center; gap: 8px;
}
.how-window .code-file {
  margin-left: 12px;
  color: #8a7f74;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}
.how-term {
  padding: 22px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #e8e2d6;
}
.ht-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-blank { line-height: 0.6; }
.ht-prompt { color: #d97706; font-weight: 600; margin-right: 8px; }
.ht-out { color: #8a7f74; padding-left: 2px; }
.ht-ok { color: #4ade80; margin-left: 6px; }
.ht-answered { color: #e8e2d6; }
.ht-abstained { color: #e8e2d6; }
.ht-vtag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  background: rgba(74, 222, 128, 0.18);
  color: #4ade80;
}
.ht-vtag-amber {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}
@media (max-width: 880px) {
  .how-split { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
  .how-left h2 { font-size: 32px; letter-spacing: -1.1px; }
  .how-term { font-size: 12px; padding: 16px 18px; }
}

/* ─── AT SCALE (Stripe-style big numbers card — light) ─────────── */
.atscale {
  margin: 0 0 64px;
  padding: 36px 32px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%,
                    rgba(146, 64, 14, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 100%,
                    rgba(21, 128, 61, 0.03) 0%, transparent 60%),
    white;
  color: var(--text);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.as-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.as-cell { position: relative; }
.as-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -24px; top: 14px; bottom: 14px;
  width: 1px;
  background: var(--border);
}
.as-num {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1;
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  white-space: nowrap;
}
.as-lbl {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.1px;
}
@media (max-width: 880px) {
  .atscale { padding: 24px 18px; margin-bottom: 48px; }
  .as-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .as-cell:nth-child(2)::after { display: none; }
  .as-num { font-size: 32px; letter-spacing: -1.2px; }
}
@media (max-width: 480px) {
  .as-row { grid-template-columns: 1fr; gap: 18px; }
  .as-cell::after { display: none; }
}

/* ─── FILE-TYPES STRIP ─────────── */
.ftypes { margin: 0 0 64px; }
.ft-line {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.ft-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  padding: 22px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.ft-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.ft-ext {
  width: 52px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
/* Document "page" lines drawn inside each tile via gradient stack */
.ft-ext::before {
  content: '';
  position: absolute;
  top: 9px; left: 8px; right: 8px;
  height: 22px;
  background:
    linear-gradient(to bottom,
      rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.42) 14%,
      transparent 14%, transparent 28%,
      rgba(255,255,255,0.42) 28%, rgba(255,255,255,0.42) 42%,
      transparent 42%, transparent 56%,
      rgba(255,255,255,0.42) 56%, rgba(255,255,255,0.42) 70%,
      transparent 70%, transparent 84%,
      rgba(255,255,255,0.42) 84%, rgba(255,255,255,0.42) 98%);
  border-radius: 2px;
}
.ft-ext-pdf  { background: #b91c1c; }
.ft-ext-md   { background: #15803d; }
.ft-ext-txt  { background: #5a5048; }
.ft-ext-doc  { background: #1e40af; }
.ft-ext-html { background: #c2410c; }
.ft-ext-json { background: #6d28d9; }
.ft-ext-case { background: #92400e; }
.ft-ext-csv  { background: #0e7490; }
.ft-tile span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}
@media (max-width: 720px) {
  .ftypes { margin-bottom: 64px; }
  .ft-row { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 18px 14px; }
  .ft-ext { width: 44px; height: 50px; font-size: 10px; }
  .ft-ext::before { top: 7px; left: 6px; right: 6px; height: 18px; }
}

/* ─── ARCHITECTURE DIAGRAM ─────────── */
.arch { margin: 0 0 64px; }
.arch .section-head { text-align: center; margin-bottom: 36px; }
.arch .section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.arch .section-head h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  max-width: 740px;
  margin: 0 auto 16px;
}
.arch .section-head .section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}
.arch-diagram {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%,
                    rgba(146, 64, 14, 0.05) 0%, transparent 60%),
    white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 32px 28px;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}
.arch-diagram svg {
  width: 100%;
  max-width: 980px;
  height: auto;
  display: block;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .arch .section-head h2 { font-size: 30px; letter-spacing: -1px; }
  .arch-diagram { padding: 16px 8px; }
}

/* ─── CODE SECTION (Vercel-style code preview) ─────────── */
.code-section { margin: 0 0 64px; scroll-margin-top: 32px; }
.code-head { text-align: center; margin-bottom: 36px; }
.code-head .section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.code-head h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  max-width: 760px;
  margin: 0 auto 16px;
}
.code-head .section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}
.code-block {
  background: #1f1a14;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid #2a2520;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #15110c;
  border-bottom: 1px solid #2a2520;
}
.code-dot {
  width: 11px; height: 11px; border-radius: 50%;
  display: inline-block;
}
.code-dot.r { background: #ff5f57; }
.code-dot.y { background: #febc2e; }
.code-dot.g { background: #28c840; }
.code-file {
  margin-left: 14px;
  color: #8a7f74;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
}
.code-block pre {
  margin: 0;
  padding: 28px 32px;
  overflow-x: auto;
  display: none;
}
.code-block pre.active { display: block; }
.code-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.75;
  color: #e8e2d6;
}
.code-block .kw  { color: #d97706; font-weight: 600; }
.code-block .str { color: #84cc16; }
.code-block .cm  { color: #8a7f74; font-style: italic; }
.code-tabs {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.code-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #8a7f74;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}
.code-tab:hover { color: #e8e2d6; }
.code-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}
@media (max-width: 720px) {
  .code-head h2 { font-size: 30px; letter-spacing: -1px; }
  .code-block pre { padding: 20px; }
  .code-block code { font-size: 12.5px; }
  .code-tabs { flex-wrap: wrap; }
  .code-tab { font-size: 11.5px; padding: 4px 9px; }
}

/* ─── AGENTS — retrieval layer for AI agents ─────────── */
.agents {
  margin: 0 0 64px;
  padding: 64px 56px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(146, 64, 14, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(21, 128, 61, 0.06) 0%, transparent 60%),
    linear-gradient(160deg, #fafaf6 0%, #f3efe5 100%);
  border: 1px solid var(--border);
}
.agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.agents-left .section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.agents-left h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.3px;
  line-height: 1.1;
  margin-bottom: 22px;
}
.agents-left h2 .accent { color: var(--accent); font-style: italic; font-weight: 800; }
.agents-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 32px;
}

/* Funnel: 5000 → 47 → 1 */
.agents-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.ag-stat { text-align: center; }
.ag-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1;
}
.ag-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ag-arrow { color: var(--accent); font-size: 18px; }
.ag-stat-final .ag-stat-num {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.agents-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ag-feat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.ag-feat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--accent);
  margin-bottom: 4px;
}
.ag-feat-lbl {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.35;
}

/* Right column: flow diagram */
.agents-right { position: relative; }
.ag-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ag-step {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ag-step-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ag-step-agent {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border-strong);
}
.ag-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.ag-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 7px;
  border-radius: 4px;
}
.ag-step-agent .ag-step-num { background: var(--verified-soft); color: var(--verified); }
.ag-step-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text);
  flex: 1;
}
.ag-step-agent .ag-step-label { color: var(--text); }
.ag-step-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
}
.ag-step-agent .ag-step-count { color: var(--text-dim); }
.ag-step-count-hi { color: var(--verified); font-weight: 700; }

/* Corpus tiles: real-looking document filenames showing the haystack */
.ag-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.ag-tile {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-tile span {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 1px 4px;
  border-radius: 2px;
  background: var(--accent);
  color: white;
  flex-shrink: 0;
}
.ag-tile-mute { opacity: 0.42; }
.ag-tile-mute span { background: var(--text-faint); }
.ag-tile-more {
  font-style: italic;
  color: var(--text-faint);
  background: transparent;
  border: 1px dashed var(--border);
  justify-content: center;
}

/* Provable: top 47 chunks with actual text excerpts */
.ag-chunks { display: flex; flex-direction: column; gap: 7px; }
.ag-chunk {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 11px;
}
.ag-chunk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.ag-chunk-src {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text);
}
.ag-chunk-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--verified);
}
.ag-chunk-text {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-dim);
  font-style: italic;
}
.ag-chunk-more {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  font-style: italic;
  background: transparent;
  border: 1px dashed var(--border);
  padding: 6px 10px;
}

/* Agent output */
.ag-output {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  position: relative;
  padding-left: 0;
}
.ag-output-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  background: var(--verified-soft);
  color: var(--verified);
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 8px;
}
.ag-output code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
}
.ag-output-proof {
  display: block;
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--verified);
  letter-spacing: 0.3px;
}

.ag-arr-v {
  text-align: center;
  font-size: 16px;
  color: var(--accent);
  font-weight: 400;
  opacity: 0.6;
}

@media (max-width: 880px) {
  .agents { padding: 40px 24px; margin-bottom: 64px; }
  .agents-grid { grid-template-columns: 1fr; gap: 36px; }
  .agents-left h2 { font-size: 30px; letter-spacing: -1px; }
  .agents-stats {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 18px;
    gap: 8px;
  }
  .agents-stats .ag-arrow { display: none; }
  .ag-stat-num { font-size: 22px; }
  .agents-features { grid-template-columns: 1fr; }
  /* Corpus tile grid: 3-col → 2-col → 1-col as screen narrows */
  .ag-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .ag-tiles { grid-template-columns: 1fr; }
  .agents-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ─── USE CASES — visual document stacks per vertical ─────────── */
.use-cases { margin: 0 0 64px; scroll-margin-top: 32px; }
.use-cases .section-head { text-align: center; margin-bottom: 40px; }
.use-cases .section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.use-cases .section-head h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0;
}
.uc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.uc-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.uc-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

/* Per-vertical accent stripe (top border) */
.uc-medical { border-top: 3px solid #b91c1c; }
.uc-legal   { border-top: 3px solid #92400e; }
.uc-finance { border-top: 3px solid #15803d; }
.uc-gov     { border-top: 3px solid #1e40af; }

/* Document stack — visual proof of what gets indexed */
.uc-stack {
  position: relative;
  height: 200px;
  padding: 28px 28px 0;
  background:
    radial-gradient(ellipse 80% 90% at 50% 100%,
                    rgba(31, 26, 20, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-soft) 0%, white 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.uc-doc {
  position: absolute;
  width: 184px;
  background: white;
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(31, 26, 20, 0.05),
    0 6px 16px -6px rgba(31, 26, 20, 0.18),
    0 0 0 1px var(--border);
  padding: 10px 12px 12px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* base (front) doc */
.uc-doc:not(.uc-doc-2):not(.uc-doc-3) {
  top: 36px;
  left: 28px;
  z-index: 3;
  transform: rotate(-2deg);
}
/* middle doc */
.uc-doc-2 {
  top: 26px;
  left: 96px;
  z-index: 2;
  transform: rotate(3deg);
  opacity: 0.94;
}
/* back doc */
.uc-doc-3 {
  top: 18px;
  left: 162px;
  z-index: 1;
  transform: rotate(7deg);
  opacity: 0.85;
}
.uc-card:hover .uc-doc:not(.uc-doc-2):not(.uc-doc-3) { transform: rotate(-4deg) translateY(-3px); }
.uc-card:hover .uc-doc-2 { transform: rotate(5deg) translate(8px, -4px); }
.uc-card:hover .uc-doc-3 { transform: rotate(10deg) translate(16px, -6px); }

.uc-doc-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 7px;
}
.uc-doc-pdf  .uc-doc-tag { background: #b91c1c; }
.uc-doc-md   .uc-doc-tag { background: #15803d; }
.uc-doc-txt  .uc-doc-tag { background: #5a5048; }
.uc-doc-doc  .uc-doc-tag { background: #1e40af; }
.uc-doc-case .uc-doc-tag { background: #92400e; }
.uc-doc-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}
.uc-doc-lines { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.uc-doc-lines span {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
}
.uc-doc-lines span:nth-child(1) { width: 100%; }
.uc-doc-lines span:nth-child(2) { width: 86%; }
.uc-doc-lines span:nth-child(3) { width: 94%; }
.uc-doc-lines span:nth-child(4) { width: 72%; }
.uc-doc-foot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  color: var(--verified);
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

/* Body below the stack */
.uc-body { padding: 24px 26px 28px; flex: 1; }
.uc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.uc-vert {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.uc-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  background: var(--bg-soft);
  color: var(--text-dim);
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.uc-medical .uc-tag { color: #b91c1c; background: rgba(185, 28, 28, 0.06); border-color: rgba(185, 28, 28, 0.18); }
.uc-legal   .uc-tag { color: #92400e; background: var(--accent-soft); border-color: rgba(146, 64, 14, 0.2); }
.uc-finance .uc-tag { color: #15803d; background: var(--verified-soft); border-color: rgba(21, 128, 61, 0.2); }
.uc-gov     .uc-tag { color: #1e40af; background: rgba(30, 64, 175, 0.06); border-color: rgba(30, 64, 175, 0.18); }
.uc-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
}
.uc-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
@media (max-width: 720px) {
  .use-cases .section-head h2 { font-size: 30px; letter-spacing: -1px; }
  .uc-grid { grid-template-columns: 1fr; gap: 14px; }
  .uc-stack { height: 180px; padding: 24px 22px 0; }
  .uc-doc { width: 160px; }
  .uc-doc:not(.uc-doc-2):not(.uc-doc-3) { left: 22px; }
  .uc-doc-2 { left: 78px; }
  .uc-doc-3 { left: 134px; }
  .uc-body { padding: 22px 22px 24px; }
}

/* ─── SECURITY (single card, tight) ─────────── */
.security { margin: 0 0 64px; }
.sec-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.sec-card h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}
.sec-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.sec-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.sec-pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--verified);
  box-shadow: 0 0 0 3px var(--verified-soft);
}
@media (max-width: 720px) {
  .sec-card { padding: 28px 22px; }
  .sec-card h2 { font-size: 22px; letter-spacing: -0.6px; }
  .sec-pill { font-size: 12.5px; padding: 8px 14px; }
}

/* ─── COMPARE (two verdict types side-by-side) ─────────── */
.compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 0 0 64px;
}
.cmp-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.cmp-answered { border-top: 3px solid var(--verified); }
.cmp-abstained { border-top: 3px solid var(--amber); }
.cmp-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.cmp-answered .cmp-tag { color: var(--verified); }
.cmp-abstained .cmp-tag { color: var(--amber); }
.cmp-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  font-style: italic;
}
.cmp-a {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 18px;
  flex: 1;
}
.cmp-hl { color: var(--text); font-weight: 600; }
.cmp-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cmp-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--verified-soft);
  color: var(--verified);
}
.cmp-pill-amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.cmp-proof {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 720px) {
  .compare { grid-template-columns: 1fr; }
}

/* ─── DEMO SECTION HEAD ─────────── */
.demo-head { text-align: center; margin-bottom: 32px; }
.demo-head .section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.demo-head h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0 auto 14px;
}
.demo-head .section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .demo-head h2 { font-size: 30px; letter-spacing: -1px; }
}

/* ─── DEMO CARD ──────────────────────────────────────── */
.demo { margin-top: 24px; scroll-margin-top: 32px; }
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.demo-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap; gap: 14px;
}
.demo-stats { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ds { display: flex; align-items: baseline; gap: 7px;
  font-family: 'JetBrains Mono'; font-size: 13px; }
.ds .v { color: var(--text); font-weight: 700; font-size: 14px; }
.ds .l { color: var(--text-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; }
.ds-sep { width: 1px; height: 14px; background: var(--border); }

.demo-backend {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono'; font-size: 11px;
  color: var(--text-faint);
}
.be-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-faint); transition: background 0.3s;
}
.be-dot.online { background: var(--verified);
  box-shadow: 0 0 6px rgba(21, 128, 61, 0.5); }
.be-dot.offline { background: var(--red); }
.be-dot.standby { background: var(--accent);
  box-shadow: 0 0 6px rgba(146, 64, 14, 0.45); }

.search {
  display: flex; gap: 6px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 5px;
  transition: all 0.2s;
}
.search:focus-within {
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--text); padding: 18px 22px; font-size: 17px;
  font-family: inherit; font-weight: 400;
}
.search input::placeholder { color: var(--text-faint); }
.search button {
  background: var(--text);
  color: var(--bg);
  border: 0; border-radius: 10px;
  padding: 0 26px; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.search button:hover {
  background: var(--accent); color: white;
}
.search button:disabled { opacity: 0.5; cursor: not-allowed; }

.suggestions { margin-top: 20px; }
.sg-label {
  font-size: 11px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.7px;
  margin-bottom: 12px; font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 10px 15px; border-radius: 999px;
  font-size: 13px; cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.chip:hover {
  background: white; color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.chip .domain {
  color: var(--text-faint); margin-right: 7px;
  font-family: 'JetBrains Mono'; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600;
}

.results { margin-top: 32px; min-height: 200px; }

/* ─── PROGRESS ──────────────────────────────────────── */
.progress {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 26px;
}
.progress .step {
  display: flex; align-items: center; gap: 14px; padding: 7px 0;
  color: var(--text-faint); font-size: 14px;
  transition: color 0.3s;
}
.progress .step.done { color: var(--verified); }
.progress .step.active { color: var(--text); font-weight: 500; }
.progress .step .dot-p {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong);
  transition: all 0.3s;
}
.progress .step.active .dot-p {
  background: var(--accent); animation: dot-pulse 1.1s infinite;
}
.progress .step.done .dot-p { background: var(--verified); }
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(146, 64, 14, 0.4); }
  100% { box-shadow: 0 0 0 10px rgba(146, 64, 14, 0); }
}

/* ─── RESULT CARD ──────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  animation: fade-in 0.4s ease-out;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.verdict {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 20px;
}
.verdict.answered { background: var(--verified-soft); color: var(--verified); }
.verdict.abstained { background: var(--amber-soft); color: var(--amber); }
.verdict .ind { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.answer-text {
  font-size: 20px; line-height: 1.55;
  color: var(--text);
  margin: 10px 0 26px;
  font-weight: 400;
}

/* ═══ NEW TIGHT RESULT CARD (Linear/Stripe-tier compact) ═══ */
.r-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
  margin-top: 24px;
  box-shadow: var(--shadow-md);
  animation: r-fadein 0.4s ease-out;
}
@keyframes r-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header row: verdict tag + inline meta */
.r-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.r-verdict {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 7px 13px;
  border-radius: 999px;
}
.r-answered { background: var(--verified-soft); color: var(--verified); }
.r-abstained { background: var(--amber-soft); color: var(--amber); }
.r-standby { background: var(--accent-soft); color: var(--accent); }
.r-answer-standby { border-left-color: var(--accent); color: var(--text-dim); }
.r-card-standby { border-top: 3px solid var(--accent); }
.r-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4) inset;
}
.r-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
}
.r-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.5;
}

/* Answer text — confident, generous line-height */
.r-answer {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 26px;
  font-weight: 450;
  letter-spacing: -0.2px;
  padding-left: 18px;
  border-left: 3px solid var(--verified);
}
.r-answer-honest {
  color: var(--text-dim);
  border-left-color: var(--amber);
}

/* Funnel: searched → ranked → cited */
.r-funnel {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 22px;
  margin-bottom: 24px;
}
.r-fn-step { text-align: center; }
.r-fn-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}
.r-fn-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.r-fn-arr {
  color: var(--text-faint);
  font-size: 18px;
  font-weight: 300;
}
.r-fn-step-final .r-fn-num {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.src-page {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-faint);
  font-weight: 500;
  margin-left: 8px;
}
@media (max-width: 720px) {
  .r-funnel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .r-fn-arr { transform: rotate(90deg); justify-self: center; }
  .r-answer { padding-left: 14px; font-size: 16.5px; }
}

/* Sources — compact horizontal rows with relevance bars */
.r-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}
.src {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-soft);
}
.src:last-child { border-bottom: 0; }
.src-bar {
  width: 6px; height: 32px;
  background: var(--bg-soft);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.src-fill {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, var(--verified), #22c55e);
  border-radius: 3px;
}
.src-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.src-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 600;
  min-width: 32px;
  text-align: right;
}

/* Proof block — quiet, mono */
.r-proof {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
}
.r-proof-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.r-proof-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: var(--accent);
  background: white;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.r-proof-sig {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.r-actions {
  display: flex;
  gap: 8px;
}
.r-btn {
  flex: 1;
  background: white;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 11px 16px;
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.r-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.r-btn-verify:hover { border-color: var(--verified); color: var(--verified); }
.r-btn-tamper:hover { border-color: var(--red); color: var(--red); }
.r-btn.success {
  background: var(--verified);
  border-color: var(--verified);
  color: white;
}
.r-btn.fired {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.r-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Tamper result — appears below buttons */
#tamperResult:empty { display: none; }
.tamper-result {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--red-soft);
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: 10px;
  animation: r-fadein 0.4s ease-out;
}
.tamper-result .heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
}
.tamper-result .body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* Abstention gap — three rows of tagged chips */
.r-gap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--amber-soft);
  border: 1px solid rgba(180, 83, 9, 0.15);
  border-radius: 12px;
  padding: 16px 18px;
}
.r-gap-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.r-gap-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: var(--amber);
  text-transform: uppercase;
  min-width: 64px;
}
.r-gap-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: white;
  padding: 4px 11px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.r-gap-tag-mute { color: var(--text-faint); font-weight: 500; }
.r-gap-tag-want { color: var(--verified); border-color: rgba(21, 128, 61, 0.25); }

/* Progress steps */
.r-prog {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.r-prog-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-faint);
  transition: color 0.2s;
}
.r-prog-step .r-prog-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}
.r-prog-step.active {
  color: var(--accent);
}
.r-prog-step.active .r-prog-dot {
  opacity: 1;
  animation: r-prog-pulse 1s infinite;
}
.r-prog-step.done {
  color: var(--verified);
}
.r-prog-step.done .r-prog-dot {
  opacity: 1;
  animation: none;
}
@keyframes r-prog-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.4); }
}

@media (max-width: 720px) {
  .r-card { padding: 20px 22px; }
  .r-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .r-answer { font-size: 16.5px; }
  .r-actions { flex-direction: column; }
  .r-proof-head { flex-direction: column; align-items: flex-start; }
  .r-proof-sig { width: 100%; }
  .r-prog { flex-direction: column; gap: 12px; padding: 16px 18px; }
}

/* ─── ANALYSIS GRID ──────────────────────────────────────── */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.metric-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.metric-label {
  font-size: 11px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.6px;
  font-weight: 600; margin-bottom: 10px;
}
.metric-value {
  font-family: 'JetBrains Mono'; font-size: 30px;
  font-weight: 700; color: var(--text);
  line-height: 1;
  letter-spacing: -0.5px;
}
.metric-value .unit { font-size: 13px; color: var(--text-faint);
  font-weight: 500; margin-left: 4px; }
.metric-bar {
  height: 4px; background: var(--border); border-radius: 999px;
  margin-top: 12px; overflow: hidden;
}
.metric-fill {
  height: 100%; border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.metric-sub {
  font-size: 11px; color: var(--text-faint);
  margin-top: 10px;
}
@media (max-width: 720px) { .analysis-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── CITATIONS ──────────────────────────────────────── */
.citations { margin-top: 26px; }
.citations .title {
  font-size: 11px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.7px;
  margin-bottom: 14px; font-weight: 600;
}
.citation {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 18px 20px;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.citation:hover {
  background: white;
  transform: translateX(2px);
}
.citation .ch {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; gap: 12px; flex-wrap: wrap;
}
.citation .ch-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rank-badge {
  background: var(--accent); color: white;
  padding: 3px 10px; border-radius: 6px;
  font-family: 'JetBrains Mono'; font-size: 11px;
  font-weight: 700;
}
.rank-badge.rank-1 { background: var(--accent); }
.rank-badge.rank-2 { background: var(--text); }
.rank-badge.rank-3 { background: var(--text-dim); }
.citation .id {
  font-family: 'JetBrains Mono'; font-size: 12px;
  color: var(--accent); font-weight: 600;
}
.citation .domain-tag {
  background: white; color: var(--text-dim);
  padding: 3px 9px; border-radius: 6px; font-size: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  font-family: 'JetBrains Mono';
  border: 1px solid var(--border);
}
.relevance {
  display: flex; align-items: center; gap: 8px;
  min-width: 140px;
}
.rel-pct {
  font-family: 'JetBrains Mono'; font-size: 12px;
  color: var(--text-dim); font-weight: 600; min-width: 38px;
  text-align: right;
}
.rel-bar {
  flex: 1; height: 4px; background: var(--border);
  border-radius: 999px; overflow: hidden; min-width: 60px;
}
.rel-fill {
  height: 100%; background: var(--accent);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.excerpt { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ─── PROOF BOX ──────────────────────────────────────── */
.proof-box {
  margin-top: 26px; padding: 24px 26px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}
.proof-box .label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.7px;
  margin-bottom: 12px;
}
.proof-sig {
  font-family: 'JetBrains Mono'; font-size: 13px;
  color: var(--text); font-weight: 600;
  word-break: break-all; user-select: all;
  background: white;
  padding: 13px 15px; border-radius: 8px;
  border: 1px solid var(--border);
}
.proof-meta {
  font-size: 12px; color: var(--text-dim);
  margin-top: 12px; line-height: 1.5;
}
.proof-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 1.5px solid; border-radius: 10px; padding: 11px 19px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
  background: white;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-verify { color: var(--verified); border-color: var(--verified); }
.btn-verify:hover { background: var(--verified); color: white; }
.btn-verify.success {
  background: var(--verified); color: white;
  animation: success-pop 0.6s;
}
@keyframes success-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.btn-tamper { color: var(--red); border-color: var(--red); }
.btn-tamper:hover { background: var(--red); color: white; }
.btn-tamper.fired { background: var(--red); color: white; }

.tamper-result {
  margin-top: 14px; padding: 18px 20px;
  background: var(--red-soft);
  border: 1.5px solid var(--red);
  border-radius: 10px;
}
.tamper-result .heading {
  font-weight: 700; color: var(--red); margin-bottom: 8px; font-size: 14px;
}
.tamper-result .body {
  font-size: 13px; color: var(--text-dim); line-height: 1.55;
}
.tamper-result em { color: var(--red); font-style: normal; font-weight: 600; }

.meta-row {
  display: flex; flex-wrap: wrap; gap: 24px; padding-top: 22px;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono'; font-size: 12px;
  color: var(--text-dim);
}
.meta-row > div { display: flex; align-items: center; gap: 6px; }
.meta-row strong { color: var(--text); font-weight: 600; }

/* ─── ABSTENTION ──────────────────────────────────────── */
.abstention-block {
  background: var(--amber-soft);
  border: 1px solid rgba(180, 83, 9, 0.25);
  border-radius: 14px; padding: 24px; margin-top: 18px;
}
.abstention-block .h {
  color: var(--amber); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 14px;
}
.abstention-block .item {
  font-size: 14px; color: var(--text-dim);
  margin: 9px 0; line-height: 1.6;
}
.abstention-block .item strong { color: var(--text); font-weight: 600; }
.abstention-block .tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.abstention-block .tag {
  background: white; color: var(--amber);
  padding: 4px 12px; border-radius: 999px; font-size: 12px;
  font-family: 'JetBrains Mono'; font-weight: 600;
  border: 1px solid rgba(180, 83, 9, 0.3);
}

/* ─── VS BOX ──────────────────────────────────────── */
.vs-box {
  margin-top: 18px; padding: 20px 26px;
  background: var(--red-soft);
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: 14px;
  font-size: 14px; color: var(--text-dim); line-height: 1.6;
}
.vs-box .label {
  color: var(--red); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 8px;
}
.vs-box strong { color: var(--text); font-weight: 600; }
.vs-box em { color: var(--text); font-style: italic; font-weight: 500; }

/* ─── SECTION HEAD (shared) ──────────────────────────────────────── */
.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 48px;
}
.section-eyebrow {
  font-family: 'JetBrains Mono'; font-size: 12px;
  color: var(--accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.7px;
  display: inline-block; margin-bottom: 16px;
}
.section-head h2 {
  font-size: 44px; font-weight: 800; letter-spacing: -1.5px;
  color: var(--text); line-height: 1.05;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 17px; color: var(--text-dim);
  line-height: 1.55;
}

/* ─── HOW SECTION ──────────────────────────────────────── */
.how { margin-top: 128px; padding-top: 64px;
  border-top: 1px solid var(--border); scroll-margin-top: 32px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.2s;
}
.how-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.how-num {
  font-family: 'JetBrains Mono';
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.how-card h3 {
  font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
  letter-spacing: -0.4px;
}
.how-card p {
  font-size: 15px; color: var(--text-dim);
  line-height: 1.6;
}
@media (max-width: 720px) { .how-grid { grid-template-columns: 1fr; } }

/* ─── MATH SECTION ──────────────────────────────────────── */
.math { margin-top: 96px; padding-top: 64px;
  border-top: 1px solid var(--border); scroll-margin-top: 32px; }
.math-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.math-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: all 0.2s;
}
.math-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.math-year {
  font-family: 'JetBrains Mono';
  font-size: 11px; color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.math-author {
  font-size: 13px; color: var(--text);
  font-weight: 700; margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.math-title {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.55;
}
@media (max-width: 720px) { .math-grid { grid-template-columns: 1fr; } }

/* ─── CONTACT PAGE ─────────── */
.contact-hero {
  text-align: center;
  padding: 24px 0 64px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-hero h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2.4px;
  line-height: 1;
  margin: 24px 0 22px;
}
.contact-hero .sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  margin-bottom: 96px;
}
.contact-form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: var(--shadow-md);
}
.contact-form-card h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
}
.cf-sub {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.cf { display: flex; flex-direction: column; gap: 18px; }
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cf label { display: flex; flex-direction: column; gap: 7px; }
.cf label span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-dim);
}
.cf input, .cf select, .cf textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cf input:focus, .cf select:focus, .cf textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cf textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.cf-submit {
  background: var(--text);
  color: var(--bg);
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 6px;
}
.cf-submit:hover { background: var(--accent); transform: translateY(-1px); }
.cf-status {
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  margin-top: 2px;
  min-height: 18px;
}
.cf-status-ok { color: var(--verified); }

.contact-side {
  display: flex; flex-direction: column; gap: 16px;
}
.cs-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.cs-card-dark {
  background: var(--bg-deep);
  color: white;
  border-color: var(--bg-deep);
}
.cs-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.cs-eyebrow-dark { color: #fbbf24; }
.cs-link {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
  margin-bottom: 8px;
}
.cs-link-text { color: var(--text); }
.cs-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.cs-card-dark p { color: rgba(255,255,255,0.7); }
.cs-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}
.cs-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.cs-list li {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  padding-left: 18px;
  position: relative;
}
.cs-list li::before {
  content: '→';
  position: absolute;
  left: 0; top: 0;
  color: #fbbf24;
  font-weight: 700;
}
@media (max-width: 880px) {
  .contact-hero h1 { font-size: 44px; letter-spacing: -1.6px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; }
  .contact-form-card { padding: 28px 22px; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ─── CLOSING ──────────────────────────────────────── */
.closing {
  margin-top: 96px;
  padding: 80px 32px;
  text-align: center;
  background: var(--bg-soft);
  border-radius: 24px;
  border: 1px solid var(--border);
}
.closing h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  max-width: 820px;
  margin: 0 auto 20px;
}
.closing p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 32px;
}
.closing .cta-primary { display: inline-flex; }
.closing-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 720px) {
  .closing { padding: 56px 20px; }
  .closing h2 { font-size: 30px; letter-spacing: -1px; }
  .closing p { font-size: 16px; }
}

/* ─── SHOWCASE ──────────────────────────────────────── */
.showcase { margin-top: 96px; padding-top: 64px;
  border-top: 1px solid var(--border); }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sc-card {
  background: var(--bg-deep);
  color: var(--bg);
  border-radius: 16px;
  padding: 32px;
}
.sc-card .sc-num {
  font-family: 'JetBrains Mono';
  font-size: 56px; font-weight: 800;
  color: var(--bg);
  line-height: 1;
  letter-spacing: -2.5px;
  margin-bottom: 14px;
}
.sc-card .sc-label {
  font-size: 12px; font-weight: 600;
  color: rgba(250, 248, 243, 0.6);
  text-transform: uppercase; letter-spacing: 0.7px;
  margin-bottom: 14px;
}
.sc-card .sc-list { display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: rgba(250, 248, 243, 0.85);
  font-family: 'JetBrains Mono'; line-height: 1.5; }
.sc-card .sc-text {
  font-size: 13px; color: rgba(250, 248, 243, 0.75);
  line-height: 1.6;
}
@media (max-width: 720px) { .showcase-grid { grid-template-columns: 1fr; } }

/* ─── FOOTER ──────────────────────────────────────── */
.footer {
  margin-top: 128px; padding-top: 48px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
.footer-left p {
  font-size: 13px; color: var(--text-faint); margin-top: 12px;
}
.footer-right { display: flex; gap: 24px; }
.footer-right a {
  font-size: 13px; color: var(--text-dim); font-weight: 500;
}

/* ─── HERO BACKDROP (subtle warm gradient — Mistral/Modal cue) ─── */
body {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,
                    rgba(146, 64, 14, 0.045) 0%,
                    rgba(146, 64, 14, 0) 60%),
    var(--bg);
  background-attachment: fixed;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
/* Tablet (≤960px) */
@media (max-width: 960px) {
  .container { padding: 28px 28px 100px; }
  h1 { font-size: 64px; letter-spacing: -2.4px; }
  .section-head h2,
  .code-head h2,
  .arch .section-head h2,
  .use-cases .section-head h2,
  .demo-head h2 { font-size: 36px; letter-spacing: -1.2px; }
  .sec-left h2 { font-size: 30px; }
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { padding-top: 40px; margin-top: 96px; }
}

/* Phone (≤720px) */
@media (max-width: 720px) {
  .container { padding: 18px 18px 60px; }
  .topbar { padding-bottom: 32px; }

  /* Nav: hide secondary links, keep CTA visible */
  .nav { gap: 0; }
  .nav-link:not(.cta) { display: none; }
  .nav-link.cta { padding: 9px 14px; font-size: 13px; }

  /* Hero */
  .hero { padding: 12px 0 56px; }
  .badge { font-size: 11px; padding: 6px 13px; margin-bottom: 26px; }
  h1 { font-size: 42px; letter-spacing: -1.4px; line-height: 1.05; margin-bottom: 22px; }
  .sub { font-size: 16px; margin-bottom: 28px; }
  .hero-cta { gap: 10px; margin-bottom: 0; flex-direction: column; align-items: stretch; }
  .cta-primary, .cta-secondary { padding: 13px 22px; font-size: 14.5px; text-align: center; }

  /* Section heads */
  .section-head h2,
  .code-head h2,
  .arch .section-head h2,
  .use-cases .section-head h2,
  .demo-head h2 { font-size: 28px; letter-spacing: -1px; line-height: 1.1; }
  .section-sub, .arch .section-head .section-sub,
  .code-head .section-sub, .demo-head .section-sub { font-size: 15px; }

  /* Architecture diagram — scrollable on phone */
  .arch { margin-bottom: 64px; }
  .arch-diagram { padding: 12px 8px; }
  .arch-diagram svg { min-width: 720px; }

  /* Code block */
  .code-section { margin-bottom: 64px; }
  .code-bar { padding: 12px 14px; gap: 6px; flex-wrap: wrap; }
  .code-file { display: none; }
  .code-tabs { margin-left: 0; flex: 1; justify-content: flex-end; }

  /* Use cases */
  .use-cases { margin-bottom: 64px; }
  .uc-grid { grid-template-columns: 1fr; gap: 14px; }
  .uc-card { padding: 24px; }
  .uc-title { font-size: 19px; }

  /* Security */
  .security { margin-bottom: 64px; }
  .sec-grid { padding: 32px 22px; gap: 24px; }
  .sec-left h2 { font-size: 24px; letter-spacing: -0.8px; }
  .sec-left p { font-size: 14.5px; }
  .sec-row { font-size: 14px; gap: 11px; }

  /* Demo */
  .demo-card { padding: 18px; }
  .demo-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .demo-stats { width: 100%; gap: 12px; flex-wrap: wrap; }
  .ds-sep { display: none; }
  .ds { min-width: 70px; }
  .search { flex-direction: column; gap: 8px; padding: 8px; }
  .search input { width: 100%; padding: 13px 14px; font-size: 15px; }
  .search button { width: 100%; padding: 12px; }

  /* Metrics row */
  .metrics { margin-bottom: 64px; padding: 18px 4px; }
  .m-num { font-size: 32px; letter-spacing: -1px; }
  .m-lbl { font-size: 11.5px; }

  /* Compare */
  .compare { margin-bottom: 64px; gap: 14px; }
  .cmp-card { padding: 22px; }
  .cmp-q { font-size: 15px; }
  .cmp-a { font-size: 14px; }

  /* How */
  .how-grid { grid-template-columns: 1fr; }

  /* Closing */
  .closing { padding: 48px 22px; margin-top: 64px; }
  .closing h2 { font-size: 26px; letter-spacing: -0.8px; }
  .closing p  { font-size: 15px; }

  /* Footer */
  .footer {
    flex-direction: column; align-items: flex-start;
    padding-top: 36px; margin-top: 72px; gap: 20px;
  }
  .footer-right { flex-wrap: wrap; gap: 16px; }
}

/* Tiny phone (≤380px) */
@media (max-width: 380px) {
  .container { padding: 14px 14px 56px; }
  h1 { font-size: 36px; letter-spacing: -1.2px; }
  .nav-link.cta { padding: 8px 12px; font-size: 12.5px; }
  .badge { padding: 5px 11px; }
}
