:root {
  --bg: #fbfbfc; --fg: #14181f; --muted: #5a6472; --line: #e2e6ec; --card: #fff;
  --code-bg: #0f1720; --code-fg: #e6edf3; --accent: #d9391f; --accent-fg: #fff;
  --warn: #b45309; --ok: #15803d;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14; --fg: #e6edf3; --muted: #9aa6b4; --line: #222b36; --card: #111820;
    --code-bg: #060a0e; --code-fg: #e6edf3; --accent: #f05138; --accent-fg: #0b0f14;
    --warn: #f59e0b; --ok: #4ade80;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); line-height: 1.6;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
:not(pre) > code { background: var(--line); padding: .1em .35em; border-radius: 4px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--accent); }
nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--fg); }
@media (max-width: 640px) { nav a.hide-sm { display: none; } }
.hero { padding-top: 72px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 16px; max-width: 18ch; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.install { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.cmd {
  display: flex; align-items: center; gap: 12px; background: var(--code-bg); color: var(--code-fg);
  border-radius: 8px; padding: 10px 14px; max-width: 100%;
}
.cmd code { overflow-x: auto; white-space: nowrap; }
.cmd button {
  background: transparent; color: var(--code-fg); border: 1px solid #3a4655; border-radius: 6px;
  padding: 3px 10px; cursor: pointer; font: inherit; font-size: .8rem;
}
.cmd button:hover { border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: var(--card); }
.btn:hover { border-color: var(--accent); color: var(--fg); }
.note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
section { padding: 48px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 1.6rem; letter-spacing: -.015em; margin: 0 0 8px; }
section > .wrap > p.sub { color: var(--muted); margin: 0 0 28px; max-width: 70ch; }
pre { background: var(--code-bg); color: var(--code-fg); padding: 16px; border-radius: 10px; overflow-x: auto; margin: 0; line-height: 1.5; }
pre .w { color: #f5b942; } pre .d { color: #8b98a8; } pre .c { color: #7ee787; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.stat { font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; }
.stat small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.tabs-label { font-weight: 600; margin: 0 0 8px; }
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .9rem; }
footer .cols { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmd code { background: transparent; padding: 0; }
.two > *, .grid > * { min-width: 0; }
pre { max-width: 100%; }
