/* ===== style-v2.css — Nordic Design System for bitcoinvseverything.com V2 ===== */

/* ===== DESIGN TOKENS ===== */
:root {
    /* Colors — warm charcoal */
    --bg-base:            #101010;
    --bg-raised:          #171717;
    --bg-overlay:         #1e1e1e;
    --bg-subtle:          #242424;
    --bg-hover:           #2a2a2a;
    --bg-active:          #303030;
    --text-primary:       #ececec;
    --text-secondary:     #a0a0a0;
    --text-tertiary:      #6b6b6b;
    --text-inverse:       #101010;
    --border-subtle:      rgba(255,255,255,0.06);
    --border-default:     rgba(255,255,255,0.10);
    --border-strong:      rgba(255,255,255,0.16);
    --accent:             #f7931a;
    --accent-hover:       #e8850f;
    --accent-muted:       rgba(247,147,26,0.12);
    --accent-subtle:      rgba(247,147,26,0.06);
    --positive:           #4ade80;
    --positive-muted:     rgba(74,222,128,0.10);
    --negative:           #f87171;
    --negative-muted:     rgba(248,113,113,0.10);
    --warning:            #fbbf24;
    --info:               #60a5fa;

    /* Chart colors */
    --chart-btc:          #f7931a;
    --chart-gold:         #d4a843;
    --chart-sp500:        #4ade80;
    --chart-nifty:        #60a5fa;
    --chart-silver:       #9ca3af;
    --chart-realestate:   #a78bfa;
    --chart-grid:         rgba(255,255,255,0.03);
    --chart-tick:         #6b6b6b;

    /* Glass */
    --glass:              rgba(255,255,255,0.03);
    --glass-border:       rgba(255,255,255,0.06);

    /* Shadows */
    --shadow-sm:          0 1px 2px rgba(0,0,0,0.3);
    --shadow-md:          0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg:          0 8px 24px rgba(0,0,0,0.5);
    --shadow-glow:        0 0 24px rgba(247,147,26,0.06);

    /* Typography */
    --font-heading:       'Instrument Sans', 'Inter', sans-serif;
    --font-body:          'Inter', -apple-system, sans-serif;
    --font-mono:          'JetBrains Mono', 'Fira Code', monospace;
    --text-xs:            0.75rem;
    --text-sm:            0.8125rem;
    --text-base:          0.9375rem;
    --text-md:            1.0625rem;
    --text-lg:            1.25rem;
    --text-xl:            1.5rem;
    --text-2xl:           2rem;
    --text-3xl:           2.5rem;
    --text-4xl:           3.5rem;
    --weight-normal:      400;
    --weight-medium:      500;
    --weight-semi:        600;
    --weight-bold:        700;
    --leading-tight:      1.2;
    --leading-snug:       1.4;
    --leading-normal:     1.7;
    --leading-relaxed:    1.9;
    --tracking-tight:     -0.02em;
    --tracking-normal:    0;
    --tracking-wide:      0.05em;
    --tracking-wider:     0.1em;

    /* Spacing — 4px grid */
    --space-1:            4px;
    --space-2:            8px;
    --space-3:            12px;
    --space-4:            16px;
    --space-5:            20px;
    --space-6:            24px;
    --space-8:            32px;
    --space-10:           40px;
    --space-12:           48px;
    --space-16:           64px;
    --space-20:           80px;
    --space-24:           96px;
    --container-max:      1120px;
    --section-gap:        var(--space-20);
    --card-pad:           var(--space-6);
    --card-pad-lg:        var(--space-8);

    /* Border radius */
    --radius-sm:          6px;
    --radius-md:          10px;
    --radius-lg:          14px;
    --radius-xl:          20px;
    --radius-full:        9999px;

    /* Motion */
    --duration-fast:      120ms;
    --duration-normal:    200ms;
    --duration-slow:      400ms;
    --duration-slower:    800ms;
    --ease-out:           cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:        cubic-bezier(0.65, 0, 0.35, 1);

    /* Compatibility aliases — map legacy/template variable names to V2 tokens */
    --bg-card:            var(--bg-raised);
    --border:             var(--border-subtle);
    --border-hover:       var(--border-default);
    --green:              var(--positive);
    --red:                var(--negative);
    --accent-dim:         var(--accent-muted);
    --bg-primary:         var(--bg-base);

    /* Asset-specific colors */
    --gold:               #D4A843;
    --sp-green:           #4CAF50;
    --nifty-blue:         #5B8DEF;


    /* Semantic spacing aliases — used by blog templates */
    --space-sm:           var(--space-2);   /* 8px */
    --space-md:           var(--space-4);   /* 16px */
    --space-lg:           var(--space-6);   /* 24px */
    --space-xl:           var(--space-10);  /* 40px */
    --space-2xl:          var(--space-16);  /* 64px */

    /* Background aliases — used by blog templates */
    --bg-secondary:       var(--bg-raised);
    --bg-tertiary:        var(--bg-overlay);

    /* Color aliases */
    --orange:             var(--accent);
    --orange-dim:         var(--accent-muted);
    /* Extra radius token */
    --radius-xs:          4px;
}

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

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: var(--leading-normal);
    font-weight: var(--weight-normal);
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ===== TYPOGRAPHY UTILITIES ===== */
.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md   { font-size: var(--text-md); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }
.text-3xl  { font-size: var(--text-3xl); }
.text-4xl  { font-size: var(--text-4xl); }

