/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark-blue: #0a1a2f;
    --color-blue: #2f80ed;
    --color-green: #00b58a;
    --color-dark-gray: #1c1c1c;
    --color-gray: #99a1af;
    --color-light-gray: #f5f7fa;
    --color-medium-gray: #4a5565;
    --color-border-gray: #e0e0e0;
    --color-dark-blue-alt: #1a2f4d;
    --color-footer-gray: #364153;
    --color-text-gray: #6a7282;
    --font-geist: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 120px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-4xl: 48px;
    --text-5xl: 60px;
}

/* Accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body {
    font-family: var(--font-geist);
    color: var(--color-dark-gray);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    background-color: var(--color-dark-blue);
    width: 100%;
    height: 68px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-logo {
    height: 32px;
    width: auto;
    display: block;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-family: var(--font-geist);
    font-size: var(--text-md);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

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

.container-centered {
    text-align: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    font-family: var(--font-geist);
    font-size: var(--text-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-nav-outline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-md);
    min-height: 40px;
    min-width: 140px;
}

.btn-nav-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-xs);
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    width: 100%;
}

/* Sections */
.section {
    width: 100%;
    padding: var(--space-4xl) 0;
}

.hero-section {
    background-color: var(--color-dark-blue);
    color: white;
    padding: var(--space-5xl) 0;
    min-height: 720px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Hero background media slot - pilot site mockup */
.hero-background-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-pilot-background {
    background-image: url('images/maps/Arfion-pilot-site-mockup.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(1200px 600px at 35% 30%, rgba(10, 26, 47, 0.25) 0%, rgba(10, 26, 47, 0.85) 70%, rgba(10, 26, 47, 0.95) 100%),
        linear-gradient(to bottom, rgba(10, 26, 47, 0.85) 0%, rgba(10, 26, 47, 0.55) 35%, rgba(10, 26, 47, 0.9) 100%);
}

.stats-section {
    background-color: white;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 420px;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    align-items: stretch;
}

.stats-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.stats-card.chart-container {
    margin-top: 0;
    padding-bottom: 0;
}

.stats-card.chart-container .chart-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.stats-card.chart-container .chart-wrapper .chart-svg {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: block;
}

.stats-card.map-card {
    padding: 0;
    overflow: hidden;
}

.stats-card.map-card .map-container {
    margin-top: 0;
    min-height: 0;
    flex: 1;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.stats-card.map-card .map-container .map-background {
    background-size: cover;
    background-position: center;
}

@media (max-width: 980px) {
    .stats-cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .stats-card.map-card {
        min-height: 320px;
    }

    .demand-charts-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .demand-charts-grid .chart-container:nth-child(3) {
        grid-column: auto;
    }
}

.failure-section {
    background-color: white;
}

.demand-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    align-items: stretch;
}

.demand-charts-grid .chart-container {
    margin-top: 0;
}

.demand-charts-grid .chart-container:nth-child(3) {
    grid-column: 1 / -1;
}

.section-intro {
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--color-medium-gray);
    line-height: 1.6;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xl);
}

.section-intro.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 940px;
}

.failure-mode-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas:
        "copy donuts"
        "forecast forecast";
    gap: 32px;
    margin-top: 28px;
    align-items: start;
}

.failure-mode-copy {
    grid-area: copy;
}

.failure-mode-donuts {
    grid-area: donuts;
}

.failure-mode-forecast {
    grid-area: forecast;
}

.failure-mode-donuts .donut-grid {
    margin-top: 0;
}

.failure-mode-forecast .chart-container {
    margin-top: 0;
}

.failure-mode-donuts,
.failure-mode-forecast {
    min-width: 0;
}

.failure-mode-donuts,
.failure-mode-forecast {
    width: 100%;
}

.platform-section {
    background-color: white;
}

.market-reality-section {
    background-color: var(--color-light-gray);
}

.market-reality-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    margin-top: 32px;
    align-items: start;
}

.market-reality-bullets {
    padding: 24px;
}

.market-reality-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.market-reality-list li {
    font-size: 18px;
    color: var(--color-dark-gray);
    margin-bottom: 20px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.market-reality-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: 600;
}

