/* ── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
  --bg:           #080d18;
  --bg-surface:   #0d1525;
  --bg-card:      #111c30;
  --bg-card-alt:  #0f1929;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);

  --cyan:   #00d4ff;
  --purple: #8b5cf6;
  --green:  #10b981;
  --orange: #f97316;
  --blue:   #3b82f6;
  --pink:   #ec4899;
  --teal:   #14b8a6;
  --yellow: #eab308;
  --red:    #ef4444;

  --text:      #e2e8f0;
  --text-muted:#8b9cb6;
  --text-dim:  #4a5a70;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);

  --transition: 0.2s ease;
}

/* ── RESET & BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 17px; overflow-x: hidden; }

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

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(255,255,255,0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--cyan);
}

/* ── SCROLLBAR ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 3px; }

/* ── UTILITIES ───────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }
.section-alt { background: var(--bg-surface); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-desc a { color: var(--cyan); }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
  padding: 8px 18px;
}
.btn-primary {
  background: var(--cyan);
  color: #000;
}
.btn-primary:hover { background: #33dcff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ── NAVBAR ──────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(8,13,24,0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.navbar.menu-open {
  background: rgba(8,13,24,0.97);
  backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}
.nav-logo {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none !important;
}
.logo-n    { color: var(--cyan); }
.logo-rest { color: #fff; }

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
}
.nav-links a:hover  { color: var(--text); }
.nav-links a.active { color: var(--cyan); }

.nav-actions { display: flex; gap: 8px; margin-left: auto; }

.mobile-menu { display: none; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px 64px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 60%, transparent 30%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.hero-badge svg { width: 14px; height: 14px; }

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.hero-nika {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 60%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle-line {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-subtitle-line em {
  font-style: normal;
  color: var(--cyan);
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 0;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 32px;
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  font-size: 0.75rem;
  animation: bounce 2s infinite;
}
.hero-scroll-hint svg { width: 16px; height: 16px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── OVERVIEW ────────────────────────────────────────────────────────────── */
.overview-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.overview-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  border-left: 3px solid transparent;
  min-width: 0;
}
.card-accent-cyan  { border-left-color: var(--cyan); }
.card-accent-purple{ border-left-color: var(--purple); }

.overview-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.ov-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--cyan);
}
.card-accent-purple .ov-icon { color: var(--purple); }
.ov-icon svg { width: 22px; height: 22px; }

.overview-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.overview-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }
.overview-card strong { color: var(--text); }

.overview-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ── FEATURES ────────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-icon.cyan   { background: rgba(0,212,255,0.12);  color: var(--cyan); }
.feature-icon.purple { background: rgba(139,92,246,0.12); color: var(--purple); }
.feature-icon.green  { background: rgba(16,185,129,0.12); color: var(--green); }
.feature-icon.orange { background: rgba(249,115,22,0.12); color: var(--orange); }
.feature-icon.blue   { background: rgba(59,130,246,0.12); color: var(--blue); }
.feature-icon.pink   { background: rgba(236,72,153,0.12); color: var(--pink); }
.feature-icon.teal   { background: rgba(20,184,166,0.12); color: var(--teal); }
.feature-icon.yellow { background: rgba(234,179,8,0.12);  color: var(--yellow); }

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── SCENARIOS ───────────────────────────────────────────────────────────── */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
}
.scenario-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.scenario-card-wip { opacity: 0.65; }
.scenario-card-wip:hover { opacity: 1; }

.scenario-icon {
  width: 44px; height: 44px;
  background: rgba(0,212,255,0.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  margin-bottom: 12px;
}
.scenario-icon svg { width: 20px; height: 20px; }

.scenario-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 100px;
}
.scenario-badge.scalable { background: rgba(16,185,129,0.15); color: var(--green); }
.scenario-badge.wip      { background: rgba(234,179,8,0.15);  color: var(--yellow); }

.scenario-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  padding-right: 70px;
}
.scenario-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }

.scenario-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.scenario-tags span {
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* ── ISSUES ──────────────────────────────────────────────────────────────── */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.issue-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.issue-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}
.issue-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.issue-cat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.issue-cat-icon svg { width: 20px; height: 20px; }

.issue-cat-icon.red    { background: rgba(239,68,68,0.12);   color: var(--red); }
.issue-cat-icon.orange { background: rgba(249,115,22,0.12);  color: var(--orange); }
.issue-cat-icon.yellow { background: rgba(234,179,8,0.12);   color: var(--yellow); }
.issue-cat-icon.blue   { background: rgba(59,130,246,0.12);  color: var(--blue); }
.issue-cat-icon.purple { background: rgba(139,92,246,0.12);  color: var(--purple); }
.issue-cat-icon.pink   { background: rgba(236,72,153,0.12);  color: var(--pink); }

