:root {
    /* Core Tactical Palette */
    --bg-obsidian: #020406;
    --bg-surface: #0a0e14;
    --bg-card: rgba(13, 20, 28, 0.7);
    
    --cyan-primary: #00f2ff;
    --cyan-secondary: #0088ff;
    --cyan-glow: rgba(0, 242, 255, 0.5);
    --cyan-muted: rgba(0, 242, 255, 0.1);
    
    --orange-alert: #ffb700;
    --orange-glow: rgba(255, 183, 0, 0.3);
    
    --text-primary: #f0f9ff;
    --text-secondary: #94a3b8;
    --text-dim: #475569;

    /* Spacing & Borders */
    --border-main: 1px solid rgba(0, 242, 255, 0.2);
    --border-active: 1px solid rgba(0, 242, 255, 0.6);
    --radius-hud: 4px;
    
    --font-main: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a, button, [role="tab"], .tab-btn, .btn-tactical, .hamburger-btn, .close-menu-btn {
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-obsidian);
}

body {
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Texture */
.tactical-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 50% 50%, #0a1926 0%, var(--bg-obsidian) 100%);
}

.tactical-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}

/* HUD Components */
.hud-border {
    position: relative;
    border: var(--border-main);
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-hud);
}

.hud-border::before, .hud-border::after,
.hud-corner-tl, .hud-corner-br {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--cyan-primary);
    border-style: solid;
    pointer-events: none;
}

.hud-border::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; } /* TL */
.hud-border::after { top: -1px; right: -1px; border-width: 2px 2px 0 0; } /* TR */
.hud-corner-bl { position: absolute; bottom: -1px; left: -1px; width: 10px; height: 10px; border-color: var(--cyan-primary); border-style: solid; border-width: 0 0 2px 2px; }
.hud-corner-br { position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px; border-color: var(--cyan-primary); border-style: solid; border-width: 0 2px 2px 0; }

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Sections */
section {
    position: relative;
    padding: 12rem 0;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--orange-alert);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--orange-alert);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 0%, #a5f3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--cyan-glow));
}

.hero-tagline {
    font-family: var(--font-mono);
    color: var(--cyan-primary);
    font-size: 1rem;
    letter-spacing: 0.5em;
    margin-bottom: 4rem;
    opacity: 0.8;
}

/* Screenshot Display */
.display-wrapper {
    position: relative;
    transition: var(--ease-out-expo) 0.6s;
    max-width: 600px; /* Reduced from 900px */
    margin: 0 auto;
}

.mobile-frame {
    position: relative;
    background: #000;
    border: 8px solid #1a1a1a;
    border-radius: 32px;
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.8),
        0 18px 36px -18px rgba(0, 0, 0, 0.5),
        0 0 40px var(--cyan-muted);
    overflow: hidden;
    aspect-ratio: 9 / 19.5; /* Modern phone aspect ratio */
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-frame.native-aspect {
    aspect-ratio: auto;
    border-radius: 8px;
    border: 1px solid rgba(0, 242, 255, 0.2);
}


.screenshot-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.mobile-frame.native-aspect .screenshot-main {
    height: auto;
    object-fit: contain;
}

.floating-intel {
    position: absolute;
    z-index: 10;
    padding: 1.5rem;
    width: 280px;
}

/* Typography Enhancements */
h2 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.feature-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 3rem;
}

/* Buttons */
.btn-tactical {
    position: relative;
    padding: 1.25rem 3rem;
    background: var(--cyan-muted);
    border: 1px solid var(--cyan-primary);
    color: var(--cyan-primary);
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-tactical:hover {
    background: var(--cyan-primary);
    color: var(--bg-obsidian);
    box-shadow: 0 0 30px var(--cyan-glow);
    transform: translateY(-2px);
}

.btn-tactical::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-tactical:hover::after {
    left: 100%;
}

/* Grid Layouts */
.tactical-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8rem;
    align-items: center;
}

.reversed {
    grid-template-columns: 1.2fr 1fr;
}

