/* ============================================
   economic.day - Fintech Trust Blue
   ============================================ */

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

body {
    background: #FFFFFF;
    color: #0A1628;
    font-family: 'Source Serif 4', serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- SCROLL PROGRESS --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: #2563EB;
    z-index: 1000;
    transition: width 50ms linear;
}

/* --- HERO --- */
.hero {
    background: #0A1628;
    color: #FFFFFF;
    padding: 2rem 5vw 3rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero-domain {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #2563EB;
}

.hero-date {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    color: #6B7280;
    font-variant-numeric: tabular-nums;
}

/* --- MARKET CARDS --- */
.market-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.market-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-value {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
}

.card-delta {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-delta.show {
    opacity: 1;
}

.card-delta.positive {
    color: #16A34A;
}

.card-delta.negative {
    color: #DC2626;
}

.arrow-up,
.arrow-down {
    width: 8px;
    height: 8px;
}

.arrow-up polygon {
    fill: #16A34A;
}

.arrow-down polygon {
    fill: #DC2626;
}

.hero-headline {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #FFFFFF;
    max-width: 70ch;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-headline.revealed {
    opacity: 1;
}

/* --- ANALYSIS SECTION --- */
.analysis-section {
    padding: 4rem 5vw;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.analysis-main h2 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    color: #0A1628;
}

.analysis-main p {
    margin-bottom: 1.5rem;
    color: #0A1628;
}

/* --- CHART CALLOUT --- */
.chart-callout {
    margin: 2rem 0;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.5rem;
    background: #F9FAFB;
}

.chart-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sparkline-large {
    width: 100%;
    height: 100%;
}

.sparkline-line {
    fill: none;
    stroke: #2563EB;
    stroke-width: 2;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.5s ease-out;
}

.sparkline-line.drawn {
    stroke-dashoffset: 0;
}

.sparkline-area {
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.sparkline-area.drawn {
    opacity: 1;
}

.chart-caption {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: #6B7280;
    margin-top: 0.75rem;
}

/* --- SIDEBAR --- */
.analysis-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: start;
}

.sidebar-widget {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.widget-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.widget-value {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #0A1628;
    font-variant-numeric: tabular-nums;
}

.widget-unit {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    color: #6B7280;
    margin-left: 2px;
}

.sparkline-small {
    width: 100%;
    height: 40px;
    margin-top: 0.75rem;
}

.sparkline-line-sm {
    fill: none;
    stroke: #2563EB;
    stroke-width: 1.5;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.5s ease-out;
}

.sparkline-line-sm.drawn {
    stroke-dashoffset: 0;
}

.sparkline-line-sm.light {
    stroke: rgba(255,255,255,0.5);
}

/* --- SECTION DIVIDER --- */
.section-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- DASHBOARD BAND --- */
.dashboard-band {
    background: #0A1628;
    padding: 4rem 5vw;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dash-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.dash-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.dash-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.dash-value {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
}

.dash-unit {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    color: #6B7280;
    margin-left: 2px;
}

/* --- DEEP DIVE --- */
.deep-dive {
    padding: 4rem 5vw;
    max-width: 750px;
    margin: 0 auto;
}

.deep-dive h2 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    color: #0A1628;
}

.deep-dive p {
    margin-bottom: 1.5rem;
    color: #0A1628;
}

/* --- FOOTER --- */
.footer {
    background: #0A1628;
    color: #FFFFFF;
    padding: 4rem 5vw;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-summary h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-summary p {
    font-family: 'Source Serif 4', serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6B7280;
    max-width: 50ch;
}

.footer-brand {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-domain {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #2563EB;
}

.footer-tagline {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: #6B7280;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .analysis-sidebar {
        position: static;
    }

    .footer-inner {
        flex-direction: column;
    }

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