/* ============================================
   economic.day - Styles
   Fintech Trust Blue Design Language
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #111827;
    background: #ffffff;
    overflow-x: hidden;
}

/* ---------- Progress Bar ---------- */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #1d4ed8;
    z-index: 1000;
    transition: width 0.15s ease-out;
}

/* ---------- Hero / Headline ---------- */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    position: relative;
    padding: 60px 24px 80px;
}

.hero-content {
    text-align: center;
    max-width: 600px;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.chart-icon {
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInIcon 0.8s ease forwards 0.3s;
}

@keyframes slideInIcon {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: #111827;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.brand-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.5s;
}

.key-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.key-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.7s;
}

.key-value-row {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.9s;
}

.key-value {
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
    font-size: 3.5rem;
    color: #16a34a;
    letter-spacing: -0.02em;
}

.trend-arrow {
    display: inline-flex;
    align-items: center;
}

#hero-arrow {
    opacity: 0;
    transform: translateY(8px);
    animation: bounceIn 0.5s ease forwards 1.2s;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: translateY(8px); }
    60% { opacity: 1; transform: translateY(-4px); }
    100% { opacity: 1; transform: translateY(0); }
}

.key-period {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #64748b;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 1.0s;
}

.blue-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 0;
    background: #1d4ed8;
    animation: extendLine 1s ease forwards 1.4s;
}

@keyframes extendLine {
    to {
        width: min(80%, 600px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Dashboard ---------- */
#dashboard {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 32px;
    position: relative;
    padding-left: 16px;
}

.section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: #1d4ed8;
    border-radius: 2px;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.indicator-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

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

.indicator-card:hover {
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.1);
    border-color: #1d4ed8;
}

.card-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-value {
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
    font-size: 2rem;
    color: #111827;
    line-height: 1.2;
}

.card-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
}

.trend-text {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 0.85rem;
}

.trend-text.positive {
    color: #16a34a;
}

.trend-text.negative {
    color: #dc2626;
}

.trend-text.neutral {
    color: #64748b;
}

.neutral-dash {
    color: #64748b;
    font-weight: 700;
    font-size: 1rem;
}

/* ---------- Analysis ---------- */
#analysis {
    padding: 80px 24px 100px;
    background: #ffffff;
}

.analysis-content {
    max-width: 780px;
    margin: 0 auto;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #111827;
    margin-bottom: 24px;
}

.data-callout {
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.subsection-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #111827;
    margin-top: 48px;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

/* ---------- Bar Chart ---------- */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.bar-row {
    display: grid;
    grid-template-columns: 120px 1fr 70px;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #64748b;
    text-align: right;
}

.bar-track {
    height: 24px;
    background: #f8fafc;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.bar-fill {
    height: 100%;
    background: #1d4ed8;
    border-radius: 4px;
    width: 0%;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-fill.bar-negative {
    background: #dc2626;
}

.bar-value {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    text-align: left;
}

.bar-value.positive {
    color: #16a34a;
}

.bar-value.negative {
    color: #dc2626;
}

/* ---------- Yield Curve ---------- */
.yield-curve {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.yield-point {
    display: grid;
    grid-template-columns: 50px 1fr 70px;
    align-items: center;
    gap: 12px;
}

.yield-maturity {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    color: #64748b;
    text-align: right;
}

.yield-bar-track {
    height: 18px;
    background: #f8fafc;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.yield-bar {
    height: 100%;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    border-radius: 3px;
    width: 0%;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.yield-rate {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 0.85rem;
    color: #111827;
    text-align: left;
}

.chart-note {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 16px;
}

/* ---------- Close / Footer ---------- */
#close {
    background: #111827;
    padding: 80px 24px 60px;
}

.close-content {
    max-width: 780px;
    margin: 0 auto;
}

.summary-card {
    background: rgba(29, 78, 216, 0.08);
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 48px;
}

.summary-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.takeaway-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.takeaway-list li {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 20px;
    position: relative;
}

.takeaway-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: #1d4ed8;
    border-radius: 50%;
}

.takeaway-list .data-callout {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

.next-briefing {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}

.next-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.next-time {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    font-size: 0.95rem;
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #64748b;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .brand-name {
        font-size: 2rem;
    }

    .key-value {
        font-size: 2.5rem;
    }

    .card-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .bar-row {
        grid-template-columns: 90px 1fr 60px;
    }

    .yield-point {
        grid-template-columns: 40px 1fr 60px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .card-row {
        grid-template-columns: 1fr;
    }

    .brand-name {
        font-size: 1.6rem;
    }

    .key-value {
        font-size: 2rem;
    }

    .bar-row {
        grid-template-columns: 70px 1fr 55px;
        gap: 8px;
    }

    .bar-label {
        font-size: 0.8rem;
    }
}
