/* ==========================================================================
   Graph-Augmented Code Intelligence Engine — Showcase Dashboard
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-muted: rgba(245, 245, 247, 0.62);
  --text-subtle: rgba(245, 245, 247, 0.42);
  --accent: #6eb5ff;
  --accent-dim: rgba(110, 181, 255, 0.15);
  --accent-bar: #6eb5ff;
  --success: #7dd3a0;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max-width: 1280px;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, monospace;
  --header-h: 56px;
  --section-pad: clamp(4rem, 8vw, 6rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.nav-brand {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

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

@media (max-width: 720px) {
  .nav-links { gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
  .nav-links a { font-size: 0.75rem; }
}

/* Sections */
.section {
  padding-block: var(--section-pad);
  border-bottom: 1px solid var(--border);
}

.section-compact { padding-block: clamp(2rem, 4vw, 3rem); }

.section-header { margin-bottom: 2.5rem; max-width: 720px; }

.section-header h2,
.section-header-small {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-header-small {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}

.section-sub {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.0625rem;
}

.data-source {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero */
.hero { padding-top: clamp(3rem, 6vw, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 540px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
}

.hero-status {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin: 0;
}

/* Pipeline visual */
.pipeline {
  list-style: none;
  padding: 1.5rem;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-step {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.65rem 1rem;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  animation: fadeUp 0.6s ease backwards;
}

.pipeline-step:nth-child(1) { animation-delay: 0.05s; }
.pipeline-step:nth-child(3) { animation-delay: 0.15s; }
.pipeline-step:nth-child(5) { animation-delay: 0.25s; }
.pipeline-step:nth-child(7) { animation-delay: 0.35s; }
.pipeline-step:nth-child(9) { animation-delay: 0.45s; }
.pipeline-step:nth-child(11) { animation-delay: 0.55s; }
.pipeline-step:nth-child(13) { animation-delay: 0.65s; }

.pipeline-step-accent {
  border-color: rgba(110, 181, 255, 0.35);
  background: var(--accent-dim);
  color: var(--accent);
}

.pipeline-arrow {
  width: 1px;
  height: 12px;
  background: var(--border-strong);
  margin: 0 auto;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glass panels */
.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Architecture */
.arch-flow { margin-bottom: 1.25rem; }

.arch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.arch-row:last-child { margin-bottom: 0; }

.arch-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  min-width: 5rem;
}

.arch-node {
  font-size: 0.8125rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  line-height: 1.3;
}

.arch-node small { color: var(--text-subtle); display: block; font-size: 0.6875rem; }

.arch-arrow { color: var(--text-subtle); font-size: 0.875rem; }

.arch-ladder {
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}

.arch-maintenance {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
}

.arch-maintenance-title {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin: 0 0 0.5rem;
}

.arch-maintenance-flow {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.arch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.arch-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
  cursor: default;
}

.arch-card:hover,
.arch-card:focus-visible {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  outline: none;
}

.arch-card h3 {
  font-size: 0.9375rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.arch-card-detail {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s, max-height 0.25s;
}

.arch-card:hover .arch-card-detail,
.arch-card:focus-visible .arch-card-detail {
  opacity: 1;
  max-height: 4rem;
}

/* Retrieval */
.query-block {
  font-style: italic;
  margin-top: 0.5rem;
}

.gold-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.gold-label code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
}

.mode-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .mode-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .mode-cards { grid-template-columns: 1fr; }
}

.mode-card {
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.mode-card:hover { border-color: var(--border-strong); }

.mode-card-best {
  border-color: rgba(110, 181, 255, 0.4);
  background: var(--accent-dim);
}

.mode-card-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
}

.mode-card-rank {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.mode-card-rank span { font-size: 1rem; color: var(--text-subtle); font-weight: 400; }

.mode-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.rank-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.25rem;
  padding: 1.5rem;
  margin-bottom: 0.75rem;
}

.rank-flow-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.rank-flow-mode {
  color: var(--text-subtle);
  min-width: 4.5rem;
  text-align: right;
}

.rank-flow-value {
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.rank-flow-value.best { border-color: rgba(110, 181, 255, 0.4); color: var(--accent); }

.rank-flow-arrow {
  color: var(--text-subtle);
  margin: 0 0.25rem;
}

.rank-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin: 0;
}

/* Explainability */
.explain-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .explain-grid { grid-template-columns: 1fr; }
}

.terminal-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0d0d0f;
}

.terminal-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-label {
  font-size: 0.6875rem;
  color: var(--text-subtle);
}

.terminal-label code {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.terminal-note {
  font-size: 0.6875rem;
  color: var(--text-subtle);
}

.terminal-body {
  margin: 0;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  overflow-x: auto;
}

.terminal-body code { color: inherit; }

.relation-mini {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.relation-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.relation-node {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  max-width: 100%;
  word-break: break-all;
}

.relation-node-target { border-color: rgba(110, 181, 255, 0.3); }

.relation-edge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  padding: 0.25rem 0;
}

.relation-edge::before,
.relation-edge::after {
  content: "│";
  display: block;
  text-align: center;
  color: var(--border-strong);
  line-height: 0.8;
}

.relation-ranks {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.relation-ranks li { padding: 0.25rem 0; }

.relation-note {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin: 0;
}

/* Benchmark chart */
.metric-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.metric-tab {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.metric-tab:hover { background: var(--surface); color: var(--text); }

.metric-tab.active {
  background: var(--accent-dim);
  border-color: rgba(110, 181, 255, 0.35);
  color: var(--accent);
}

.metric-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chart-panel { margin-bottom: 1.5rem; }

.chart {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 4rem;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.chart-row:nth-child(1) { animation-delay: 0.05s; }
.chart-row:nth-child(2) { animation-delay: 0.1s; }
.chart-row:nth-child(3) { animation-delay: 0.15s; }
.chart-row:nth-child(4) { animation-delay: 0.2s; }
.chart-row:nth-child(5) { animation-delay: 0.25s; }

.chart-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.chart-bar-wrap {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  background: var(--accent-bar);
  border-radius: 999px;
  width: 0;
  transition: width 0.6s ease;
}

.chart-value {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-align: right;
  color: var(--text);
}

.pairwise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pairwise-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
}

.pairwise-card h4 {
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.pairwise-stats {
  display: flex;
  gap: 1.25rem;
}

.pairwise-stat {
  display: flex;
  flex-direction: column;
}

.pairwise-stat-value {
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1;
}

.pairwise-stat-label {
  font-size: 0.6875rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

.insight-card h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.insight-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.insight-scope {
  font-size: 0.8125rem !important;
  color: var(--text-subtle) !important;
  font-style: italic;
}

.methodology-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.method-stat { text-align: center; }

.method-value {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.method-label {
  font-size: 0.6875rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hash-short {
  font-family: var(--font-mono);
  font-size: 0.8125rem !important;
  cursor: help;
}

.hash-copy {
  display: block;
  margin: 0.35rem auto 0;
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
  font-family: var(--font-ui);
}

.hash-copy:hover { color: var(--text); border-color: var(--border-strong); }

.hash-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Incremental */
.incremental-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.incremental-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.incremental-card h4 {
  font-size: 0.9375rem;
  margin: 0 0 0.35rem;
}

.incremental-desc {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin: 0 0 1rem;
}

.incremental-compare {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.incremental-compare .full { color: var(--text-subtle); }

.incremental-compare .arrow { color: var(--text-subtle); }

.incremental-compare .inc {
  font-weight: 600;
  color: var(--success);
}

.vector-bar {
  margin-top: 0.75rem;
}

.vector-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
}

.vector-bar-track {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.vector-bar-reused {
  background: var(--success);
  opacity: 0.7;
}

.vector-bar-embedded {
  background: var(--accent);
  opacity: 0.8;
}

/* Context */
.context-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .context-grid { grid-template-columns: 1fr; }
}

.budget-meter { padding: 1.5rem; }

.budget-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.budget-value {
  font-family: var(--font-mono);
  font-weight: 600;
}

.budget-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.budget-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 999px;
}

.budget-stats {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Languages */
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .lang-grid { grid-template-columns: 1fr; }
}

.lang-card h3 {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.qname-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.qname-list li {
  padding: 0.35rem 0;
  font-size: 0.8125rem;
}

.qname-list code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}

.lang-relations {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin: 0;
}

.overload-callout {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 1rem;
}

.overload-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
}

.overload-pair code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lang-limit {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin: 0;
  line-height: 1.45;
}

.shared-stack { padding: 1.25rem; text-align: center; }

.shared-stack-diagram {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 2vw, 0.8125rem);
  color: var(--text-muted);
  line-height: 1.5;
  overflow-x: auto;
}

/* Stats & milestones */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.milestone-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.milestone-strip li {
  font-size: 0.75rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.milestone-id {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* CTA */
.cta-section {
  border-bottom: none;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
  font-family: var(--font-ui);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover { background: #e8e8ea; }

.btn-secondary {
  background: var(--accent-dim);
  border-color: rgba(110, 181, 255, 0.35);
  color: var(--accent);
}

.btn-secondary:hover { background: rgba(110, 181, 255, 0.22); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Footer */
.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-meta {
  font-size: 0.75rem !important;
  color: var(--text-subtle) !important;
  margin-top: 0.35rem !important;
}

/* Error card */
.error-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 120, 120, 0.3);
  background: rgba(255, 80, 80, 0.08);
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.error-card code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  display: block;
  margin-top: 0.5rem;
  color: var(--text);
}

.hidden { display: none !important; }

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