.font-heading { font-family: var(--font-heading); }
.font-mono    { font-family: var(--font-mono); }

.weight-normal { font-weight: var(--weight-normal); }
.weight-medium { font-weight: var(--weight-medium); }
.weight-semi   { font-weight: var(--weight-semi); }
.weight-bold   { font-weight: var(--weight-bold); }

.text-primary-color   { color: var(--text-primary); }
.text-secondary-color { color: var(--text-secondary); }
.text-tertiary-color  { color: var(--text-tertiary); }
.text-accent          { color: var(--accent); }
.text-positive        { color: var(--positive); }
.text-negative        { color: var(--negative); }

/* ===== V2 PREVIEW BANNER ===== */
.v2-banner {
    background: var(--accent-muted);
    border-bottom: 1px solid rgba(247,147,26,0.2);
    text-align: center;
    padding: 8px 16px;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: var(--weight-semi);
}
.v2-banner a {
    color: var(--text-secondary);
    margin-left: 8px;
    text-decoration: underline;
}
.v2-banner a:hover {
    color: var(--text-primary);
}

/* ===== GLOBAL NAV ===== */
.global-nav {
    background: rgba(16,16,16,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 var(--space-6);
}
.global-nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}
.nav-brand {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    white-space: nowrap;
}
.nav-brand:hover {
    color: var(--accent-hover);
}
.nav-links {
    display: flex;
    gap: var(--space-1);
    align-items: center;
}
.nav-link {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: background var(--duration-normal), color var(--duration-normal);
    white-space: nowrap;
    border: 1px solid transparent;
}
.nav-link:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}
.nav-link.active {
    color: var(--accent);
    background: var(--accent-muted);
    border-color: rgba(247,147,26,0.2);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast), color var(--duration-fast);
}
.nav-hamburger:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}
.nav-hamburger svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Desktop: hide mobile nav */
.nav-mobile {
    display: none;
}
.nav-mobile .nav-link {
    display: block;
    padding: 14px var(--space-4);
    font-size: 0.95rem;
    font-weight: var(--weight-semi);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast), color var(--duration-fast);
    border: 1px solid transparent;
}
.nav-mobile .nav-link:hover,
.nav-mobile .nav-link:active {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.nav-mobile .nav-link.active {
    color: var(--accent);
    background: var(--accent-muted);
    border-color: rgba(247,147,26,0.2);
}

/* Backdrop overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal);
}
.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 640px) {
    .nav-links    { display: none; }
    .nav-hamburger { display: block; }

    .nav-mobile {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        background: rgba(16,16,16,0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-top: 1px solid var(--border-default);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        padding: var(--space-3) var(--space-6) var(--space-8);
        transform: translateY(100%);
        transition: transform var(--duration-slow) var(--ease-out);
        z-index: 200;
        flex-direction: column;
        gap: var(--space-1);
    }
    .nav-mobile.open {
        transform: translateY(0);
    }
    /* Drag handle */
    .nav-mobile::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: var(--border-strong);
        border-radius: var(--radius-full);
        margin: 0 auto var(--space-4);
    }
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-raised);
    border-radius: var(--radius-md);
    padding: var(--card-pad);
    border: 1px solid var(--border-subtle);
    transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
}
.card:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-glow);
}
.card-lg {
    padding: var(--card-pad-lg);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px var(--space-5);
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: var(--weight-bold);
    font-size: var(--text-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--duration-fast);
    white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px var(--space-5);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: var(--weight-semi);
    font-size: var(--text-sm);
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
    white-space: nowrap;
}
.btn-ghost:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* ===== INPUTS ===== */
.input-field {
    padding: 10px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: var(--text-base);
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
    width: 100%;
}
.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(247,147,26,0.12);
}
.input-field::placeholder { color: var(--text-tertiary); }

