/* ===== THEME VARIABLES ===== */
:root {
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --bg-card-alt: rgba(248,249,252,0.95);
    --text: #1a1f2e;
    --text-muted: #4a5568;
    --text-dim: #64748b;
    --heading: #0f1629;
    --accent: #b8902e;
    --accent-light: #d4a843;
    --accent-hover: #a67c28;
    --border: rgba(0,0,0,0.08);
    --border-accent: rgba(184,144,46,0.25);
    --nav-scrolled: rgba(245,247,250,0.97);
    --shadow: 0 1px 20px rgba(0,0,0,0.08);
    --overlay: rgba(255,255,255,0.9);
    --bg-elevated: rgba(0,0,0,0.03);
}
[data-theme="dark"] {
    --bg: #060d1b;
    --bg-card: rgba(15,25,50,0.9);
    --bg-card-alt: rgba(10,18,40,0.6);
    --text: #e0e4ec;
    --text-muted: #9aa3b8;
    --text-dim: #6b7590;
    --heading: #ffffff;
    --accent: #d4a843;
    --accent-light: #d4a843;
    --accent-hover: #f0c45a;
    --border: rgba(255,255,255,0.06);
    --border-accent: rgba(212,168,67,0.2);
    --nav-scrolled: rgba(6,13,27,0.95);
    --shadow: 0 1px 30px rgba(0,0,0,0.4);
    --overlay: rgba(6,13,27,0.98);
    --bg-elevated: rgba(10,22,40,0.3);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    transition: color 0.3s, background 0.3s;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--heading); }
a { color: var(--accent-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

/* ===== UTILITIES ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.gold { color: var(--accent-light); }
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.25;
    margin-bottom: 20px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 48px;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
nav.scrolled {
    background: var(--nav-scrolled);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: 12px 0;
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: 0.5px;
}
.nav-logo span { color: var(--accent-light); }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--heading); }
.nav-links a.nav-link-cta {
    color: var(--heading);
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    padding: 5px 12px;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.nav-links a.nav-link-cta:hover {
    background: var(--border);
    border-color: var(--text-muted);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--heading); margin: 5px 0; transition: 0.3s; }
.theme-toggle {
    background: var(--border);
    border: 1px solid var(--border-accent);
    color: var(--heading);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.3s, border-color 0.3s;
}
.theme-toggle:hover { background: var(--border-accent); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary {
    background: linear-gradient(135deg, #d4a843, #b8902e);
    color: #0a1628;
    box-shadow: 0 4px 20px rgba(212,168,67,0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212,168,67,0.35);
}
.btn-secondary {
    background: var(--border);
    color: var(--text);
    border: 1px solid var(--border-accent);
}
.btn-secondary:hover {
    background: var(--border-accent);
    transform: translateY(-2px);
}

/* ===== HERO (shared) ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(184,144,46,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(59,100,180,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(184,144,46,0.05) 0%, transparent 60%);
    z-index: 0;
}
[data-theme="dark"] .hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(212,168,67,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(59,100,180,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(212,168,67,0.04) 0%, transparent 60%);
}
.hero-grid {
    position: absolute;
    top: -60px;
    left: -60px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    background-image:
        linear-gradient(rgba(184,144,46,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184,144,46,0.12) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    animation: gridDrift 20s linear infinite;
    -webkit-mask-image: radial-gradient(ellipse 50% 40% at 50% 45%, transparent 20%, black 70%);
    mask-image: radial-gradient(ellipse 50% 40% at 50% 45%, transparent 20%, black 70%);
}
[data-theme="dark"] .hero-grid {
    background-image:
        linear-gradient(rgba(212,168,67,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,168,67,0.08) 1px, transparent 1px);
}
@keyframes gridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-light);
    border: 1px solid var(--border-accent);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 28px;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.hero h1 .coefficient { color: var(--accent-light); }
.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}
.hero-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem !important;
    color: var(--text-primary) !important;
    font-weight: 400;
    margin-bottom: 12px !important;
    letter-spacing: 0;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .hero-note {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 14px;
    letter-spacing: 0.5px;
    opacity: 0.75;
    max-width: none;
}

/* Hero Global Clocks */
.hero-clocks {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
    opacity: 0.5;
}
.hero-clock-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}
.hero-clock-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-clock-city {
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
}
.hero-clock-time {
    font-variant-numeric: tabular-nums;
}
.hero-clock-volume {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--text-muted);
    opacity: 0.85;
    letter-spacing: 0.3px;
    margin-top: 2px;
}
.hero-clock-amount {
    color: var(--accent-light);
    font-weight: 600;
}
.hero-clock-live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 4px rgba(74,222,128,0.5);
    animation: livePulse 4s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(74,222,128,0.5); }
    50% { opacity: 0.4; box-shadow: 0 0 2px rgba(74,222,128,0.2); }
}
.hero-clock-sep {
    color: var(--border-accent);
    opacity: 0.5;
    margin: 0 2px;
    align-self: center;
}

