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

/* ─── CUSTOM SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #2563eb, #3b82f6, #f97316, #ea580c);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #3b82f6, #60a5fa, #fb923c, #f97316);
    background-clip: content-box;
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #020617;
}

:root {
    --bg-color: #f0f4ff;
    --text-color: #1e293b;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --primary-color: #2563eb;
    --gradient-1: #c7d2fe;
    --gradient-2: #fbcfe8;
    --gradient-text: linear-gradient(90deg, #1d4ed8, #be185d);
    --btn-bg: rgba(255, 255, 255, 0.8);
    --btn-hover: rgba(255, 255, 255, 1);
    --accent-glow: rgba(37, 99, 235, 0.3);
    --card-shadow: 0 8px 32px rgba(0,0,0,0.08);
    --hud-color: #2563eb;
    --mono-font: 'Space Mono', monospace;
}

body.dark-mode {
    --bg-color: #060010;
    --text-color: #ffffff;
    --glass-bg: rgba(10, 6, 28, 0.7);
    --glass-border: rgba(160, 100, 255, 0.2);
    --primary-color: #c4b5fd;
    --gradient-1: #1a0a3c;
    --gradient-2: #0a0520;
    --gradient-text: linear-gradient(90deg, #a5b4fc, #fb7185);
    --btn-bg: rgba(30, 20, 60, 0.8);
    --btn-hover: rgba(60, 45, 110, 1);
    --accent-glow: rgba(167, 139, 250, 0.35);
    --card-shadow: 0 8px 40px rgba(120,80,255,0.15);
    --hud-color: #a5b4fc;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999999;
    background: transparent;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #10b981, #0ea5e9, #34d399);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4), 0 0 20px rgba(14, 165, 233, 0.2);
    transition: width 0.1s ease-out;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.mono { font-family: var(--mono-font); letter-spacing: -0.02em; }

.hud-label {
    font-family: var(--mono-font);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hud-color);
    opacity: 0.8;
}

/* ─── PILL NAV ─── */
#pill-nav-root {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
}

.pill-nav {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    max-width: 850px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 0 1px var(--accent-glow);
    transition: background 0.4s ease, border 0.4s ease, border-radius 0.35s ease;
    overflow: visible;
    position: relative;
}

/* Top row: always visible on mobile */
.pill-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Menu row */
.pill-nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

