body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
}

.app-shell {
    min-height: 100vh;
}

.navbar {
    background: #071633;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nav-brand {
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.nav-link:hover {
    color: #dbeafe;
}

.nav-link.active {
    color: #dbeafe;
    border-bottom: 2px solid #93c5fd;
}

.page-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 18px 48px 18px;
}

.hero-section,
.chart-section,
.text-section,
.text-page,
.table-block {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.hero-section {
    padding: 36px 32px;
}

.hero-kicker {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
}

.hero-title {
    margin: 0 0 14px 0;
    font-size: 44px;
    line-height: 1.05;
}

.meta-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.meta-chip {
    display: inline-block;
    background: #dfe8f6;
    color: #23406a;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.card-grid,
.home-card-grid,
.finding-grid,
.source-grid,
.method-grid {
    display: grid;
    gap: 18px;
}

.card-grid,
.home-card-grid,
.finding-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-bottom: 24px;
}

.source-grid,
.method-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 16px;
}

.summary-card,
.finding-card,
.source-card,
.method-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #eceff3;
}

.home-summary-card {
    border-top: 4px solid #071633;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.home-highlight-card {
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.single-card-row {
    margin-bottom: 24px;
}

.card-value,
.finding-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    margin: 12px 0 0 0;
}

.risk-pill-wrapper {
    margin-top: 12px;
}

.risk-pill {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 700;
}

.risk-low {
    background: #dcfce7;
    color: #166534;
}

.risk-medium {
    background: #fef3c7;
    color: #92400e;
}

.risk-high {
    background: #fee2e2;
    color: #991b1b;
}

.gap-label {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
}

.gap-positive {
    color: #92400e;
}

.gap-negative {
    color: #1d4ed8;
}

.gap-neutral {
    color: #374151;
}

.small-note {
    margin-top: 8px;
    font-size: 14px;
    color: #4b5563;
}

.section-note {
    margin-top: 14px;
    font-size: 15px;
    color: #374151;
}

.live-demo-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 24px;
}

.live-demo-input-card,
.live-demo-output-column {
    min-width: 0;
}

.live-demo-input-card {
    border-top: 4px solid #071633;
}

.live-demo-output-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.live-demo-output-column > h2 {
    margin-bottom: -2px;
}

.live-demo-output-grid {
    margin-bottom: 0;
}

.live-demo-metric-card {
    min-height: 138px;
}

.live-demo-interpretation {
    max-width: 720px;
}

.input-slider-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    margin-bottom: 10px;
}

.slider-label {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.slider-value {
    flex: 0 0 auto;
    min-width: 58px;
    border-radius: 999px;
    background: #dfe8f6;
    color: #23406a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 11px;
    text-align: center;
}

.input-slider-block .rc-slider {
    margin: 0 8px;
}

.input-slider-block .rc-slider-track {
    background-color: #2563eb;
}

.input-slider-block .rc-slider-rail {
    background-color: #d8dee8;
}

.input-slider-block .rc-slider-dot {
    border-color: #cbd5e1;
}

.input-slider-block .rc-slider-dot-active {
    border-color: #2563eb;
}

.input-slider-block .rc-slider-handle {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.input-slider-block .rc-slider-mark-text {
    color: #64748b;
    font-size: 12px;
}

.table-block {
    overflow-x: auto;
}

.dash-table-container {
    margin-top: 12px;
}

h1, h2, h3 {
    margin-top: 0;
    color: #1f2937;
}

h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    line-height: 1.5;
}

ul, ol {
    padding-left: 24px;
    margin-bottom: 0;
}

li {
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .navbar {
        padding: 16px 18px;
    }

    .nav-brand {
        font-size: 20px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        margin-top: 12px;
        gap: 14px;
    }

    .page-content {
        padding: 20px 12px 36px 12px;
    }

    .hero-section,
    .chart-section,
    .text-section,
    .text-page,
    .table-block {
        padding: 22px 18px;
    }

    .hero-title {
        font-size: 36px;
    }

    .card-value,
    .finding-value {
        font-size: 24px;
    }

    .card-grid,
    .home-card-grid,
    .finding-grid,
    .source-grid,
    .method-grid,
    .live-demo-grid {
        grid-template-columns: 1fr;
    }

    .live-demo-grid {
        gap: 16px;
    }

    .live-demo-metric-card {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 15px;
    }

    .hero-title {
        font-size: 30px;
    }

    .meta-chip {
        font-size: 13px;
    }

    .risk-pill {
        font-size: 18px;
    }

    .slider-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .slider-value {
        min-width: 52px;
    }
}
