/* ==========================================
   OFFLINE PROTOCOL - SOVEREIGN DESIGN SYSTEM
   ========================================== */

/* Screen reader only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--gray-600);
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 1rem;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    /* Grayscale Palette */
    --black: #0a0a0a;
    --gray-950: #0f0f0f;
    --gray-900: #171717;
    --gray-800: #262626;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #737373;
    --gray-400: #a3a3a3;
    --gray-300: #d4d4d4;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --white: #fafafa;

    /* Accent Colors */
    --green-500: #22c55e;
    --green: #22c55e;
    --red-500: #ef4444;

    /* Functional Colors */
    --bg: var(--black);
    --bg-elevated: var(--gray-950);
    --bg-surface: var(--gray-900);
    --text: var(--gray-100);
    --text-secondary: var(--gray-400);
    --text-muted: var(--gray-600);
    --border: var(--gray-800);
    --border-hover: var(--gray-600);

    /* Typography - Monospace Only */
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;

    /* Animation */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

[data-theme="light"] {
    --bg: var(--gray-100);
    --bg-elevated: var(--white);
    --bg-surface: var(--gray-200);
    --text: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --border: var(--gray-300);
    --border-hover: var(--gray-400);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    zoom: 0.8; /* Scale entire site to 80% to match preferred view */
    font-family: var(--font-mono);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--gray-400);
    color: var(--black);
}

[data-theme="light"] ::selection {
    background: var(--gray-700);
    color: var(--white);
}

/* ==========================================
   ANIMATED BACKGROUNDS
   ========================================== */

/* ASCII Background */
.ascii-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 125%; /* Compensate for body zoom: 0.8 (100/0.8 = 125) */
    height: 125%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.04;
    font-size: 14px;
    line-height: 1.2;
    color: var(--text);
    white-space: pre;
    font-family: var(--font-mono);
}

[data-theme="light"] .ascii-bg {
    opacity: 0.06;
}

/* Mesh Network Overlay */
.mesh-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

[data-theme="light"] .mesh-overlay {
    opacity: 0.6;
}

/* Dark mode mesh colors */
[data-theme="dark"] .mesh-overlay line {
    stroke: rgba(250, 250, 250, 0.35) !important;
}

[data-theme="dark"] .mesh-overlay circle.mesh-node {
    fill: rgba(250, 250, 250, 0.9) !important;
}

[data-theme="dark"] .mesh-overlay circle.mesh-packet {
    fill: rgba(34, 197, 94, 0.8) !important;
}

/* Light mode mesh colors */
[data-theme="light"] .mesh-overlay line {
    stroke: rgba(80, 80, 80, 0.4) !important;
}

[data-theme="light"] .mesh-overlay circle.mesh-node {
    fill: rgba(80, 80, 80, 0.5) !important;
}

[data-theme="light"] .mesh-overlay circle.mesh-packet {
    fill: rgba(22, 163, 74, 0.75) !important;
}

/* Mesh heatmap glows */
.mesh-heatmap-glow {
    mix-blend-mode: screen;
    transition: r 0.8s ease-out, opacity 0.5s ease;
}

[data-theme="light"] .mesh-heatmap-glow {
    mix-blend-mode: normal;
    opacity: 0.8 !important;
    filter: saturate(1.8) brightness(0.85);
}

/* Mesh Network Canvas */
.mesh-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

[data-theme="light"] .mesh-canvas {
    opacity: 0.25;
}

/* Floating Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 125%; /* Compensate for body zoom: 0.8 */
    height: 125%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--text);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 0.6;
        transform: translateY(-20px) scale(1);
    }
    90% {
        opacity: 0.3;
        transform: translateY(-150px) scale(0.8);
    }
}

/* Dither Overlay */
.dither-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 125%; /* Compensate for body zoom: 0.8 */
    height: 125%;
    pointer-events: none;
    z-index: 3;
    opacity: 0.012;
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0zm2 2h1v1H2z' fill='%23ffffff' fill-opacity='1'/%3E%3C/svg%3E");
}

[data-theme="light"] .dither-overlay {
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0zm2 2h1v1H2z' fill='%23000000' fill-opacity='1'/%3E%3C/svg%3E");
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 125%; /* Compensate for body zoom: 0.8 */
    height: 125%;
    pointer-events: none;
    z-index: 4;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.01) 2px,
        rgba(0, 0, 0, 0.01) 4px
    );
}

/* Grid Pattern (optional per section) */
.grid-pattern {
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.03;
}

/* ==========================================
   NAVIGATION - Split Layout (logo left, links right)
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    transition: opacity var(--transition-fast);
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* Logo switching for dark/light mode */
.logo-dark {
    display: block;
}

.logo-light {
    display: none;
}