/* Animations */
@keyframes pulse-border {
    0% { border-color: rgba(0, 242, 255, 0.2); }
    50% { border-color: rgba(0, 242, 255, 0.8); }
    100% { border-color: rgba(0, 242, 255, 0.2); }
}

.active-scan {
    animation: pulse-border 2s infinite;
}

/* Intelligence Feed */
.intel-scroll-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.intel-node {
    position: relative;
    transition: 0.4s var(--ease-out-expo);
}

.intel-node:hover {
    transform: translateY(-10px) scale(1.02);
}

.intel-node img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.intel-meta {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
}

/* Comparison View */
.comparison-hud {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(5, 10, 15, 0.9) 100%);
    padding: 4rem;
    border-radius: 8px;
    border: var(--border-main);
}

/* Tabbed Interface */
.tab-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 1.25rem;
    background: var(--bg-card);
    border: var(--border-main);
    border-radius: var(--radius-hud);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
}

/* Add HUD corner accents for tab-list on desktop */
.tab-list::before,
.tab-list::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--cyan-primary);
    border-style: solid;
    pointer-events: none;
}

.tab-list::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px; /* Top Left */
}

.tab-list::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0; /* Bottom Right */
}


.tab-btn {
    background: transparent;
    border: none;
    text-align: left;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: all 0.3s var(--ease-out-expo);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--cyan-primary);
    border-left: 2px solid var(--cyan-primary);
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.1) 0%, transparent 100%);
}

.tab-image {
    transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.tab-image.fade-out {
    opacity: 0.3;
    transform: scale(0.98);
}

/* Layout Utilities */
.d-grid { display: grid; }
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-05 { gap: 0.5rem; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }
.gap-4 { gap: 4rem; }
.m-0 { margin: 0; }
.mx-auto { margin: 0 auto; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mb-5 { margin-bottom: 5rem; }
.mt-1-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 6rem; }
.p-0 { padding: 0; }
.pt-4 { padding-top: 4rem; }
.pb-2 { padding-bottom: 2rem; }
.px-4 { padding-left: 4rem; padding-right: 4rem; }
.py-4 { padding-top: 4rem; padding-bottom: 4rem; }
.py-8 { padding-top: 8rem; padding-bottom: 8rem; }
.w-full { width: 100%; }
.max-w-300 { max-width: 300px; }
.max-w-320 { max-width: 320px; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-cyan { color: var(--cyan-primary) !important; }
.bg-surface { background: var(--bg-surface); }
.border-t-muted { border-top: 1px solid var(--cyan-muted); }

/* Component Specific */
.fixed-top-right {
    position: fixed;
    top: 2rem;
    right: 2.5rem;
    z-index: 100;
}

.hero-rotate-left { width: 140px; transform: rotate(-5deg); opacity: 0.6; height: 300px; }
.hero-rotate-right { width: 140px; transform: rotate(5deg); opacity: 0.6; height: 300px; }
.footer-logo { font-family: var(--font-mono); font-size: 1.5rem; color: var(--cyan-primary); }
.footer-links { margin-top: 2.5rem; display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--cyan-primary); }

/* Card grid hover effects */
.grid-cols-2 > .mobile-frame,
.grid-cols-2 .mobile-frame,
.grid-cols-3 > .mobile-frame,
.grid-cols-4 .mobile-frame,
.single-frame-container .mobile-frame {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.grid-cols-2 > .mobile-frame:hover,
.grid-cols-2 .mobile-frame:hover,
.grid-cols-3 > .mobile-frame:hover,
.grid-cols-4 .mobile-frame:hover,
.single-frame-container .mobile-frame:hover {
    transform: translateY(-6px);
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.8),
        0 18px 36px -18px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 242, 255, 0.15);
}

