:root {
  color-scheme: dark;
  --bg: #080b12;
  --panel: #111725;
  --panel-hover: #172136;
  --text: #f3f6ff;
  --muted: #a8b1c5;
  --line: #28334a;
  --accent: #8ab4ff;
  --accent-strong: #b7ccff;
  --success: #73dca0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 5%, rgb(57 94 164 / 35%), transparent 34rem),
    linear-gradient(180deg, #0d1320 0, var(--bg) 32rem);
  color: var(--text);
}

a { color: inherit; }

.hero,
main,
footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.docs-header {
  width: min(880px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.docs-header a { color: var(--accent-strong); font-weight: 800; text-decoration: none; }

.docs main { width: min(880px, calc(100% - 2rem)); margin: 4rem auto; }

article {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--panel);
}

article h1 { font-size: clamp(2.2rem, 7vw, 4.5rem); line-height: 1; }
article h2 { margin-top: 2.8rem; }
article h3 { margin-top: 2rem; }
article p,
article li { color: var(--muted); line-height: 1.7; }
article a { color: var(--accent-strong); }
article code { color: var(--text); }

pre {
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--bg);
  line-height: 1.55;
}

blockquote {
  margin-inline: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th,
td { padding: 0.8rem; border: 1px solid var(--line); text-align: left; }
th { color: var(--text); }

.hero { padding: 7rem 0 4.5rem; }

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 { margin-top: 0; letter-spacing: -0.025em; }

h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.93;
}

h2 { font-size: clamp(1.8rem, 4vw, 2.65rem); }
h3 { margin-bottom: 0.65rem; font-size: 1.3rem; }

.lede {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.6;
}

section { margin-bottom: 5rem; }
.section-heading { margin-bottom: 1.5rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  min-height: 175px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgb(17 23 37 / 82%);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--accent);
  background: var(--panel-hover);
  transform: translateY(-2px);
}

.card p,
.split p,
footer p { color: var(--muted); line-height: 1.55; }

.card.active { border-color: rgb(115 220 160 / 60%); }

.status {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.split > div {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--panel);
}

.text-link { color: var(--accent-strong); font-weight: 700; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 680px) {
  .hero { padding-top: 4.5rem; }
  .split { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f7fc;
    --panel: #ffffff;
    --panel-hover: #f2f6ff;
    --text: #111827;
    --muted: #526078;
    --line: #d7deea;
    --accent: #285db8;
    --accent-strong: #16488f;
    --success: #167a46;
  }

  body {
    background:
      radial-gradient(circle at 85% 5%, rgb(138 180 255 / 28%), transparent 34rem),
      linear-gradient(180deg, #eaf1ff 0, var(--bg) 32rem);
  }

  .card { background: rgb(255 255 255 / 86%); }
}