[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    position: relative;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Mobile Toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 7px;
    padding: 0.75rem;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-mobile-toggle span {
    width: 28px;
    height: 2.5px;
    background: var(--text);
    border-radius: 1px;
    transition: all var(--transition-base);
}

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

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

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

.nav-mobile-toggle.active span {
    gap: 6px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 4rem;
    right: 2rem;
    width: 148px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    z-index: 999;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.625rem 0.75rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.mobile-menu-link:hover {
    color: var(--text);
    background: var(--bg-surface);
}

.mobile-menu-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
    padding: 0.75rem 0.75rem;
}

.mobile-theme-switch {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-theme-switch input {
    display: none;
}

.mobile-theme-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Dark mode: show moon, hide sun */
.mobile-theme-icon.icon-moon {
    display: block;
}

.mobile-theme-icon.icon-sun {
    display: none;
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .mobile-theme-icon.icon-moon {
    display: none;
}

[data-theme="light"] .mobile-theme-icon.icon-sun {
    display: block;
}

.mobile-theme-slider {
    position: relative;
    width: 40px;
    height: 24px;
    background: var(--gray-700);
    border-radius: 12px;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.mobile-theme-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--gray-300);
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.mobile-theme-switch input:checked ~ .mobile-theme-slider {
    background: var(--gray-300);
}

.mobile-theme-switch input:checked ~ .mobile-theme-slider::after {
    transform: translateX(16px);
    background: var(--gray-500);
}

/* Floating Controls - Bottom Right Bubble */
.floating-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 100px;
}

[data-theme="light"] .floating-controls {
    background: rgba(245, 245, 245, 0.9);
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.floating-btn:hover {
    color: var(--text);
    background: var(--bg-surface);
}

.floating-btn svg {
    width: 18px;
    height: 18px;
}

/* Theme Toggle Icons */
.floating-btn.theme-toggle .icon-sun {
    display: none;
}

.floating-btn.theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .floating-btn.theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .floating-btn.theme-toggle .icon-moon {
    display: none;
}

@media (max-width: 900px) {
    .nav { padding: 1rem 2rem; }
    .nav-links { display: none; }
    .nav-mobile-toggle { display: flex; }

    .floating-controls {
        display: none;
    }
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section {
    padding: 10rem 0;
    position: relative;
    z-index: 10;
}

/* Anchor points for smooth scroll - positioned to show content right at navbar */
.anchor {
    display: block;
    position: relative;
    visibility: hidden;
    scroll-margin-top: 80px;
}

/* Developers section anchor - account for section padding */
.dev-section > .anchor {
    scroll-margin-top: 0;
}


@media (max-width: 768px) {
    body { zoom: 1; }
    .container { padding: 0 2.5rem; }
    .section { padding: 5rem 0; }
    .section-header { margin-bottom: 3rem; }
    .section-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    .section-description { font-size: 1rem; }
    .hero { min-height: 100vh; }
    .hero-content { margin-left: 0; }
    .ascii-bg,
    .particles-container,
    .dither-overlay,
    .scanlines {
        width: 100%;
        height: 100%;
    }
    .dev-section { min-height: auto; }
    .dev-section .container { min-height: auto; }
    .global-context { margin-top: 3rem; padding-top: 3rem; }
    .flag-more-list { width: 280px; }
}

/* Section Divider */
.section-divider {
    text-align: center;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.875rem;
    letter-spacing: 0.5em;
    padding: 4rem 0;
    opacity: 0.3;
    position: relative;
    z-index: 10;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 125vh; /* Compensate for body zoom: 0.8 (100/0.8 = 125) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 3rem;
    position: relative;
    z-index: 10;
    overflow: hidden; /* Contain mesh animation within hero */
}

.hero-content {
    text-align: left;
    margin-left: 3%;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.2s;
}

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

/* ASCII Art Container */
.hero-ascii-container {
    margin-bottom: 3rem;
    overflow: hidden;
}

.hero-ascii {
    font-family: 'Fira Code', monospace;
    font-size: clamp(8px, 1.1vw, 14px);
    line-height: 1.0;
    color: var(--text);
    white-space: pre;
    letter-spacing: -0.02em;
    margin: 0 auto;
    display: block;
}

.hero-ascii:hover {
    text-shadow: 0 0 10px rgba(250, 250, 250, 0.2);
}

[data-theme="light"] .hero-ascii:hover {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hero-tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    text-transform: none;
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Status Indicator */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

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

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green-500);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.hero-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero-title {
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text);
    letter-spacing: -0.03em;
    font-family: var(--font-mono);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-title .highlight {
    color: var(--text);
    background: linear-gradient(180deg, transparent 65%, var(--gray-700) 65%);
    padding: 0 0.125em;
}

[data-theme="light"] .hero-title .highlight {
    background: linear-gradient(180deg, transparent 65%, var(--gray-300) 65%);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.75;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 4rem;
    margin-bottom: 3.5rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* CTA */
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn:hover {
    border-color: var(--text);
    color: var(--text);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn-primary::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.btn-primary:hover {
    background: var(--gray-300);
    border-color: var(--gray-300);
}

[data-theme="light"] .btn-primary:hover {
    background: var(--gray-800);
    border-color: var(--gray-800);
}

.btn-icon {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-hint::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--text-muted);
    animation: expandLine 1s ease forwards;
    animation-delay: 1.4s;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes expandLine {
    to { transform: scaleX(1); }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 2.5rem;
        padding-top: 80px;
        min-height: 100vh;
        justify-content: center;
    }

    .hero-ascii-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        margin: 0 -2.5rem;
        padding: 0 2.5rem;
    }

    .hero-ascii {
        font-size: clamp(8px, 2.2vw, 14px);
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .scroll-hint {
        display: none;
    }
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--text);
    font-family: var(--font-mono);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 1.25rem;
    max-width: 600px;
    line-height: 1.7;
}

/* ==========================================
   PRODUCTS SECTION
   ========================================== */
.products-section {
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
}


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

.layer-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.layer-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
}

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

.products-grid:last-child {
    margin-bottom: 0;
}

/* Product Cards */
.product-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top right, var(--gray-800) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.product-card:hover::before {
    opacity: 0.5;
}

[data-theme="light"] .product-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .product-card::before {
    background: radial-gradient(circle at top right, var(--gray-300) 0%, transparent 70%);
}

.card-icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 1.75rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    z-index: 1;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    position: relative;
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    z-index: 1;
}

.card-subtitle {
    position: relative;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    z-index: 1;
}

.card-description {
    position: relative;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.75rem;
    z-index: 1;
    flex: 1;
}

.card-tags {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 1;
}

.tag {
    font-size: 0.6875rem;
    color: var(--text-muted);
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all var(--transition-fast);
}

.product-card:hover .tag {
    border-color: var(--border-hover);
}

/* Card Links */
.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.card-link:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: var(--bg-surface);
}

.card-link svg {
    width: 14px;
    height: 14px;
}

.card-tag-soon {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    color: var(--text-muted);
    padding: 0.5rem 0.875rem;
    border: 1px dashed var(--border);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* 4 column grid for app layer */
.products-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 600px) {
    .products-grid-4 {
        grid-template-columns: 1fr;
    }
}

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

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

    .product-card {
        padding: 2rem;
    }
}