.pill-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.pill-nav-logo .france-flag {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pill-nav-logo:hover .france-flag {
    transform: scale(1.2) rotate(3deg);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.pill-nav-items {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    border-radius: 30px;
}

.pill-nav-item {
    position: relative;
    z-index: 1;
    padding: 0.45rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 25px;
    transition: color 0.3s ease;
    white-space: nowrap;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
}

.pill-nav-item:hover { color: var(--primary-color); }
.pill-nav-item.active { color: var(--primary-color); font-weight: 800; }

.pill-nav-controls { display: flex; gap: 0.5rem; flex-shrink: 0; }

.pill-nav-btn {
    background: var(--btn-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pill-nav-btn:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Desktop: original single-row layout */
.pill-nav-mobile-controls { display: none; }
.pill-hamburger { display: none; }

@media (min-width: 769px) {
    .pill-nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-radius: 50px;
        padding: 0.6rem 1.2rem;
    }
    
    /* Unwrap the mobile containers so children act as direct flex items */
    .pill-nav-top, .pill-nav-menu {
        display: contents;
    }
    
    /* Recreate the original visual order */
    .pill-nav-logo { order: 1; }
    .pill-nav-items { order: 2; margin: 0 auto; } /* Center the items */
    .pill-nav-desktop-controls { order: 3; display: flex; }
}

/* ─── MOBILE NAV ─── */
@media (max-width: 768px) {
    #pill-nav-root {
        padding: 0.75rem 1rem;
        /* needs relative so dropdown can position against it */
        position: fixed;
        overflow: visible;
    }

    .pill-nav {
        border-radius: 28px;
        padding: 0.7rem 1rem;
        overflow: visible; /* let dropdown escape the pill box */
    }

    /* When open: flatten bottom corners so dropdown connects */
    .pill-nav.menu-open {
        border-radius: 28px 28px 0 0;
        border-bottom-color: transparent;
    }

    .pill-nav-desktop-controls { display: none; }

    /* Hamburger button */
    .pill-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        padding: 6px;
        background: var(--btn-bg);
        border: 1px solid var(--glass-border);
        border-radius: 10px;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.3s ease;
    }

    .pill-hamburger span {
        display: block;
        height: 2px;
        background: var(--text-color);
        border-radius: 2px;
        transform-origin: center;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .pill-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .pill-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .pill-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Dropdown panel — sits absolutely below the pill */
    .pill-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: rgba(10, 6, 28, 0.93);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border: 1px solid var(--glass-border);
        border-top: none;
        border-radius: 0 0 20px 20px;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
        box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    }
    /* Light mode: use light frosted glass */
    body:not(.dark-mode) .pill-nav-menu {
        background: rgba(240, 244, 255, 0.94);
    }

    .pill-nav.menu-open .pill-nav-menu {
        max-height: 420px;
        opacity: 1;
        pointer-events: auto;
    }

    /* Nav links: full-width rows with subtle dividers */
    .pill-nav-items {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        background: none;
        border-radius: 0;
        padding: 0.4rem 0;
    }

    .pill-nav-item {
        display: block;
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.78rem;
        font-weight: 600;
        border-bottom: 1px solid var(--glass-border);
        border-radius: 0;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-family: var(--mono-font);
        transition: background 0.2s ease, color 0.2s ease;
        white-space: normal;
        -webkit-text-fill-color: unset !important;
        background: none !important;
        background-clip: unset !important;
        text-align: center;  /* centered text */
    }

    .pill-nav-item:last-child { border-bottom: none; }
    .pill-nav-item:hover, .pill-nav-item.active {
        background: rgba(255,255,255,0.06) !important;
        color: var(--primary-color);
    }

    /* Controls row centered at bottom of menu */
    .pill-nav-mobile-controls {
        display: flex;
        justify-content: center;
        padding: 1rem;
        border-top: 1px solid var(--glass-border);
    }
}

.navbar { display: none !important; }

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    padding-top: 5rem;
}

.hero-content { max-width: 800px; }

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    font-family: var(--mono-font);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    animation: pulse-border 2s infinite;
}

.hero-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: blink 1.5s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 6px transparent; }
}

/* ─── BUTTONS ─── */
.primary-btn {
    background: var(--gradient-text);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25), 0 0 20px var(--accent-glow);
}

/* ─── CONTAINER ─── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
    flex-grow: 1;
}

/* ─── CARDS ─── */
.card {
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 0 1px var(--accent-glow);
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
    transform: skewX(-20deg);
    transition: 0.6s;
}
.card:hover::before { left: 150%; }

.card::after {
    content: '';
    position: absolute;
    top: 12px; right: 12px;
    width: 18px; height: 18px;
    border-top: 2px solid var(--hud-color);
    border-right: 2px solid var(--hud-color);
    opacity: 0.35;
    transition: opacity 0.3s ease;
    border-radius: 0 4px 0 0;
}
.card:hover::after { opacity: 1; }

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.card-content { display: flex; flex-direction: column; flex-grow: 1; }