.market-reality-map-container {
    background-color: #f8fafc;
    border-color: rgba(0, 181, 138, 0.2);
}

@media (max-width: 980px) {
    .market-reality-layout {
        grid-template-columns: 1fr;
    }

    .failure-mode-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "donuts"
            "forecast";
    }
}

.market-section {
    background-color: white;
}

/* Why Now Slide */
.why-now-section {
    background-color: white;
}

.why-now-slide {
    padding-top: 8px;
}

.why-now-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.why-now-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-dark-blue);
    margin: 0;
}

.why-now-subtitle {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-medium-gray);
    margin: 0;
}

.why-now-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
    align-items: start;
}

.why-now-grid .chart-container {
    margin-top: 0;
}

.why-now-notes {
    margin-top: 22px;
}

.why-now-notes-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark-blue);
    margin-bottom: 10px;
}

.why-now-bullets {
    margin: 0;
    padding-left: 18px;
    color: var(--color-dark-blue);
}

.why-now-bullets li {
    margin-bottom: 8px;
    line-height: 1.35;
}

.why-now-footer {
    margin-top: 20px;
}

.why-now-statement {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-dark-blue);
}

.why-now-citations {
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-medium-gray);
    line-height: 1.4;
}

@media (max-width: 980px) {
    .why-now-title {
        font-size: 34px;
    }

    .why-now-grid {
        grid-template-columns: 1fr;
    }

    .why-now-statement {
        font-size: 28px;
    }
}

/* Market Slide (LFP Market Share) */
.market-slide-section {
    background-color: white;
}

.market-slide {
    padding-top: 8px;
}

.market-slide-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.market-slide-intro {
    font-size: 18px;
    color: var(--color-medium-gray);
    line-height: 1.5;
    margin: 0;
}

.market-slide-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-dark-blue);
    margin: 0;
}

.market-slide-content {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.donut-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px; /* one spacer between donuts */
    align-items: start;
    justify-items: center;
}

.market-demand-block .chart-container {
    margin-top: 0;
}

.market-chart-caption {
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-medium-gray);
    line-height: 1.65;
}

.market-bridge {
    margin: 0;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-dark-blue);
    border-top: 1px solid var(--color-border-gray);
    border-bottom: 1px solid var(--color-border-gray);
}

.market-slide-metrics {
    margin-top: 26px;
}

.market-metric-header {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-medium-gray);
    letter-spacing: 0.01em;
    margin-bottom: 16px;
}

.market-metrics-columns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-metric-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: baseline;
}

.market-metric-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.market-metric-col {
    margin: 0;
}

.market-metric-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--color-dark-blue);
}

.market-metric-value-inline {
    flex-wrap: wrap;
    gap: 10px;
}

.market-metric-number {
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
}

.market-metric-unit {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-medium-gray);
    letter-spacing: 0.01em;
}

.market-metric-title-inline {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-medium-gray);
}

.market-metric-caption {
    font-size: 13px;
    color: var(--color-medium-gray);
    line-height: 1.5;
    margin: 0;
}

.market-slide-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-gray);
}

.market-slide-statement {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-medium-gray);
}

.market-slide-statement-sub {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-gray);
}

.market-slide-citations {
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-text-gray);
    line-height: 1.5;
}

/* Donut SVG typography */
.lfp-donut-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.lfp-donut-svg {
    /* Responsive sizing: bounded by container + viewport, ~25% larger than prior 210px cap */
    width: min(100%, min(72vw, 270px));
    height: auto;
    display: block;
}

.lfp-donut-year {
    font-size: 18px;
    font-weight: 800;
    fill: var(--color-medium-gray);
}

.lfp-donut-center-value {
    font-size: 30px;
    font-weight: 800;
    fill: var(--color-medium-gray);
}

.lfp-donut-center-unit {
    font-size: 22px;
    font-weight: 800;
    fill: var(--color-medium-gray);
}

.lfp-donut-label {
    font-size: 14px;
    font-weight: 700;
    fill: var(--color-medium-gray);
}

