:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --panel: #11161b;
  --panel-2: #171d24;
  --line: #29313a;
  --text: #eee8dc;
  --muted: #9ca4ad;
  --gold: #d7aa61;
  --gold-bright: #f2c879;
  --blue: #8ab4f8;
  --green: #89c997;
  --red: #e59383;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 80% 0, rgba(215,170,97,.08), transparent 34rem), var(--bg); font-family: var(--sans); line-height: 1.65; }
a { color: var(--gold-bright); }
code, pre { font-family: var(--mono); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; padding: 12px clamp(18px,4vw,54px); border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(10,12,15,.9); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(215,170,97,.5); border-radius: 50%; color: var(--gold-bright); font: 600 20px/1 var(--serif); }
.topbar nav { display: flex; gap: 12px; font-size: 13px; }
.layout { display: grid; grid-template-columns: 230px minmax(0, 820px); gap: clamp(30px,6vw,80px); width: min(1140px, calc(100% - 36px)); margin: 0 auto; padding: 58px 0 100px; }
.sidebar { position: sticky; top: 100px; align-self: start; display: grid; gap: 5px; }
.sidebar strong { margin-bottom: 8px; color: var(--gold); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.sidebar a { padding: 7px 9px; color: var(--muted); border-radius: 7px; text-decoration: none; font-size: 13px; }
.sidebar a:hover { color: var(--text); background: var(--panel); }
.hero { padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
h1 { max-width: 760px; margin: 13px 0 20px; font: 400 clamp(44px,7vw,76px)/.98 var(--serif); letter-spacing: -.045em; }
.lede { max-width: 720px; margin: 0; color: #c8c2b7; font: 400 19px/1.72 var(--serif); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.badge { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.badge.good { color: var(--green); border-color: rgba(137,201,151,.35); }
section { padding: 46px 0 10px; scroll-margin-top: 90px; }
h2 { margin: 0 0 15px; font: 400 32px/1.15 var(--serif); }
h3 { margin: 30px 0 10px; font-size: 17px; }
p { color: #c9c4ba; }
.callout { margin: 22px 0; padding: 18px 20px; border-left: 3px solid var(--gold); background: rgba(215,170,97,.08); border-radius: 0 10px 10px 0; color: #d7d1c6; }
.endpoint { margin: 20px 0; padding: 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; }
.method { display: inline-block; margin-right: 10px; padding: 4px 7px; color: #07150b; background: var(--green); border-radius: 5px; font: 800 11px/1.2 var(--mono); }
.endpoint code { color: var(--text); }
pre { position: relative; overflow-x: auto; margin: 18px 0; padding: 18px 20px; border: 1px solid var(--line); background: #0c1014; border-radius: 10px; color: #dfe5eb; font-size: 13px; line-height: 1.65; }
code:not(pre code) { padding: 2px 5px; color: var(--blue); background: rgba(138,180,248,.08); border-radius: 5px; font-size: .9em; }
table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--gold); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
td { color: #c9c4ba; }
.steps { display: grid; gap: 12px; margin: 24px 0; counter-reset: step; }
.step { position: relative; padding: 18px 18px 18px 55px; border: 1px solid var(--line); background: var(--panel); border-radius: 11px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 17px; top: 17px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #181108; background: var(--gold-bright); font-weight: 800; font-size: 12px; }
.footer { margin-top: 55px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 800px) { .layout { grid-template-columns: 1fr; } .sidebar { display: none; } .topbar nav a:first-child { display: none; } h1 { font-size: 48px; } }
