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

:root {
    --primary: #0F172A;
    /* Deep Slate */
    --secondary: #334155;
    /* Slate */
    --accent: #2563EB;
    /* Premium Blue */
    --accent-hover: #1d4ed8;
    --bg-color: #F8FAFC;
    /* Subtle Off-white */
    --text-color: #1E293B;
    --white: #FFFFFF;

    /* Brand Palette */
    --brand-main-blue: #034485;
    --brand-highlight-blue: #3C3CE3;
    --brand-gold: #D4AF37;
    --brand-amber: #F59E0B;
    --brand-ice-blue: #DBEAFE;
    --brand-muted-steel: #89B0D7;
    --brand-dusky-purple: #8686B5;

    /* Tab Content Area Enhancement */
    .tab-content-area {
        min-height: 400px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 0 0 16px 16px;
        padding: 3rem;
        position: relative;
        transition: opacity 0.4s ease;
    }

    .sector-layout {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 4rem;
    }

    .sector-card-enhanced {
        background: var(--white);
        border: 1px solid #f1f5f9;
        border-radius: 16px;
        padding: 2.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }

    .sector-top-row {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 4rem;
        margin-bottom: 2.5rem;
        padding-bottom: 2.5rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .sector-main-score {
        text-align: center;
        border-right: 1px solid #f1f5f9;
        padding-right: 4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sector-cohort-ref {
        font-size: 0.85rem;
        color: #94a3b8;
        margin-top: 0.75rem;
    }

    .delta-badge {
        display: inline-block;
        font-size: 0.8rem;
        font-weight: 800;
        padding: 0.2rem 0.6rem;
        border-radius: 6px;
        letter-spacing: -0.01em;
    }

    .delta-positive {
        background: #f0fdf4;
        color: #166534;
    }

    .delta-negative {
        background: #fef2f2;
        color: #991b1b;
    }

    .sector-top-right {
        display: flex;
        flex-direction: column;
    }

    .pillar-mini-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin: 0 0 1.5rem 0;
    }

    @media (min-width: 1400px) {
        .pillar-mini-grid {
            grid-template-columns: repeat(6, 1fr);
        }
    }

    .mini-card {
        padding: 1.25rem 0.5rem;
        border-radius: 12px;
        text-align: center;
        font-size: 0.65rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border: 1px solid rgba(0, 0, 0, 0.03);
        color: var(--secondary);
    }

    .mini-card .mini-val {
        display: block;
        font-size: 1.2rem;
        font-weight: 900;
        margin-top: 6px;
        color: var(--primary);
    }

    .sector-narrative {
        font-size: 1.15rem;
        line-height: 1.7;
        color: var(--secondary);
        background: #f8fafc;
        padding: 2.5rem;
        border-radius: 16px;
        border-left: 6px solid var(--accent);
    }

    .sector-meta {
        font-size: 0.85rem;
        font-weight: 700;
        color: #94a3b8;
        text-transform: uppercase;
        margin-bottom: 0.5rem;
    }

    /* Sector Detail Grid (bottom section) */
    .sector-detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .sector-detail-title {
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--primary);
        margin-top: 0;
        margin-bottom: 1.25rem;
    }

    /* Pillar Bar Chart */
    .sector-bar-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
    }

    .sector-bar-label {
        width: 100px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--primary);
        text-align: right;
        flex-shrink: 0;
    }

    .sector-bar-track {
        flex: 1;
        height: 14px;
        background: #f1f5f9;
        border-radius: 7px;
        overflow: visible;
        position: relative;
    }

    .sector-bar-fill {
        height: 100%;
        border-radius: 7px;
        transition: width 0.8s ease-out;
        opacity: 0.9;
    }

    .sector-bar-benchmark {
        position: absolute;
        top: -6px;
        bottom: -6px;
        width: 2px;
        background: transparent;
        border-left: 2px dashed #64748b;
        z-index: 2;
    }

    .sector-bar-score-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: 60px;
        flex-shrink: 0;
    }

    .sector-bar-score {
        font-size: 0.95rem;
        font-weight: 900;
        color: var(--primary);
        line-height: 1;
    }

    .sector-bar-delta {
        font-size: 0.7rem;
        font-weight: 700;
        margin-top: 2px;
    }

    .sector-benchmark-note {
        font-size: 0.75rem;
        color: #94a3b8;
        margin-top: 1.25rem;
        font-style: italic;
        border-top: 1px solid #f1f5f9;
        padding-top: 0.75rem;
    }

    /* Standout Elements */
    .standout-label {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.75rem;
    }

    .standout-label-top {
        color: #166534;
    }

    .standout-label-bottom {
        color: #991b1b;
        margin-top: 1.5rem;
    }

    .standout-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0.6rem 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .standout-row:last-child {
        border-bottom: none;
    }

    .standout-name {
        flex: 1;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--primary);
    }

    .standout-score {
        font-size: 0.9rem;
        font-weight: 800;
        color: var(--primary);
        width: 45px;
        text-align: right;
    }

    @media (max-width: 1200px) {
        .sector-layout {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .sector-top-row {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .sector-main-score {
            border-right: none;
            padding-right: 0;
        }

        .pillar-mini-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .sector-detail-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Size Focus Components */
    --status-leader: #10B981;
    --status-stable: #3B82F6;
    --status-active: #8B5CF6;
    --status-at-risk: #F59E0B;
    --status-underperforming: #F97316;
    --status-critical: #EF4444;

    /* Translucents */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html,
body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--primary);
    /* Defaults to dark, white for content */
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* Base Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary);
}