/* ==========================================
   WHY SECTION
   ========================================== */
.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.why-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all var(--transition-base);
}

.feature-item:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: 10px;
}

.feature-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
    font-family: var(--font-mono);
}

.feature-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* Deployments */
.deployments-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.deployments-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--gray-800) 0%, transparent 50%);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

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

.deployments-title {
    position: relative;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.75rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.deployments-title::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--green-500);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

.deployments-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.deployment-item {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}

.deployment-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface);
}

.deployment-region {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

@media (max-width: 900px) {
    .why-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================
   DEVELOPERS SECTION
   ========================================== */
.dev-section {
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    box-sizing: border-box;
}

.dev-ascii-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    font-size: 14px;
    line-height: 1.2;
    color: var(--text);
    white-space: pre;
    font-family: var(--font-mono);
    overflow: hidden;
}

[data-theme="light"] .dev-ascii-bg {
    opacity: 0.06;
}

.dev-section .container {
    position: relative;
    z-index: 1;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dev-compact {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.dev-info .section-label {
    margin-bottom: 0.75rem;
}

.dev-info .section-title {
    margin-bottom: 1.25rem;
}

.dev-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.dev-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dev-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .dev-compact {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .dev-cta {
        justify-content: center;
    }
}

/* Code Window Stack */
.code-stack {
    position: relative;
    height: 480px;
}

.code-window {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
    height: 440px;
}

/* First window - starts as main, becomes back */
.code-window.code-window-first {
    z-index: 1;
}

.code-window.code-window-first.pushed-back {
    top: 24px;
    left: -16px;
    right: 16px;
    opacity: 0.5;
    transform: scale(0.98);
}

/* Second window - appears on top */
.code-window.code-window-second {
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
}

.code-window.code-window-second.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.code-window:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .code-window:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-700);
}

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #eab308; }
.code-dots span:nth-child(3) { background: #22c55e; }

.code-title {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.code-controls {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-body {
    padding: 1.75rem;
    overflow: hidden;
    height: calc(100% - 50px);
}

.code-body pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    height: 100%;
    overflow: hidden;
}

.code-line {
    display: block;
}

/* Realistic syntax highlighting (VS Code dark theme inspired) */
.code-keyword { color: #c586c0; }  /* purple - import, const, await, new */
.code-string { color: #ce9178; }   /* orange - strings */
.code-comment { color: #6a9955; font-style: italic; }  /* green - comments */
.code-func { color: #dcdcaa; }     /* yellow - function names */
.code-bool { color: #569cd6; }     /* blue - true, false */
.code-property { color: #9cdcfe; } /* light blue - object properties */
.code-type { color: #4ec9b0; }     /* teal - types/classes */
.code-bracket { color: #ffd700; }  /* gold - brackets */
.code-operator { color: #d4d4d4; } /* white - operators */

[data-theme="light"] .code-keyword { color: #af00db; }
[data-theme="light"] .code-string { color: #a31515; }
[data-theme="light"] .code-comment { color: #008000; }
[data-theme="light"] .code-func { color: #795e26; }
[data-theme="light"] .code-bool { color: #0000ff; }
[data-theme="light"] .code-property { color: #001080; }
[data-theme="light"] .code-type { color: #267f99; }
[data-theme="light"] .code-operator { color: #171717; }
[data-theme="light"] .code-bracket { color: #0431af; }

/* Typing cursor animation */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--green-500);
    margin-left: 2px;
    animation: cursorBlink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.code-typed {
    opacity: 0;
    animation: typeIn 0.05s forwards;
}

@keyframes typeIn {
    to { opacity: 1; }
}

/* Dev Features */
.dev-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dev-feature {
    padding: 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all var(--transition-base);
}

.dev-feature:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.dev-feature h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.625rem;
    font-family: var(--font-mono);
}

.dev-feature p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.dev-features .btn {
    margin-top: 0.5rem;
}

@media (max-width: 1000px) {
    .dev-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================
   MARKET SECTION
   ========================================== */
.market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.market-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.75rem;
    transition: all var(--transition-base);
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--text-muted), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.market-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
}

.market-card:hover::before {
    opacity: 0.5;
}

.market-number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--text);
    opacity: 0.06;
    line-height: 1;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    letter-spacing: -0.05em;
}

.market-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.875rem;
    font-family: var(--font-mono);
}

.market-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

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

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #050505;
    border-top: 1px solid var(--gray-600);
    padding: 3rem 0 2.5rem;
    position: relative;
    z-index: 10;
}

[data-theme="light"] .footer {
    background: var(--gray-200);
    border-top-color: var(--gray-400);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.footer-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: opacity var(--transition-fast);
}

.footer-logo.ascii-active img {
    opacity: 0;
}

.footer-logo-ascii {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    line-height: 1.0;
    letter-spacing: 0;
    color: var(--white);
    white-space: pre;
    margin: 0;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer-logo.ascii-active .footer-logo-ascii {
    opacity: 1;
}

[data-theme="light"] .footer-logo-ascii {
    color: var(--gray-900);
}

[data-theme="light"] .footer-logo.ascii-active img {
    opacity: 0;
}

.footer-logo .logo-dark {
    display: block;
}

.footer-logo .logo-light {
    display: none;
}

[data-theme="light"] .footer-logo .logo-dark {
    display: none;
}

[data-theme="light"] .footer-logo .logo-light {
    display: block;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gray-400);
}

[data-theme="light"] .footer-links a {
    color: var(--gray-900);
}

[data-theme="light"] .footer-links a:hover {
    color: var(--gray-500);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--white);
    letter-spacing: 0.02em;
}

[data-theme="light"] .footer-tagline {
    color: var(--gray-900);
}

.footer-comment {
    color: var(--gray-500);
    margin-right: 0.35rem;
}

[data-theme="light"] .footer-comment {
    color: var(--gray-400);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--white);
    opacity: 0.4;
}

[data-theme="light"] .footer-copy {
    color: var(--gray-900);
}

/* ==========================================
   MISSION SECTION
   ========================================== */
.mission-section {
    background: var(--bg);
}

.mission-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.mission-header .section-label {
    margin-bottom: 1rem;
}

.mission-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1.5rem;
}

/* Map-centric layout */
.mission-layout {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    gap: 0.5rem;
    align-items: start;
    max-width: 1130px;
    margin: 0 auto;
}

.mission-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

/* Stats block */
.mission-stat-block {
    display: flex;
    flex-direction: column;
    height: 400px;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 160px;
    opacity: 0.05;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* OfflineID - Fingerprint/ID icon */
.stat-item:nth-child(1)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28zM3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21zm6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39s-4.66 1.97-4.66 4.39c0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15zm7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12zM14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94s3.08 1.32 3.08 2.94c0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38z'/%3E%3C/svg%3E");
}

/* Fernweh - Download/Arrow icon */
.stat-item:nth-child(2)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z'/%3E%3C/svg%3E");
}

/* Active mesh nodes - Network/Hub icon */
.stat-item:nth-child(3)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-.61.08-1.21.21-1.78L8.99 15v1c0 1.1.9 2 2 2v1.93C7.06 19.43 4 16.07 4 12zm13.89 5.4c-.26-.81-1-1.4-1.9-1.4h-1v-3c0-.55-.45-1-1-1h-6v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41C17.92 5.77 20 8.65 20 12c0 2.08-.81 3.98-2.11 5.4z'/%3E%3C/svg%3E");
}

/* Light mode - darker icons with higher opacity */
[data-theme="light"] .stat-item::after {
    opacity: 0.06;
}

[data-theme="light"] .stat-item:nth-child(1)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28zM3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21zm6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39s-4.66 1.97-4.66 4.39c0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15zm7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12zM14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94s3.08 1.32 3.08 2.94c0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38z'/%3E%3C/svg%3E");
}

[data-theme="light"] .stat-item:nth-child(2)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z'/%3E%3C/svg%3E");
}

[data-theme="light"] .stat-item:nth-child(3)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-.61.08-1.21.21-1.78L8.99 15v1c0 1.1.9 2 2 2v1.93C7.06 19.43 4 16.07 4 12zm13.89 5.4c-.26-.81-1-1.4-1.9-1.4h-1v-3c0-.55-.45-1-1-1h-6v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41C17.92 5.77 20 8.65 20 12c0 2.08-.81 3.98-2.11 5.4z'/%3E%3C/svg%3E");
}

/* Light mode - filter tooltips */
[data-theme="light"] .filter-tip {
    background: var(--bg-elevated) !important;
    border-color: var(--border) !important;
}

[data-theme="light"] .filter-tip div:first-child {
    color: var(--text) !important;
}

[data-theme="light"] .filter-tip div:last-child {
    color: #16a34a !important;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.stat-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    line-height: 1.2;
}

/* Info blocks */
.mission-info-block {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.info-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.info-tags {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.info-tag {
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: border-color var(--transition-fast);
    display: flex;
    align-items: center;
    flex: 1;
}

.info-tag:hover {
    border-color: var(--border-hover);
}

.info-tag[data-filter] {
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.info-tag[data-filter]:hover,
.info-tag[data-filter].active {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    color: var(--text);
}

/* Event marker highlight state */
.event-marker {
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.event-marker-highlight {
    transform: scale(1.8) !important;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.9), 0 0 24px rgba(34, 197, 94, 0.5) !important;
    z-index: 1000 !important;
}

.event-marker-dimmed {
    opacity: 0.15 !important;
    transform: scale(0.8) !important;
}

/* Map caption */
.map-caption {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    grid-column: 2;
}

/* Responsive for mission layout */
@media (max-width: 1000px) {
    .mission-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .mission-side {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .mission-right {
        order: 1;
    }

    .mission-center {
        order: 2;
    }

    .mission-left {
        order: 3;
    }

    .map-caption {
        order: 4;
        grid-column: 1;
    }

    .mission-layout {
        gap: 0.5rem;
    }

    .mission-stat-block {
        flex-direction: row;
        gap: 3rem;
    }

    .stat-item {
        text-align: center;
    }

    .mission-info-block {
        align-items: center;
    }

    .info-tags {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .mission-side {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mission-stat-block {
        flex-direction: row;
        gap: 0.5rem;
        height: auto;
        width: 100%;
    }

    .stat-item {
        text-align: left;
        padding: 0.75rem 0.5rem;
        flex: 1;
        min-width: 0;
    }

    .stat-item::after {
        width: 50px;
        height: 50px;
        right: -10px;
        opacity: 0.04;
    }

    .stat-number {
        font-size: 1.125rem;
        letter-spacing: -0.03em;
    }

    .stat-desc {
        font-size: 0.5625rem;
        margin-top: 0.25rem;
        line-height: 1.3;
    }

    .mission-info-block {
        height: auto;
        width: 100%;
        align-items: stretch;
    }

    .info-tags {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 0.5rem;
    }

    .info-tag {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        justify-content: center;
        text-align: center;
    }

    .info-tag:nth-child(-n+3) {
        grid-column: span 2;
    }

    .info-tag:nth-child(n+4) {
        grid-column: span 3;
    }
}

/* Interactive World Map */
.world-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 750px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}


.network-map {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.network-map .leaflet-container,
.network-map .leaflet-container *,
.network-map .leaflet-pane,
.network-map .leaflet-map-pane,
.network-map .leaflet-tile-pane,
.network-map .leaflet-overlay-pane,
.network-map .leaflet-marker-pane {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Adjust map tiles - only affect tiles, not markers */
.network-map .leaflet-tile-pane img {
    filter: brightness(0.65) contrast(1.1);
}

[data-theme="light"] .network-map .leaflet-tile-pane img {
    filter: brightness(1.0) saturate(0.3);
}

/* Fix tile seam rendering issues - use matching background color */
.network-map .leaflet-tile-pane,
.network-map .leaflet-container,
.network-map .leaflet-tile-container {
    background: #0d0d0d !important;
}

[data-theme="light"] .network-map .leaflet-tile-pane,
[data-theme="light"] .network-map .leaflet-container,
[data-theme="light"] .network-map .leaflet-tile-container {
    background: #e0e0e0 !important;
}

/* Keep all Leaflet popups and tooltips within map bounds */
.network-map .leaflet-pane,
.network-map .leaflet-popup-pane,
.network-map .leaflet-tooltip-pane {
    overflow: visible;
}


/* Leaflet tooltip styling for event markers */
.event-tooltip-leaflet {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
    border-radius: 4px !important;
    padding: 0.5rem 0.75rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    white-space: nowrap;
}

.event-tooltip-leaflet .tooltip-location {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.75rem;
}

.event-tooltip-leaflet .tooltip-usecase {
    display: block;
    color: var(--accent);
    font-size: 0.65rem;
    margin-top: 2px;
}

.event-tooltip-leaflet::before {
    border-top-color: var(--bg-elevated) !important;
}

/* Country popup must stay within map */
.country-popup {
    max-width: calc(100% - 40px);
}

/* Leaflet overrides for theming */
.leaflet-container {
    background: #1a1a1a;
    font-family: var(--font-mono);
}

[data-theme="light"] .leaflet-container {
    background: #e8e8e8;
}

.leaflet-control-attribution {
    font-size: 10px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    color: var(--text-muted) !important;
    padding: 2px 6px !important;
}

.leaflet-control-attribution a {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8) !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    margin-right: 10px !important;
    margin-bottom: 10px !important;
}

.leaflet-control-zoom a {
    background: var(--bg-elevated) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
    width: 26px !important;
    height: 26px !important;
    line-height: 24px !important;
    font-size: 14px !important;
}

.leaflet-control-zoom a:hover {
    background: var(--bg-surface) !important;
    color: var(--text) !important;
}

.leaflet-control-zoom-in {
    border-radius: 4px 4px 0 0 !important;
    border-bottom: none !important;
}

.leaflet-control-zoom-out {
    border-radius: 0 0 4px 4px !important;
}

/* Hide Leaflet default attribution prefix */
.leaflet-control-attribution {
    font-size: 9px !important;
    padding: 2px 5px !important;
    border-radius: 3px 0 0 0 !important;
}

/* Country Info Popup */
.country-popup {
    position: absolute;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.875rem;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -100%) translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.country-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -100%);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.popup-country {
    font-weight: 600;
    color: var(--text);
    font-size: 0.8rem;
}

.popup-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    margin-left: 0.5rem;
}

.popup-close:hover {
    color: var(--text);
}

.popup-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.popup-stat {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.popup-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green);
}

.popup-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Event Marker Tooltip */
.event-tooltip {
    position: absolute;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

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

.event-location {
    display: block;
    font-weight: 600;
    color: var(--text);
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
}

.event-usecase {
    display: block;
    font-size: 0.7rem;
    color: var(--green);
}

/* Event markers on map */
.event-marker {
    width: 24px;
    height: 24px;
    background: var(--green);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.6);
}

.event-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* ==========================================
   OPPORTUNITY SECTION
   ========================================== */
.opportunity-section {
    background: var(--bg);
}

.opportunity-content {
    margin: 0 auto 3rem;
    text-align: center;
}

.opportunity-content .section-label {
    margin-bottom: 1rem;
}

.opportunity-content .section-title {
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.bento-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

a.bento-card {
    text-decoration: none;
    color: inherit;
}

.bento-card:hover {
    border-color: var(--border-hover);
}

/* Primary card - spans 2 columns */
.bento-primary {
    grid-column: span 2;
    gap: 1rem;
}

.bento-primary-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    flex-shrink: 0;
}

.person-icon {
    width: 18px;
    height: 18px;
    opacity: 0.35;
    transition: opacity 0.4s ease;
}

.person-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--text-secondary);
}

/* Highlighted state */
.person-icon.active {
    opacity: 1;
}

.person-icon.active svg {
    fill: var(--text);
}

.bento-primary-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.affected-stat {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.affected-note {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.bento-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bento-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.bento-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}


/* Secondary card */
.bento-secondary {
    gap: 0.75rem;
}

.bento-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bento-meta {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.bento-meta.negative {
    color: #ef4444;
}

/* Tertiary card */
.bento-tertiary {
    justify-content: center;
}

/* Info card - spans 2 columns */
.bento-info {
    grid-column: span 2;
    justify-content: center;
    background: var(--bg-surface);
}

.bento-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Countries card - full width */
.bento-countries {
    grid-column: span 3;
}

.bento-countries-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.country-flags {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.flag-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.flag-circle:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Tooltip on hover */
.flag-circle::before {
    content: attr(data-country);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 0.625rem;
    background: var(--gray-900);
    color: var(--gray-100);
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    margin-bottom: 6px;
    pointer-events: none;
}

.flag-circle::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--gray-900);
    margin-bottom: -4px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
}

.flag-circle:hover::before,
.flag-circle:hover::after {
    opacity: 1;
    visibility: visible;
}

[data-theme="light"] .flag-circle::before {
    background: var(--gray-800);
    color: var(--white);
}

[data-theme="light"] .flag-circle::after {
    border-top-color: var(--gray-800);
}

/* Flag patterns - simplified representations */
.flag-india {
    background: linear-gradient(180deg, #FF9933 33%, #fff 33%, #fff 66%, #138808 66%);
}

.flag-iran {
    background: linear-gradient(180deg, #239F40 33%, #fff 33%, #fff 66%, #DA0000 66%);
}

.flag-myanmar {
    background: linear-gradient(180deg, #FECB00 33%, #34B233 33%, #34B233 66%, #EA2839 66%);
}

.flag-ethiopia {
    background: linear-gradient(180deg, #078930 33%, #FCDD09 33%, #FCDD09 66%, #DA121A 66%);
}

.flag-russia {
    background: linear-gradient(180deg, #fff 33%, #0039A6 33%, #0039A6 66%, #D52B1E 66%);
}

.flag-pakistan {
    background: linear-gradient(90deg, #fff 25%, #01411C 25%);
}

.flag-bangladesh {
    background: #006A4E;
}

.flag-sudan {
    background: linear-gradient(180deg, #D21034 33%, #fff 33%, #fff 66%, #007229 66%);
}

.flag-china {
    background: #DE2910;
}

.flag-turkey {
    background: #E30A17;
}

.flag-egypt {
    background: linear-gradient(180deg, #CE1126 33%, #fff 33%, #fff 66%, #000 66%);
}

.flag-venezuela {
    background: linear-gradient(180deg, #FFCC00 33%, #00247D 33%, #00247D 66%, #CF142B 66%);
}

.flag-cuba {
    background: linear-gradient(180deg, #002A8F 20%, #fff 20%, #fff 40%, #002A8F 40%, #002A8F 60%, #fff 60%, #fff 80%, #002A8F 80%);
}

.flag-uganda {
    background: linear-gradient(180deg, #000 16.6%, #FCDC04 16.6%, #FCDC04 33.3%, #D90000 33.3%, #D90000 50%, #000 50%, #000 66.6%, #FCDC04 66.6%, #FCDC04 83.3%, #D90000 83.3%);
}

.flag-belarus {
    background: linear-gradient(180deg, #C8313E 66%, #4AA657 66%);
}

.flag-more {
    font-size: 0.8125rem;
    color: var(--text-muted);
    position: relative;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.flag-more:hover {
    background: var(--bg-surface);
    color: var(--text-secondary);
}

.flag-more-list {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 400px;
    padding: 1rem;
    background: var(--gray-900);
    color: var(--gray-300);
    font-size: 0.75rem;
    line-height: 1.6;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    margin-bottom: 8px;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.flag-more-list::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 16px;
    border: 6px solid transparent;
    border-top-color: var(--gray-900);
}

.flag-more:hover .flag-more-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

[data-theme="light"] .flag-more-list {
    background: var(--white);
    color: var(--gray-700);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
}

[data-theme="light"] .flag-more-list::after {
    border-top-color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-primary,
    .bento-info,
    .bento-countries {
        grid-column: span 2;
    }

    .bento-value {
        font-size: 2.5rem;
    }

    .bento-primary-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .people-grid {
        grid-template-columns: repeat(10, 1fr);
        width: 100%;
    }

    .person-icon {
        width: 100%;
        aspect-ratio: 1;
    }

    .bento-primary-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .bento-countries-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .country-flags {
        flex-wrap: wrap;
    }
}

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

    .bento-primary,
    .bento-info,
    .bento-countries {
        grid-column: span 1;
    }

    .bento-card {
        padding: 1.5rem;
    }

    .bento-value {
        font-size: 2rem;
    }

    .flag-circle {
        width: 28px;
        height: 28px;
    }
}


/* Global Context Section */
.global-context {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.context-header {
    margin-bottom: 2rem;
}

.context-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.context-title {
    font-size: 1.5rem;
    color: var(--text);
    margin-top: 0.5rem;
}

.context-nav {
    display: flex;
    gap: 0.5rem;
}

.context-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.context-nav-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    color: var(--text);
}

.context-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.context-nav-btn:disabled:hover {
    background: var(--bg-surface);
    border-color: var(--border);
    color: var(--text-secondary);
}

.context-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -2rem;
    padding: 0 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-700) transparent;
    -webkit-overflow-scrolling: touch;
}

.context-scroll::-webkit-scrollbar {
    height: 6px;
}

.context-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.context-scroll::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 3px;
}

.context-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

.context-track {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    width: max-content;
}

.context-card {
    display: flex;
    flex-direction: column;
    width: 320px;
    min-width: 320px;
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    flex-shrink: 0;
}

.context-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.context-card:hover .context-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

.context-source {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.source-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.source-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.context-card-title {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.context-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.context-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.context-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.context-arrow {
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

@media (max-width: 768px) {
    .context-scroll {
        margin: 0 -2.5rem;
        padding: 0 2.5rem;
    }

    .context-card {
        width: 280px;
        min-width: 280px;
        padding: 1.25rem;
    }
}

/* ==========================================
   INTERACTIVE USE CASES SECTION
   ========================================== */
.use-cases-section {
    background: var(--bg);
}

.section-header-center {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Use Case Selector */
.use-case-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.use-case-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
    font-family: var(--font-mono);
    overflow: hidden;
}

.use-case-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-surface);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.use-case-btn:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
}

.use-case-btn:hover::before {
    opacity: 0.5;
}

.use-case-btn:hover .use-case-icon {
    border-color: var(--border-hover);
    color: var(--text-secondary);
}

.use-case-btn.active {
    border-color: var(--text-muted);
    background: var(--bg-surface);
}

.use-case-btn.active::before {
    opacity: 1;
}

.use-case-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--green-500);
    border-radius: 0 2px 2px 0;
    transition: height var(--transition-base);
}

.use-case-btn.active .use-case-indicator {
    height: 60%;
}

.use-case-icon {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.use-case-btn.active .use-case-icon {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    color: var(--text);
}

.use-case-text {
    position: relative;
    z-index: 1;
}

.use-case-text h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-family: var(--font-mono);
    transition: color var(--transition-base);
}

.use-case-btn.active .use-case-text h4 {
    color: var(--text);
}

.use-case-text p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Visual Display Area */
.use-case-display {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
}

.use-case-display:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .use-case-display {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .use-case-display:hover {
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.12);
}

.display-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.use-case-visual {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all var(--transition-slow);
    pointer-events: none;
}

.use-case-visual.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.use-case-visual svg {
    width: 90%;
    height: auto;
    max-height: 80%;
}

.visual-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    white-space: nowrap;
}

/* Use Case Quote */
.use-case-quote {
    margin-top: 5rem;
    padding: 3rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative;
}

.quote-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--green-500), var(--text-muted));
    border-radius: 3px 0 0 3px;
}

.use-case-quote p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

.quote-highlight {
    color: var(--text);
    font-weight: 500;
    font-style: normal;
}

/* SVG Animation Elements */
.mesh-nodes circle,
.payment-nodes circle,
.identity-center circle,
.sharing-nodes circle,
.location-validators circle,
.dev-apps circle {
    fill: var(--text-muted);
    transition: all var(--transition-base);
}

.mesh-connections line,
.payment-ring line,
.sharing-connections line,
.dev-connections line {
    stroke: var(--border-hover);
    stroke-width: 1;
    opacity: 0.4;
}

.mesh-packets circle,
.payment-packets circle,
.identity-packets circle,
.sharing-packets circle,
.location-signals circle {
    fill: var(--green-500);
}

/* Pulse animation for active visualization elements */
.use-case-visual.active svg {
    animation: svgPulse 4s ease-in-out infinite;
}

@keyframes svgPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

/* Responsive */
@media (max-width: 1000px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .use-case-selector {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .use-case-display {
        min-height: 350px;
    }
}

@media (max-width: 600px) {
    .use-case-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .use-case-btn {
        padding: 0.75rem 0.875rem;
        gap: 0.625rem;
        border-radius: 12px;
    }

    .use-case-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .use-case-icon svg {
        width: 14px;
        height: 14px;
    }

    .use-case-text h4 {
        font-size: 0.8125rem;
    }

    .use-case-text p {
        font-size: 0.6875rem;
    }

    .use-case-display {
        min-height: 280px;
    }

    .use-case-quote {
        padding: 1.5rem;
    }

    .use-case-quote p {
        font-size: 0.9375rem;
    }
}

/* ==========================================
   MANIFESTO SECTION
   ========================================== */
.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.manifesto-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.manifesto-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
}

.manifesto-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.manifesto-card:hover .manifesto-icon {
    border-color: var(--border-hover);
    color: var(--text);
}

.manifesto-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
    font-family: var(--font-mono);
}

.manifesto-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.manifesto-principle {
    display: inline-block;
    font-size: 0.6875rem;
    color: var(--text-muted);
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.manifesto-quote {
    position: relative;
    padding: 3rem;
    padding-left: 4rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.manifesto-quote .quote-mark {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--text-muted);
    line-height: 1;
    opacity: 0.3;
}

.manifesto-quote p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.manifesto-quote cite {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: normal;
}

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

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

    .manifesto-quote {
        padding: 2rem;
        padding-left: 2.5rem;
    }

    .manifesto-quote .quote-mark {
        font-size: 3rem;
        top: 1rem;
        left: 1rem;
    }
}

/* ==========================================
   IMPACT SECTION
   ========================================== */
.impact-section {
    background: var(--bg);
}

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

.impact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-base);
}

.impact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.impact-card-problem {
    border-left: 3px solid var(--red-500);
}

.impact-number {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.impact-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.impact-source {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Deployments Showcase */
.deployments-showcase {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
}

.deployments-headline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
}

.deployments-regions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.region-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.region-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.region-locations {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

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

    .deployments-regions {
        grid-template-columns: 1fr;
    }

    .impact-number {
        font-size: 2.5rem;
    }
}

/* ==========================================
   PROBLEM SECTION - Rented Infrastructure
   ========================================== */
.problem-section {
    background: var(--bg);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.problem-content .section-label {
    color: var(--red-500);
}

.problem-content .section-title {
    margin-bottom: 1.5rem;
}

.problem-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 3rem;
}

.text-highlight {
    color: var(--text);
    font-weight: 500;
}

.problem-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.problem-stat {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.problem-stat:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.problem-stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--red-500);
    font-family: var(--font-mono);
    min-width: 80px;
}

.problem-stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.problem-stat-label {
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 500;
}

.problem-stat-context {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Censorship Visualization */
.problem-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.censorship-viz {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.censorship-viz svg {
    width: 100%;
    height: 100%;
}

.viz-status {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-base);
}

.viz-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-500);
    animation: statusPulse 2s ease-in-out infinite;
}

.viz-status.active .viz-status-dot {
    background: var(--green-500);
}

.viz-status.active .viz-status-text {
    color: var(--green-500);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@media (max-width: 1000px) {
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .censorship-viz {
        max-width: 350px;
    }
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* After reveal, restore fast hover transitions on interactive cards */
.product-card.reveal.visible {
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Staggered delays for grid items */
.products-grid .product-card:nth-child(1) { transition-delay: 0s; }
.products-grid .product-card:nth-child(2) { transition-delay: 0.1s; }
.products-grid .product-card:nth-child(3) { transition-delay: 0.2s; }

.market-grid .market-card:nth-child(1) { transition-delay: 0s; }
.market-grid .market-card:nth-child(2) { transition-delay: 0.1s; }
.market-grid .market-card:nth-child(3) { transition-delay: 0.2s; }

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
    background: var(--bg-elevated);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    color: var(--text);
    text-align: left;
    transition: color var(--transition-base);
}

.faq-question:hover {
    color: var(--text);
}

.faq-question:hover .faq-num {
    color: var(--text-secondary);
}

.faq-num {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 2rem;
    letter-spacing: 0.05em;
    transition: color var(--transition-base);
}

.faq-text {
    flex: 1;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.4;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease, color var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--text-secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 0 2rem 3.5rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .faq-question {
        gap: 1rem;
        padding: 1.25rem 0;
    }

    .faq-text {
        font-size: 0.9375rem;
    }

    .faq-answer p {
        padding: 0 0 1.5rem 3rem;
        font-size: 0.8125rem;
    }
}

/* ==========================================
   SMALL PHONE OPTIMIZATIONS (480px)
   ========================================== */
@media (max-width: 480px) {
    .container { padding: 0 2rem; }
    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2rem; }

    /* Hero */
    .hero {
        padding: 1.5rem 2rem;
        padding-top: 70px;
    }

    .hero-ascii-container {
        margin: 0 -2rem;
        padding: 0 2rem;
        margin-bottom: 2rem;
    }

    .hero-ascii {
        font-size: clamp(7px, 2vw, 12px);
    }

    .hero-tagline {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .hero-cta {
        gap: 0.75rem;
    }

    .hero-status {
        padding: 0.5rem 0.75rem;
        margin-bottom: 1.5rem;
    }

    /* Products */
    .product-card {
        padding: 1.75rem;
    }

    .card-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1.25rem;
    }

    .card-title {
        font-size: 1.375rem;
    }

    .card-description {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }

    .products-grid {
        margin-bottom: 3rem;
    }

    .layer-label {
        margin-bottom: 1.5rem;
    }

    /* Developers */
    .code-stack {
        height: 320px;
    }

    .code-window {
        height: 300px;
    }

    .code-body pre {
        font-size: 0.6875rem;
        line-height: 1.6;
    }

    .dev-compact {
        gap: 2rem;
    }

    .dev-description {
        font-size: 0.9375rem;
    }

    /* Mission */
    .mission-header {
        margin-bottom: 2rem;
    }

    .stat-item::after {
        width: 100px;
        height: 100px;
    }

    /* Bento / Opportunity */
    .bento-value {
        font-size: 1.75rem;
    }

    .bento-card {
        padding: 1.25rem;
    }

    .bento-label {
        font-size: 0.8125rem;
    }

    .opportunity-content {
        margin-bottom: 2rem;
    }

    /* Context cards */
    .context-card {
        width: 260px;
        min-width: 260px;
        padding: 1.25rem;
    }

    .context-scroll {
        margin: 0 -2rem;
        padding: 0 2rem;
    }

    .context-title {
        font-size: 1.25rem;
    }

    .global-context {
        margin-top: 2.5rem;
        padding-top: 2.5rem;
    }

    /* Use Cases */
    .use-case-display {
        min-height: 280px;
    }

    .use-case-quote {
        padding: 1.5rem;
    }

    .use-case-quote p {
        font-size: 0.9375rem;
    }

    /* Manifesto */
    .manifesto-card {
        padding: 1.5rem;
    }

    .manifesto-grid {
        margin-bottom: 3rem;
    }

    /* Impact */
    .impact-card {
        padding: 1.75rem 1.5rem;
    }

    .impact-number {
        font-size: 2rem;
    }

    .impact-grid {
        margin-bottom: 3rem;
    }

    /* Problem */
    .problem-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .problem-stat-value {
        font-size: 1.5rem;
        min-width: 60px;
    }

    .problem-stat {
        padding: 1rem;
    }

    .censorship-viz {
        max-width: 280px;
    }

    /* Stats */
    .stat-number {
        font-size: 1rem;
    }

    .stat-desc {
        font-size: 0.5rem;
    }

    .stat-desc {
        font-size: 0.8125rem;
    }

    /* FAQ */
    .faq-text {
        font-size: 0.875rem;
    }

    .faq-answer p {
        padding: 0 0 1.25rem 2.5rem;
        font-size: 0.8125rem;
    }

    .faq-num {
        width: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 2rem;
    }

    .footer-logo img {
        height: 40px;
    }

    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .footer-links {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding-top: 1.5rem;
    }

    .footer-tagline {
        font-size: 0.75rem;
    }

    /* Floating controls */
    .floating-controls {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ==========================================
   UTILITIES & REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