.grid-cols-tabbed { grid-template-columns: 1fr 320px; }
.grid-cols-tabbed-rev { grid-template-columns: 320px 1fr; }
.grid-cols-2 { grid-template-columns: 1fr 1fr; }
.single-frame-container { display: flex; justify-content: center; align-items: center; width: 100%; }
.col-span-full { grid-column: 1 / -1; }
.sticky-120 { position: sticky; top: 120px; }
.font-mono-cyan { font-family: var(--font-mono); font-size: 0.7rem; color: var(--cyan-primary); }
.pl-1-5 { padding-left: 1.5rem; }
.text-sm { font-size: 0.95rem; }

/* Discovery Engine */
.grid-cols-discovery {
    grid-template-columns: 250px 1fr 320px;
}

.explanation-pane {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: sticky;
    top: 120px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05) 0%, rgba(13, 20, 28, 0.9) 100%);
    box-shadow: inset 0 0 20px rgba(0, 242, 255, 0.05);
}

#desc-title {
    font-size: 1.5rem;
    transition: opacity 0.3s;
}

#desc-text {
    font-size: 1.1rem;
    line-height: 1.6;
    transition: opacity 0.3s;
    color: var(--text-primary);
}


/* ── Hamburger Button ──────────────────────────────────────────── */
.hamburger-btn {
    background: rgba(0, 242, 255, 0.04);
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px 14px;
    z-index: 300;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.hamburger-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}
/* The 3 bars */
.hamburger-btn .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cyan-primary);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s var(--ease-out-expo),
                opacity 0.25s ease,
                width 0.3s var(--ease-out-expo);
}
/* Animate into X when open */
.hamburger-btn.open .bar-top {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open .bar-mid {
    opacity: 0;
    width: 0;
}
.hamburger-btn.open .bar-bot {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Backdrop Scrim ─────────────────────────────────────────────── */
.nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 200;
    pointer-events: none;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav-scrim.open {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    pointer-events: all;
}

/* ── Slide Drawer ───────────────────────────────────────────────── */
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 90vw;
    height: 100dvh;
    background: linear-gradient(160deg, #0d1520 0%, #080e18 100%);
    border-left: 1px solid rgba(0, 242, 255, 0.12);
    z-index: 250;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out-expo);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.7),
                inset 1px 0 0 rgba(0, 242, 255, 0.05);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.nav-drawer.open {
    transform: translateX(0);
}

/* Drawer Header */
.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    flex-shrink: 0;
}
.nav-drawer-logo {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cyan-primary);
    letter-spacing: 0.2em;
}
.nav-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 242, 255, 0.06);
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s;
}
.nav-close-btn:hover {
    background: rgba(0, 242, 255, 0.14);
    border-color: var(--cyan-primary);
    color: var(--cyan-primary);
    transform: rotate(90deg);
}

/* Divider */
.nav-drawer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.2), transparent);
    flex-shrink: 0;
}

/* Section Label */
.nav-drawer-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.25em;
    padding: 1.1rem 1.5rem 0.6rem;
    flex-shrink: 0;
}

/* Nav List */
.nav-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.nav-drawer-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.72rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
    position: relative;
    overflow: hidden;
}
.nav-drawer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: var(--cyan-primary);
    border-radius: 0 3px 3px 0;
    transition: transform 0.25s var(--ease-out-expo);
}
.nav-drawer-link:hover::before,
.nav-drawer-link:focus::before {
    transform: translateY(-50%) scaleY(1);
}
.nav-drawer-link:hover,
.nav-drawer-link:focus {
    background: rgba(0, 242, 255, 0.06);
    outline: none;
}
.nav-drawer-link:hover .nav-name,
.nav-drawer-link:focus .nav-name {
    color: var(--cyan-primary);
}
.nav-drawer-link:hover .nav-arrow,
.nav-drawer-link:focus .nav-arrow {
    opacity: 1;
    transform: translateX(0);
}
.nav-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--cyan-primary);
    opacity: 0.6;
    min-width: 1.5rem;
    flex-shrink: 0;
}
.nav-name {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex: 1;
    transition: color 0.25s;
}
.nav-arrow {
    font-size: 1rem;
    color: var(--cyan-primary);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s, transform 0.25s var(--ease-out-expo);
    flex-shrink: 0;
}