/* Generic chart container (used by several sections) */
.chart-container {
    background-color: white;
    border: 2px solid var(--color-border-gray);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-2xl);
    overflow-x: auto;
}

.chart-stack-gap {
    margin-top: var(--space-2xl);
}

.market-forecast-chart {
    background-color: #f5f7fa;
}

@media (max-width: 980px) {
    .market-slide-title {
        font-size: 38px;
    }

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

    .donut-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .market-metric-row,
    .market-metric-cols {
        grid-template-columns: 1fr;
    }

    .market-metric-number {
        font-size: 46px;
    }

    .market-metric-title-inline {
        font-size: 28px;
    }
}

/* Combined Roadmap & Replication section */
.roadmap-replication-section {
    background-color: white;
}

.roadmap-replication-section .section-subheading.centered {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.roadmap-maps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.roadmap-map-slot {
    min-height: 320px;
    background-color: var(--color-dark-blue-alt);
}

.roadmap-map-slot .map-placeholder-content .placeholder-caption {
    color: var(--color-text-gray);
}

.cta-section {
    background-color: var(--color-dark-blue);
    color: white;
}

.why-win-section {
    background-color: white;
}

.geopolitical-section {
    background-color: white;
}

.breakthrough-section {
    background-color: white;
}

.faq-section {
    background-color: white;
}

/* Hero – Gestalt: proximity (message group vs timeline), common region, focal point */
.hero-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-message {
    /* Common region: headline + subheading as one perceptual group */
    margin-bottom: 0;
}

.hero-heading {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    color: white;
}

.hero-subheading {
    font-size: var(--text-2xl);
    color: var(--color-green);
    margin-bottom: 0;
    line-height: 1.5;
    max-width: 980px;
    text-wrap: pretty;
}

.hero-tagline {
    font-size: var(--text-md);
    color: var(--color-medium-gray);
    margin-bottom: var(--space-xl);
    font-weight: 500;
}

.section-heading {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    color: var(--color-dark-blue);
}

.section-heading.centered {
    text-align: center;
}

.cta-section .section-heading {
    color: white;
}

.cta-urgency {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    font-weight: 500;
    text-align: center;
}

.section-subheading {
    font-size: var(--text-xl);
    color: var(--color-blue);
    margin-bottom: var(--space-lg);
}

/* Proximity: timeline as separate chunk; common region via border */
.hero-timeline {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, 0.75);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 980px;
    letter-spacing: 0.02em;
}

/* Buttons */
.button-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
    justify-content: center;
}

.btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-geist);
    font-size: var(--text-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;
}

.btn-primary {
    background-color: var(--color-blue);
    color: white;
    min-width: 200px;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
    min-width: 200px;
}

.btn-outline:hover {
    background-color: rgba(47, 128, 237, 0.1);
}

