:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #050c17;
  --panel: #0d1b30;
  --panel-2: #10243f;
  --line: #1d3354;
  --line-soft: #162945;
  --text: #e5edf9;
  --muted: #9fb0c7;
  --muted-2: #7086a4;
  --blue: #60a5fa;
  --blue-soft: #93c5fd;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --shadow: 0 24px 80px rgb(0 0 0 / 28%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgb(30 64 175 / 32%), transparent 36%),
    radial-gradient(circle at 88% 8%, rgb(8 145 178 / 16%), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--blue-soft);
  text-decoration: none;
}

a:hover {
  color: #dbeafe;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

code,
pre {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

code {
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #081426;
  color: #bfdbfe;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #050e1b;
  color: #d8e4f5;
  font-size: 0.86rem;
  line-height: 1.7;
}

pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h2 {
  margin-top: 2.2em;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  margin-top: 1.7em;
  font-size: 1.16rem;
}

p {
  margin: 0.8em 0;
  color: var(--muted);
}

ul,
ol {
  color: var(--muted);
}

li + li {
  margin-top: 0.35em;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgb(29 51 84 / 70%);
  background: rgb(7 17 31 / 86%);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #2b4b76;
  border-radius: 9px;
  background: linear-gradient(145deg, #1d4ed8, #0e7490);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: -3px;
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--panel-2);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #061226;
}

.btn-primary:hover {
  background: #93c5fd;
  color: #061226;
}

.btn-ghost {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #35557f;
  background: var(--panel-2);
  color: var(--text);
}

.hero {
  padding: 76px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgb(96 165 250 / 30%);
  border-radius: 999px;
  background: rgb(96 165 250 / 8%);
  color: var(--blue-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(52 211 153 / 12%);
}

.hero h1 {
  margin: 18px 0 14px;
}

.hero .lead {
  max-width: 62ch;
  color: #b7c6db;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-points li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--green);
  font-weight: 800;
}

.hero-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(16 36 63 / 92%), rgb(10 24 44 / 92%));
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.version-row:last-of-type {
  border-bottom: 0;
}

.version-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.version-row strong {
  color: var(--green);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92rem;
}

.section {
  padding: 42px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head p {
  margin-top: 8px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 16px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(13 27 48 / 84%);
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card p {
  flex: 1;
}

.card .btn {
  align-self: flex-start;
  margin-top: 10px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border: 1px solid #294b78;
  border-radius: 10px;
  background: #102844;
  color: var(--blue-soft);
  font-size: 1.05rem;
  font-weight: 800;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  padding: 4px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.notice {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgb(96 165 250 / 28%);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  background: rgb(30 64 175 / 12%);
}

.notice p {
  margin: 0;
  color: #c8d7eb;
  font-size: 0.9rem;
}

.notice strong {
  color: var(--blue-soft);
}

.notice-warn {
  border-color: rgb(251 191 36 / 28%);
  border-left-color: var(--amber);
  background: rgb(120 53 15 / 18%);
}

.notice-warn strong {
  color: var(--amber);
}

.notice-danger {
  border-color: rgb(248 113 113 / 28%);
  border-left-color: var(--red);
  background: rgb(127 29 29 / 16%);
}

.notice-danger strong {
  color: #fca5a5;
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 34px 0 64px;
}

.sidebar {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(13 27 48 / 72%);
}

.sidebar-title {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar nav {
  display: grid;
  gap: 3px;
}

.sidebar a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.sidebar a:hover,
.sidebar a[aria-current="page"] {
  background: var(--panel-2);
  color: var(--text);
}

.sidebar .side-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 0.74rem;
}

.content {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 0.76rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.content > h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.content > .lead {
  max-width: 72ch;
  font-size: 1.02rem;
}

.content h2 {
  padding-top: 8px;
  scroll-margin-top: 90px;
}

.content h3 {
  scroll-margin-top: 90px;
}

.steps {
  display: grid;
  gap: 18px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 20px 22px 20px 62px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(13 27 48 / 70%);
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #2e527f;
  border-radius: 50%;
  background: #102844;
  color: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.steps h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.steps p {
  margin: 0.45em 0;
  font-size: 0.9rem;
}

.figure {
  min-width: 0;
  margin: 18px 0 24px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #081426;
}

.figure img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.figure figcaption {
  padding: 9px 4px 1px;
  color: var(--muted-2);
  font-size: 0.74rem;
}

.figure-small {
  max-width: 520px;
  margin-inline: auto;
}

.code-block {
  position: relative;
  min-width: 0;
  margin: 14px 0;
}

.code-block pre {
  max-height: 520px;
  padding-right: 76px;
}

.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0c1d34;
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.copy:hover {
  border-color: #35557f;
  color: var(--text);
}

.table-wrap {
  min-width: 0;
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  background: #0b1a2e;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--muted);
}

td strong {
  color: var(--text);
}

.checklist {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}

.checklist li::before {
  content: "✓";
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--green);
  font-weight: 800;
}

.faq {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(13 27 48 / 64%);
}

.faq summary {
  padding: 14px 16px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.faq details p {
  margin: 0;
  padding: 0 16px 15px;
  font-size: 0.86rem;
}

.footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: rgb(5 12 23 / 62%);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 0;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
}

.anchor-list {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.anchor-list a {
  color: var(--muted);
  font-size: 0.84rem;
}

.anchor-list a:hover {
  color: var(--blue-soft);
}

.kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--panel);
  color: var(--text);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78em;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    padding-top: 48px;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sidebar {
    position: static;
  }

  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .header-inner {
    min-height: 62px;
  }

  .main-nav {
    display: none;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .sidebar nav {
    grid-template-columns: 1fr;
  }

  .steps > li {
    padding: 18px 18px 18px 54px;
  }

  .steps > li::before {
    top: 18px;
    left: 16px;
  }

  .card {
    padding: 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