/* 4-Column Responsive Grid */
.grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

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

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

/* 3-Column Responsive Grid */
.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

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

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

/* ==============================================
   FOOTER
   ============================================== */
.footer-base {
    padding: 6rem 0 4rem;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    background: linear-gradient(180deg, var(--bg-obsidian) 0%, #030810 100%);
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

/* --- Intermediate Desktop (max-width: 1200px) --- */
@media (max-width: 1200px) {
    .grid-cols-discovery {
        grid-template-columns: 200px 1fr 280px;
    }
    .tactical-grid, .reversed {
        gap: 5rem;
    }
}

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 2.5rem;
    }
    section {
        padding: 8rem 0;
    }
    h2 {
        font-size: 2.75rem;
    }

    /* Tabbed sections: 2-column (tabs + content stacked) */
    .grid-cols-discovery {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }
    .grid-cols-discovery > .tab-list {
        grid-column: 1;
        grid-row: 1 / 3;
    }
    .grid-cols-discovery > .display-wrapper {
        grid-column: 2;
        grid-row: 1;
    }
    .grid-cols-discovery > .explanation-pane {
        grid-column: 2;
        grid-row: 2;
        position: static;
        min-height: auto;
    }
    .sticky-120 {
        position: static;
    }

    .tactical-grid, .reversed {
        gap: 4rem;
    }

    .hero-rotate-left, .hero-rotate-right {
        width: 100px;
        height: 220px;
    }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
    .grid-cols-3,
    .grid-cols-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    .container {
        padding: 0 1.5rem;
    }
    section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    h2 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    .feature-desc {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    /* --- Hero --- */
    .hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }
    .hero-tagline {
        font-size: 0.75rem;
        letter-spacing: 0.3em;
        margin-bottom: 2rem;
    }
    .hero-rotate-left, .hero-rotate-right {
        display: none;
    }
    .mt-6 {
        margin-top: 3rem;
    }

    /* --- Tabbed Sections: Horizontal scroll tabs + vertical stack --- */
    .grid-cols-discovery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .grid-cols-discovery > .tab-list {
        grid-column: auto;
        grid-row: auto;
        order: 1;
    }
    .grid-cols-discovery > .display-wrapper {
        grid-column: auto;
        grid-row: auto;
        order: 2;
    }
    .grid-cols-discovery > .explanation-pane {
        grid-column: auto;
        grid-row: auto;
        order: 3;
        position: static;
        min-height: auto;
    }

    /* Tab list becomes wrapping filter chips (Material Design pattern) */
    .tab-list {
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 0.6rem;
        row-gap: 0.7rem;
        padding: 0;
        padding-bottom: 1.25rem;
        background: transparent;
        border: none;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid var(--cyan-muted);
    }
    .tab-list::before,
    .tab-list::after {
        display: none;
    }
    .tab-btn {
        white-space: nowrap;
        border-left: none !important;
        border: 1px solid var(--cyan-muted);
        border-radius: 100px;
        padding: 0.55rem 1.1rem;
        font-size: 0.8rem;
        background: var(--cyan-muted);
        transition: all 0.25s var(--ease-out-expo);
    }
    .tab-btn:hover {
        background: rgba(0, 242, 255, 0.08);
    }
    body.light-mode .tab-btn:hover {
        background: rgba(0, 102, 204, 0.06);
    }
    .tab-btn.active {
        border-left: none !important;
        border: 1px solid var(--cyan-primary);
        background: var(--cyan-muted);
        color: var(--cyan-primary);
        box-shadow: 0 0 12px var(--cyan-glow);
    }
    /* Subheaders become full-width row dividers */
    .tab-list .font-mono-cyan {
        width: 100%;
        padding: 0.4rem 0 0.15rem;
        margin: 0.25rem 0 0;
        border-top: 1px solid rgba(0, 242, 255, 0.08);
        font-size: 0.65rem;
    }

    /* Explanation pane mobile */
    .explanation-pane {
        padding: 1.5rem !important;
        min-height: auto !important;
    }
    #desc-title, #compare-title, #intel-title {
        font-size: 1.25rem;
    }
    #desc-text, #compare-text, #intel-text {
        font-size: 1rem;
    }

    /* --- Tactical Grid: Stack --- */
    .tactical-grid, .reversed {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    /* Phone mockup sizing on mobile */
    .display-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
    .max-w-300 {
        max-width: 260px;
    }
    .max-w-320 {
        max-width: 280px;
    }

    /* --- Navigation: Full-width on mobile --- */
    .nav-drawer {
        width: 100vw;
        max-width: 100vw;
    }

    /* Section labels */
    .section-label {
        font-size: 0.65rem;
        margin-bottom: 1rem;
    }

    /* Footer */
    .footer-base {
        padding: 4rem 0 3rem;
    }
    .footer-logo {
        font-size: 1.25rem;
    }
}