/* Placeholders */
.hero-placeholder,
.chart-placeholder,
.flowchart-placeholder,
.forecast-chart-placeholder,
.timeline-graphic-placeholder,
.replication-map-placeholder,
.email-form-placeholder,
.dependency-graph-placeholder,
.breakthrough-map-placeholder {
    border-radius: 10px;
    border: 1px solid rgba(47, 128, 237, 0.3);
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
    min-height: 384px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-placeholder {
    border-color: rgba(47, 128, 237, 0.3);
    border-width: 1px;
}

.chart-placeholder {
    background-color: white;
    border: 2px solid var(--color-border-gray);
    min-height: 112px;
    padding: 20px;
}

.flowchart-placeholder {
    background-color: var(--color-light-gray);
    border: 2px solid rgba(47, 128, 237, 0.2);
    min-height: 112px;
    padding: 20px;
}

.forecast-chart-placeholder {
    background-color: var(--color-light-gray);
    border: 2px solid var(--color-border-gray);
    min-height: 384px;
}

.timeline-graphic-placeholder {
    border: 2px solid var(--color-border-gray);
    min-height: 256px;
    margin-bottom: 40px;
}

.replication-map-placeholder {
    background-color: var(--color-dark-blue-alt);
    border: 2px solid rgba(47, 128, 237, 0.2);
    min-height: 320px;
}

.email-form-placeholder {
    background-color: var(--color-dark-blue-alt);
    border: 1px solid rgba(47, 128, 237, 0.3);
    min-height: 102px;
    max-width: 832px;
    margin: 24px auto 0;
}

.dependency-graph-placeholder {
    border: 2px solid var(--color-border-gray);
    min-height: 124px;
    margin-top: 40px;
}

.breakthrough-map-placeholder {
    border: 2px solid var(--color-border-gray);
    min-height: 384px;
}

/* Map Container Styles */
.map-container {
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(47, 128, 237, 0.3);
    margin-top: 40px;
    min-height: 384px;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-dark-blue-alt);
    transition: height 0.3s ease;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%; /* Show full image without cropping */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.map-background.loaded {
    opacity: 1;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.map-overlay path,
.map-overlay circle,
.map-overlay line,
.map-overlay polyline,
.map-overlay polygon {
    pointer-events: stroke;
}

/* Supply chain arrow styles */
.supply-chain-arrow {
    pointer-events: stroke;
    transition: opacity 0.3s ease;
}

.purple-arrow {
    stroke: #8B5CF6;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.red-arrow {
    stroke: #EF4444;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-placeholder-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 384px;
    pointer-events: none;
}

.map-container.has-background .map-placeholder-content {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.map-container.has-background .map-placeholder-content.hidden {
    display: none;
}

/* Specific map container styles */
.hero-map-container {
    min-height: 400px;
}

.replication-map-container {
    min-height: 320px;
    background-color: var(--color-dark-blue-alt);
}

.breakthrough-map-container {
    min-height: 384px;
}

.replication-map-section {
    background-color: white;
}

.replication-map-card {
    margin: var(--space-2xl) auto 0;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f8fafc;
    border: 2px solid var(--color-border-gray);
    position: relative;
    /* Pulse system: inner resonance + outer propagation */
    /* High-contrast over dark-blue highlighted countries */
    --pulse-inner-rgb: 34 211 238; /* cyan/turquoise blue (#22D3EE) */
    --pulse-outer-rgb: 103 232 249; /* lighter aqua (#67E8F9) */
    --pulse-inner-duration: 1.35s;
    --pulse-outer-duration: 2.6s;
    --pulse-outer-delay-offset: 0.25s; /* separates outer wave from inner resonance */
    --pulse-ring-size: 14px;
    --pulse-ring-border: 3px;
    --pulse-scale-start: 0.35;
    --pulse-scale-end: 6.8;
}

.replication-map-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.replication-map-markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.replication-marker {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 1px;
    height: 1px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    opacity: 1;
    --marker-scale: 1;
}

.replication-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--pulse-ring-size) * var(--marker-scale));
    height: calc(var(--pulse-ring-size) * var(--marker-scale));
    transform: translate(-50%, -50%) scale(var(--pulse-scale-start));
    border-radius: 999px;
    border: calc(var(--pulse-ring-border) * var(--marker-scale)) solid rgb(var(--pulse-rgb) / 0.75);
    box-shadow:
        0 0 12px rgb(var(--pulse-rgb) / 0.25),
        0 0 0 2px rgba(255, 255, 255, 0.75);
    opacity: 0;
    filter: drop-shadow(0 10px 20px rgba(10, 26, 47, 0.22));
    mix-blend-mode: screen;
    will-change: transform, opacity;
    animation-delay: calc(var(--delay) + var(--d));
}

/* Inner: resonating energy (oscillation, stays tight) */
.replication-ring--inner {
    border-color: rgb(var(--pulse-inner-rgb) / 0.95);
    box-shadow:
        0 0 0 2px rgb(var(--pulse-inner-rgb) / 0.18),
        0 0 18px rgb(var(--pulse-inner-rgb) / 0.55),
        0 0 44px rgb(var(--pulse-inner-rgb) / 0.22);
    animation: replicationInnerResonate var(--pulse-inner-duration) ease-in-out infinite;
}