/* Enterprise hero overrides */
.hero--enterprise { min-height: 70vh; }
.hero--enterprise h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.2; }
.hero--enterprise p { font-size: 1.1rem; }

/* ===== SCIENCE SECTION ===== */
.science { padding: 120px 0; }
.science-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.science-text h2 { margin-bottom: 24px; }
.science-text p { color: var(--text-muted); margin-bottom: 18px; font-size: 0.98rem; }
.science-text p:last-of-type { margin-bottom: 0; }
.formula-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-alt));
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}
.formula-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(184,144,46,0.08), transparent 50%, rgba(184,144,46,0.03));
    z-index: 0;
    pointer-events: none;
}
[data-theme="dark"] .formula-card::before {
    background: linear-gradient(135deg, rgba(212,168,67,0.15), transparent 50%, rgba(212,168,67,0.05));
}
.formula-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}
.formula-display {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--heading);
    line-height: 2.2;
    position: relative;
    z-index: 1;
}
.formula-display .blurred {
    filter: blur(5px);
    user-select: none;
    color: var(--accent-light);
}
.formula-note {
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    position: relative;
    z-index: 1;
}
.formula-redacted {
    display: inline-block;
    background: rgba(184,144,46,0.12);
    border-radius: 4px;
    padding: 2px 8px;
    filter: blur(4px);
    user-select: none;
}
[data-theme="dark"] .formula-redacted { background: rgba(212,168,67,0.08); }

/* ===== STATS BAR ===== */
.stats-bar {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--accent-light);
}
.stat-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 8px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 120px 0;
    text-align: center;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 16px;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 32px 40px;
    transition: transform 0.3s, border-color 0.3s;
    box-shadow: 0 1px 3px var(--border);
}
[data-theme="dark"] .step-card {
    background: linear-gradient(160deg, rgba(15,25,50,0.6), rgba(8,16,35,0.4));
    border-color: rgba(255,255,255,0.05);
    box-shadow: none;
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
}
.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(184,144,46,0.2);
    margin-bottom: 16px;
}
[data-theme="dark"] .step-number { color: rgba(212,168,67,0.15); }
.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: rgba(184,144,46,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
[data-theme="dark"] .step-icon { background: rgba(212,168,67,0.08); }
.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}
.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== CALCULATOR ===== */
.calculator {
    padding: 120px 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(184,144,46,0.06) 0%, transparent 70%);
}
[data-theme="dark"] .calculator {
    background:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(212,168,67,0.04) 0%, transparent 70%);
}
.calculator-wrapper {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.calc-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}
.calc-input {
    flex: 1;
    max-width: 380px;
    padding: 16px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
}
[data-theme="dark"] .calc-input {
    background: rgba(15,25,50,0.8);
    border-color: rgba(255,255,255,0.1);
}
.calc-input::placeholder { color: var(--text-dim); }
.calc-input:focus { border-color: var(--border-accent); }
.calc-btn {
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0a1628;
    background: linear-gradient(135deg, #d4a843, #b8902e);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212,168,67,0.3);
}
.calc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.calc-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 24px;
}

/* Ticker Tape */
.ticker-tape {
    overflow: hidden;
    position: relative;
    max-width: 560px;
    margin: 0 auto 12px;
    height: 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.ticker-tape-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 22s linear infinite;
    will-change: transform;
}
.ticker-tape-set {
    display: inline-flex;
    gap: 28px;
    padding-right: 28px;
    flex-shrink: 0;
}
.ticker-tape-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dim);
    opacity: 0.7;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.ticker-tape-item .ticker-symbol {
    color: var(--text-muted);
    font-weight: 600;
}
.ticker-tape-item .ticker-positive {
    color: var(--accent-light);
    opacity: 0.8;
}
.ticker-tape-item .ticker-negative {
    color: var(--text-dim);
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Market Status */
.market-status {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto 36px;
    max-width: 600px;
}
.market-status-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    opacity: 0.65;
    letter-spacing: 0.3px;
}
.market-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.market-status-dot.open {
    background: #4ade80;
    box-shadow: 0 0 4px rgba(74,222,128,0.5);
}
.market-status-dot.closed {
    background: var(--text-dim);
    opacity: 0.5;
}

