:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #3b82f6;
    --accent-dim: #1d4ed8;
    --border: #27272a;
    --success: #22c55e;
    --warning: #eab308;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-brand span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

/* Hero */
.hero {
    padding: 10rem 2rem 5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Main content */
.main {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* Table of contents */
.toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 4rem;
}

.toc h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.toc-list {
    list-style: none;
    columns: 2;
    gap: 2rem;
}

.toc-list li { margin-bottom: 0.6rem; }

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.toc-list a:hover { color: var(--accent); }

/* Sections */
.section {
    margin-bottom: 5rem;
    scroll-margin-top: 6rem;
}

.section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
    letter-spacing: -0.02em;
}

.section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1.25rem;
    color: var(--text-primary);
}

.section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text-secondary);
}

.section p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.section strong { color: var(--text-primary); }

/* Metrics grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
}

.metric-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem 1rem;
    text-align: center;
    transition: border-color 0.2s;
}

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

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 1.75rem 0;
    border-radius: 12px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th {
    background: var(--bg-tertiary);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

tr.highlight td {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
    font-weight: 600;
}

/* Lists */
ul, ol {
    margin: 1.25rem 0 1.25rem 1.75rem;
    color: var(--text-secondary);
}

li { 
    margin-bottom: 0.6rem;
    padding-left: 0.25rem;
}

li strong {
    color: var(--text-primary);
}

/* Callout boxes */
.callout {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    margin: 2rem 0;
}

.callout.accent {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.callout-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.callout p {
    margin-bottom: 0.75rem;
}

.callout p:last-child {
    margin-bottom: 0;
}

.callout ol, .callout ul {
    margin-bottom: 0;
}

/* Conclusion statement */
.conclusion-statement {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    text-align: center;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
}

.footer-brand {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-disclaimer {
    margin-top: 1.5rem !important;
    font-size: 0.8rem !important;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 8rem 1.5rem 4rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .nav-links { display: none; }
    .nav { padding: 1rem 1.5rem; }
    .toc-list { columns: 1; }
    .main { padding: 3rem 1.5rem; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .section h2 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}

/* Print styles */
@media print {
    .nav, .toc { display: none; }
    body { background: white; color: black; }
    .hero { padding-top: 2rem; background: none; }
    .section { page-break-inside: avoid; }
    .metric-card { border: 1px solid #ccc; }
    .callout { border: 1px solid #ccc; background: #f9f9f9; }
}
