:root {
  color-scheme: dark;
  --bg: #09090b;
  --ink: #fafafa;
  --muted: #a1a1aa;
  --line: #27272a;
  --card: #09090b;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.65 ui-sans-serif, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 8px; z-index: 5; }
.top {
  position: sticky; top: 0; z-index: 3;
  display: flex; gap: 20px; align-items: center;
  height: 56px; padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: 0.01em; }
.brand span { color: var(--ink); }
nav { display: flex; gap: 4px; }
nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; }
nav a[aria-current="page"], nav a:hover { color: var(--ink); background: #18181b; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 48px 0 72px; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
h1 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 650; }
.lede, p { color: var(--muted); }
.lede { margin: 0 0 20px; max-width: 62ch; }
p code, p strong, li strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: 6px; text-decoration: none; border: 1px solid var(--line); font-weight: 550;
}
.button-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.button-ghost { color: var(--ink); background: transparent; }
.button:hover { text-decoration: none; }
.console {
  border: 1px solid var(--line); border-radius: 8px; background: #18181b;
}
.console header { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.console header i { width: 8px; height: 8px; border-radius: 50%; background: #3f3f46; display: block; }
.console pre { margin: 0; padding: 16px; color: var(--ink); font: 13px/1.7 ui-monospace, Menlo, Consolas, monospace; overflow: auto; }
.prompt { color: var(--muted); }
.spec, .facts, .products { display: grid; gap: 12px; }
.spec { grid-template-columns: repeat(4, 1fr); margin: 36px 0 0; padding: 0; list-style: none; }
.spec li, .facts article, .product, .step, .panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px;
}
.spec span, .index { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.facts, .products { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.section { margin-top: 40px; }
.section h2, .panel h2, .step h2, .product h2 { margin: 0 0 8px; font-size: 16px; font-weight: 650; color: var(--ink); }
.panel { margin-top: 12px; }
.product a, .docs a, footer a { color: var(--ink); }
.steps { display: grid; gap: 12px; }
pre, .step pre {
  background: #18181b; color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; overflow: auto; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace;
}
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em; }
.docs { padding-left: 18px; }
footer { width: min(var(--max), calc(100% - 40px)); margin: 0 auto 40px; color: var(--muted); font-size: 13px; }
@media (max-width: 800px) {
  .hero, .spec, .facts, .products { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; height: auto; padding: 12px 16px; }
}
