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

:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #dbeafe;
    --green: #16a34a;
    --green-dark: #15803d;
    --green-light: #dcfce7;
    --orange: #ea580c;
    --orange-light: #fff7ed;
    --purple: #7c3aed;
    --purple-light: #f3e8ff;
    --red: #dc2626;
    --red-light: #fef2f2;
    --teal: #0d9488;
    --teal-light: #f0fdfa;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --indigo: #4f46e5;
    --indigo-dark: #4338ca;
    --indigo-light: #eef2ff;
    --emerald: #059669;
    --emerald-light: #ecfdf5;
    --amber: #d97706;
    --amber-light: #fffbeb;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-800);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
}

.brand-icon {
    width: 28px;
    height: 28px;
    color: var(--blue);
}

.nav-cta {
    padding: 8px 20px;
    background: var(--blue);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--blue-dark);
}

/* ===== Section Layout ===== */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ===== Hero ===== */
.hero {
    padding: 140px 24px 80px;
    background: linear-gradient(160deg, #f0f5ff 0%, #e8f0fe 40%, #fff 100%);
    text-align: center;
}

.hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* ===== Hero Pills ===== */
.hero-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.pill-icon {
    width: 16px;
    height: 16px;
    color: var(--indigo);
    flex-shrink: 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.4;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-primary:disabled {
    background: #93b5f1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.btn-success {
    background: var(--green);
    color: #fff;
}

.btn-success:hover {
    background: var(--green-dark);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== Hero Stats ===== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== Features ===== */
.features {
    padding: 96px 24px;
    background: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.25s;
}

.feature-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-200);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.icon-blue   { background: var(--blue-light);   color: var(--blue); }
.icon-green  { background: var(--green-light);  color: var(--green); }
.icon-orange { background: var(--orange-light); color: var(--orange); }
.icon-purple { background: var(--purple-light); color: var(--purple); }
.icon-red    { background: var(--red-light);    color: var(--red); }
.icon-teal   { background: var(--teal-light);   color: var(--teal); }
.icon-indigo  { background: var(--indigo-light);  color: var(--indigo); }
.icon-emerald { background: var(--emerald-light); color: var(--emerald); }
.icon-amber   { background: var(--amber-light);   color: var(--amber); }

a.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.feature-view-link {
    margin-top: auto;
    padding-top: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue);
    transition: color 0.2s;
}

.feature-card-link:hover .feature-view-link {
    color: var(--blue-dark);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.55;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 96px 24px;
    background: var(--gray-50);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--gray-200);
    margin-top: 24px;
    flex-shrink: 0;
}

/* ===== Step Cards (new 4-step layout) ===== */
.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 0 12px;
    max-width: 200px;
}

.step-card .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--indigo);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.step-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--indigo-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.step-icon-wrap svg {
    width: 26px;
    height: 26px;
    color: var(--indigo);
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 52px;
    flex-shrink: 0;
}

.step-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--gray-300);
}

/* ===== Features Minimal (3-card layout) ===== */
.features-minimal {
    padding: 96px 24px;
    background: var(--gray-50);
}

.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card-m {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
}

.feature-card-m:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}

.feature-icon-m {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon-m svg {
    width: 24px;
    height: 24px;
}

.feature-card-m h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-card-m p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-link {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--indigo);
    transition: color 0.2s;
}

.feature-card-m:hover .feature-link {
    color: var(--indigo-dark);
}

/* ===== Bottom CTA ===== */
.bottom-cta {
    padding: 80px 24px;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    text-align: center;
}

.bottom-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.bottom-cta p {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.btn-cta-light {
    background: #fff;
    color: var(--gray-900);
    font-weight: 700;
}

.btn-cta-light:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

/* ===== Upload Section ===== */
.upload-section {
    padding: 96px 24px;
    background: #fff;
}

.upload-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.upload-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.upload-hint {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius);
    padding: 40px 24px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
    background: #fff;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--blue);
    background: var(--blue-light);
}