/* --- Small Phone (max-width: 480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    section {
        padding: 3.5rem 0;
    }
    h2 {
        font-size: 1.65rem;
    }
    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }
    .btn-tactical {
        padding: 1rem 2rem;
        font-size: 0.8rem;
    }
    .tab-btn {
        font-size: 0.75rem;
        padding: 0.45rem 0.8rem;
    }
    .feature-desc {
        font-size: 0.95rem;
    }
    .display-wrapper {
        max-width: 260px;
    }

    /* Aviation 4-col descriptions */
    .grid-cols-4 .feature-desc {
        font-size: 0.85rem;
    }
}

/* ==============================================
   STAT STRIP - CINEMATIC NUMBERS BREAK
   ============================================== */
.stat-strip {
    position: relative;
    padding: 4.5rem 0;
    border-top: 1px solid rgba(0, 242, 255, 0.12);
    border-bottom: 1px solid rgba(0, 242, 255, 0.12);
    background: linear-gradient(180deg, rgba(0, 242, 255, 0.025) 0%, transparent 100%);
    overflow: hidden;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}
.stat-item {
    text-align: center;
    padding: 0 2rem;
    border-right: 1px solid rgba(0, 242, 255, 0.1);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-item:last-child { border-right: none; }
.stat-item.in-view    { opacity: 1; transform: translateY(0); }
.stat-item:nth-child(1) { transition-delay: 0.00s; }
.stat-item:nth-child(2) { transition-delay: 0.12s; }
.stat-item:nth-child(3) { transition-delay: 0.24s; }
.stat-item:nth-child(4) { transition-delay: 0.36s; }
.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--cyan-primary);
    text-shadow: 0 0 50px rgba(0, 242, 255, 0.4);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.3rem;
}
.stat-sub {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}
@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 0 1.5rem;
    }
    .stat-strip { padding: 3rem 0; }
    .stat-item { padding: 1.5rem 1rem; }
    .stat-item:nth-child(odd)  { border-right: 1px solid rgba(0, 242, 255, 0.1); }
    .stat-item:nth-child(even) { border-right: none; }
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) { border-top: 1px solid rgba(0, 242, 255, 0.1); }
}

/* ==============================================
   HERO PHONE FLOAT ANIMATION
   ============================================== */
@keyframes float-left {
    0%, 100% { transform: rotate(-5deg) translateY(0px);   opacity: 0.6; }
    50%       { transform: rotate(-5deg) translateY(-14px); opacity: 0.75; }
}
@keyframes float-right {
    0%, 100% { transform: rotate(5deg) translateY(0px);   opacity: 0.6; }
    50%       { transform: rotate(5deg) translateY(-14px); opacity: 0.75; }
}
.hero-rotate-left  { animation: float-left  6s ease-in-out infinite; }
.hero-rotate-right { animation: float-right 6s ease-in-out infinite 0.8s; }

/* ==============================================
   CTA PULSE GLOW (hero button only)
   ============================================== */
