:root {
    --bg: #09090b;
    --surface: #18181b;
    --border: #27272a;
    --text: #fafafa;
    --muted: #a1a1aa;
    --accent: #2dd4bf;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}
.logo span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 1.5rem; font-size: 0.9rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Layout */
main { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }

/* Hero */
.hero { padding: 6rem 0 4rem; }
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 800px;
}
.lede {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 650px;
    margin-bottom: 3rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.stat-val {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Typography */
h2 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 2.5rem 0 1rem; }
p { color: var(--muted); margin-bottom: 1rem; }

/* Cards & Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}
.card h3 { margin-top: 0; margin-bottom: 1rem; }

.spec-list { list-style: none; }
.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list span:first-child { color: var(--muted); }
.spec-list span:last-child { font-family: var(--font-mono); color: var(--text); }

/* Code Blocks */
pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}
code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e4e4e7;
}
p code, li code {
    background: var(--surface);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid var(--border);
}

.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s;
}
.copy-btn:hover { color: var(--text); border-color: var(--muted); }

/* Data Mix Bar */
.data-mix { margin: 1.5rem 0; }
.mix-bar {
    display: flex;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 500;
    color: #000;
}
.seg { display: flex; align-items: center; justify-content: center; }
.seg.web { background: #2dd4bf; }
.seg.cos { background: #fbbf24; }
.seg.py { background: #a3e635; }

.bullet-list { list-style: disc; padding-left: 1.5rem; color: var(--muted); }
.bullet-list li { margin-bottom: 0.5rem; }
.bullet-list strong { color: var(--text); }

/* Ledger (Accordion) */
.ledger { margin-top: 2rem; }
.ledger-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: var(--surface);
}
.ledger-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    list-style: none;
}
.ledger-item summary::-webkit-details-marker { display: none; }
.ledger-item summary::after {
    content: '+';
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--muted);
    transition: transform 0.2s;
}
.ledger-item[open] summary::after { content: '–'; }
.ledger-item .num {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
}
.ledger-item p {
    padding: 0 1.5rem 1.5rem 3.5rem;
    margin: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}