/* Result Card */
.result-card {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: left;
    animation: slideUp 0.5s ease;
    box-shadow: 0 4px 20px var(--border);
}
[data-theme="dark"] .result-card {
    background: linear-gradient(160deg, rgba(15,25,50,0.9), rgba(8,16,35,0.7));
    box-shadow: none;
}
.result-card.show { display: block; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.result-ticker {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}
.result-ticker span {
    font-size: 1.6rem;
    color: var(--heading);
    display: block;
    margin-top: 4px;
    letter-spacing: 1px;
    font-weight: 700;
}
.result-badge {
    padding: 10px 28px;
    border-radius: 10px;
    box-shadow: 0 0 16px rgba(0,0,0,0.18);
}
.badge-strongly-favorable { background: rgba(52,211,153,0.18); color: #0d9b6a; border: 2px solid rgba(52,211,153,0.45); }
.badge-favorable          { background: rgba(96,165,250,0.16);  color: #1d65c4; border: 2px solid rgba(96,165,250,0.4); }
.badge-neutral            { background: rgba(148,163,184,0.14); color: #475569; border: 2px solid rgba(148,163,184,0.35); }
.badge-unfavorable        { background: rgba(251,191,36,0.14);  color: #b45309; border: 2px solid rgba(251,191,36,0.4); }
.badge-strongly-unfavorable { background: rgba(248,113,113,0.14); color: #c0392b; border: 2px solid rgba(248,113,113,0.4); }

[data-theme="dark"] .badge-strongly-favorable { color: #34d399; }
[data-theme="dark"] .badge-favorable          { color: #60a5fa; }
[data-theme="dark"] .badge-neutral            { color: #cbd5e1; }
[data-theme="dark"] .badge-unfavorable        { color: #fbbf24; }
[data-theme="dark"] .badge-strongly-unfavorable { color: #f87171; }

.result-metric {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 20px;
}
[data-theme="dark"] .result-metric {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}
[data-theme="light"] .result-metric {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.12);
}
.result-metric-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.result-metric-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-light);
}
.result-rationale {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 24px;
}
.result-disclaimer {
    font-size: 0.72rem;
    color: var(--text-dim);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ── Scientific result card additions ── */

/* Score bar */
.result-score-bar-section {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
}
.result-score-bar-block {
    flex: 1;
}
.result-score-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.score-bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-bar-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading);
    white-space: nowrap;
    min-width: 72px;
    text-align: right;
}
.result-composite-block {
    min-width: 140px;
    text-align: right;
}
.result-composite-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 6px;
}

/* Section label */
.result-section {
    margin-bottom: 28px;
}
.result-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Decomposition / driver bars */
.decomp-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.decomp-row {
    display: grid;
    grid-template-columns: 110px 1fr 68px;
    align-items: center;
    gap: 12px;
}
.decomp-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.decomp-bar-track {
    position: relative;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    border: 1px solid var(--border);
    overflow: hidden;
}
/* Center line marker */
.decomp-bar-track::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-accent);
    opacity: 0.6;
}
.decomp-bar-fill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.decomp-value {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}
.decomp-empty {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* Bar color classes */
.bar-positive { background: #3b82f6; }
.bar-negative { background: #f59e0b; }
.bar-neutral  { background: #64748b; }
.bar-dim      { background: rgba(100,116,139,0.4); }

/* Value color classes */
.val-positive { color: #60a5fa; }
.val-negative { color: #fbbf24; }

/* Regime row */
.regime-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.regime-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.regime-trend-dominant  { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.regime-range-dominant  { background: rgba(100,116,139,0.12); color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }
.regime-mean-reverting  { background: rgba(96,165,250,0.10); color: #60a5fa; border: 1px solid rgba(96,165,250,0.2); }
.regime-breakout        { background: rgba(52,211,153,0.10); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.regime-low-volatility  { background: rgba(148,163,184,0.10); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }
.regime-mixed           { background: rgba(100,116,139,0.08); color: #94a3b8; border: 1px solid rgba(100,116,139,0.18); }
.regime-unknown         { background: rgba(100,116,139,0.08); color: var(--text-dim); border: 1px solid var(--border); }
.regime-adx-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}
.regime-adx-track {
    flex: 1;
    height: 5px;
    background: var(--bg-elevated);
    border-radius: 3px;
    border: 1px solid var(--border);
    overflow: hidden;
    min-width: 80px;
    max-width: 200px;
}
.regime-adx-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Full-width score tile */
.result-metric--score {
    margin-bottom: 16px;
}

.result-metric--score-main {
    padding-bottom: 24px;
}

.result-score-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.result-score-note {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 14px;
    font-style: italic;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.result-score-ranges {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.score-range {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.score-range--strong-buy  { background: rgba(52,211,153,0.12); color: #34d399; border: 1px solid rgba(52,211,153,0.3); }
.score-range--buy         { background: rgba(96,165,250,0.12); color: #60a5fa; border: 1px solid rgba(96,165,250,0.28); }
.score-range--hold        { background: rgba(148,163,184,0.10); color: #94a3b8; border: 1px solid rgba(148,163,184,0.25); }
.score-range--cautious    { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.score-range--avoid       { background: rgba(248,113,113,0.12); color: #f87171; border: 1px solid rgba(248,113,113,0.28); }

/* Badge is clickable */
.result-badge {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: filter 0.2s, transform 0.15s;
}
.result-badge:hover { filter: brightness(1.15); transform: translateY(-1px); }
.result-badge-outlook {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    font-weight: 800;
}
.result-badge-hint {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 0.3px;
    pointer-events: none;
    text-transform: none;
}

/* Score range modal */
.score-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.score-modal-overlay.open { display: flex; }
.score-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.score-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.score-modal-header h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--heading);
    margin: 0;
}
.score-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}
.score-modal-close:hover { color: var(--heading); }
.score-modal-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}
.score-modal-ranges {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.score-modal-range {
    border-radius: 8px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
}
.smr-band {
    grid-row: 1 / 3;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    opacity: 0.9;
}
.smr-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.smr-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 2px;
}
.score-modal-range--strong-buy  { background: rgba(52,211,153,0.08);  border: 1px solid rgba(52,211,153,0.25);  color: #34d399; }
.score-modal-range--buy         { background: rgba(96,165,250,0.08);  border: 1px solid rgba(96,165,250,0.22);  color: #60a5fa; }
.score-modal-range--hold        { background: rgba(148,163,184,0.07); border: 1px solid rgba(148,163,184,0.2);  color: #94a3b8; }
.score-modal-range--cautious    { background: rgba(251,191,36,0.08);  border: 1px solid rgba(251,191,36,0.25);  color: #fbbf24; }
.score-modal-range--avoid       { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.22); color: #f87171; }
.score-modal-range .smr-desc    { color: var(--text-muted); }
.score-modal-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    line-height: 1.5;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin: 0;
}

/* Sub-metrics row: composite / confidence / signal */
.result-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

/* Loading */
.calc-loading {
    display: none;
    text-align: center;
    padding: 48px;
}
.calc-loading.show { display: block; }
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(184,144,46,0.2);
    border-top-color: var(--accent-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.calc-loading p {
    font-size: 0.85rem;
    color: var(--text-dim);
}
.calc-error {
    display: none;
    margin: 32px auto 0;
    max-width: 520px;
    padding: 28px 32px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    box-shadow: 0 4px 20px var(--border);
    text-align: center;
    animation: slideUp 0.4s ease;
}
[data-theme="dark"] .calc-error {
    background: linear-gradient(160deg, rgba(15,25,50,0.9), rgba(8,16,35,0.7));
    box-shadow: none;
}
.calc-error.show { display: block; }
.calc-error::before {
    content: '—';
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    color: var(--accent-light);
    letter-spacing: 4px;
    margin-bottom: 14px;
    opacity: 0.7;
}
.calc-error-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 10px;
}
.calc-error-message {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== TRUST SECTION ===== */
.trust {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}
.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    transition: transform 0.3s, border-color 0.3s;
    box-shadow: 0 1px 3px var(--border);
}
[data-theme="dark"] .trust-card {
    background: linear-gradient(160deg, rgba(15,25,50,0.5), rgba(8,16,35,0.3));
    border-color: rgba(255,255,255,0.05);
    box-shadow: none;
}
.trust-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
}
.trust-icon {
    width: 48px;
    height: 48px;
    background: rgba(184,144,46,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--accent);
}
[data-theme="dark"] .trust-icon { background: rgba(212,168,67,0.08); }
.trust-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}
.trust-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.quote-block {
    background: rgba(184,144,46,0.06);
    border-left: 3px solid var(--accent-light);
    border-radius: 0 16px 16px 0;
    padding: 40px 48px;
    max-width: 800px;
    margin: 0 auto;
}
[data-theme="dark"] .quote-block {
    background: linear-gradient(160deg, rgba(212,168,67,0.06), rgba(15,25,50,0.4));
}
.quote-block blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 20px;
}
.quote-author {
    font-size: 0.85rem;
    color: var(--text-dim);
}
.quote-author strong { color: var(--accent-light); font-weight: 600; }

/* ===== METHODOLOGY ===== */
.methodology {
    padding: 120px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}
.methodology-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.methodology-text h2 { margin-bottom: 24px; }
.methodology-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; }

/* ===== ENTERPRISE: PRICING ===== */
.pricing { padding: 120px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    transition: transform 0.3s, border-color 0.3s;
    box-shadow: 0 1px 3px var(--border);
}
[data-theme="dark"] .price-card {
    background: linear-gradient(160deg, rgba(15,25,50,0.6), rgba(8,16,35,0.4));
    border-color: rgba(255,255,255,0.05);
    box-shadow: none;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-accent); }
.price-card.featured { border: 2px solid var(--accent-light); box-shadow: 0 8px 30px rgba(212,168,67,0.15); }
.price-card .badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 16px;
}
.price-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.price-card .amount {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 8px;
}
.price-card .amount span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-card .desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }
.price-card ul { list-style: none; padding: 0; margin-bottom: 32px; }
.price-card li {
    font-size: 0.9rem;
    color: var(--text);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: '\2713'; color: var(--accent-light); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }

/* ===== ENTERPRISE: INTEGRATION ===== */
.integration { padding: 120px 0; background: var(--bg-elevated); border-top: 1px solid var(--border); }
.integration-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.integration-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
    transition: transform 0.3s, border-color 0.3s;
}
[data-theme="dark"] .integration-card {
    background: linear-gradient(160deg, rgba(15,25,50,0.6), rgba(8,16,35,0.4));
    border-color: rgba(255,255,255,0.05);
}
.integration-card:hover { transform: translateY(-4px); border-color: var(--border-accent); }
.integration-card .icon { font-size: 2rem; margin-bottom: 20px; }
.integration-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.integration-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }
.integration-card code {
    font-size: 0.8rem;
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-light);
}
[data-theme="dark"] .integration-card code { background: rgba(0,0,0,0.2); }

/* ===== ENTERPRISE: USE CASES ===== */
.use-cases { padding: 120px 0; }
.use-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.use-case {
    text-align: center;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}
[data-theme="dark"] .use-case {
    background: linear-gradient(160deg, rgba(15,25,50,0.5), rgba(8,16,35,0.3));
    border-color: rgba(255,255,255,0.05);
}
.use-case .icon { font-size: 2.5rem; margin-bottom: 16px; }
.use-case h4 { font-size: 1.05rem; margin-bottom: 10px; }
.use-case p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== ENTERPRISE: CTA ===== */
.cta-section { padding: 120px 0; background: var(--bg-elevated); border-top: 1px solid var(--border); text-align: center; }
.cta-section h2 { margin-bottom: 20px; }
.cta-section p { color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.cta-section a.btn { text-decoration: none; }

/* ===== FOOTER ===== */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 12px;
}
.footer-logo span { color: var(--accent-light); }
footer p {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.8;
}
footer .disclaimer {
    max-width: 600px;
    margin: 12px auto 0;
    font-size: 0.68rem;
    color: var(--text-dim);
    opacity: 0.8;
}
footer a { color: var(--accent-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .science-grid,
    .methodology-content { grid-template-columns: 1fr; gap: 40px; }
    .steps-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .result-meta-row { grid-template-columns: 1fr; }
    .decomp-row { grid-template-columns: 90px 1fr 60px; }
    .trust-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .integration-grid { grid-template-columns: 1fr; }
    .use-cases-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0; right: 0;
        background: var(--nav-scrolled);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .calc-input-group { flex-direction: column; align-items: stretch; }
    .calc-input { max-width: 100%; }
    .hero { padding: 100px 24px 60px; }
    .stats-bar .container { grid-template-columns: 1fr 1fr; }
    .quote-block { padding: 28px 24px; }
    .result-card { padding: 32px 24px; }
    .result-header { flex-direction: column; gap: 16px; }
    .formula-card { padding: 32px 24px; }
}

/* ===== TIMELINE TABS ===== */
.timeline-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.timeline-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
    color: var(--text-muted);
}

.timeline-tab:hover {
    background: var(--bg-card-alt);
    color: var(--text);
}

.timeline-tab--active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: var(--shadow);
}

.timeline-tab-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.timeline-tab-desc {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 2px;
}

.result-timeframe {
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ===== TIMEFRAME COLOR SCHEMES ===== */
.timeline-tabs[data-active="intraday"] {
    --timeframe-primary: #2563eb;
    --timeframe-light: #3b82f6;
    --timeframe-lighter: #60a5fa;
}

.timeline-tabs[data-active="intraday"] .timeline-tab[data-timeframe="intraday"] {
    background: var(--timeframe-primary);
    color: white;
}

.timeline-tabs[data-active="yearly"] {
    --timeframe-primary: #0f766e;
    --timeframe-light: #14b8a6;
    --timeframe-lighter: #5eead4;
}

.timeline-tabs[data-active="yearly"] .timeline-tab[data-timeframe="yearly"] {
    background: var(--timeframe-primary);
    color: white;
}

.timeline-tabs[data-active="monthly"] {
    --timeframe-primary: #ea580c;
    --timeframe-light: #f97316;
    --timeframe-lighter: #fb923c;
}

.timeline-tabs[data-active="monthly"] .timeline-tab[data-timeframe="monthly"] {
    background: var(--timeframe-primary);
    color: white;
}

.timeline-tabs[data-active="quarterly"] {
    --timeframe-primary: #7c3aed;
    --timeframe-light: #8b5cf6;
    --timeframe-lighter: #a78bfa;
}

.timeline-tabs[data-active="quarterly"] .timeline-tab[data-timeframe="quarterly"] {
    background: var(--timeframe-primary);
    color: white;
}

/* Result card accent theming */
.result-card[data-timeframe="intraday"] .result-badge {
    border-color: #2563eb;
}

.result-card[data-timeframe="yearly"] .result-badge {
    border-color: #0f766e;
}

.result-card[data-timeframe="monthly"] .result-badge {
    border-color: #ea580c;
}

.result-card[data-timeframe="quarterly"] .result-badge {
    border-color: #7c3aed;
}

.result-card[data-timeframe="intraday"] .result-metric--score {
    border-left: 4px solid #2563eb;
}

.result-card[data-timeframe="yearly"] .result-metric--score {
    border-left: 4px solid #0f766e;
}

.result-card[data-timeframe="monthly"] .result-metric--score {
    border-left: 4px solid #ea580c;
}

.result-card[data-timeframe="quarterly"] .result-metric--score {
    border-left: 4px solid #7c3aed;
}

/* ===== RESPONSIVE TIMELINE TABS ===== */
@media (max-width: 768px) {
    .timeline-tabs {
        gap: 1px;
        padding: 2px;
    }
    
    .timeline-tab {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .timeline-tab-label {
        font-size: 0.8rem;
    }
    
    .timeline-tab-desc {
        font-size: 0.7rem;
        display: none;
    }
}

@media (max-width: 480px) {
    .timeline-tabs {
        flex-direction: column;
        gap: 2px;
    }
    
    .timeline-tab {
        padding: 12px 16px;
        text-align: left;
    }
    
    .timeline-tab-desc {
        display: block;
    }
}

/* Tab transitions */
.timeline-tabs {
    transition: all 0.3s ease;
}

.timeline-tab {
    transition: all 0.2s ease, background-color 0.3s ease;
}

.result-card {
    transition: border-color 0.3s ease;
}

.result-timeframe {
    transition: color 0.3s ease;
}

/* Accessibility improvements */
.timeline-tab:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.timeline-tab:focus:not(:focus-visible) {
    outline: none;
}

.timeline-tab--active:focus {
    outline-color: white;
}