.issue-cat-header h3 { font-size: 0.9375rem; font-weight: 700; color: #fff; }
.issue-count { font-size: 0.75rem; color: var(--text-dim); }

.issue-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.issue-list li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.issue-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.issues-total {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.issues-total-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.issues-total-num {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--cyan);
  line-height: 1;
}
.issues-total-label {
  font-size: 1rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}

/* ── QUICK START ─────────────────────────────────────────────────────────── */
.qs-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 820px;
  margin: 0 auto;
}
.qs-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  align-items: start;
}
.qs-step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,212,255,0.1);
  border: 2px solid rgba(0,212,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}
.qs-step-body { min-width: 0; }
.qs-step-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.qs-step-body > p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

/* ── CODE BLOCKS ─────────────────────────────────────────────────────────── */
.code-block {
  background: #0a0e18;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: #c9d1d9;
}
.code-block code { background: none; padding: 0; color: inherit; font-size: inherit; }
.cm { color: #6a737d; }

.copy-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition);
}
.copy-btn:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

/* ── MCP ─────────────────────────────────────────────────────────────────── */
.mcp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.mcp-server {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.mcp-server:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.mcp-server-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.mcp-server-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mcp-server-icon svg { width: 20px; height: 20px; }

.mcp-server-icon.cyan   { background: rgba(0,212,255,0.12);  color: var(--cyan); }
.mcp-server-icon.purple { background: rgba(139,92,246,0.12); color: var(--purple); }
.mcp-server-icon.green  { background: rgba(16,185,129,0.12); color: var(--green); }
.mcp-server-icon.orange { background: rgba(249,115,22,0.12); color: var(--orange); }
.mcp-server-icon.blue   { background: rgba(59,130,246,0.12); color: var(--blue); }
.mcp-server-icon.pink   { background: rgba(236,72,153,0.12); color: var(--pink); }

.mcp-server-header h3 { font-size: 0.9375rem; font-weight: 700; color: #fff; }

.mcp-tools { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mcp-tools li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.4;
}
.mcp-tools code { font-size: 0.75rem; }

.mcp-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.mcp-note a { color: var(--cyan); }

/* ── AGENTS ──────────────────────────────────────────────────────────────── */
.agents-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.agent-logo {
  flex: 1 1 180px;
  max-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: var(--transition);
}
.agent-logo:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.agent-logo svg { width: 34px; height: 34px; margin-bottom: 6px; }
.agent-logo span { font-size: 0.9375rem; font-weight: 700; color: #fff; }
.agent-logo small { font-size: 0.75rem; color: var(--text-dim); }
.agent-logo.openai svg    { color: #10a37f; }
.agent-logo.anthropic svg { color: #d97757; }
.agent-logo.gemini svg    { color: #4285f4; }
.agent-logo.byo svg       { color: var(--cyan); }

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.agent-swap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.agent-swap-copy h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.agent-swap-copy p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.agents-note { text-align: left; margin-top: 16px; font-size: 0.8125rem; }

/* Small inline code snippet inside overview cards */
.ov-code {
  margin-top: 18px;
  padding: 14px 16px;
  background: #0a0e18;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: #c9d1d9;
  overflow-x: auto;
}
.ov-code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.yk { color: #79c0ff; }

/* ── EXTEND / AUTHOR SCENARIOS ───────────────────────────────────────────── */
.extend-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}
.extend-anatomy h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.extend-fields { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.extend-fields li { display: flex; gap: 14px; align-items: flex-start; }
.extend-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.extend-dot.cyan   { background: var(--cyan); }
.extend-dot.purple { background: var(--purple); }
.extend-dot.green  { background: var(--green); }
.extend-dot.orange { background: var(--orange); }
.extend-fields code { font-size: 0.8125rem; font-weight: 600; color: #fff; }
.extend-fields p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}
.extend-run {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.extend-run-copy h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.extend-run-copy p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.extend-note { text-align: center; }

/* ── CITATION ────────────────────────────────────────────────────────────── */
.cite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 24px;
}
.cite-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cite-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
}
.cite-card-header h3 { font-size: 0.9375rem; font-weight: 700; color: #fff; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: inline-flex;
  gap: 0;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-group h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.footer-links-group a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links-group a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }

/* ── SCROLL REVEAL ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links   { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(8,13,24,0.97);
    backdrop-filter: blur(16px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
    z-index: 9999;
  }
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
  }
  .mobile-nav-links a:hover { color: var(--text); }
  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 8px;
  }
  .mobile-nav-actions .btn {
    justify-content: center;
  }

  .overview-cards  { grid-template-columns: 1fr; }
  .scenarios-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-top    { grid-template-columns: 1fr 1fr; }
  .agent-swap    { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-stats { gap: 0; }
  .stat { padding: 8px 16px; }
  .stat-divider { display: none; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .qs-step { grid-template-columns: 1fr; }
  .qs-step-num { display: none; }
  .cite-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .issues-total-inner { flex-direction: column; align-items: flex-start; }
}