.card-content h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.card-content .card-meta {
    font-family: var(--mono-font);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.card-content p { line-height: 1.6; opacity: 0.82; flex-grow: 1; }

/* ─── STATS ROW ─── */
.stats-row {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.stat-block {
    flex: 1;
    min-width: 140px;
    padding: 1.8rem 1.5rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    text-align: center;
    position: relative;
    transition: background 0.3s ease;
}

.stat-block:first-child { border-radius: 20px 0 0 20px; }
.stat-block:last-child { border-radius: 0 20px 20px 0; }
.stat-block:not(:first-child) { border-left: none; }
.stat-block:hover { background: var(--btn-bg); }

.stat-number {
    font-family: var(--mono-font);
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    font-family: var(--mono-font);
}

/* ─── TIMELINE ─── */
.timeline {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.timeline-title {
    font-family: var(--mono-font);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--primary-color);
}

.timeline-track {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.timeline-item {
    flex: 0 0 190px;
    padding: 1.5rem 1.2rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
}

.timeline-item:first-child { border-radius: 16px 0 0 16px; }
.timeline-item:last-child { border-radius: 0 16px 16px 0; }
.timeline-item:not(:first-child) { border-left: none; }

.timeline-item:hover {
    background: var(--btn-bg);
    transform: translateY(-4px);
    z-index: 1;
    border-color: var(--primary-color);
    border-left: 1px solid var(--primary-color) !important;
}

.timeline-year {
    font-family: var(--mono-font);
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.timeline-event { font-size: 0.82rem; line-height: 1.4; opacity: 0.85; }

/* ─── SPEC PANEL (Rafale) ─── */
.spec-panel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
}

.spec-item {
    padding: 1.4rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.spec-item:first-child { border-radius: 16px 0 0 16px; }
.spec-item:last-child { border-radius: 0 16px 16px 0; }
.spec-item:not(:first-child) { border-left: none; }
.spec-item:hover { background: var(--btn-hover); transform: translateY(-4px); z-index: 1; }

.spec-item::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--gradient-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.spec-item:hover::before { transform: scaleX(1); }

.spec-key {
    font-family: var(--mono-font);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.spec-val {
    font-family: var(--mono-font);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ─── HUD OVERLAY ─── */
.hud-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 7;
}

.hud-corners::before, .hud-corners::after {
    content: '';
    position: absolute;
    width: 40px; height: 40px;
    border-color: rgba(130, 90, 255, 0.6);
    border-style: solid;
    transition: all 0.5s ease;
}

.hud-corners::before {
    top: 20px; left: 20px;
    border-width: 2px 0 0 2px;
    border-radius: 4px 0 0 0;
}

.hud-corners::after {
    bottom: 20px; right: 20px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 4px 0;
}

.hud-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent, transparent 3px,
        rgba(100, 60, 200, 0.03) 3px,
        rgba(100, 60, 200, 0.03) 4px
    );
    pointer-events: none;
    z-index: 6;
}

.hud-readout {
    position: absolute;
    bottom: 20px; left: 20px;
    font-family: var(--mono-font);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: rgba(167, 139, 250, 0.8);
    pointer-events: none;
    z-index: 8;
    line-height: 1.8;
}

.hud-readout-right {
    position: absolute;
    top: 20px; right: 20px;
    font-family: var(--mono-font);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: rgba(167, 139, 250, 0.6);
    pointer-events: none;
    z-index: 8;
    text-align: right;
    line-height: 1.8;
}

/* ─── IMAGE SHOWCASE ─── */
.image-showcase {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.image-showcase img {
    width: 100%; height: 100%;
    object-fit: cover;
    flex-grow: 1;
    display: block;
    transition: transform 1s ease;
}

.image-showcase:hover img { transform: scale(1.04); }

.image-showcase .caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    font-family: var(--mono-font);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    pointer-events: none;
}

/* ─── HERO SPLIT ─── */
.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
    align-items: stretch;
}

.hero-text-side {
    padding: 3rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.mini-spec {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mini-spec span:last-child {
    font-family: var(--mono-font);
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 968px) {
    .hero-split {
        grid-template-columns: 1fr;
    }
}

/* ─── DETAILS GRID ─── */
.details-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    align-items: stretch;
}

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

footer {
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    font-family: var(--mono-font);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    opacity: 0.6;
}

.page-header {
    text-align: center;
    padding: 1rem 2rem 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 6rem;
}

.back-btn {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    font-family: var(--mono-font);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.back-btn:hover { color: var(--primary-color); transform: translateX(-5px); }

/* ─── SCROLL REVEAL ─── */
.sr-word {
    display: inline-block;
    transition: opacity 0.1s, filter 0.1s, transform 0.1s;
    will-change: opacity, filter, transform;
}

/* ─── ANIMATIONS ─── */
.observer-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.observer-item.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.3s ease, gap 0.3s ease;
    align-self: flex-start;
}
.link-btn:hover { transform: translateX(4px); gap: 0.8rem; }

.animated-orbit {
    animation: orbitPan 24s infinite linear;
    transform-origin: center center;
}

@keyframes orbitPan {
    0%   { transform: translate(0%, 0%) scale(1.05); }
    25%  { transform: translate(-3%, -2%) scale(1.08); }
    50%  { transform: translate(0%, -3%) scale(1.05); }
    75%  { transform: translate(3%, -1%) scale(1.08); }
    100% { transform: translate(0%, 0%) scale(1.05); }
}

/* ─── CUSTOM CURSOR ─── */
body, body *, a, button { cursor: none !important; }

#custom-cursor-jet {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    pointer-events: none;
    z-index: 999999;
    will-change: transform;
    filter: drop-shadow(0 0 10px var(--primary-color)) drop-shadow(0 0 20px rgba(167, 139, 250, 0.4));
    margin-left: -20px;
    margin-top: -20px;
    transition: opacity 0.3s ease;
}

#custom-cursor-jet svg {
    filter: brightness(1.5) contrast(1.2);
}

.cloud-trail {
    position: fixed;
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
    filter: blur(2px) drop-shadow(0 0 5px #fff);
    pointer-events: none;
    z-index: 999998;
    margin-left: -3px;
    margin-top: -3px;
    animation: fadeAndExpand 0.6s forwards ease-out;
}

.afterburner {
    position: fixed;
    width: 12px; height: 24px;
    background: linear-gradient(to top, transparent, #f472b6, #818cf8);
    filter: blur(4px) brightness(2);
    border-radius: 50% 50% 20% 20%;
    pointer-events: none;
    z-index: 999997;
    transform-origin: top center;
    opacity: 0.8;
}

@keyframes fadeAndExpand {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(5); opacity: 0; }
}

/* ─── PARTICLE BURST ─── */
.particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999997;
    animation: particleFly 0.8s forwards ease-out;
}

@keyframes particleFly {
    0%   { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* ─── ZEROE SPLIT ─── */
.zeroe-split {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .zeroe-split { grid-template-columns: 1fr; }
    .stats-row {
        display: flex;
        flex-direction: column;
        padding: 0 1rem;
    }
    .stat-block {
        border-radius: 0 !important;
        border-left: 1px solid var(--glass-border) !important;
        border-top: none !important;
        padding: 1.2rem 1rem;
        width: 100%;
    }
    .stat-block:first-child {
        border-top: 1px solid var(--glass-border) !important;
        border-radius: 20px 20px 0 0 !important;
    }
    .stat-block:last-child {
        border-radius: 0 0 20px 20px !important;
    }
    .spec-panel { grid-template-columns: 1fr 1fr; }
    .spec-item { border-radius: 0 !important; border-left: 1px solid var(--glass-border) !important; }

    /* Hero adjustments */
    .hero { padding: 1.5rem 1rem; padding-top: 5.5rem; }
    .hero h1 { font-size: clamp(2rem, 8vw, 3.5rem); margin-bottom: 1rem; }
    .hero p { font-size: 1rem; margin-bottom: 1.8rem; }
    .hero-badge { font-size: 0.6rem; padding: 0.3rem 0.7rem; }

    /* Cards: single column, tighter padding */
    .container {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1.2rem;
    }
    .card { padding: 1.5rem; }

    /* Footer */
    footer { padding: 1.5rem 1rem; font-size: 0.7rem; }

    /* Sub-nav */
    .sub-nav { flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-top: 5rem; padding: 0 1rem; }

    /* Page header */
    .page-header { padding: 0.5rem 1rem 1.5rem; }

    /* Hide jet cursor on touch devices */
    #custom-cursor-jet, .afterburner, .cloud-trail { display: none !important; }
    body, body *, a, button { cursor: auto !important; }
}

.zeroe-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; line-height: 1.2; }
.zeroe-text p { line-height: 1.7; opacity: 0.85; margin-bottom: 1rem; }

/* ─── ROCKET VISUAL ─── */
.rocket-visual {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

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

.rocket-svg-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
}
