:root {
  --bg: #0c0f14;
  --surface: #141922;
  --border: #252b38;
  --text: #e8eaef;
  --muted: #8b93a7;
  --accent: #c9a227;
  --accent-dim: #8a7020;
  --pass: #3d8f6e;
  --warn: #c98b2e;
  --fail: #b54a4a;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.hero {
  background: linear-gradient(165deg, #121820 0%, #0c0f14 60%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem 2.5rem;
}
.hero-inner { max-width: 960px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.1;
}
.lead { color: var(--muted); max-width: 52ch; font-size: 1.05rem; }
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}
.stat .num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.stat .lbl { font-size: 0.85rem; color: var(--muted); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(12, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

main { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.panel { display: none; }
.panel.active { display: block; }
h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; font-size: 1.75rem; margin-top: 0; }
h3 { font-size: 1rem; margin-top: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

input[type="search"] {
  width: 100%;
  max-width: 400px;
  padding: 0.65rem 1rem;
  margin: 1rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

.item-list { display: flex; flex-direction: column; gap: 0.5rem; }
.item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.item-id {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.item-title { font-weight: 500; }
.item-desc { font-size: 0.88rem; color: var(--muted); margin-top: 0.25rem; }
.item-cat {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.35rem;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.source-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}
.source-card h4 { margin: 0 0 0.25rem; font-size: 0.95rem; }
.source-card .inst { font-size: 0.8rem; color: var(--accent); }
.source-card ul { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.82rem; color: var(--muted); }
.source-card a { color: #7eb8ff; font-size: 0.8rem; }

.code {
  background: #080a0e;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}
code { font-family: var(--mono); }

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .stats { gap: 1rem; }
  .stat .num { font-size: 1.5rem; }
}
