:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: #0b1714;
  --panel-2: #10221d;
  --line: #20372f;
  --line-bright: #335749;
  --text: #e9f5f0;
  --muted: #9bb0a8;
  --green: #8fffd6;
  --blue: #6dcfff;
  --amber: #ffc87c;
  --red: #ff9d9d;
  --sidebar: 280px;
  --content: 900px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.68; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #c4ffe9; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--green); color: #06100d; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-shell { min-height: 100vh; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 24px 18px 18px; background: linear-gradient(180deg, #0b1915, #08120f 70%); border-right: 1px solid var(--line); overflow-y: auto; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; padding: 0 7px 23px; }
.brand img { box-shadow: 0 0 30px rgba(98, 235, 200, .12); border-radius: 10px; }
.brand span { display: grid; line-height: 1.18; }
.brand strong { font-size: 1.08rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }
.search { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: #07120f; color: var(--muted); }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(143, 255, 214, .08); }
.search input { width: 100%; min-width: 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: .82rem; }
.search input::placeholder { color: #748b82; }
kbd { padding: 0 5px; border: 1px solid var(--line); border-bottom-color: var(--line-bright); border-radius: 4px; color: var(--muted); font: .69rem ui-monospace, monospace; }
.docs-nav { margin-top: 22px; }
.docs-nav p { margin: 19px 9px 5px; color: #698178; font-size: .67rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.docs-nav a { display: block; padding: 6px 9px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: .88rem; }
.docs-nav a:hover, .docs-nav a.active { color: var(--text); background: var(--panel-2); }
.docs-nav a.active { color: var(--green); box-shadow: inset 2px 0 var(--green); }
.docs-nav a[hidden] { display: none; }
.sidebar-footer { display: flex; gap: 15px; margin: 28px 8px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .78rem; }

.page { margin-left: var(--sidebar); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid rgba(32, 55, 47, .75); background: rgba(7, 17, 15, .88); backdrop-filter: blur(14px); }
.topbar-title { color: var(--muted); font-size: .82rem; }
.github-button { padding: 6px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); text-decoration: none; font-size: .78rem; }
.menu-button { display: none; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--text); padding: 5px 9px; }
.content { width: min(100%, calc(var(--content) + 96px)); margin: 0 auto; padding: 64px 48px 32px; }
.doc { min-height: calc(100vh - 190px); }
.doc > :first-child { margin-top: 0; }
.doc h1 { margin: 0 0 18px; max-width: 760px; font-size: clamp(2.3rem, 5vw, 4.35rem); line-height: 1.03; letter-spacing: -.055em; }
.doc h2 { margin: 62px 0 18px; padding-top: 2px; font-size: 1.72rem; line-height: 1.2; letter-spacing: -.035em; }
.doc h3 { margin: 34px 0 12px; font-size: 1.12rem; letter-spacing: -.015em; }
.doc h2, .doc h3 { color: #f2fbf7; }
.doc h2 a, .doc h3 a { color: inherit; text-decoration: none; }
.doc p, .doc ul, .doc ol { max-width: 790px; }
.doc > p:first-of-type:not(.eyebrow), .lede { max-width: 760px; color: #b9cec6; font-size: 1.16rem; line-height: 1.65; }
.eyebrow { margin-bottom: 10px; color: var(--green); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.doc strong { color: #f8fffc; }
.doc hr { margin: 56px 0; border: 0; border-top: 1px solid var(--line); }
.doc blockquote { margin: 25px 0; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 0 9px 9px 0; background: var(--panel); color: #c5d6d0; }
.doc blockquote p { margin: 0; }

code { padding: .13em .35em; border: 1px solid rgba(51, 87, 73, .7); border-radius: 5px; background: #0e1d19; color: #b5ffe4; font: .87em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { max-width: 100%; margin: 22px 0 28px; padding: 19px 21px; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: #050d0b; box-shadow: 0 16px 50px rgba(0, 0, 0, .15); line-height: 1.55; }
pre code { padding: 0; border: 0; background: transparent; color: #d3e6de; font-size: .85rem; }
.highlight .k, .highlight .kn, .highlight .kd { color: #81dfff; }
.highlight .s, .highlight .s1, .highlight .s2 { color: #b9ed9a; }
.highlight .nf, .highlight .nb { color: #f8c98a; }
.highlight .c, .highlight .c1 { color: #70847c; font-style: italic; }

.hero { position: relative; padding: 4px 0 34px; }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; left: -190px; top: -170px; border-radius: 50%; background: rgba(90, 245, 201, .08); filter: blur(70px); pointer-events: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.button { display: inline-flex; align-items: center; padding: 9px 14px; border: 1px solid var(--line-bright); border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 650; font-size: .86rem; }
.button.primary { border-color: var(--green); background: var(--green); color: #06110d; }
.button:hover { transform: translateY(-1px); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 8px; }
.stat { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, var(--panel), #0a1512); }
.stat strong { display: block; color: var(--green); font: 700 1.12rem ui-monospace, monospace; }
.stat span { color: var(--muted); font-size: .78rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.card { display: block; padding: 19px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg, var(--panel), #0a1512); color: var(--text); text-decoration: none; }
.card:hover { border-color: var(--line-bright); background: var(--panel-2); }
.card strong { display: block; margin-bottom: 4px; }
.card span, .card p { color: var(--muted); font-size: .86rem; }
.card p:last-child { margin-bottom: 0; }
.tag { display: inline-block; margin: 2px 5px 2px 0; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; color: #b7cbc3; font-size: .72rem; }
.callout { margin: 25px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.callout strong:first-child { color: var(--green); }
.callout.warning { border-color: #594a2c; background: #1a160d; }
.callout.warning strong:first-child { color: var(--amber); }
.steps { counter-reset: steps; padding: 0; list-style: none; }
.steps > li { position: relative; margin: 22px 0; padding-left: 46px; }
.steps > li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--green); font: 700 .76rem ui-monospace, monospace; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 25px 0; }
.flow span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); font: .78rem ui-monospace, monospace; }
.flow i { color: var(--green); font-style: normal; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; margin: 22px 0; border-collapse: collapse; font-size: .87rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--green); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
td { color: #c5d5cf; }
.page-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); color: #71877e; font-size: .76rem; }
.scrim { position: fixed; inset: 0; z-index: 15; background: rgba(0, 0, 0, .58); }

@media (max-width: 820px) {
  .sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .35); }
  .sidebar.open { transform: translateX(0); }
  .page { margin-left: 0; }
  .menu-button { display: inline-block; }
  .content { padding: 45px 24px 28px; }
  .topbar { padding: 0 20px; }
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .doc h1 { font-size: 2.45rem; }
  .stat-row { grid-template-columns: 1fr; }
  .github-button { display: none; }
  .content { padding-inline: 18px; }
  .page-footer { flex-direction: column; }
}

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