@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(0, 242, 255, 0.2); }
    50%       { box-shadow: 0 0 28px rgba(0, 242, 255, 0.55), 0 0 56px rgba(0, 242, 255, 0.2); }
}
.hero .btn-tactical {
    animation: cta-pulse 3s ease-in-out infinite;
}

/* ==============================================
   CARD GRID STAGGER ENTRANCE
   ============================================== */
.grid-cols-2 > *,
.grid-cols-3 > *,
.grid-cols-4 > *,
.single-frame-container > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.grid-cols-2.cards-visible > *:nth-child(1),
.grid-cols-3.cards-visible > *:nth-child(1),
.grid-cols-4.cards-visible > *:nth-child(1),
.single-frame-container.cards-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.00s; }
.grid-cols-2.cards-visible > *:nth-child(2),
.grid-cols-3.cards-visible > *:nth-child(2),
.grid-cols-4.cards-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.grid-cols-3.cards-visible > *:nth-child(3),
.grid-cols-4.cards-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.grid-cols-4.cards-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.36s; }


/* ==============================================
   ACTIVE BREATHING GLOW AURA FOR CENTRAL HERO PHONE
   ============================================== */
.display-wrapper .mobile-frame,
.grid-cols-2 > .mobile-frame,
.grid-cols-2 .mobile-frame,
.grid-cols-3 > .mobile-frame,
.grid-cols-4 .mobile-frame,
.single-frame-container .mobile-frame {
    animation: active-glow-breathing 4s ease-in-out infinite;
}
@keyframes active-glow-breathing {
    0%, 100% {
        box-shadow: 
            0 30px 60px -12px rgba(0, 0, 0, 0.8),
            0 18px 36px -18px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(0, 242, 255, 0.15);
        border-color: rgba(0, 242, 255, 0.35);
    }
    50% {
        box-shadow: 
            0 30px 60px -12px rgba(0, 0, 0, 0.8),
            0 18px 36px -18px rgba(0, 0, 0, 0.5),
            0 0 55px rgba(0, 242, 255, 0.45);
        border-color: rgba(0, 242, 255, 0.75);
    }
}

/* ==============================================
   INTERACTIVE SATELLITE IMAGE GLITCH RELOAD
   ============================================= */
@keyframes glitch-noise {
    0%   { filter: hue-rotate(0deg) saturate(1) contrast(1); transform: scale(1); }
    15%  { filter: hue-rotate(-12deg) saturate(1.4) contrast(1.1); transform: scale(1.015) skewX(0.7deg); }
    30%  { filter: hue-rotate(18deg) saturate(1.7) contrast(1.2); transform: scale(0.985) skewX(-0.7deg); }
    45%  { filter: hue-rotate(-5deg) saturate(1.1) contrast(0.9); transform: scale(1.005); }
    100% { filter: hue-rotate(0deg) saturate(1) contrast(1); transform: scale(1); }
}
.mobile-frame.active-glitch .screenshot-main {
    animation: glitch-noise 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==============================================
   TAB BUTTON NEON SLIDE UNDERLINE INDICATORS
   ============================================== */
.tab-btn {
    position: relative;
    overflow: hidden;
}
.tab-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan-primary), transparent);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tab-btn:hover::after,
.tab-btn.active::after {
    width: 80%;
}

.sheen-gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    mix-blend-mode: screen;
    border-radius: inherit;
    transition: background 0.15s ease-out;
}

/* ==============================================
   ELEVATOR DOOR REVEAL (FOR IMAGES)
   ============================================== */
.screenshot-main {
    clip-path: inset(49.8% 0 49.8% 0);
    opacity: 0;
    transition: clip-path 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.4s ease-in;
    will-change: clip-path, opacity;
}
.screenshot-main.in-view {
    clip-path: inset(0 0 0 0);
    opacity: 1;
}

/* ==============================================
   CINEMATIC TEXT MASK REVEAL
   ============================================== */
.mask-container {
    overflow: hidden;
    vertical-align: top;
    display: block; /* ensure block formatting context */
}
.cinematic-text {
    display: block;
    margin: 0 !important;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    will-change: transform, opacity;
}
.cinematic-text.in-view {
    transform: translateY(0);
    opacity: 1;
}