.dropzone.has-files {
    border-color: var(--green);
    background: var(--green-light);
}

.dropzone-icon {
    width: 40px;
    height: 40px;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.dropzone.has-files .dropzone-icon {
    color: var(--green);
}

.dropzone-text {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.dropzone.has-files .dropzone-text {
    color: var(--green-dark);
    font-weight: 600;
}

.dropzone input[type="file"] {
    display: none;
}

/* ===== Progress Ring ===== */
.progress-ring-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 16px auto 20px;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--blue);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue);
}

.step-text {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ===== Result Boxes ===== */
.success-box {
    background: var(--green-light);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 32px 24px;
    margin-bottom: 16px;
}

.success-box h3 {
    font-size: 1.2rem;
    color: var(--green-dark);
    margin: 12px 0 6px;
}

.success-box p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.error-box {
    background: var(--red-light);
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 32px 24px;
    margin-bottom: 16px;
}

.error-box h3 {
    font-size: 1.2rem;
    color: var(--red);
    margin: 12px 0 6px;
}

.error-box p {
    color: var(--gray-600);
    font-size: 0.9rem;
    word-break: break-word;
}

.result-icon {
    width: 40px;
    height: 40px;
}

/* ===== Footer ===== */
.footer {
    padding: 32px 24px;
    background: var(--gray-900);
    text-align: center;
}

.footer p {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.footer strong {
    color: var(--gray-200);
}

/* ===== Nav Links ===== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--gray-900);
}

.nav-brand {
    text-decoration: none;
}

/* ===== Gallery ===== */
.gallery-header {
    padding: 120px 24px 40px;
    text-align: center;
    background: linear-gradient(160deg, #f0f5ff 0%, #e8f0fe 40%, #fff 100%);
}

.gallery-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.gallery-section {
    padding: 24px 24px 96px;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.gallery-tile {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s;
}

.gallery-tile:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
    transform: translateY(-3px);
}

.tile-img-wrapper {
    background: #fff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
}

.chart-num-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.tile-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.tile-label {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    border-top: 1px solid var(--gray-100);
    text-align: center;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--gray-600);
    background: #fff;
    border: 1.5px solid var(--gray-200);
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.filter-tab.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.filter-count {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 7px;
    border-radius: 10px;
}

.filter-tab.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Gallery Empty */
.gallery-empty {
    text-align: center;
    padding: 80px 24px;
}

.empty-icon {
    width: 56px;
    height: 56px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.gallery-empty h3 {
    font-size: 1.3rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.gallery-empty p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* ===== Executive Narrative Page ===== */
.narrative-header {
    padding: 120px 24px 40px;
    text-align: center;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 60%, #334155 100%);
    color: #fff;
}

.narrative-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.narrative-header .section-sub {
    color: #94a3b8;
}

.narrative-header .hero-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
}

/* KPI Cards */
.narrative-kpis {
    padding: 0 24px;
    margin-top: -32px;
    position: relative;
    z-index: 10;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.kpi-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.kpi-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.1;
}

.kpi-label {
    display: block;
    font-size: 0.72rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Overview Grid */
.narrative-overview {
    padding: 56px 24px 48px;
    background: #fff;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.overview-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 24px;
}

.overview-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.overview-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 12px;
}

.overview-note {
    font-size: 0.8rem !important;
    color: var(--gray-500) !important;
    font-style: italic;
}

/* Bar list in overview */
.overview-bar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.overview-bar-item {
    font-size: 0.8rem;
}

.overview-bar-label {
    display: flex;
    justify-content: space-between;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 3px;
}

.overview-bar-track {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.overview-bar-fill {
    height: 100%;
    background: var(--blue);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Priority bars */
.priority-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.priority-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.priority-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-700);
    width: 85px;
    flex-shrink: 0;
}

.priority-track {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.priority-fill {
    height: 100%;
    border-radius: 4px;
}

.priority-low { background: var(--green); }
.priority-high { background: var(--red); }

.priority-pct {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
    width: 40px;
    text-align: right;
}

/* Section-by-section analysis */
.narrative-section {
    padding: 56px 24px;
    background: #fff;
}

.narrative-section-alt {
    background: var(--gray-50);
}

.narrative-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.narrative-section-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gray-900);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.8rem;
}

.narrative-chart-block {
    margin-bottom: 20px;
}

.narrative-chart-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
}

.narrative-section-alt .narrative-chart-row {
    background: #fff;
}

.narrative-chart-thumb {
    flex-shrink: 0;
    width: 220px;
    cursor: pointer;
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    position: relative;
}

.narrative-chart-thumb:hover {
    box-shadow: var(--shadow);
}

.narrative-chart-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.narrative-chart-text {
    flex: 1;
    min-width: 0;
}

.narrative-chart-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.narrative-summary-text {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 12px;
}

.narrative-trend {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 12px;
}

.narrative-trend p {
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.55;
}

/* Key Takeaways */
.narrative-takeaways {
    padding: 72px 24px;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
}

.narrative-takeaways .section-title {
    color: #fff;
    margin-bottom: 40px;
}

.takeaway-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.takeaway-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
}

.takeaway-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.takeaway-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.takeaway-card p {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.55;
}

/* ===== Slide Modal ===== */
.slide-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.slide-overlay.active {
    display: flex;
}

.slide-modal {
    background: #fff;
    border-radius: 16px;
    width: 95vw;
    max-width: 1300px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px 36px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.slide-close {
    position: absolute;
    top: 12px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.slide-close:hover {
    color: var(--gray-900);
}

.slide-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    padding-right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slide-chart-num {
    flex-shrink: 0;
    background: var(--blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.slide-chart-num:empty {
    display: none;
}

.chart-ref {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-light);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Two-column modal body */
.slide-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.slide-body.slide-single-col {
    grid-template-columns: 1fr;
}

.slide-col-hidden {
    display: none !important;
}

.slide-left-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slide-right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Column header with label + expand button */
.slide-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2px;
}

.slide-col-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gray-400);
}

.slide-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.2s;
    flex-shrink: 0;
}

.slide-expand-btn:hover {
    background: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue);
}

