/* Base reset and variables */
:root {
  --bg: #0a0a0d;
  --bg-surface: #111116;
  --bg-card: #16161d;
  --fg: #e8e8ec;
  --fg-muted: #7a7a8a;
  --accent: #e8a838;
  --accent-dim: #c4841a;
  --border: #252530;
  --terminal-bg: #0e0e14;
  --t-key: #7ab8ff;
  --t-val: #c5d0e0;
  --t-comment: #5a5a70;
  --t-reasoning: #b8d4a8;
  --t-rl: #e8a838;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Navigation ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,13,0.9);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  margin-left: 12px;
  padding: 3px 8px;
  border: 1px solid var(--accent-dim);
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.nav-left { display: flex; align-items: center; }
.nav-right { display: flex; gap: 28px; }

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--fg); }

/* ── Hero ── */
.hero {
  padding: 80px 48px 100px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero-terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  border-left: 3px solid var(--accent);
}

.terminal-line { margin-bottom: 2px; }
.t-comment { color: var(--t-comment); }
.t-key { color: var(--t-key); }
.t-val { color: var(--t-val); }
.t-reasoning { color: var(--t-reasoning); display: block; padding-left: 0; margin: 6px 0; }
.t-rl { color: var(--t-rl); }
.t-rl-arrow { font-weight: bold; }

.hero-right h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 3.8rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--fg);
}

.hero-right h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 440px;
}

/* ── Section Shared ── */
.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── Model Output Section ── */
.model-output {
  padding: 100px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.model-output h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  max-width: 560px;
  margin-bottom: 60px;
  line-height: 1.15;
}

.output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.output-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.output-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1;
}

.output-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.output-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Approach ── */
.approach {
  padding: 100px 48px;
  border-bottom: 1px solid var(--border);
}

.approach-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.approach-left h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 28px;
}

.approach-body {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.approach-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat { text-align: center; }

.stat-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.approach-right { display: flex; align-items: center; }

.pipeline-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  width: 100%;
}

.pipeline-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pipeline-step {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--fg-muted);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  color: var(--accent);
  font-weight: 500;
}

.pipeline-step.highlighted {
  color: var(--fg);
  background: rgba(232,168,56,0.08);
  border: 1px solid rgba(232,168,56,0.2);
  border-radius: 4px;
  padding: 8px 12px;
  margin: 4px 0;
}

.pipeline-arrow {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--border);
  font-size: 0.8rem;
  padding: 4px 0 8px 20px;
}

/* ── Differentiator ── */
.differentiator {
  padding: 100px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.differentiator h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 48px;
}

.diff-header { margin-bottom: 32px; }

.diff-grid {
  max-width: 900px;
  margin: 0 auto;
}

.diff-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.diff-row.header-row {
  border-bottom: 2px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.diff-row-label {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.diff-col-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-align: center;
}

.diff-col-label.active { color: var(--accent); }

.diff-cell {
  text-align: center;
  font-size: 1rem;
}

.diff-cell.active {
  background: rgba(232,168,56,0.06);
  border-radius: 4px;
}

.yes { color: #6bc46a; }
.no { color: #4a4a58; }
.partial { color: #8a8a9a; }

/* ── Vision ── */
.vision {
  padding: 100px 48px;
  border-bottom: 1px solid var(--border);
}

.vision-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.vision-text h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.vision-text p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.vision-timeline { padding-top: 48px; }

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.timeline-item.current {
  border-color: var(--accent-dim);
  background: rgba(232,168,56,0.05);
}

.tl-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.tl-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.tl-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.timeline-arrow {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--border);
  font-size: 1rem;
  padding: 4px 0 4px 20px;
}

/* ── Footer ── */
footer {
  padding: 40px 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-align: right;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .hero { padding: 60px 24px 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right h1 { font-size: 2.6rem; }
  .output-grid { grid-template-columns: 1fr; }
  .approach-inner { grid-template-columns: 1fr; }
  .approach-stats { gap: 24px; }
  .vision-inner { grid-template-columns: 1fr; }
  .diff-row { grid-template-columns: 1.5fr 1fr 1fr 1fr; font-size: 0.8rem; }
  footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .footer-note { text-align: left; }
}