:root {
  --bg: #0b0d12;
  --surface: #141821;
  --line: #232a37;
  --text: #f2f4f8;
  --muted: #8b94a7;
  --accent: #3ddc97;
  --accent2: #7c5cff;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --line: #e2e6ee;
  --text: #0f1320;
  --muted: #5b6474;
  --accent: #0a8f5f;
  --accent2: #5b3fe0;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.logo { font-weight: 700; letter-spacing: -0.02em; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.years a { margin-left: 18px; color: var(--muted); font-size: 14px; }
.years a:hover, .years a.active { color: var(--text); }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.hero { padding: 96px 0 72px; }
.eyebrow { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; }
h1 { font-size: clamp(56px, 11vw, 140px); line-height: 0.95; letter-spacing: -0.04em; margin: 16px 0 24px; }
.lede { font-size: 20px; color: var(--muted); max-width: 620px; }

section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 32px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.stat { background: var(--surface); padding: 32px; }
.stat .num { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .label { color: var(--muted); font-size: 15px; margin-top: 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.card .tag { color: var(--accent2); font-size: 13px; font-weight: 600; }
.card h3 { font-size: 20px; margin: 10px 0; }
.card p { color: var(--muted); font-size: 15px; }

.timeline { list-style: none; padding: 0; border-left: 1px solid var(--line); }
.timeline li { padding: 0 0 32px 28px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}
.timeline .q { color: var(--accent); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.timeline p { color: var(--muted); margin-top: 4px; }

.yearlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.yearlist a {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 40px; font-size: 56px; font-weight: 700; letter-spacing: -0.03em;
  transition: border-color .2s;
}
.yearlist a:hover { border-color: var(--accent); }

footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 600px) {
  .hero { padding: 56px 0 48px; }
  .stat .num { font-size: 40px; }
  .years a { margin-left: 12px; }
}
