:root {
  --bg: #0e0f1a;
  --surface: #171a2b;
  --border: #262a42;
  --text: #e8e9f3;
  --muted: #9a9dbb;
  --accent: #ffb020;
  --accent-2: #6c5cff;
  --max: 880px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(14, 15, 26, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
nav a { color: var(--muted); margin-left: 20px; font-size: 15px; }
nav a:hover, nav a.active { color: var(--text); text-decoration: none; }

.hero { padding: 96px 0 72px; text-align: center; }
.hero h1 {
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -1.5px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 32px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1200;
  font-weight: 700;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); margin-left: 8px; }

section { padding: 48px 0; }
section h2 { font-size: 28px; margin: 0 0 24px; letter-spacing: -0.5px; }

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

.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); margin: 0 0 4px; letter-spacing: -1px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: #cfd1e4; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.doc th { background: var(--surface); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 24px; }
.toc ol { margin: 0; padding-left: 20px; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: var(--muted); margin-right: 16px; }

@media (max-width: 560px) {
  nav a { margin-left: 14px; font-size: 14px; }
  .hero { padding: 64px 0 48px; }
  .btn.ghost { margin: 12px 0 0; }
}
