@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-base: #080a10;
    --bg-elevated: #0e1320;
    --bg-surface: rgba(16, 22, 35, 0.88);
    --bg-card: rgba(18, 25, 42, 0.72);
    --bg-card-hover: rgba(24, 32, 52, 0.94);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.04);
    --accent-blue: #4f8cff;
    --accent-cyan: #22d3ee;
    --accent-violet: #7c6cff;
    --accent-gradient: linear-gradient(135deg, #4f8cff 0%, #7c6cff 100%);
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-faint: #64748b;
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.28);
    --shadow-glow: 0 0 40px rgba(79, 140, 255, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 0% 0%, rgba(79, 140, 255, 0.12), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.08), transparent 28%),
        radial-gradient(circle at 100% 100%, rgba(124, 108, 255, 0.1), transparent 34%),
        var(--bg-base);
}

h1,
h2,
h3,
.logo-name {
    font-family: 'Outfit', 'Inter', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.navigator-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 24px 56px;
}

.navigator-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: -18px -24px 18px;
    padding: 18px 32px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(7, 10, 16, 0.78);
    backdrop-filter: blur(18px);
}

.header-left,
.header-right,
.brand-link,
.market-val-row,
.card-header,
.metric-row,
.factor-row,
.trigger-row,
.flow-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-link {
    min-width: 0;
}

.logo-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: var(--accent-gradient);
    box-shadow: 0 10px 30px rgba(79, 140, 255, 0.28);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-name {
    font-size: 1.24rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.logo-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-faint);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.return-pill,
.status-pill,
.score-badge,
.delta,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    white-space: nowrap;
}

.return-pill {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(79, 140, 255, 0.2);
    background: rgba(79, 140, 255, 0.08);
    color: #dbeafe;
    font-size: 0.84rem;
    font-weight: 800;
}

.navigator-hero {
    padding: 18px 0 0;
}

.hero-grid,
.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 14px;
}

.hero-copy-block {
    min-width: 0;
    padding: 18px 0;
}

.market-section-chip {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(94, 234, 212, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #67e8f9;
    font-size: 0.78rem;
    font-weight: 800;
}

.market-section-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.market-section-chip.amber {
    border-color: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
}

.market-section-chip.blue {
    border-color: rgba(79, 140, 255, 0.16);
    color: #60a5fa;
}

.market-section-chip.red {
    border-color: rgba(248, 113, 113, 0.17);
    color: #f87171;
}

.market-section-chip.violet {
    border-color: rgba(129, 140, 248, 0.17);
    color: #a5b4fc;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.28;
    letter-spacing: 0;
}

h3 {
    letter-spacing: 0;
}

.hero-copy,
.card-note,
#spot-note,
.scenario-copy,
.flow-copy,
.muted {
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-copy {
    max-width: 780px;
    margin-top: 16px;
    font-size: 1rem;
}

.market-card-like,
.card {
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(13, 18, 30, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.market-card-like.fx,
.card.fx {
    border-color: rgba(94, 234, 212, 0.16);
    background: linear-gradient(180deg, rgba(94, 234, 212, 0.08), rgba(13, 18, 30, 0.78));
}

.market-card-like.rate {
    border-color: rgba(77, 210, 255, 0.16);
    background: linear-gradient(180deg, rgba(77, 210, 255, 0.07), rgba(13, 18, 30, 0.78));
}

.market-card-like.amber,
.card.amber {
    border-color: rgba(255, 184, 77, 0.14);
    background: linear-gradient(180deg, rgba(255, 184, 77, 0.08), rgba(13, 18, 30, 0.78));
}

.market-card-like.blue,
.card.blue {
    border-color: rgba(79, 140, 255, 0.16);
    background: linear-gradient(180deg, rgba(79, 140, 255, 0.08), rgba(13, 18, 30, 0.78));
}

.market-card-like.violet,
.card.violet {
    border-color: rgba(129, 140, 248, 0.17);
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.08), rgba(13, 18, 30, 0.78));
}

.card {
    margin-top: 14px;
    padding: 22px;
}

.section-grid {
    margin-top: 14px;
    align-items: stretch;
}

.section-grid .card {
    margin-top: 0;
}

.section-grid-primary {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.market-label,
.panel-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-faint);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.market-val-row {
    align-items: baseline;
    flex-wrap: wrap;
}

#spot-rate,
.expectation-number strong,
.flow-card strong,
.decoupling-card strong {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

#spot-note {
    margin-top: 12px;
    font-size: 0.84rem;
}

.status-pill,
.score-badge,
.delta,
.tag {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 0.74rem;
    font-weight: 800;
}

.status-pill,
.score-badge {
    background: rgba(34, 197, 94, 0.12);
    color: #1cff8a;
}

.status-pill.warn {
    background: var(--warning-bg);
    color: var(--warning);
}

.delta {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.delta.up {
    background: rgba(239, 68, 68, 0.12);
    color: #ff6464;
}

.delta.down {
    background: rgba(34, 197, 94, 0.12);
    color: #1cff8a;
}

.card-header,
.metric-row,
.factor-row,
.trigger-row,
.flow-top {
    justify-content: space-between;
}

.pressure-stack,
.scenario-grid,
.capital-flow-grid,
.decoupling-grid,
.trigger-grid,
.allocation-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.factor-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 52px;
    gap: 10px 14px;
}

.factor-label {
    font-weight: 800;
}

.pressure-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.pressure-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ff6464;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.24);
}