.slide-expand-btn svg {
    width: 14px;
    height: 14px;
}

.slide-block {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    padding: 16px;
}

.slide-block-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blue);
    background: var(--blue-light);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.slide-block p {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.slide-chart-col {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-chart-col img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Insight items */
.insight-item {
    font-size: 0.83rem;
    color: var(--gray-700);
    line-height: 1.55;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.insight-item strong {
    color: var(--gray-900);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        padding: 120px 20px 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 32px;
    }

    .hero-pills {
        gap: 8px;
    }

    .hero-pill {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .features-grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .step-connector {
        width: 2px;
        height: 32px;
        margin: 0;
    }

    .steps-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .step-card {
        max-width: 280px;
    }

    .step-arrow {
        padding-top: 0;
        transform: rotate(90deg);
    }

    .section-title {
        font-size: 1.5rem;
    }

    .upload-card {
        padding: 28px 20px;
    }

    .bottom-cta {
        padding: 60px 20px;
    }

    .bottom-cta h2 {
        font-size: 1.5rem;
    }

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

    .gallery-header h1 {
        font-size: 1.6rem;
    }

    .slide-modal {
        padding: 24px 20px;
        width: 98vw;
        max-height: 95vh;
    }

    .slide-body {
        grid-template-columns: 1fr;
    }

    .slide-expand-btn {
        display: none;
    }

    .slide-title {
        font-size: 1.2rem;
    }

    .filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

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

    .narrative-chart-row {
        flex-direction: column;
    }

    .narrative-chart-thumb {
        width: 100%;
    }

    .takeaway-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .narrative-header h1 {
        font-size: 1.7rem;
    }

    .narrative-section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
