:root {
    color-scheme: dark;
    --page: #0c1018;
    --surface: #111824;
    --terminal: #0b1220;
    --line: #263245;
    --text: #edf3fc;
    --subtle: #afbdd1;
    --muted: #98adc8;
    --accent: #a1bfff;
    --button: #aec7ff;
    --max: 1232px;
    --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 99px; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.64 var(--sans); }
main { min-width: 0; }
a { color: var(--accent); text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #b9d1ff; outline-offset: 4px; }
::selection { background: #6088c9; color: #071326; }
.skip-link { position: fixed; z-index: 5; inset: 8px auto auto 8px; padding: 10px 16px; background: var(--page); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.topbar { background: #0c1018f5; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; }
.topbar-inner, .hero-inner, .docs-shell, .site-footer > div { width: min(var(--max), calc(100% - 72px)); margin-inline: auto; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 20px; }
.brand, .topbar nav a, .button { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; font-weight: 720; letter-spacing: -.015em; white-space: nowrap; }
.brand-symbol { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #506d9a; border-radius: 7px; background: #1b2c46; color: #c5d8ff; font: 700 17px/1 var(--mono); }
.brand-divider { color: #6889c2; padding-inline: 7px; }
.brand-area { color: var(--subtle); font-weight: 550; }
.topbar nav { display: flex; align-items: center; gap: 24px; }
.topbar nav a { color: var(--subtle); font-size: 14px; font-weight: 600; }
.topbar nav a:hover { color: var(--text); }
.topbar nav .top-download { border: 1px solid #536c96; color: var(--text); border-radius: 8px; padding: 6px 12px; white-space: nowrap; }
.top-download span { margin-left: 4px; color: var(--accent); }

.hero { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 78% -25%, #1b3459, #111b2c 39%, #0c1018 72%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(26px, 5vw, 88px); padding: clamp(58px, 8vw, 104px) 0; }
.hero-copy > p:not(.meta, .checksum-line) { max-width: 53ch; margin: 0; color: var(--subtle); font-size: clamp(16px, 1.6vw, 19px); }
.meta, .section-label, .toc-title { color: #a9c4fb; font: 650 11px/1.5 var(--mono); letter-spacing: .09em; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 20px; }
.meta > span { width: 4px; height: 4px; border-radius: 100%; background: #809dc9; }
h1 { font-size: clamp(46px, 6.8vw, 94px); font-weight: 760; letter-spacing: -.075em; line-height: .98; margin: 0 0 26px; max-width: 10ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 16px; font-size: 14px; font-weight: 680; border: 1px solid transparent; border-radius: 8px; }
.button.primary { background: var(--button); color: #0e1b34; }
.button.primary:hover { background: #c9daff; }
.button.secondary { border-color: #415674; background: #132035; color: var(--text); }
.button.secondary:hover { background: #1b2d48; }
.checksum-line { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.checksum-line a { font: 12px var(--mono); font-weight: 650; }
.hero-terminal { min-width: 0; background: var(--terminal); border: 1px solid #354760; border-radius: 12px; box-shadow: 0 24px 65px #05081390; overflow: hidden; }
.terminal-header { display: flex; gap: 15px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #121c2c; color: var(--subtle); font: 12px var(--mono); }
.terminal-lights { display: flex; gap: 5px; }
.terminal-lights i { display: block; border-radius: 50%; width: 7px; height: 7px; background: #54647b; }
.terminal-lights i:first-child { background: #90a6c7; }
.hero-terminal pre { padding: clamp(18px, 3vw, 36px) 19px; font-size: clamp(12px, 1.1vw, 14px); }
.code-keyword { color: #c5aef6; }
.code-type { color: #a6c7ff; }
.code-string { color: #a9e6b8; }
.terminal-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding: 11px 15px; color: var(--muted); font: 11px var(--mono); }
.terminal-footer code { font-size: 12px; }

.docs-shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: clamp(28px, 6vw, 82px); padding-block: 52px 68px; }
.sidebar { border-right: 1px solid var(--line); }
.toc { position: sticky; top: 99px; display: grid; gap: 5px; padding-right: 17px; }
.toc-title { margin: 4px 0 14px; font-size: 10px; }
.toc a { color: var(--muted); text-decoration: none; border-left: 2px solid transparent; border-radius: 0 5px 5px 0; padding: 6px 6px 6px 10px; font-size: 13px; line-height: 1.4; }
.toc a:hover, .toc a[aria-current="location"] { color: var(--text); background: #182337; border-left-color: var(--accent); }
.docs-content { max-width: 950px; min-width: 0; }
.docs-content section { padding-bottom: 45px; }
.docs-content section + section { border-top: 1px solid var(--line); padding-top: 39px; }
.section-label { margin: 0 0 9px; }
h2, h3 { letter-spacing: -.035em; line-height: 1.18; }
h2 { margin: 0 0 15px; font-size: clamp(28px, 3.2vw, 46px); font-weight: 725; }
h3 { margin: 27px 0 9px; font-size: clamp(17px, 1.8vw, 22px); font-weight: 680; }
p { margin: 0 0 14px; color: var(--subtle); }
strong { color: var(--text); }
code { font-family: var(--mono); }
:not(pre) > code { padding: 2px 5px; border: 1px solid #293850; border-radius: 4px; color: #c0d5fc; background: #151f30; font-size: .85em; overflow-wrap: anywhere; }
.steps, .plain-steps { padding-left: 25px; color: var(--subtle); }
.steps li { padding-left: 8px; }
.steps li::marker, .plain-steps li::marker { color: var(--accent); font: 700 13px var(--mono); }
.plain-steps { line-height: 1.62; }
.plain-steps li + li { margin-top: 8px; }
pre { margin: 0; max-width: 100%; overflow: auto; color: #d1dcf0; font: 13px/1.72 var(--mono); tab-size: 4; }
.code-block { margin: 15px 0 20px; min-width: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--terminal); }
.code-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; min-height: 43px; border-bottom: 1px solid var(--line); background: #131d2d; color: var(--muted); font: 11px var(--mono); }
.code-block pre { padding: 14px 14px 17px; }
.copy-button { min-width: 68px; color: var(--subtle); padding: 4px 8px; border: 1px solid #364963; background: #172438; border-radius: 6px; }
.copy-button:hover { color: var(--text); background: #21354f; }
.language-example { margin: 18px 0 22px; }
.language-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; background: #101824; }
.language-tabs button { padding: 5px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 13px; }
.language-tabs button:hover { color: var(--text); }
.language-tabs button[aria-pressed=true] { background: #243d63; color: #e0ebff; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compare { margin-block: 19px; }
.compare > div, .note { padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.note { margin-block: 19px; border-left: 3px solid #7090c7; }
.compare h3, .note h3 { margin-top: 0; }
.compare p, .note p { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
thead { background: #172237; }
tbody { background: #0f1724; }
th, td { padding: 10px 13px; vertical-align: top; text-align: left; }
tbody th { font-weight: 580; }
td { color: var(--subtle); }
tbody tr > * { border-top: 1px solid var(--line); }
tbody th code { color: #d4e2ff; line-height: 1.8; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 670; padding: 13px 0; }
summary::marker { color: var(--accent); }
details p { padding-inline: 14px; padding-bottom: 3px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .topbar-inner, .hero-inner, .docs-shell, .site-footer > div { width: calc(100% - 48px); }
    .hero-inner { gap: 22px; }
    .docs-shell { grid-template-columns: 161px minmax(0, 1fr); gap: 28px; }
    .two-col { grid-template-columns: 1fr; gap: 0; }
    .compare { gap: 9px; }
}
@media (max-width: 660px) {
    html { scroll-padding-top: 82px; }
    .topbar-inner, .hero-inner, .docs-shell, .site-footer > div { width: calc(100% - 32px); }
    .topbar-inner { min-height: 57px; }
    .topbar nav { gap: 9px; }
    .topbar nav a:not(.top-download) { display: none; }
    .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 42px 30px; }
    h1 { margin-bottom: 16px; }
    .hero-actions { margin-top: 20px; }
    .hero-terminal pre { padding: 16px 13px; }
    .docs-shell { display: block; padding-block: 27px 44px; }
    .sidebar { border: 0; border-bottom: 1px solid var(--line); margin-bottom: 25px; padding-bottom: 14px; }
    .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 5px; padding-right: 0; }
    .toc-title { grid-column: 1 / -1; margin-bottom: 4px; }
    .toc a { font-size: 12px; padding: 5px; }
    .docs-content section { padding-bottom: 29px; }
    .docs-content section + section { padding-top: 25px; }
    th, td { padding-inline: 8px; }
}
@media (max-width: 350px) {
    .brand { font-size: 13px; gap: 5px; }
    .brand-divider { padding-inline: 4px; }
    .button { gap: 5px; padding-inline: 8px; }
}
@media (max-width: 350px) {
    .topbar-inner { gap: 8px; }
    .topbar nav .top-download { font-size: 12px; padding-inline: 7px; }
}
