:root {
  --background: #111318;
  --panel: #090b0f;
  --panel-soft: #11151c;
  --foreground: #c8edf0;
  --muted: #8ea5ab;
  --dim: #66818a;
  --accent: #7ce7ec;
  --violet: #c29cff;
  --border: #334d55;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #111318;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--foreground);
  background:
    linear-gradient(rgb(124 231 236 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(124 231 236 / 0.035) 1px, transparent 1px),
    radial-gradient(circle at top right, rgb(124 231 236 / 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgb(194 156 255 / 0.1), transparent 26%),
    var(--background);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

button {
  font: inherit;
}

code {
  font-family: inherit;
}

::selection {
  color: #090b0f;
  background: var(--accent);
}

.page-shell {
  position: relative;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(51 77 85 / 0.7);
  background: rgb(9 11 15 / 0.84);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 8px rgb(124 231 236 / 0.16));
}

.brand-mark img {
  display: block;
  width: 22px;
  height: 22px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--foreground);
}

.header-link {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgb(17 21 28 / 0.8);
}

.docs-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  padding-top: 42px;
  padding-bottom: 80px;
}

.docs-sidebar nav {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.docs-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
}

.docs-sidebar a:hover,
.docs-sidebar a:focus-visible {
  color: var(--foreground);
  background: rgb(17 21 28 / 0.9);
}

.sidebar-readme {
  margin-top: 10px;
  border: 1px solid var(--border);
}

.docs-content {
  min-width: 0;
  max-width: 900px;
}

.docs-content section {
  padding: 40px 0;
  border-bottom: 1px solid rgb(51 77 85 / 0.6);
  scroll-margin-top: 92px;
  animation: fade-up 700ms ease both;
}

.docs-content section:first-child {
  padding-top: 0;
}

.docs-content h1 {
  margin: 18px 0 20px;
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.docs-content h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.docs-content h3 {
  margin: 26px 0 12px;
  font-size: 16px;
  line-height: 1.4;
}

.docs-content p,
.docs-content li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.docs-content p {
  margin: 14px 0;
}

.docs-content ul,
.docs-content ol {
  margin: 14px 0;
  padding-left: 20px;
}

.docs-content strong {
  color: var(--foreground);
}

.docs-content code:not(pre code) {
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--violet);
  font-size: 12px;
}

.lead {
  max-width: 740px;
  font-size: 18px;
}

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

.tag {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.docs-note {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid rgb(194 156 255 / 0.38);
  border-radius: var(--radius);
  background: rgb(194 156 255 / 0.06);
}

.docs-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(9 11 15 / 0.65);
}

.docs-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.docs-table th {
  padding: 14px 16px;
  background: var(--panel);
  color: var(--foreground);
}

.docs-table td {
  padding: 14px 16px;
  border-top: 1px solid rgb(51 77 85 / 0.6);
  vertical-align: top;
  color: var(--muted);
  line-height: 1.7;
}

.code-wrap {
  position: relative;
  margin: 20px 0;
}

.code-block {
  margin: 0;
  padding: 20px;
  padding-right: 72px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  color: #a9dce3;
  font-size: 12px;
  line-height: 1.7;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgb(17 21 28 / 0.95);
  color: var(--foreground);
  cursor: pointer;
}

.copy-button:hover {
  color: white;
  border-color: rgb(124 231 236 / 0.7);
  transform: translateY(-1px);
}

.orb {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
}

.orb-one {
  top: 8%;
  right: 6%;
  width: 320px;
  height: 320px;
  background: rgb(124 231 236 / 0.08);
}

.orb-two {
  left: 4%;
  bottom: 4%;
  width: 280px;
  height: 280px;
  background: rgb(194 156 255 / 0.07);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .docs-sidebar {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

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

  .top-nav {
    gap: 12px;
  }

  .top-nav a:not(.header-link) {
    display: none;
  }

  .docs-shell {
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .docs-content section {
    padding: 32px 0;
  }

  .docs-content p,
  .docs-content li {
    font-size: 13px;
  }

  .lead {
    font-size: 16px;
  }

  .code-block {
    padding: 18px;
    padding-top: 56px;
  }

  .copy-button {
    min-width: 78px;
    min-height: 32px;
    font-size: 11px;
  }
}
