*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-page: #0a0a0a;
    --bg-sidebar: #0f0f0f;
    --bg-surface: #111111;
    --bg-hover: rgba(255,255,255,0.04);
    --bg-active: rgba(159, 214, 237, 0.10);
    --border: rgba(255,255,255,0.06);
    --border-active: #9FD6ED;
    --text: #a1a1aa;
    --text-heading: #fafafa;
    --text-muted: #71717a;
    --text-dim: #52525b;
    --accent: #9FD6ED;
    --accent-dim: rgba(159, 214, 237, 0.15);
    --tag-yes: #22c55e;
    --tag-caution: #eab308;
    --radius: 8px;
    --radius-sm: 4px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--text);
    display: flex;
    line-height: 1.7;
    min-height: 100vh;
}

/* ── Sidebar ────────────────────────────── */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    text-decoration: none;
}

.logo-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 2px 8px;
    border-radius: 999px;
}

.sidebar-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-search input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text);
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.sidebar-search input:focus {
    border-color: var(--accent);
}

.sidebar-search input::placeholder {
    color: var(--text-dim);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-title {
    display: block;
    padding: 8px 24px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.nav-link {
    display: block;
    padding: 6px 24px;
    font-size: 0.875rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.nav-link:hover {
    color: var(--text-heading);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--accent);
    background: var(--bg-active);
    border-left-color: var(--accent);
}

.sidebar-footer {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
}

.sidebar-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.sidebar-footer a:hover {
    color: var(--accent);
}

/* ── Content ────────────────────────────── */

.content {
    margin-left: 280px;
    flex: 1;
    max-width: 900px;
    padding: 48px 64px 64px;
}

section {
    margin-bottom: 64px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 32px 0 12px;
}

p {
    margin-bottom: 16px;
    color: var(--text);
}

p.lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    color: var(--text-heading);
    font-weight: 600;
}

code {
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    border: 1px solid var(--border);
    color: var(--accent);
}

kbd {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1px 6px;
    font-size: 0.85em;
    font-family: inherit;
    color: var(--text-heading);
}

ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

ol li {
    margin-bottom: 8px;
}

/* ── Download Card ───────────────────────── */

.download-card {
    margin: 24px 0 32px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #9FD6ED 0%, #7BB8D1 100%);
    color: #0a0a0a;
    padding: 18px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 24px rgba(159, 214, 237, 0.25);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(159, 214, 237, 0.35);
    text-decoration: none;
}

.download-icon {
    font-size: 2rem;
    line-height: 1;
}

.download-text {
    display: flex;
    flex-direction: column;
}

.download-label {
    font-size: 1.1rem;
    font-weight: 700;
}

.download-sub {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
}

/* ── Feature Highlights ─────────────────── */

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.highlight-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.15s;
}

.highlight-card:hover {
    border-color: var(--accent);
}

.highlight-icon {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: block;
}

.highlight-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.highlight-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Callout ─────────────────────────────── */

.callout {
    padding: 16px 20px;
    border-radius: var(--radius);
    border-left: 3px solid;
    margin: 24px 0;
    font-size: 0.9rem;
}

.callout.info {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: #3b82f6;
    color: #93c5fd;
}

.callout.warn {
    background: rgba(234, 179, 8, 0.08);
    border-left-color: #eab308;
    color: #fde68a;
}

/* ── Feature Table ───────────────────────── */

.feature-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 16px 0;
}

.feature-table thead {
    background: var(--bg-surface);
}

.feature-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.feature-table td {
    padding: 10px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.feature-table tbody tr {
    transition: background 0.1s;
}

.feature-table tbody tr:hover {
    background: var(--bg-hover);
}

.feature-table tbody tr:last-child td {
    border-bottom: none;
}

.feature-table td:first-child {
    font-weight: 500;
    color: var(--text-heading);
    white-space: nowrap;
}

.feature-table td:nth-child(2) {
    color: var(--text);
}

.feature-table td:last-child {
    text-align: center;
    width: 70px;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

.tag.yes {
    background: rgba(34, 197, 94, 0.12);
    color: var(--tag-yes);
}

.tag.caution {
    background: rgba(234, 179, 8, 0.12);
    color: var(--tag-caution);
}

/* ── Footer ──────────────────────────────── */

.content-footer {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.content-footer a {
    color: var(--text-muted);
}

.content-footer a:hover {
    color: var(--accent);
}

/* ── Scrollbar ───────────────────────────── */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-dim);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