/* ── Light Mode Override (Black and White mode) ──────────────────── */
body.light-mode {
    --bg-obsidian: #f8fafc;
    --bg-surface: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.75);
    
    --text-primary: #0d1520;
    --text-secondary: #475569;
    --text-dim: #64748b;
    
    --border-main: 1px solid rgba(13, 20, 28, 0.12);
    --border-active: 1px solid rgba(0, 136, 255, 0.45);

    --cyan-primary: #0066cc;
    --cyan-secondary: #0052a3;
    --cyan-glow: rgba(0, 136, 255, 0.4);
    --cyan-muted: rgba(0, 102, 204, 0.08);

    --orange-alert: #d03b0d;
    --orange-glow: rgba(208, 59, 13, 0.15);
}

/* Stat strip readability adjustments in light mode */
body.light-mode .stat-strip {
    border-top: 1px solid rgba(0, 102, 204, 0.12);
    border-bottom: 1px solid rgba(0, 102, 204, 0.12);
    background: linear-gradient(180deg, rgba(0, 102, 204, 0.015) 0%, transparent 100%);
}

body.light-mode .stat-item {
    border-right: 1px solid rgba(0, 102, 204, 0.1);
}

body.light-mode .stat-number {
    text-shadow: 0 0 30px rgba(0, 102, 204, 0.15);
}

/* Hardcoded gradient overrides for light mode */
body.light-mode .tactical-bg {
    background: radial-gradient(circle at 50% 50%, #e2efff 0%, var(--bg-obsidian) 100%);
}

body.light-mode .tactical-bg::after {
    background-image: 
        linear-gradient(rgba(0, 136, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 136, 255, 0.05) 1px, transparent 1px);
}

body.light-mode .nav-drawer {
    background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 1px solid rgba(13, 20, 28, 0.1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1),
                inset 1px 0 0 rgba(13, 20, 28, 0.05);
}

body.light-mode .nav-drawer-divider {
    background: linear-gradient(90deg, transparent, rgba(0, 136, 255, 0.2), transparent);
}

body.light-mode .nav-drawer-link:hover,
body.light-mode .nav-drawer-link:focus {
    background: rgba(0, 136, 255, 0.06);
}

body.light-mode .nav-close-btn {
    background: rgba(0, 136, 255, 0.06);
    border: 1px solid rgba(0, 136, 255, 0.15);
}

body.light-mode .nav-close-btn:hover {
    background: rgba(0, 136, 255, 0.14);
}

body.light-mode .comparison-hud {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(240, 244, 248, 0.95) 100%);
}

body.light-mode .explanation-pane {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.03) 0%, rgba(241, 245, 249, 0.9) 100%);
    box-shadow: inset 0 0 20px rgba(0, 136, 255, 0.03);
}

body.light-mode .footer-base {
    background: linear-gradient(180deg, var(--bg-obsidian) 0%, #e2e8f0 100%);
    border-top: 1px solid rgba(13, 20, 28, 0.1);
}

body.light-mode .hero-title {
    background: linear-gradient(180deg, #0d1520 0%, #0088ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 136, 255, 0.2));
}

body.light-mode .mobile-frame {
    background: #ffffff;
    border-color: rgba(13, 20, 28, 0.12);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.15),
        0 18px 36px -18px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(0, 136, 255, 0.08);
}

body.light-mode .mobile-frame.native-aspect {
    border: 1px solid rgba(13, 20, 28, 0.15);
}

body.light-mode .btn-tactical {
    background: rgba(0, 136, 255, 0.06);
    border: 1px solid var(--cyan-secondary);
    color: var(--cyan-secondary);
}

body.light-mode .btn-tactical:hover {
    background: var(--cyan-secondary);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.3);
}

