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

:root {
    --bg: #f2f2f2;
    --card: #ffffff;
    --text: #222;
    --text-secondary: #666;
    --text-light: #999;
    --accent-red: #e63946;
    --accent-teal: #2a9d8f;
    --accent-orange: #ed713a;
    --accent-blue: #457b9d;
    --border: #e0e0e0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Top Bar ── */

.top-bar {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--accent-orange);
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.logo .tm {
    font-size: 0.6em;
    vertical-align: super;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-badge {
    background: var(--accent-red);
    color: #fff;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    white-space: nowrap;
}

/* ── Hero ── */

.hero {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    color: var(--accent-orange);
    margin-bottom: 16px;
    font-weight: 600;
}

.hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: #aaa;
    margin-bottom: 20px;
}

.hero-meta {
    font-size: 0.8rem;
    color: #666;
}

/* ── Big Number ── */

.big-number-section {
    text-align: center;
    padding: 60px 20px;
    background: var(--card);
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.big-number {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    color: var(--accent-red);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.big-number::after {
    content: '%';
    font-size: 0.4em;
    vertical-align: super;
    margin-left: 4px;
}

.big-number-label {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.big-number-subtitle {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.comparison {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.comparison-item {
    display: flex;
    flex-direction: column;
}

.comparison-value {
    font-size: 2rem;
    font-weight: 700;
}

.comparison-value.good {
    color: var(--accent-teal);
}

.comparison-value.bad {
    color: var(--accent-red);
}

.comparison-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* ── Executive Summary ── */

.executive-summary {
    background: var(--card);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    font-family: Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

.executive-summary p {
    margin-bottom: 20px;
}

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

/* ── Pull Quotes ── */

.pull-quote {
    border-left: 4px solid var(--accent-orange);
    padding: 16px 24px;
    margin: 24px 0;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text);
    background: #fafafa;
}

.quote-attr {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Section Dividers ── */

.section-divider {
    text-align: center;
    margin: 50px 0 30px;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.section-divider span {
    position: relative;
    background: var(--bg);
    padding: 0 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
}

.section-divider.alert span {
    background: #fff3cd;
    color: #856404;
    padding: 8px 20px;
    border: 2px solid #ffc107;
}

/* ── Chart Sections ── */

.chart-section {
    background: var(--card);
    padding: 30px;
    margin-bottom: 24px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.chart-section h2 {
    font-family: Georgia, serif;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.chart-section h3 {
    font-family: Georgia, serif;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.chart-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    margin: 20px 0;
}

.chart-note {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 12px;
}

.chart-finding {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ── Chart Grid ── */

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.chart-grid .chart-section {
    margin-bottom: 0;
}

/* ── Featured Charts ── */

.chart-section.featured {
    border-left: 4px solid var(--accent-orange);
}

.key-finding {
    display: inline-block;
    background: var(--accent-orange);
    color: #fff;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.analysis {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    line-height: 1.7;
}

.analysis p {
    margin-bottom: 16px;
}

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

.stat-callout {
    background: #fafafa;
    border: 1px solid var(--border);
    padding: 16px;
    font-size: 0.9rem;
    margin: 16px 0;
}

/* ── Composite / Optimal Config ── */

.composite {
    border-left: none;
}

.composite .section-divider {
    margin-top: 0;
}

.optimal-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 30px 0;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    gap: 12px;
}

.config-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.config-value {
    font-weight: 700;
    text-align: right;
}

.projected-rate {
    text-align: center;
    padding: 40px 20px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
}

.projected-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-orange);
    line-height: 1;
}

.projected-label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.projected-note {
    font-family: Georgia, serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-style: italic;
}

/* ── Methodology ── */

.methodology {
    background: var(--card);
    padding: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.methodology h3 {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.methodology h3:first-of-type {
    margin-top: 0;
}

.methodology p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ── Footer ── */

footer {
    background: #1a1a2e;
    color: #888;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.85rem;
}

footer p {
    margin-bottom: 8px;
}

.footer-hotlou {
    color: var(--accent-orange);
    font-weight: 600;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #555;
    margin-top: 16px;
}

/* ── Responsive ── */

@media (max-width: 600px) {
    .comparison {
        flex-direction: column;
        gap: 20px;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .optimal-config {
        grid-template-columns: 1fr;
    }

    .executive-summary,
    .methodology {
        padding: 24px;
    }

    .chart-section {
        padding: 20px;
    }

    .nav-links a {
        display: none;
    }

    .hero {
        padding: 40px 0 30px;
    }
}