@keyframes replicationInnerResonate {
    0% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.78);
        border-color: rgb(var(--pulse-inner-rgb) / 0.70);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
        border-color: rgb(var(--pulse-inner-rgb) / 0.95);
    }
    100% {
        opacity: 0.65;
        transform: translate(-50%, -50%) scale(0.88);
        border-color: rgb(var(--pulse-inner-rgb) / 0.78);
    }
}

/* Outer: separated propagation wave (cyan/turquoise, expands outwards) */
.replication-ring--outer {
    border-color: rgb(var(--pulse-outer-rgb) / 0.70);
    box-shadow:
        0 0 0 2px rgb(var(--pulse-outer-rgb) / 0.14),
        0 0 22px rgb(var(--pulse-outer-rgb) / 0.40),
        0 0 56px rgb(var(--pulse-outer-rgb) / 0.18);
    animation: replicationOuterPulse var(--pulse-outer-duration) cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
    animation-delay: calc(var(--delay) + var(--d) + var(--pulse-outer-delay-offset));
}

@keyframes replicationOuterPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.18);
        border-color: rgb(var(--pulse-outer-rgb) / 0.75);
    }
    10% {
        opacity: 1;
    }
    60% {
        opacity: 0.35;
        transform: translate(-50%, -50%) scale(calc(var(--pulse-scale-end) * 0.92));
        border-color: rgb(var(--pulse-outer-rgb) / 0.28);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(var(--pulse-scale-end));
        border-color: rgb(var(--pulse-outer-rgb) / 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .replication-ring {
        animation: none;
        opacity: 0;
    }
}

.placeholder-text {
    color: var(--color-gray);
    font-size: 16px;
    margin-bottom: 8px;
}

.replication-map-placeholder .placeholder-text,
.email-form-placeholder .placeholder-text {
    color: var(--color-gray);
}

.dependency-graph-placeholder .placeholder-text,
.breakthrough-map-placeholder .placeholder-text {
    color: var(--color-dark-gray);
}

.placeholder-caption {
    color: var(--color-medium-gray);
    font-size: 14px;
}

.replication-map-placeholder .placeholder-caption {
    color: var(--color-text-gray);
}

/* Stats List */
.stats-list {
    list-style: none;
    margin-bottom: 40px;
}

.stats-list li {
    font-size: 18px;
    color: var(--color-dark-gray);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bullet {
    color: var(--color-green);
    font-size: 20px;
    font-weight: 600;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* Failure Grid */
.failure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.failure-card {
    background-color: var(--color-light-gray);
    border: 2px solid var(--color-border-gray);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    min-height: 140px;
}

.failure-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 12px;
}

.failure-card p {
    font-size: 16px;
    color: var(--color-dark-gray);
    line-height: 1.5;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.platform-card {
    background-color: var(--color-dark-blue-alt);
    border: 1px solid rgba(47, 128, 237, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    min-height: 306px;
    display: flex;
    flex-direction: column;
}

.platform-card-image {
    border: 1px solid rgba(47, 128, 237, 0.2);
    border-radius: 10px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 20px;
}

.platform-card-image p {
    color: var(--color-gray);
    font-size: 14px;
    text-align: center;
}

.platform-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-top: auto;
}

/* Blueprint Diagram */
.blueprint-container {
    margin-top: 40px;
    width: 100%;
    overflow-x: auto;
}

.blueprint-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.blueprint-svg {
    width: 100%;
    max-width: 1400px;
    height: auto;
    min-height: 0;
}

.blueprint-conclusion {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark-blue);
    text-align: center;
    margin-top: 40px;
    margin-bottom: 16px;
}

.blueprint-footnote {
    font-size: 14px;
    color: var(--color-gray);
    text-align: center;
    line-height: 1.6;
}

.blueprint-footnote sup {
    font-size: 12px;
    vertical-align: super;
}

/* Market Stats Grid */
.market-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.market-stat-card {
    border-left: 2px solid var(--color-green);
    padding-left: 16px;
    min-height: 68px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.market-stat-label {
    font-size: 14px;
    color: var(--color-medium-gray);
    margin-bottom: 8px;
}

.market-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-dark-blue);
}

/* Timeline Steps */
.timeline-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.timeline-step {
    border: 2px solid var(--color-blue);
    border-radius: 10px;
    padding: 20px;
    min-height: 144px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.timeline-step-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 12px;
}

.timeline-step-text {
    font-size: 16px;
    color: var(--color-dark-blue);
    font-weight: 500;
}

/* Regions Grid */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.region-card {
    background-color: var(--color-dark-blue-alt);
    border: 1px solid rgba(47, 128, 237, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    min-height: 138px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.region-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-green);
    margin-bottom: 12px;
}

.region-card p {
    font-size: 18px;
    color: white;
}

/* Why Win Grid */
.why-win-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.why-win-card {
    background-color: var(--color-light-gray);
    border: 2px solid var(--color-border-gray);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    min-height: 162px;
}

.why-win-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 12px;
    line-height: 1.4;
}