.pressure-bar.amber {
    background: #f59e0b;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.22);
}

.pressure-bar.blue {
    background: #60a5fa;
    box-shadow: 0 0 18px rgba(79, 140, 255, 0.22);
}

.factor-weight {
    color: var(--text-muted);
    font-weight: 800;
    text-align: right;
}

.factor-row small {
    grid-column: 1 / -1;
}

.expectation-number {
    margin: 22px 0;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(94, 234, 212, 0.12);
    background: rgba(94, 234, 212, 0.06);
}

.expectation-number span,
.metric-row span {
    color: var(--text-muted);
    font-weight: 700;
}

.expectation-number strong {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
}

.metric-row {
    padding: 12px 0;
    border-top: 1px solid var(--glass-border);
}

.scenario-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scenario-card,
.flow-card,
.decoupling-card,
.allocation-card {
    min-height: 100%;
    padding: 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(10, 14, 24, 0.68);
}

.scenario-card.baseline {
    border-color: rgba(94, 234, 212, 0.18);
    background: linear-gradient(180deg, rgba(94, 234, 212, 0.08), rgba(13, 18, 30, 0.72));
}

.scenario-card.risk {
    border-color: rgba(248, 113, 113, 0.17);
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.08), rgba(13, 18, 30, 0.72));
}

.scenario-card.strong {
    border-color: rgba(79, 140, 255, 0.16);
    background: linear-gradient(180deg, rgba(79, 140, 255, 0.08), rgba(13, 18, 30, 0.72));
}

.scenario-title,
.flow-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
}

.scenario-range {
    display: block;
    margin-top: 10px;
    font-size: 1.28rem;
    font-weight: 900;
}

.scenario-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.tag.risk {
    background: rgba(239, 68, 68, 0.12);
    color: #ff6464;
}

.tag.good {
    background: rgba(34, 197, 94, 0.12);
    color: #1cff8a;
}

.scenario-copy,
.flow-copy,
.allocation-card p,
.card-note {
    margin-top: 12px;
    font-size: 0.9rem;
}

.capital-flow-grid,
.decoupling-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-card strong,
.decoupling-card strong {
    color: var(--text-primary);
    font-size: 1.24rem;
}

.trigger-grid {
    grid-template-columns: 1fr 1fr;
}

.trigger-column {
    padding: 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(10, 14, 24, 0.68);
}

.trigger-column h3 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.trigger-row {
    align-items: flex-start;
    padding: 10px 0;
    border-top: 1px solid var(--glass-border);
}

.trigger-row span:first-child {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.trigger-row span:last-child {
    max-width: 62%;
    text-align: right;
    font-weight: 800;
}

.allocation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.allocation-card strong {
    display: block;
    color: #1cff8a;
    font-size: 1.6rem;
}

@media (max-width: 980px) {
    .hero-grid,
    .section-grid,
    .section-grid-primary,
    .scenario-grid,
    .capital-flow-grid,
    .decoupling-grid,
    .trigger-grid,
    .allocation-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 760px) {
    .navigator-shell {
        width: 100%;
        padding: 0 14px 40px;
    }

    .navigator-header {
        margin: 0 -14px 14px;
        padding: 10px 14px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .logo-icon svg {
        width: 20px;
        height: 20px;
    }

    .logo-name {
        font-size: 0.98rem;
    }

    .logo-sub {
        display: none;
    }

    .return-pill {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.76rem;
    }

    .hero-copy-block,
    .card,
    .market-card-like {
        padding: 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .factor-row {
        grid-template-columns: 1fr 48px;
    }

    .pressure-track {
        grid-column: 1 / -1;
        order: 3;
    }

    .trigger-row {
        display: block;
    }

    .trigger-row span:last-child {
        display: block;
        max-width: none;
        margin-top: 4px;
        text-align: left;
    }
}