/* Breathing glow overrides */
@keyframes active-glow-breathing-light {
    0%, 100% {
        box-shadow: 
            0 30px 60px -12px rgba(0, 0, 0, 0.15),
            0 18px 36px -18px rgba(0, 0, 0, 0.1),
            0 0 20px rgba(0, 136, 255, 0.1);
        border-color: rgba(0, 136, 255, 0.25);
    }
    50% {
        box-shadow: 
            0 30px 60px -12px rgba(0, 0, 0, 0.15),
            0 18px 36px -18px rgba(0, 0, 0, 0.1),
            0 0 40px rgba(0, 136, 255, 0.3);
        border-color: rgba(0, 136, 255, 0.5);
    }
}
body.light-mode .display-wrapper .mobile-frame,
body.light-mode .grid-cols-2 > .mobile-frame,
body.light-mode .grid-cols-2 .mobile-frame,
body.light-mode .grid-cols-3 > .mobile-frame,
body.light-mode .grid-cols-4 .mobile-frame,
body.light-mode .single-frame-container .mobile-frame {
    animation: active-glow-breathing-light 4s ease-in-out infinite;
}

body.light-mode .grid-cols-2 > .mobile-frame:hover,
body.light-mode .grid-cols-2 .mobile-frame:hover,
body.light-mode .grid-cols-3 > .mobile-frame:hover,
body.light-mode .grid-cols-4 .mobile-frame:hover,
body.light-mode .single-frame-container .mobile-frame:hover {
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.15),
        0 18px 36px -18px rgba(0, 0, 0, 0.1),
        0 0 35px rgba(0, 136, 255, 0.2);
}

body.light-mode .tab-btn:hover {
    background: rgba(0, 136, 255, 0.03);
}

body.light-mode .tab-btn.active {
    color: var(--cyan-secondary);
    border-left-color: var(--cyan-secondary);
    background: linear-gradient(90deg, rgba(0, 136, 255, 0.08) 0%, transparent 100%);
}

body.light-mode .tab-btn::after {
    background: linear-gradient(90deg, var(--cyan-secondary), transparent);
}

/* CTA Pulse Glow overrides */
@keyframes cta-pulse-light {
    0%, 100% { box-shadow: 0 0 12px rgba(0, 136, 255, 0.2); }
    50%       { box-shadow: 0 0 24px rgba(0, 136, 255, 0.4), 0 0 48px rgba(0, 136, 255, 0.15); }
}
body.light-mode .hero .btn-tactical {
    animation: cta-pulse-light 3s ease-in-out infinite;
}

/* ── Theme Switch Button Styles ─────────────────────────────────── */
.theme-toggle-btn {
    position: fixed;
    top: 2rem;
    right: 7.5rem; /* Left of the hamburger menu */
    z-index: 100;
    background: rgba(0, 242, 255, 0.04);
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--cyan-primary);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s, transform 0.2s;
}

.theme-toggle-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
    transform: translateY(-1px);
}

.theme-toggle-btn:active {
    transform: translateY(1px);
}

body.light-mode .theme-toggle-btn {
    background: rgba(0, 136, 255, 0.06);
    border-color: rgba(0, 136, 255, 0.2);
    color: var(--cyan-secondary);
}

body.light-mode .theme-toggle-btn:hover {
    background: rgba(0, 136, 255, 0.12);
    border-color: rgba(0, 136, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 136, 255, 0.15);
}

body.light-mode .hamburger-btn {
    background: rgba(0, 136, 255, 0.04);
    border-color: rgba(0, 136, 255, 0.15);
}

body.light-mode .hamburger-btn:hover {
    background: rgba(0, 136, 255, 0.1);
    border-color: rgba(0, 136, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.15);
}

@media (max-width: 768px) {
    .theme-toggle-btn {
        right: 67px;
        top: 19px;
    }
    .fixed-top-right {
        right: 11px;
        top: 19px;
    }
}

/* Hide moon-icon by default */
#theme-toggle-btn .moon-icon {
    display: none;
}

/* Cinematic entrance stagger delays */
.delay-100 {
    transition-delay: 0.1s;
}
.delay-200 {
    transition-delay: 0.2s;
}