.why-win-card p {
    font-size: 16px;
    color: var(--color-dark-gray);
    line-height: 1.5;
}

/* Geopolitical Grid */
.geopolitical-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.geopolitical-card {
    border-left: 3px solid var(--color-blue);
    background-color: #f8fafc;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-lg);
    min-height: 212px;
}

.geopolitical-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 12px;
    line-height: 1.4;
}

.geopolitical-card p {
    font-size: 16px;
    color: var(--color-dark-gray);
    line-height: 1.5;
}

/* Breakthrough List */
.breakthrough-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    align-items: start;
}

.breakthrough-list {
    list-style: none;
}

.breakthrough-item {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.breakthrough-check {
    color: var(--color-green);
    font-size: 24px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

.breakthrough-text {
    font-size: 18px;
    color: var(--color-dark-gray);
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: var(--color-dark-gray);
    color: var(--color-gray);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.5;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    max-width: 760px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--color-gray);
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-border {
    border-top: 1px solid var(--color-footer-gray);
    margin-bottom: 24px;
    padding-top: 24px;
}

.footer-copyright {
    text-align: center;
    color: var(--color-gray);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1280px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

@media (max-width: 1024px) {
    .hero-heading {
        font-size: 48px;
        margin-bottom: var(--space-sm);
    }

    .section-heading {
        font-size: 40px;
    }

    .hero-section {
        min-height: 680px;
    }

    .failure-grid,
    .platform-grid,
    .regions-grid,
    .geopolitical-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .roadmap-maps {
        grid-template-columns: 1fr;
    }

    .market-stats-grid {
        grid-template-columns: 1fr;
    }

    .breakthrough-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .navbar-nav {
        position: fixed;
        top: 68px;
        left: 0;
        width: 100%;
        background-color: var(--color-dark-blue);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav.active {
        transform: translateX(0);
    }

    .navbar-toggle {
        display: flex;
    }

    .nav-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .btn-nav-outline {
        display: none;
    }

    .section {
        padding: 72px 0;
    }

    .hero-section {
        padding: var(--space-4xl) 0;
        min-height: 620px;
        justify-content: flex-end;
    }

    .hero-message {
        margin-bottom: 0;
    }

    .hero-heading {
        font-size: 36px;
        margin-bottom: var(--space-sm);
        line-height: 1.2;
    }

    .hero-subheading {
        font-size: 20px;
        line-height: 1.45;
    }

    /* Proximity: clear separation between message and roadmap on mobile */
    .hero-timeline {
        margin-top: var(--space-xl);
        padding-top: var(--space-lg);
        font-size: var(--text-sm);
        line-height: 1.5;
    }

    .section-heading {
        font-size: 32px;
    }

    .btn {
        width: 100%;
        min-width: 0;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .charts-grid,
    .failure-grid,
    .platform-grid,
    .regions-grid,
    .geopolitical-grid,
    .why-win-grid {
        grid-template-columns: 1fr;
    }

    .timeline-steps {
        grid-template-columns: 1fr;
    }

    .roadmap-maps {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .market-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero-heading {
        font-size: 28px;
        margin-bottom: var(--space-sm);
    }

    .section-heading {
        font-size: 24px;
    }

    .hero-subheading {
        font-size: 18px;
        line-height: 1.5;
    }

    .hero-timeline {
        margin-top: var(--space-lg);
        padding-top: var(--space-md);
        font-size: 13px;
    }
}

/* FAQ Section Styles */
.faq-container {
    max-width: 1040px;
    margin: var(--space-2xl) auto 0;
    padding: 0;
}

.faq-item {
    border: 1px solid var(--color-border-gray);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    background-color: #f8fafc;
    margin-bottom: var(--space-md);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    min-height: 44px;
}

.faq-question h3 {
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--color-dark-gray);
    margin: 0;
    flex: 1;
    text-align: left;
}

.faq-toggle {
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--color-dark-gray);
    margin-left: var(--space-md);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-top: var(--space-md);
    padding-bottom: 0;
    background-color: transparent;
    border: none;
    border-left: none;
    border-radius: 0;
    animation: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--color-dark-gray);
    margin: 0;
}

.faq-search {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.faq-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--color-border-gray);
    border-radius: 10px;
    font-family: var(--font-geist);
    font-size: 16px;
    color: var(--color-dark-gray);
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.1);
}

.faq-input:disabled {
    background-color: var(--color-light-gray);
    cursor: not-allowed;
}

.faq-input::placeholder {
    color: var(--color-gray);
}

.faq-search .btn-primary {
    min-width: 120px;
    height: auto;
    padding: 16px 24px;
}

.faq-search .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.faq-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--color-medium-gray);
}

