/* =====================================================================
   INVESTING IN THE AGE OF AI - COMPLETE STYLESHEET
   Dark-themed, data-driven investment analysis site
   Console/cockpit aesthetic with scan lines and corner brackets
   ===================================================================== */

/* =====================================================================
   GOOGLE FONTS IMPORT
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* =====================================================================
   CSS CUSTOM PROPERTIES (ROOT VARIABLES)
   ===================================================================== */
:root {
    /* Background Colors */
    --bg: #0a0e1a;
    --bg-panel: #151d2e;
    --bg-card: #131a2b;
    --bg-data: #111827;

    /* Text Colors */
    --text: #e8e6e1;
    --text-muted: #8a8f9e;
    --text-dim: #4a5168;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.12);

    /* Accent Colors */
    --accent-primary: #f59e0b;  /* amber */
    --accent-secondary: #3b82f6;  /* blue */
    --accent-positive: #10b981;  /* green */
    --accent-negative: #ef4444;  /* red */
    --accent-special: #a78bfa;  /* purple */

    /* Font Families */
    --font-headline: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Caveat', cursive;

    /* Layout */
    --max-width: 900px;
    --section-pad: 64px;
}

/* =====================================================================
   RESET & BASE STYLES
   ===================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Starfield canvas background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* =====================================================================
   TYPOGRAPHY SYSTEM
   ===================================================================== */

/* Hero h1: 42px, 700, JetBrains Mono */
h1 {
    font-family: var(--font-headline);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 0.5em;
}

/* Section h2: 26px, 700, JetBrains Mono */
h2 {
    font-family: var(--font-headline);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 0.75em;
}

/* Heading level 3: 20px, 600 */
h3 {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.5em;
}

/* Heading level 4: 16px, 600 */
h4 {
    font-family: var(--font-headline);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 0.4em;
}

/* Body paragraph: 17px, 400, Inter */
p {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.72;
    color: var(--text);
    margin-bottom: 1.5em;
}

/* Kicker/label: 11px, 600, uppercase */
.kicker,
.label {
    font-family: var(--font-headline);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 1em;
    display: block;
}

/* Stat number: 48px, 700, JetBrains Mono, amber */
.stat-number {
    font-family: var(--font-headline);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent-primary);
}

/* Stat label: 14px, 400, Inter */
.stat-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
    margin-top: 0.5em;
}

/* Chart title: 14px, 600, JetBrains Mono */
.chart-title {
    font-family: var(--font-headline);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1em;
}

/* Bar label: 13px, 500, JetBrains Mono */
.bar-label {
    font-family: var(--font-headline);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Panel title: 12px, 600, JetBrains Mono, green */
.panel-title {
    font-family: var(--font-headline);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-positive);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1em;
}

/* Source/citation: 13px, 400, Inter */
.source,
.citation {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-dim);
    margin-top: 1em;
}

/* Disclaimer: 13px, 400, Inter */
.disclaimer {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dim);
}

/* Links */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text);
}

/* Strong/bold */
strong,
b {
    font-weight: 600;
    color: var(--text);
}

/* =====================================================================
   CONSOLE PANEL SYSTEM
   Applied to all data containers: stat-card, chart-container,
   panel, stage-card, methodology, closing-card, sim-readout
   ===================================================================== */

/* Base console panel styling */
.console-panel,
.stat-card,
.chart-container,
.panel,
.stage-card,
.methodology,
.closing-card,
.sim-readout {
    border-radius: 0;
    border: 1px solid rgba(245, 158, 11, 0.10);
    box-shadow:
        inset 0 0 30px rgba(245, 158, 11, 0.02),
        0 0 8px rgba(245, 158, 11, 0.03);
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.015) 3px,
            rgba(255, 255, 255, 0.015) 4px
        ),
        var(--bg-panel);
}

/* Corner bracket styling: top-left (::before) */
.console-panel::before,
.stat-card::before,
.chart-container::before,
.panel::before,
.stage-card::before,
.methodology::before,
.closing-card::before,
.sim-readout::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-right: none;
    border-bottom: none;
    pointer-events: none;
}

/* Corner bracket styling: bottom-right (::after) */
.console-panel::after,
.stat-card::after,
.chart-container::after,
.panel::after,
.stage-card::after,
.methodology::after,
.closing-card::after,
.sim-readout::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: none;
    border-top: none;
    pointer-events: none;
}