/* ===== TABS ===== */
.tab {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-tertiary);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    transition: background var(--duration-normal), color var(--duration-normal), border-color var(--duration-normal);
}
.tab:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}
.tab.active {
    background: var(--accent-muted);
    color: var(--accent);
    border-color: rgba(247,147,26,0.25);
}

/* ===== TOGGLE BUTTONS ===== */
.toggle-btn {
    padding: 8px var(--space-4);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-tertiary);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    transition: background var(--duration-normal), color var(--duration-normal), border-color var(--duration-normal);
}
.toggle-btn:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}
.toggle-btn.active {
    background: var(--accent-muted);
    color: var(--accent);
    border-color: rgba(247,147,26,0.25);
}

/* ===== SECTION ===== */
.section {
    margin: var(--section-gap) 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Section title — typography-only, no accent bar, no emoji */
.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
    font-weight: var(--weight-normal);
    line-height: var(--leading-snug);
}

/* ===== INSIGHT BOX ===== */
.insight-box {
    background: var(--bg-subtle);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: var(--space-5) var(--card-pad);
    margin-top: var(--space-6);
}
.insight-title {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    color: var(--accent);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}
.insight-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}
.insight-text strong {
    color: var(--text-primary);
    font-weight: var(--weight-semi);
}

/* ===== STAT DISPLAY ===== */
.stat-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--text-tertiary);
    font-weight: var(--weight-medium);
}
.stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

/* ===== CHART CONTAINER ===== */
.chart-container {
    background: var(--bg-raised);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    border: 1px solid var(--border-subtle);
    transition: border-color var(--duration-normal);
}
.chart-container:hover {
    border-color: var(--border-default);
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    padding: 56px 0 80px;
    font-size: var(--text-sm);
    line-height: 2.2;
    color: var(--text-tertiary);
}
.site-footer a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--duration-fast);
}
.site-footer a:hover {
    color: var(--text-secondary);
}
.site-footer .footer-data-sources {
    margin-top: var(--space-3);
    color: var(--text-tertiary);
    font-size: 0.8rem;
}
.site-footer .footer-data-sources strong {
    color: var(--text-tertiary);
}
.site-footer .footer-data-sources a {
    color: var(--text-tertiary);
    text-decoration: underline;
}
.site-footer .footer-data-sources a:hover {
    color: var(--text-secondary);
}
.site-footer .footer-nav {
    margin-top: var(--space-2);
}
.site-footer .footer-nav a {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}
.site-footer .footer-nav a.active {
    color: var(--text-secondary);
    font-weight: var(--weight-semi);
}
.footer-disclaimer {
    margin-top: var(--space-4);
    font-size: 0.72rem;
    color: var(--text-tertiary);
    opacity: 0.7;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}
