:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0284c7;
  --accent-soft: #e0f2fe;
  --code-bg: #0f172a;
  --code-fg: #e2e8f0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #111827;
    --border: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-soft: #0c4a6e;
    --code-bg: #020617;
    --code-fg: #e2e8f0;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
.container { max-width: 1020px; margin: 0 auto; padding: 0 24px; }
header.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 22px;
  font-size: 0.92rem;
  font-weight: 500;
}
nav a:hover, nav a.active { color: var(--accent); }
.hero { padding: 64px 0 40px; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.35rem; line-height: 1.22; margin: 16px 0 14px; letter-spacing: -0.02em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 740px; margin-bottom: 28px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin: 28px 0 44px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.section-title { font-size: 1.35rem; margin: 40px 0 14px; }
.filter-bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.86rem;
}
.filter-btn.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
table.bench {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.9rem;
}
table.bench th, table.bench td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
table.bench th { color: var(--muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; }
pre {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
}
footer {
  margin-top: 64px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