/* Ensure position: relative on console panels */
.stat-card,
.chart-container,
.panel,
.stage-card,
.methodology,
.closing-card,
.sim-readout {
    position: relative;
}

/* =====================================================================
   LAYOUT & CONTAINERS
   ===================================================================== */

/* Main container */
.container,
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section padding */
section {
    padding: var(--section-pad) 0;
}

/* Ensure all content sits above the starfield canvas */
section,
.hero,
.page-hero,
.end-cta,
.inline-cta {
    position: relative;
    z-index: 10;
}

/* Disclaimer bar — opaque, centered, no starfield bleed */
.disclaimer-bar,
.investment-disclaimer {
    position: relative;
    z-index: 10;
    background: #0a0e1a !important;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    border-top: 1px solid rgba(220, 38, 38, 0.1);
}

.disclaimer-bar p {
    margin: 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

.disclaimer-bar a {
    color: #ef4444;
    text-decoration: none;
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

footer.site-footer {
    position: relative;
    z-index: 10;
    background: #0a0e1a !important;
    margin-top: 0 !important;
}

footer {
    position: relative;
    z-index: 1;
    background: #0a0e1a;
}

/* =====================================================================
   NAVIGATION
   ===================================================================== */

nav.site-nav {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
}

@media (min-width: 880px) {
    nav.site-nav {
        padding: 1rem max(1.5rem, calc((100vw - var(--max-width)) / 2 + 1.5rem));
    }
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand name */
.brand {
    font-family: var(--font-headline);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

/* =====================================================================
   STICKY HEADER CTA
   ===================================================================== */

.sticky-header-cta {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-header-cta.visible {
    transform: translateY(0);
}

.sticky-cta-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sticky-cta-text {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

.sticky-cta-button {
    background-color: var(--accent-primary);
    color: var(--bg);
    padding: 0.5rem 1.25rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
}

.sticky-cta-button:hover {
    background-color: #d97706;
}

/* =====================================================================
   READING PROGRESS BAR
   ===================================================================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--accent-primary);
    z-index: 1000;
    width: 0;
    transition: width 50ms linear;
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */

.hero {
    background-color: var(--bg);
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 0.5em;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Page hero (for non-essay pages) */
.page-hero {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 4rem 1.5rem;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 0;
}

/* =====================================================================
   CARDS (ESSAY/ARTICLE CARDS)
   ===================================================================== */

.card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    box-shadow:
        0 8px 24px rgba(245, 158, 11, 0.08),
        inset 0 0 20px rgba(245, 158, 11, 0.01);
}

/* Card header with badge */
.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-badge {
    font-family: var(--font-headline);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.35em 0.75em;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-badge.essay {
    border-color: rgba(16, 185, 129, 0.4);
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--accent-positive);
}

.card-badge.tool {
    border-color: rgba(245, 158, 11, 0.4);
    background-color: rgba(245, 158, 11, 0.08);
    color: var(--accent-primary);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.card-hook {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-dim);
}

.card-date {
    font-family: var(--font-headline);
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* =====================================================================
   LEAD MAGNET / FEATURE CARD
   ===================================================================== */

.magnet-card {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.015) 3px,
            rgba(255, 255, 255, 0.015) 4px
        ),
        var(--bg-panel);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--accent-primary), rgba(245, 158, 11, 0)) 1;
    padding: 2.5rem;
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
    position: relative;
}

.magnet-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-right: none;
    border-bottom: none;
}

.magnet-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: none;
    border-top: none;
}

.magnet-card h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.magnet-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* =====================================================================
   FORMS: SUBSCRIBE & INPUTS
   ===================================================================== */

/* Subscribe form container */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subscribe-form.inline {
    flex-direction: row;
    gap: 0;
}

/* Form input */
.form-input {
    background-color: var(--bg-data);
    border: 1px solid var(--border-light);
    color: var(--text);
    padding: 0.875rem 1.125rem;
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

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

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.15);
}