th {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-default);
    color: var(--text-tertiary);
    font-weight: var(--weight-semi);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}
td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
tr:nth-child(even) td {
    background: rgba(255,255,255,0.015);
}
tr:hover td {
    background: rgba(255,255,255,0.03);
}

/* ===== LOADING ===== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
}
.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.04) 50%,
        transparent 100%
    );
    animation: shimmer 1.8s infinite;
}
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.skeleton-text {
    height: 14px;
    margin-bottom: var(--space-2);
    width: 60%;
}
.skeleton-text.short { width: 40%; }
.skeleton-text.long  { width: 80%; }
.skeleton-value {
    height: 28px;
    width: 120px;
    margin-bottom: var(--space-3);
}
.skeleton-value.large {
    height: 40px;
    width: 200px;
}
.skeleton-chart {
    height: 300px;
    border-radius: var(--radius-md);
}
.skeleton-card {
    background: var(--bg-raised);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}

.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(16,16,16,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal);
}
.loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-default);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.api-loading {
    text-align: center;
    padding: var(--space-10);
    color: var(--text-secondary);
}
.api-loading .spinner-inline {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-default);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: var(--space-2);
}

/* ===== ERROR ===== */
.error-banner {
    background: var(--negative-muted);
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: var(--radius-md);
    padding: 14px var(--space-5);
    margin-bottom: 14px;
    color: var(--negative);
    font-size: var(--text-sm);
    display: none;
}
.api-error {
    background: var(--negative-muted);
    border: 1px solid rgba(248,113,113,0.2);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    color: var(--negative);
    font-size: var(--text-sm);
    text-align: center;
    margin: 14px 0;
}
.api-error button {
    margin-top: var(--space-2);
    padding: 6px var(--space-4);
    border-radius: var(--radius-sm);
    border: 1px solid var(--negative);
    background: transparent;
    color: var(--negative);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    transition: background var(--duration-fast);
}
.api-error button:hover {
    background: var(--negative-muted);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms var(--ease-out),
                transform 500ms var(--ease-out);
}
.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 420ms; }

/* ===== EMAIL CAPTURE ===== */
.email-capture {
    background: var(--bg-overlay);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--card-pad-lg);
    text-align: center;
}
.email-form {
    display: flex;
    gap: var(--space-3);
    max-width: 440px;
    margin: var(--space-5) auto 0;
    flex-wrap: wrap;
}
.email-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
}
.email-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(247,147,26,0.12);
}
.email-input::placeholder { color: var(--text-tertiary); }
.email-btn {
    padding: 10px var(--space-5);
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: var(--weight-bold);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background var(--duration-fast);
    white-space: nowrap;
}
.email-btn:hover { background: var(--accent-hover); }

/* ===== SHARE BUTTONS ===== */
.share-bar {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px var(--space-4);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semi);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}
.share-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-default);
    color: var(--text-primary);
}

/* ===== RESULTS DISCLAIMER ===== */
.results-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    opacity: 0.6;
    margin-top: var(--space-5);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(247,147,26,0.25);
    color: var(--text-primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--bg-active); }

/* ===== FOCUS ===== */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root {
        --container-max: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --text-4xl:    2.5rem;
        --text-3xl:    2rem;
        --section-gap: var(--space-16);
    }
    .container { padding: 0 var(--space-5); }
}

@media (max-width: 640px) {
    :root {
        --text-4xl:    2rem;
        --text-3xl:    1.75rem;
        --section-gap: var(--space-12);
        --card-pad:    var(--space-5);
    }
    .container { padding: 0 var(--space-4); }
    .email-form { flex-direction: column; }
    .share-bar  { justify-content: center; }
}

@media (max-width: 480px) {
    :root {
        --text-4xl:    1.75rem;
        --text-3xl:    1.5rem;
        --card-pad:    var(--space-4);
    }
    .btn-primary,
    .btn-ghost { width: 100%; justify-content: center; }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .skeleton::after { animation: none; }
    .spinner        { animation: none; }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
