:root {
  --bg: #090b16;
  --bg-soft: #111528;
  --card: #151a31;
  --card-2: #101426;
  --text: #f5f7ff;
  --muted: #aab3d4;
  --soft: #dbe2ff;
  --line: rgba(255,255,255,.1);
  --brand: #8b5cf6;
  --brand-2: #22d3ee;
  --accent: #facc15;
  --danger: #fb7185;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139,92,246,.26), transparent 34rem),
    radial-gradient(circle at top right, rgba(34,211,238,.18), transparent 32rem),
    linear-gradient(180deg, #090b16 0%, #0b1022 42%, #090b16 100%);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: white;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(9, 11, 22, .76);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(139,92,246,.3);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  padding: 8px 2px;
}

.nav-links a[aria-current="page"] {
  color: white;
}

.hero {
  padding: 84px 0 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-2);
  box-shadow: 0 0 20px var(--brand-2);
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: .98;
  letter-spacing: -.065em;
}

.lede {
  color: var(--muted);
  max-width: 760px;
  font-size: clamp(17px, 2.2vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 18px 46px rgba(139,92,246,.28);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255,255,255,.055);
  color: var(--soft);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding-bottom: 72px;
}

.article {
  background: rgba(17,21,40,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 42px);
}

.article h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.02;
}

.article h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.article h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.article p,
.article li {
  color: var(--muted);
}

.article strong {
  color: var(--text);
}

.article a {
  color: #c4b5fd;
  text-decoration: underline;
  text-decoration-color: rgba(196,181,253,.4);
  text-underline-offset: 3px;
}

.article ul {
  padding-left: 22px;
}

.updated {
  display: inline-flex;
  color: var(--soft);
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.notice {
  border: 1px solid rgba(250,204,21,.22);
  background: rgba(250,204,21,.08);
  color: #fde68a;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin: 22px 0;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.side-card {
  background: rgba(17,21,40,.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.side-card h2,
.side-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: -.02em;
}

.side-card p,
.side-card a {
  color: var(--muted);
  font-size: 14px;
}

.side-links {
  display: grid;
  gap: 9px;
}

.side-links a {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid transparent;
}

.side-links a:hover {
  border-color: var(--line);
  color: white;
}

.page-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.page-card {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
}

.page-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.page-card p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8,10,20,.72);
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
}

.footer-note {
  color: var(--muted);
  max-width: 760px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.kbd {
  display: inline-block;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  padding: 2px 7px;
  border-radius: 8px;
  color: var(--soft);
  font-size: .92em;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 52px;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 28px;
  align-items: center;
  padding: 72px 0 40px;
}

.hero-card {
  background: rgba(17,21,40,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 16px;
  padding: 14px;
}

.stat b {
  display: block;
  font-size: 22px;
  letter-spacing: -.03em;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.content-shell {
  padding: 0 0 72px;
}

.section {
  background: rgba(17,21,40,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 22px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.04em;
}

.section h3 {
  margin: 24px 0 8px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.section p,
.section li {
  color: var(--muted);
}

.tier-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin: 18px 0 8px;
}

.tier-table th {
  text-align: left;
  color: var(--soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 12px 4px;
}

.tier-table td {
  background: rgba(255,255,255,.052);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  color: var(--muted);
}

.tier-table td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 14px 0 0 14px;
  width: 90px;
}

.tier-table td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 14px 14px 0;
}

.tier-badge {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  color: #090b16;
  background: linear-gradient(135deg, #facc15, #22d3ee);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 18px;
  padding: 16px;
}

.mini-card h3 {
  margin: 0 0 6px;
}

.mini-card p {
  margin: 0;
  font-size: 14px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.toc a {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 750;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq-item:first-of-type {
  border-top: 0;
}

.faq-item h3 {
  margin-top: 0;
}

@media (max-width: 860px) {
  .hero-panel {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .tier-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