.faq-loading.hidden {
    display: none;
}

.faq-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-light-gray);
    border-top-color: var(--color-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.faq-loading p {
    font-size: 16px;
    color: var(--color-medium-gray);
}

.faq-response {
    margin-top: 24px;
    min-height: 100px;
}

.faq-answer {
    background-color: var(--color-light-gray);
    border: 2px solid var(--color-border-gray);
    border-left: 4px solid var(--color-blue);
    border-radius: 10px;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

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

.faq-answer-content {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-dark-gray);
    margin-bottom: 20px;
}

.faq-answer-content p {
    margin-bottom: 12px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content strong {
    color: var(--color-dark-blue);
    font-weight: 600;
}

.faq-answer-content em {
    color: var(--color-medium-gray);
    font-style: italic;
}

.faq-sources {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-gray);
}

.faq-sources h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 12px;
}

.faq-sources ul {
    list-style: none;
    padding-left: 0;
}

.faq-sources li {
    font-size: 14px;
    color: var(--color-medium-gray);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.faq-sources li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: 600;
}

.faq-error {
    margin-top: 24px;
    padding: 16px 20px;
    background-color: #FEE2E2;
    border: 2px solid #EF4444;
    border-radius: 10px;
    color: #991B1B;
    font-size: 16px;
    animation: fadeIn 0.3s ease;
}

.faq-error.hidden {
    display: none;
}

/* Responsive Blueprint */
@media (max-width: 768px) {
    .blueprint-svg {
        min-height: 0;
    }
    
    .blueprint-conclusion {
        font-size: 16px;
        margin-top: 32px;
    }
    
    .blueprint-footnote {
        font-size: 12px;
    }
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-search {
        flex-direction: column;
    }

    .faq-search .btn-primary {
        width: 100%;
        min-width: unset;
    }

    .faq-answer-content {
        font-size: 16px;
    }

    .faq-question h3 {
        font-size: var(--text-lg);
    }

    .faq-answer p {
        font-size: var(--text-md);
    }
}

/* Contact Form */
.email-form {
    max-width: 720px;
    margin: var(--space-2xl) auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-family: var(--font-geist);
    font-size: 16px;
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
}

.form-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-blue);
    flex: 0 0 auto;
}

.form-checkbox label {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-geist);
    font-size: 16px;
    line-height: 1.35;
}

.form-checkbox:focus-within {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.email-form .btn-primary {
    width: 100%;
    margin-top: 8px;
}

.form-message {
    padding: 16px 20px;
    border-radius: 10px;
    font-family: var(--font-geist);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
}

.form-success {
    background-color: rgba(0, 181, 138, 0.15);
    border: 2px solid var(--color-green);
    color: var(--color-green);
}

.form-error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 2px solid #EF4444;
    color: #EF4444;
}

