:root {
  --bg: #0d1117;
  --panel: #141b24;
  --border: #24303d;
  --text: #e6edf3;
  --muted: #93a4b5;
  --accent: #8b7cff;
  --accent-dim: #2a2450;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 23, .9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid #2f5c8f;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-name { font-weight: 600; letter-spacing: .01em; }

nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
nav a { color: var(--muted); }
nav a:hover { color: var(--text); text-decoration: none; }

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.hero { padding: 24px 0 40px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -.01em;
  max-width: 18ch;
}
.lede { margin: 0; max-width: 60ch; color: var(--muted); font-size: 17px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  border: 1px solid var(--border);
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #06121f; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 8px 0 40px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h2 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.code-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 40px;
}
.code-block h2 { margin: 0 0 14px; font-size: 17px; }
pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: #0a0f16;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.55;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
p code, li code {
  background: #0a0f16;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .9em;
}
.note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.facts h2 { font-size: 17px; margin: 0 0 10px; }
.facts ul { margin: 0; padding-left: 20px; color: var(--muted); }
.facts li { margin: 6px 0; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.site-footer p { margin: 0; }
.site-footer nav { gap: 14px; }

.doc h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; }
.doc h2 { font-size: 20px; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--muted); }
.doc ul, .doc ol { padding-left: 22px; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.doc th, .doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.doc th { color: var(--text); font-weight: 600; }
.doc td { color: var(--muted); }

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.error-code {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.error-page h1 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 42px); }

@media (max-width: 560px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  main { padding: 32px 18px 56px; }
}