/* Form button */
.form-button {
    background-color: var(--accent-primary);
    color: var(--bg);
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-button:hover {
    background-color: #d97706;
}

.form-button:active {
    background-color: #b45309;
}

/* Inline subscribe form */
.subscribe-form.inline .form-input {
    flex: 1;
    border-right: none;
}

.subscribe-form.inline .form-button {
    border-left: 1px solid var(--border-light);
}

/* Form status messages */
.form-message {
    font-size: 13px;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 2px;
}

.form-message.success {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--accent-positive);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--accent-negative);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Large subscribe variant */
.subscribe-block--large {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-block--large h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.subscribe-block--large p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.subscribe-form--large {
    flex-direction: column;
    gap: 1rem;
}

.form-input--large {
    background-color: var(--bg-data);
    border: 2px solid var(--border-light);
    color: var(--text);
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    font-family: var(--font-body);
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-input--large::placeholder {
    color: var(--text-dim);
}

.form-input--large:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.form-button--large {
    background-color: var(--accent-primary);
    color: var(--bg);
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: 100%;
}

.form-button--large:hover {
    background-color: #d97706;
    transform: translateY(-1px);
}

.form-button--large:active {
    background-color: #b45309;
    transform: translateY(0);
}

/* End CTA section */
.end-cta {
    background-color: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2.5rem;
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
}

.end-cta h3 {
    margin-bottom: 1rem;
}

.end-cta p {
    margin-bottom: 1.5rem;
}

/* =====================================================================
   STAT CARDS & GRIDS
   ===================================================================== */

.stat-card {
    padding: 2rem;
    text-align: center;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

/* =====================================================================
   CHART CONTAINERS
   ===================================================================== */

.chart-container {
    padding: 2rem;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

/* =====================================================================
   DATA PANELS & READOUTS
   ===================================================================== */

.panel {
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.panel-title {
    display: block;
}

.sim-readout {
    padding: 1.5rem;
    font-family: var(--font-headline);
    font-size: 13px;
    line-height: 1.8;
}

.readout-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.readout-label {
    color: var(--text-muted);
}

.readout-value {
    color: var(--accent-primary);
    font-weight: 600;
}

/* =====================================================================
   STAGE CARDS (FOR METHODOLOGY / PROCESS)
   ===================================================================== */

.stage-card {
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.stage-number {
    font-family: var(--font-headline);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stage-title {
    font-family: var(--font-headline);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.stage-description {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* =====================================================================
   CALLOUT (INFORMATIONAL)
   ===================================================================== */

.callout {
    border-left: 3px solid var(--accent-secondary);
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.015) 3px,
            rgba(255, 255, 255, 0.015) 4px
        ),
        rgba(59, 130, 246, 0.06);
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
    margin: 1.5rem 0;
}

.callout p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.7;
}

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

/* =====================================================================
   DISCLAIMER (WARNING/RISK)
   ===================================================================== */

.disclaimer-box {
    border-left: 3px solid var(--accent-negative);
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.015) 3px,
            rgba(255, 255, 255, 0.015) 4px
        ),
        rgba(239, 68, 68, 0.04);
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0;
}

.disclaimer-box p {
    margin-bottom: 0.75rem;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dim);
}

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

/* Persistent investment disclaimer */
.investment-disclaimer {
    background-color: var(--bg-panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    margin: 3rem 0 0 0;
    text-align: center;
    border-left: 3px solid var(--accent-negative);
}

.investment-disclaimer p {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 0;
}

/* =====================================================================
   INLINE CTA (MID-ESSAY SUBSCRIBE BLOCK)
   ===================================================================== */

.inline-cta {
    background-color: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2.5rem;
    margin: 2.5rem 0;
    text-align: center;
}

.inline-cta h3 {
    margin-bottom: 1rem;
    font-size: 20px;
}

.inline-cta p {
    margin-bottom: 1.5rem;
    font-size: 15px;
}

/* =====================================================================
   ARCHIVE & LIST PAGES
   ===================================================================== */

.archive-list {
    list-style: none;
}

.archive-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.archive-badge {
    font-family: var(--font-headline);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.35em 0.75em;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.archive-badge.essay {
    border-color: rgba(16, 185, 129, 0.4);
    background-color: rgba(16, 185, 129, 0.08);
    color: var(--accent-positive);
}

.archive-badge.tool {
    border-color: rgba(245, 158, 11, 0.4);
    background-color: rgba(245, 158, 11, 0.08);
    color: var(--accent-primary);
}

.archive-content {
    flex: 1;
}

.archive-title {
    font-family: var(--font-headline);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.archive-hook {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.archive-date {
    font-family: var(--font-headline);
    font-size: 12px;
    color: var(--text-dim);
}

/* =====================================================================
   PROSE PAGES (ABOUT, TERMS, PRIVACY)
   ===================================================================== */

.prose {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--section-pad) 1.5rem;
}

.prose p {
    margin-bottom: 1.5em;
}

.prose h2 {
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.prose ul,
.prose ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
    line-height: 1.72;
}

/* =====================================================================
   FOOTER
   ===================================================================== */

footer {
    background-color: var(--bg);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 2rem;
    margin-top: var(--section-pad);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    font-family: var(--font-headline);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
}

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

.footer-links a {
    font-size: 14px;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

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

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section-title {
    font-family: var(--font-headline);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.footer-section-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section-links a {
    font-size: 13px;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.footer-section-links a:hover {
    color: var(--text-muted);
}

.footer-also {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-dim);
}

.footer-copyright {
    color: var(--text-dim);
}

/* =====================================================================
   ANIMATIONS & TRANSITIONS
   ===================================================================== */

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide-in animation */
.slide-in {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse animation for highlights */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* =====================================================================
   RESPONSIVE DESIGN - TABLET & MOBILE (≤768px)
   ===================================================================== */

@media (max-width: 768px) {
    /* Root variables override for mobile */
    :root {
        --section-pad: 48px;
    }

    /* Typography overrides */
    h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    p {
        font-size: 16px;
        line-height: 1.68;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .stat-number {
        font-size: 36px;
        line-height: 1.2;
    }

    /* Navigation - hamburger menu */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-panel);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    /* Hero section */
    .hero {
        padding: 4rem 1.5rem;
    }

    .page-hero {
        padding: 3rem 1.5rem;
    }

    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.25rem;
    }

    /* Forms */
    .subscribe-form.inline {
        flex-direction: column;
        gap: 0.75rem;
    }

    .subscribe-form.inline .form-input {
        border-right: 1px solid var(--border-light);
        border-bottom: none;
    }

    .subscribe-form.inline .form-button {
        border-left: none;
        border-top: 1px solid var(--border-light);
    }

    /* Stat grid */
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Archive */
    .archive-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .archive-badge {
        align-self: flex-start;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Sticky header */
    .sticky-cta-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .sticky-cta-text {
        font-size: 13px;
    }

    .sticky-cta-button {
        padding: 0.625rem 1.5rem;
        font-size: 13px;
    }

    /* Magnet card */
    .magnet-card {
        padding: 1.75rem;
        margin: 2rem 1.5rem;
    }

    /* End CTA */
    .end-cta {
        padding: 1.75rem;
        margin: 2rem 1.5rem;
    }

    /* Inline CTA */
    .inline-cta {
        padding: 1.75rem;
        margin: 2rem 0;
    }
}

/* =====================================================================
   RESPONSIVE DESIGN - SMALL MOBILE (≤480px)
   ===================================================================== */

@media (max-width: 480px) {
    :root {
        --section-pad: 32px;
    }

    .container,
    main,
    nav,
    footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 16px;
    }

    .stat-number {
        font-size: 32px;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .page-hero {
        padding: 2.5rem 1rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .card {
        padding: 1rem;
    }

    .magnet-card {
        padding: 1.5rem;
        margin: 1.5rem 1rem;
    }

    .end-cta,
    .inline-cta {
        padding: 1.5rem;
        margin: 1.5rem 1rem;
    }

    .footer-section-title {
        font-size: 10px;
    }

    .card-badge,
    .archive-badge {
        font-size: 9px;
        padding: 0.3em 0.6em;
    }
}

/* =====================================================================
   UTILITY CLASSES
   ===================================================================== */

/* Text alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Visibility */
.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Display */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Colors */
.text-muted {
    color: var(--text-muted);
}

.text-dim {
    color: var(--text-dim);
}

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

.text-positive {
    color: var(--accent-positive);
}

.text-negative {
    color: var(--accent-negative);
}

.bg-data {
    background-color: var(--bg-data);
}

/* =====================================================================
   PRINT STYLES
   ===================================================================== */

@media print {
    nav,
    .sticky-header-cta,
    .reading-progress,
    .subscribe-form,
    .end-cta,
    .inline-cta {
        display: none !important;
    }

    body {
        background-color: white;
        color: black;
    }

    a {
        color: blue;
        text-decoration: underline;
    }

    .investment-disclaimer {
        page-break-inside: avoid;
    }
}

/* =====================================================================
   END OF STYLESHEET
   ===================================================================== */
