:root {
    color-scheme: dark;
    --bg: #08101f;
    --panel: #101a2d;
    --panel-soft: #162238;
    --border: #2b3a53;
    --text: #dce6f5;
    --muted: #94a3b8;
    --accent: #3b82f6;
    --accent-soft: #172e55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: #7db4ff; }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; }
code { color: #bfdbfe; }
pre {
    overflow-x: auto;
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #070d18;
    color: #cbd5e1;
    line-height: 1.55;
}

.docs-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 16, 31, 0.94);
    backdrop-filter: blur(12px);
}
.brand { color: var(--text); font-size: 17px; font-weight: 750; text-decoration: none; }
.docs-header nav { display: flex; gap: 10px; }
.docs-header nav a, .hero-actions a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    text-decoration: none;
}
.hero-actions a.primary { border-color: #2563eb; background: #2563eb; color: white; }

.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 820px); gap: 42px; max-width: 1140px; margin: 0 auto; padding: 36px 28px 80px; }
.docs-nav { position: sticky; top: 92px; display: flex; height: max-content; flex-direction: column; gap: 4px; }
.docs-nav strong { margin-bottom: 8px; color: #f8fafc; }
.docs-nav a { padding: 5px 8px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.docs-nav a:hover { background: var(--panel); color: var(--text); }

.docs-content section { padding: 28px 0; border-bottom: 1px solid var(--border); }
.docs-content .hero { padding-top: 14px; }
h1 { margin: 4px 0 14px; color: #f8fafc; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.035em; }
h2 { margin: 0 0 14px; color: #f8fafc; font-size: 27px; line-height: 1.25; }
h3 { margin: 24px 0 7px; color: #eaf1fb; font-size: 18px; }
h4 { margin: 18px 0 5px; color: #cbd5e1; }
p { margin: 10px 0; }
ul, ol { padding-left: 24px; }
li + li { margin-top: 5px; }
.eyebrow { color: #60a5fa; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.hero > p { max-width: 720px; color: #b8c5d8; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.callout { margin: 18px 0; padding: 15px 17px; border: 1px solid var(--border); border-left: 3px solid #64748b; border-radius: 8px; background: var(--panel); }
.callout.important { border-left-color: var(--accent); background: var(--accent-soft); }
.callout.warning { border-left-color: #f59e0b; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
th { background: var(--panel-soft); color: #f8fafc; }
tbody tr:nth-child(even) { background: rgba(255,255,255,0.018); }
dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 18px; }
dt { color: #bfdbfe; font-weight: 750; }
dd { margin: 0; }
.release, .timeline article { padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.release h3 { margin-top: 0; }
.timeline { display: grid; gap: 12px; }
.timeline p { margin-bottom: 0; color: #b7c3d4; }
.docs-content footer { display: flex; justify-content: space-between; padding-top: 26px; color: var(--muted); }

@media (max-width: 820px) {
    .docs-header { padding: 0 16px; }
    .docs-header nav a:last-child { display: none; }
    .docs-layout { display: block; padding: 24px 18px 60px; }
    .docs-nav { position: static; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
    .docs-nav strong { grid-column: 1 / -1; }
    dl { grid-template-columns: 1fr; gap: 2px; }
    dd { margin-bottom: 10px; }
}

@media print {
    :root { color-scheme: light; }
    body { background: white; color: black; }
    .docs-header, .docs-nav, .hero-actions { display: none; }
    .docs-layout { display: block; max-width: none; padding: 0; }
    .docs-content section { break-inside: avoid; border-color: #ccc; }
    h1, h2, h3, h4, code, a { color: black; }
    pre, .callout, .release, .timeline article { border-color: #bbb; background: white; color: black; }
}
