:root {
  --bg: #07090d;
  --bg-soft: #0d1016;
  --panel: rgba(18, 22, 31, 0.92);
  --panel-strong: #121824;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f7ff;
  --muted: #9cabc0;
  --accent: #6ee7c8;
  --accent-strong: #2ec7a5;
  --accent-soft: rgba(110, 231, 200, 0.12);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(46, 199, 165, 0.12), transparent 22%),
    linear-gradient(180deg, #07090d 0%, #05070b 100%);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 85%);
}

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

button,
input {
  font: inherit;
}

.docs-shell,
.docs-topbar {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.docs-topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-with-image {
  min-width: 0;
  gap: 28px;
}

.brand-copy {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding-left: 4px;
}

.brand-logo-image {
  display: block;
  width: min(420px, 34vw);
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.brand-logo-image-docs {
  width: min(280px, 21vw);
  max-height: 36px;
}

.brand-copy small,
.top-links a,
.eyebrow,
.side-label,
.card-kicker,
.meta {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy small {
  display: block;
  line-height: 1;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.doc-card:hover,
.side-link:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #04110e;
  font-weight: 800;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
}

.docs-shell {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0 40px;
}

.docs-sidebar,
.docs-content,
.doc-card,
.callout,
.step-list li,
.checklist li {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.docs-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 22px;
  border-radius: var(--radius-xl);
}

.docs-content {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.eyebrow {
  margin: 0 0 10px;
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.docs-content h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.docs-content h2 {
  margin-top: 28px;
  font-size: 1.7rem;
}

.docs-content h3 {
  margin-top: 24px;
  font-size: 1.18rem;
}

.lede,
.docs-content p,
.docs-content li {
  color: var(--muted);
  line-height: 1.75;
}

.lede {
  margin: 16px 0 0;
  max-width: 68ch;
  font-size: 1.03rem;
}

.search-box {
  display: grid;
  gap: 10px;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sidebar-group {
  margin-top: 22px;
}

.side-label {
  margin: 0 0 10px;
}

.side-nav {
  display: grid;
  gap: 10px;
}

.side-link {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.side-link strong {
  display: block;
}

.side-link small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.side-link.is-active {
  background: var(--accent-soft);
  border-color: rgba(110, 231, 200, 0.18);
}

.side-link.is-hidden,
.doc-card.is-hidden {
  display: none;
}

.sidebar-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.doc-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.doc-card strong {
  font-size: 1.2rem;
}

.callout {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(110, 231, 200, 0.09), rgba(255, 255, 255, 0.03));
}

.step-list,
.checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.step-list li,
.checklist li {
  padding: 18px;
  border-radius: var(--radius-md);
}

.step-list strong,
.checklist strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.docs-content ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.docs-content ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.info-table th,
.info-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.info-table td {
  color: var(--muted);
}

.inline-note {
  color: var(--text);
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #d9fff5;
}

@media (max-width: 1080px) {
  .docs-topbar,
  .docs-shell {
    width: min(100% - 20px, 100%);
  }

  .docs-topbar {
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .docs-shell,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .docs-content,
  .docs-sidebar,
  .doc-card {
    padding: 20px;
  }

  .top-links {
    width: 100%;
    justify-content: space-between;
  }

  .brand-logo-image-docs {
    width: min(220px, 44vw);
    max-height: 32px;
  }

  .sidebar-actions .button {
    width: 100%;
  }
}