h2 {
    font-size: 2rem;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--secondary);
    text-align: justify;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   EXECUTIVE SUMMARY SECTION
   ========================================================= */
/* Jump Link */
.jump-link-wrap {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 2rem;
}

.jump-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jump-link:hover {
    color: var(--primary);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.stat-card--alert {
    border-bottom: 3px solid #ef4444;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-main-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--brand-main-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.stat-context {
    font-size: 0.75rem;
    color: #94A3B8;
    font-weight: 400;
}

/* Pillar Ranking */
.pillar-ranking {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

@media (max-width: 640px) {
    .pillar-ranking {
        padding: 1.5rem;
    }
}

.ranking-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.info-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    font-size: 11px;
    margin-left: 8px;
    cursor: help;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.info-tooltip-wrap:hover {
    background: var(--brand-ice-blue);
    color: var(--brand-main-blue);
}

.info-tooltip-wrap::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1e293b;
    color: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    width: 320px;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.6;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    text-align: left;
}

.info-tooltip-wrap:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ranking-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ranking-label {
    width: 160px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-align: right;
    flex-shrink: 0;
}

.ranking-bar-bg {
    flex: 1;
    height: 12px;
    background: #F1F5F9;
    border-radius: 6px;
    overflow: hidden;
}

.ranking-bar {
    height: 100%;
    border-radius: 6px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-score {
    width: 40px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    text-align: left;
    flex-shrink: 0;
}

/* Insight Grid */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.insight-card {
    padding: 2.25rem 2rem;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* Signal Tag Pills */
.insight-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.tag-vulnerability {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

.tag-strength {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.tag-tension {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fef3c7;
}

.insight-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    line-height: 1.25;
    font-weight: 800;
}

.insight-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--secondary);
    margin: 0;
}

.insight-card.dark-theme {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.insight-card.dark-theme h4 {
    color: var(--white);
}

.insight-card.dark-theme p {
    color: #cbd5e1;
}

.insight-card.dark-theme .heatmap-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.insight-card.dark-theme .heatmap-link:hover {
    text-decoration: underline;
}

.heatmap-insights {
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .insight-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ranking-label {
        width: 120px;
    }
}

@media (max-width: 640px) {
    .summary-stats {
        grid-template-columns: 1fr;
    }

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

    .ranking-label {
        width: 90px;
        font-size: 0.75rem;
    }

    .container {
        padding: 1.25rem;
    }

    .maturity-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .maturity-range {
        min-width: auto;
        display: inline-block;
    }

    :root .sector-card-enhanced {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    :root .tab-content-area {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    :root .pillar-mini-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    :root .sector-main-score .stat-value {
        font-size: 3rem !important;
    }

    :root .sector-narrative {
        padding: 1.5rem;
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    #report-content .sector-comparison-bars {
        display: none !important;
    }

    #report-content .sector-comparison-table-mobile {
        display: block !important;
        margin-top: 1.5rem;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
    }

    .mobile-data-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.85rem;
        table-layout: fixed; /* Enforce containment */
    }

    .mobile-data-table th, 
    .mobile-data-table td {
        padding: 0.75rem 0.5rem; /* Tighter padding for mobile */
        text-align: left;
        border-bottom: 1px solid #f1f5f9;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .mobile-data-table th:nth-child(1) { width: 50%; }
    .mobile-data-table th:nth-child(2) { width: 22%; }
    .mobile-data-table th:nth-child(3) { width: 28%; }

    .mobile-data-table th {
        background: #f8fafc;
        color: var(--secondary);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }

    .mobile-data-table .col-name {
        font-weight: 700;
        color: var(--primary);
    }

    .mobile-data-table .col-score {
        font-weight: 800;
        color: var(--brand-main-blue);
    }

    .mobile-data-table .col-diff {
        font-weight: 700;
        font-size: 0.75rem;
    }

    .mobile-data-table .col-diff.pos { color: #166534; }
    .mobile-data-table .col-diff.neg { color: #991b1b; }

    .sector-comparison-wrap {
        display: block !important;
    }
}

/* =========================================================
   EDITORIAL LAYOUT (MARGIN TITLES)
   ========================================================= */
.editorial-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(auto, 1300px) minmax(0, 1fr);
    align-items: start;
    width: 100%;
    margin-top: 4rem;
}

.margin-title-wrap {
    grid-column: 1;
    text-align: right;
    padding-right: 5rem;
    padding-top: 1rem;
    position: sticky;
    top: 120px;
    z-index: 5;
}

.margin-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 0.9;
    color: var(--brand-main-blue);
    opacity: 0;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    transform: translateX(-100px);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
    display: block;
}

.margin-title.is-visible {
    opacity: 0.15;
    transform: translateX(0);
}

.editorial-content {
    grid-column: 2;
    min-width: 0; /* Prevents grid items from forcing width */
}

@media (max-width: 1200px) {
    .editorial-row {
        display: block;
        margin-top: 2rem;
    }

    .margin-title-wrap {
        position: static;
        text-align: left;
        padding: 0 1.5rem;
        margin-bottom: 1rem;
    }

    .editorial-content {
        padding: 0 1.5rem;
    }

    .margin-title {
        font-size: 2.5rem;
        transform: none !important;
        opacity: 0.4;
    }
}

/* =========================================================
   GATE / HERO SECTION
   ========================================================= */
#gate-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #1E1B4B 100%);
    color: var(--white);
    padding: 2rem;
    z-index: 10;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease;
}

#gate-section.unlocked {
    /* We no longer hide the hero. It stays as the header of the page! */
}

.gate-bg-fx {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px, 120px 100%, 100% 120px;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.gate-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.gate-content.split-layout {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
    margin: 4rem auto;
}



.gate-logo {
    width: 180px;
    margin-bottom: 2rem;
}

.gate-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-ceo-message p {
    font-size: 1.05rem;
    color: #E2E8F0;
    margin-bottom: 1.25rem;
    text-align: left;
    line-height: 1.6;
}

.hero-ceo-sign {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-ceo-sign .ceo-portrait {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-ceo-sign .ceo-name {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    display: block;
    line-height: 1;
    color: var(--white);
}

.hero-ceo-sign .ceo-title {
    font-size: 0.9rem;
    color: #94A3B8;
    display: block;
}

@media (max-width: 900px) {
    #gate-section {
        padding-left: 0;
        padding-right: 0;
    }

    .gate-content.split-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1.5rem;
        margin: 2rem auto;
    }

    .gate-logo {
        margin: 0 auto 1.5rem;
        display: block;
    }

    .gate-title {
        text-align: center;
        font-size: 2.4rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-ceo-message p {
        text-align: center;
        font-size: 1rem;
    }

    .hero-ceo-sign {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
}

.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    opacity: 0.7;
    transition: opacity 0.3s;
    display: none;
    /* Hidden until unlocked */
    z-index: 10;
}

.scroll-arrow:hover {
    opacity: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

.form-desc {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.tiny-subtext {
    font-size: 8px;
    color: #D4AF37;
    margin-bottom: 2rem;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Glassmorphism Form */
.lead-form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: left;
    margin-top: 150px;
}



.lead-form-container h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.lead-form-container p {
    color: #94A3B8;
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #CBD5E1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

.form-group input::placeholder {
    color: #475569;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background-color: var(--accent);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-back {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #94A3B8;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    text-decoration: none;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .lead-form-container {
        padding: 1.5rem;
        margin-top: 2rem;
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 2rem);
        max-width: 450px;
    }
}

/* =========================================================
   REPORT CONTENT (LOCKED BY DEFAULT)
   ========================================================= */
#report-content {
    display: none;
    /* toggled via JS */
    background: var(--bg-color);
}

/* Content Sections */
.report-section {
    padding: 5rem 0;
    border-bottom: 1px solid #E2E8F0;
}

.report-section.white-bg {
    background: var(--white);
}

.report-section h2 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 2.5rem;
}

/* CEO Block */
.ceo-block {
    background: var(--bg-color);
    /* slightly different if inside white-bg */
    padding: 3rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.white-bg .ceo-block {
    background: var(--bg-color);
}

.bg-color .ceo-block {
    background: var(--white);
}

.ceo-block p {
    text-align: left;
}

.ceo-block p:last-child {
    margin-bottom: 0;
}

.ceo-sign {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    text-align: right;
}

.ceo-name {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    display: block;
    line-height: 1;
    color: var(--primary);
}

.ceo-portrait {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Interactive Visual Containers */
.chart-container {
    width: 100%;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    margin: 3rem 0;
    position: relative;
    border: 1px solid #E2E8F0;
}

.chart-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Theme Boxes */
.theme-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #E2E8F0;
}

.theme-box.accented {
    border-left: 4px solid var(--accent);
}

.theme-box h3 {
    margin-top: 0;
    color: var(--accent);
}

/* Action Steps Wrapper */
.action-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-step {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.action-step strong {
    display: block;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.action-step p {
    font-size: 1rem;
    margin-bottom: 0;
    text-align: left;
}

/* Lists */
.insight-list {
    list-style: none;
    margin: 2rem 0;
}

.insight-list li {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #F1F5F9;
}

.insight-list li::before {
    content: "→";
    position: absolute;
    left: 1.25rem;
    top: 1.5rem;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.25rem;
}

.insight-list li strong {
    display: block;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.insight-list li p {
    margin-bottom: 0;
    font-size: 1rem;
    text-align: left;
}

/* Framework Grid Visualization */
.module-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 1.5rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin: 2rem 0;
    text-align: left;
}

@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
}

.maturity-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.maturity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.maturity-range {
    background: var(--bg-color);
    color: var(--primary);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 65px;
    text-align: center;
    font-size: 0.8rem;
    border: 1px solid #E2E8F0;
}

.maturity-info strong {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .module-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .module-grid {
        grid-template-columns: 1fr;
    }
}

.pillar-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.pillar-header {
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    border-top: 5px solid var(--color);
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pillar-header h2 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--primary);
    line-height: 1.2;
    margin: 0;
}

.module-card {
    background: var(--white);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 80px;
    color: var(--text-color);
    cursor: help;
    position: relative;
    z-index: 1;
}

.module-card:hover {
    transform: scale(1.1);
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.module-card .module-score {
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 6px;
    letter-spacing: -0.02em;
}

/* Heatmap Tooltip HUD */
.heatmap-tooltip {
    position: fixed;
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: white;
    padding: 1.25rem;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.heatmap-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-rank {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.tooltip-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.tooltip-status-dot.status-blue {
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
}

.tooltip-status-dot.status-light-green {
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.tooltip-status-dot.status-yellow {
    background: #eab308;
    box-shadow: 0 0 10px #eab308;
}

.tooltip-status-dot.status-light-red {
    background: #f87171;
    box-shadow: 0 0 10px #f87171;
}

.tooltip-status-dot.status-red {
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.tooltip-body h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    color: white;
}

.tooltip-score-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.tooltip-score {
    font-size: 1.75rem;
    font-weight: 900;
    color: #f8fafc;
}

.tooltip-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.tooltip-body p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #cbd5e1;
    margin: 0;
}

/* Status Colors (Heatmap Tiering) */
.status-red {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
    border-width: 2px;
}

.status-red .module-score {
    color: #b91c1c;
}

.status-light-red {
    background: #fff1f2;
    border-color: #ffe4e6;
    color: #be123c;
}

.status-light-red .module-score {
    color: #e11d48;
}

.status-yellow {
    background: #fffbeb;
    border-color: #fef3c7;
    color: #92400e;
}

.status-yellow .module-score {
    color: #b45309;
}

.status-light-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.status-light-green .module-score {
    color: #15803d;
}

.status-blue {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #1e40af;
}

.status-blue .module-score {
    color: #1d4ed8;
}

/* Legend */
.framework-legend {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-item .dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

/* Mobile Comparison Table */
.sector-comparison-table-mobile {
    display: none;
}

/* Footer elements */
.footer {
    background: #0f172a;
    color: var(--white);
    padding: 6rem 0 4rem;
    text-align: center;
}

.footer-feedback {
    max-width: 700px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-feedback h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-feedback p {
    color: #94a3b8;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feedback-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border: 1px solid var(--accent);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.feedback-link:hover {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

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

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.score-pill-inline {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 10px;
}

.score-high {
    color: var(--status-leader);
    background-color: rgba(16, 185, 129, 0.1);
}

.score-low {
    color: var(--status-critical);
    background-color: rgba(239, 68, 68, 0.1);
}

/* =========================================================
   NAVIGATION & NEW AREAS
   ========================================================= */
#site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.98);
    /* var(--primary) but translucent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#site-nav.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: -100px;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 640px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
}

.nav-logo {
    height: 35px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.area-label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Tabs */
.tabs-container {
    margin-top: 2rem;
}

.tabs-header {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E2E8F0;
    margin-bottom: 2rem;
    width: 100%;
}

#sector-tabs, #size-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
}

.tabs-header::-webkit-scrollbar {
    height: 4px;
}

.tabs-header::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    background: #F1F5F9;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

.tab-content-area {
    min-height: 300px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Data Nugget */
.data-nugget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.data-nugget {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    text-align: center;
    transition: transform 0.3s ease;
}

.data-nugget:hover {
    transform: translateY(-5px);
}

.white-bg .data-nugget {
    background: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.data-nugget-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.data-nugget-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
}

/* =========================================================
   CORE THEMES SECTION (Tabbed Interface)
   ========================================================= */
#theme-tabs .tab-btn {
    border-radius: 100px;
    padding: 0.6rem 1.8rem;
    background: #f1f5f9;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

#theme-tabs .tab-btn:hover {
    background: #e2e8f0;
}

#theme-tabs .tab-btn.active {
    background: var(--brand-main-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(3, 68, 133, 0.2);
}

.theme-tab-pane {
    display: none;
}

.theme-tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.theme-narrative-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.theme-narrative-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.theme-preview {
    padding: 3rem;
}

@media (max-width: 640px) {
    .theme-preview {
        padding: 2rem 1.5rem;
    }
}

.theme-preview h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.editorial-quote {
    margin: 2rem 0;
    padding: 2rem 2.5rem;
    background: #f8fafc;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--primary);
    position: relative;
}

@media (max-width: 640px) {
    .editorial-quote {
        padding: 1.5rem;
        margin: 1.5rem 0;
        font-size: 1.05rem;
    }
}

.quote-author {
    display: block;
    margin-top: 1.5rem;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: none;
    letter-spacing: 0;
}

.quote-author span {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: -0.25rem;
}

/* Action Grid & Cards */
.theme-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.action-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.action-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    background: #eff6ff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    letter-spacing: 0.05em;
}

.action-body h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.action-body p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--secondary);
    margin: 0;
}

@media (max-width: 1024px) {
    .theme-action-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Expanding Logic */
.theme-full-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fcfcfc;
    border-top: 1px solid transparent;
}

.theme-narrative-card.expanded .theme-full-content {
    max-height: 5000px;
    /* Arbitrary large number to allow content */
    border-top-color: #E2E8F0;
}

.theme-full-inner {
    padding: 3rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

@media (max-width: 640px) {
    .theme-full-inner {
        padding: 2rem 1.5rem;
    }
}

.theme-full-inner h4 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.read-more-btn:hover {
    color: var(--primary);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.theme-narrative-card.expanded .btn-icon {
    transform: rotate(180deg);
}

/* =========================================================
   FLOATING TABLE OF CONTENTS
   ========================================================= */
.floating-toc {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 1rem;
    border-radius: 100px;
    /* pill shape */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 1);
    pointer-events: none;
    /* enabled via JS when unlocked */
}

/* Shown when report content is visible */
#report-content[style*="display: block"] .floating-toc,
.floating-toc.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.floating-toc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.floating-toc li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.toc-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    padding: 4px;
}

.toc-text {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: absolute;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toc-text::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--primary);
}

.toc-link:hover .toc-text {
    opacity: 1;
    transform: translateX(0);
}

.toc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.toc-link:hover .toc-dot {
    background: var(--accent);
    transform: scale(1.4);
}

.toc-link.active .toc-dot {
    background: var(--accent);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

@media (max-width: 1200px) {
    .floating-toc {
        display: none;
        /* Hide on smaller screens to prevent overlapping content */
    }
}

/* =========================================================
   FRAMEWORK VIEW TOGGLE
   ========================================================= */
.view-toggle-wrap {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.view-toggle-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle-btn:hover {
    background: #f8fafc;
    border-color: var(--brand-muted-steel);
}

.view-toggle-btn.active {
    background: var(--brand-main-blue);
    color: #fff;
    border-color: var(--brand-main-blue);
    box-shadow: 0 4px 12px rgba(3, 68, 133, 0.2);
}

.framework-view {
    display: none;
}

.framework-view.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* =========================================================
   EXTREMES VIEW (Strengths & Gaps)
   ========================================================= */
.extremes-header {
    background: #1e293b;
    color: #fff;
    padding: 2.5rem;
    border-radius: 12px 12px 0 0;
    margin-bottom: 1px;
}

.extremes-header h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.extremes-header p {
    color: #94a3b8;
    margin: 0;
    font-size: 1rem;
    text-align: left;
}

.extremes-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.extremes-col {
    background: #fff;
    display: flex;
    flex-direction: column;
}

.extremes-col-header {
    padding: 1rem 1.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gaps .extremes-col-header {
    background: #ef4444;
}

.strengths .extremes-col-header {
    background: #10b981;
}

.extremes-list {
    display: flex;
    flex-direction: column;
}

.extreme-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 1.5rem;
}

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

.extreme-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
}

.extreme-bar-container {
    width: 140px;
    height: 24px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.extreme-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.gaps .extreme-bar {
    background: #fca5a5;
    /* Light Red */
}

.strengths .extreme-bar {
    background: #6ee7b7;
    /* Light Green */
}

.extreme-score {
    font-weight: 800;
    font-size: 1rem;
    width: 40px;
    text-align: right;
}

.gaps .extreme-score {
    color: #ef4444;
}

.strengths .extreme-score {
    color: #10b981;
}

@media (max-width: 992px) {
    .extremes-split-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   DARK BLUE SECTION (What does it mean?)
   ========================================================= */
.dark-blue-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #1E1B4B 100%);
    color: var(--white);
    padding: 6rem 0;
}

.dark-blue-section .editorial-content h2 {
    color: var(--white);
    border-bottom: 2px solid var(--white);
    padding-bottom: 0.5rem;
    margin-bottom: 2.5rem;
}

.dark-blue-section .editorial-content p {
    color: #CBD5E1;
}

.dark-blue-section .margin-title {
    color: var(--white);
    opacity: 0.2;
}

.dark-blue-section .theme-box strong {
    color: var(--primary);
}

.dark-blue-section .theme-box h3 {
    color: var(--accent);
}

.dark-blue-section .theme-box p {
    color: var(--secondary);
}

.dark-blue-section .theme-box {
    background: var(--white);
    border: 1px solid #E2E8F0;
    backdrop-filter: none;
}

.dark-blue-section .maturity-info strong {
    color: var(--primary);
}

.dark-blue-section .maturity-info {
    color: var(--secondary);
}

.heatmap-light-bg {
    background: #fcfcfc;
    padding-top: 6rem;
    padding-bottom: 6rem;
    border-top: 1px solid #E2E8F0;
}

.dark-blue-section .editorial-row,
.heatmap-light-bg .editorial-row {
    margin-top: 0;
}

.cta-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cta-single-wrap {
    margin: 0;
}

.cta-image-wrap {
    width: 100%;
}

.cta-promo-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: block;
}

@media (max-width: 1100px) {
    .cta-split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 900px;
    }
}


.cta-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
    margin-bottom: 2rem;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .cta-features-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.comparison-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
}

.comparison-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
}

.comp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.comp-row.perf-best {
    background: rgba(34, 197, 94, 0.05);
}

.comp-row.perf-mid {
    background: rgba(245, 158, 11, 0.05);
}

.comp-row.perf-worst {
    background: rgba(239, 68, 68, 0.05);
}

.comp-label {
    font-size: 0.75rem;
    font-weight: 600;
    width: 45px;
    color: var(--secondary);
}

.comp-bar-bg {
    flex: 1;
    height: 8px;
    background: #F1F5F9;
    border-radius: 4px;
    overflow: hidden;
}

.comp-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.comp-val {
    font-size: 0.85rem;
    font-weight: 700;
    width: 35px;
    text-align: right;
    color: var(--primary);
}

.comp-row.perf-best .comp-bar {
    background: #22c55e;
}

.comp-row.perf-mid .comp-bar {
    background: #f59e0b;
}

.comp-row.perf-worst .comp-bar {
    background: #ef4444;
}

.comp-row.perf-best .comp-val {
    color: #166534;
}

.comp-row.perf-worst .comp-val {
    color: #991b1b;
}

@media (max-width: 1200px) {
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SHARE BUTTONS (Footer)
   ========================================================= */
.share-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-btn-email {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.share-btn-linkedin {
    background: rgba(37, 99, 235, 0.1);
    color: var(--white);
    border-color: rgba(37, 99, 235, 0.3);
}

.share-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.share-btn-linkedin:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

@media (max-width: 640px) {
    .share-btns { 
        flex-direction: row;
        justify-content: center;
    }
    .share-btn { 
        padding: 0.5rem 1rem;
    }
}

/* =========================================================
   MOBILE OPTIMIZATION NOTE
   ========================================================= */
.mobile-view-note {
    display: none;
    background: #f8fafc;
    color: #64748b;
    padding: 0.85rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

@media (max-width: 1024px) {
    .mobile-view-note {
        display: block;
    }
}

/* =========================================================
   LIGHTMODE MODULE SHARE BOX
   ========================================================= */
.module-share-box {
    margin-top: 4rem;
    padding: 1.25rem 1.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.share-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.share-btns-compact {
    display: flex;
    gap: 0.75rem;
}

.share-btn-light {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--secondary);
}

.share-btn-light svg {
    width: 16px;
    height: 16px;
}

.share-btn-light.share-linkedin {
    color: #0077b5;
    border-color: #0077b520;
}

.share-btn-light.share-linkedin:hover {
    background: #0077b5;
    color: #fff;
    border-color: #0077b5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.2);
}

.share-btn-light.share-email {
    color: var(--secondary);
}

.share-btn-light.share-email:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

@media (max-width: 640px) {
    .module-share-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    .share-btns-compact {
        width: 100%;
        justify-content: center;
    }
    .share-btn-light {
        flex: 1;
        justify-content: center;
    }
}

/* FINAL OVERRIDE: Force horizontal scroll for all report tabs */
@media (max-width: 900px) {
    #sector-tabs, #size-tabs, .tabs-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 3.5rem !important;
    }

    #sector-tabs .tab-btn, #size-tabs .tab-btn, .tabs-header .tab-btn {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 120px !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }
}