/* =======================================================================
   SynergyX - Quantum Sanctum Homepage
   Rising runes. Light leaks. Tiger glow. No em dashes. Premium footer.
   ======================================================================= */

/* Cyberpunk Self-Hosted Fonts */
@font-face {
    font-family: 'Cyber';
    src: url('/fonts/Cyber.ttf') format('truetype');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Aero';
    src: url('/fonts/Aero.ttf') format('truetype');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'ComputoMono';
    src: url('/fonts/computo-monospace.otf') format('opentype');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Militech';
    src: url('/fonts/militech_r_2019-04-13.ttf') format('truetype');
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

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

/* Accessibility utilities */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--cyan, #00f0ff);
    color: #000;
    font-family: sans-serif;
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.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;
}

:root {
    --void: #000000;
    --void-deep: #010104;
    --void-soft: #050508;
    --surface: #08080f;
    --surface-raised: #0c0c16;
    --surface-hover: #10101c;
    --surface-glass: rgba(8, 8, 15, 0.6);

    --border: #14142a;
    --border-subtle: #0f0f20;
    --border-glow: #1a1a3a;

    --cyan: #00f0ff;
    --cyan-mid: #00c8d6;
    --cyan-dim: #008899;
    --cyan-glow: rgba(0, 240, 255, 0.15);
    --cyan-faint: rgba(0, 240, 255, 0.04);

    --magenta: #ff0066;
    --magenta-mid: #cc0052;
    --magenta-dim: #880038;
    --magenta-glow: rgba(255, 0, 102, 0.12);

    --acid: #00ff41;
    --acid-dim: #00b32e;
    --acid-glow: rgba(0, 255, 65, 0.08);

    --purple: #a855f7;
    --purple-dim: #7c3aed;

    --orange: #ff6a00;

    --white: #e8e8f0;
    --white-soft: #c0c0d0;
    --white-dim: #6e6e88;
    --white-muted: #3d3d55;

    --font-display: 'Cyber', 'Orbitron', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'ComputoMono', 'JetBrains Mono', 'Consolas', monospace;
    --font-accent: 'Aero', 'Cyber', sans-serif;
    --font-militech: 'Militech', 'Cyber', sans-serif;

    --max-width: 1200px;
    --section-pad: clamp(100px, 14vh, 180px);
    --gutter: clamp(20px, 4vw, 48px);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--void);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #fff; text-shadow: 0 0 12px rgba(0, 240, 255, 0.4); }
::selection { background: var(--magenta); color: #fff; }
img { max-width: 100%; height: auto; }

/* ================================================================
   AMBIENT BACKGROUND
   ================================================================ */

#matrix-rain {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

.grid-pattern {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.015;
    background-image:
        linear-gradient(var(--cyan) 1px, transparent 1px),
        linear-gradient(90deg, var(--cyan) 1px, transparent 1px);
    background-size: 80px 80px;
}

.scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.012) 3px, rgba(0,0,0,0.012) 6px);
}

.vignette {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,0.75) 100%);
}

/* Light leak pulses — visible ambient atmosphere */
.light-leak {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 2.5s cubic-bezier(0.23, 1, 0.32, 1);
    mix-blend-mode: screen;
    filter: blur(40px);
}

/* Menacing red — left side, visible at hero */
.light-leak-red {
    top: 5%;
    left: -6%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 0, 42, 0.13) 0%, rgba(200, 0, 30, 0.06) 35%, transparent 70%);
}

/* Hypnotic cyan — right side, activates after scroll */
.light-leak-cyan {
    top: 8%;
    right: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.14) 0%, rgba(0, 200, 255, 0.06) 40%, transparent 70%);
}

/* ================================================================
   NAVIGATION
   ================================================================ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--gutter);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-bottom: 1px solid rgba(20, 20, 42, 0.4);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: height, background;
    contain: layout style;
}

.nav.scrolled {
    height: 64px;
    background: rgba(5, 5, 8, 0.95);
    border-bottom-color: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.02), 0 1px 0 rgba(0, 240, 255, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.nav-logo img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.5));
    transition: filter 0.4s ease, transform 0.4s ease;
}

.nav-logo:hover img {
    filter: drop-shadow(0 0 28px rgba(0, 240, 255, 0.8)) brightness(1.3);
    transform: scale(1.08);
}

.nav-logo-text {
    font-family: var(--font-militech);
    font-size: 1.3em;
    font-weight: 800;
    letter-spacing: 6px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.72em;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--white-dim);
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.03);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

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

.nav-link.cta {
    color: var(--void);
    background: var(--cyan);
    font-weight: 700;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.25), 0 0 60px rgba(0, 240, 255, 0.08);
    margin-left: 8px;
}

.nav-link.cta:hover {
    background: #fff;
    color: var(--void);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.35);
    text-shadow: none;
}

.nav-link.cta::after { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--cyan);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}

/* Hamburger → X morph */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ================================================================
   MOBILE DRAWER
   ================================================================ */

/* Overlay backdrop */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Slide-in drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    height: 100dvh;
    z-index: 999;
    background: rgba(5, 5, 10, 0.98);
    border-left: 1px solid rgba(0, 240, 255, 0.08);
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -10px 0 60px rgba(0, 0, 0, 0);
}

.mobile-drawer.active {
    transform: translateX(0);
    box-shadow: -10px 0 60px rgba(0, 0, 0, 0.5), -2px 0 30px rgba(0, 240, 255, 0.03);
}

.drawer-inner {
    padding: 88px 28px 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.78em;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white-dim);
    padding: 14px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.drawer-link:hover,
.drawer-link:focus {
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.08);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.drawer-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.5;
    flex-shrink: 0;
}

.drawer-link:hover svg { opacity: 0.9; }

.drawer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 12px 0;
}

.drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    padding: 14px 20px;
    font-family: var(--font-display);
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--void);
    background: linear-gradient(135deg, var(--cyan), #00d4e6);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.drawer-cta:hover {
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.35);
    color: var(--void);
    text-shadow: none;
}

.drawer-badge {
    margin-top: 20px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 240, 255, 0.06);
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.015);
}

.drawer-badge-text {
    font-family: var(--font-accent);
    font-size: 0.58em;
    color: var(--white-muted);
    letter-spacing: 1.5px;
    line-height: 1.6;
    text-align: center;
}

/* ================================================================
   HERO
   ================================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--gutter) 80px;
    z-index: 2;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    opacity: 0.30;
    filter: saturate(0.7) contrast(1.4) brightness(0.85);
    transform: scale(1.05);
    animation: heroZoom 35s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.18); }
}

/* Tiger glow: menacing pulsing aura */
.tiger-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 42% 30%, rgba(0, 240, 255, 0.18) 0%, transparent 35%),
        radial-gradient(ellipse at 58% 42%, rgba(168, 85, 247, 0.14) 0%, transparent 30%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 35% 55%, rgba(255, 0, 102, 0.06) 0%, transparent 25%);
    mix-blend-mode: screen;
    animation: tigerPulse 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tigerPulse {
    0%, 100% { opacity: 0.5; filter: blur(0px); }
    33% { opacity: 1; filter: blur(2px); }
    66% { opacity: 0.7; filter: blur(1px); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 30%, rgba(0,0,0,0.45) 65%, var(--void) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.5) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.5) 100%);
}

.hero-circuits {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(0deg, transparent 0px, transparent 40px, rgba(0, 240, 255, 0.3) 40px, transparent 41px),
        repeating-linear-gradient(90deg, transparent 0px, transparent 40px, rgba(0, 240, 255, 0.2) 40px, transparent 41px);
    animation: circuitPulse 8s ease-in-out infinite;
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.08; }
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleDrift linear infinite;
    will-change: transform, opacity;
}

@keyframes particleDrift {
    0% { opacity: 0; transform: translateY(0) translateX(0) scale(1); }
    8% { opacity: 0.6; }
    50% { opacity: 0.3; }
    90% { opacity: 0.05; }
    100% { opacity: 0; transform: translateY(-500px) translateX(25px) scale(0.1); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 920px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    border: 1px solid rgba(0, 255, 65, 0.18);
    border-radius: 100px;
    font-family: var(--font-accent);
    font-size: 0.65em;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--acid);
    background: rgba(0, 255, 65, 0.02);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    background: var(--acid);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--acid), 0 0 25px rgba(0, 255, 65, 0.3);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--acid), 0 0 25px rgba(0, 255, 65, 0.3); }
    50% { opacity: 0.25; box-shadow: 0 0 3px var(--acid); }
}

.hero-headline {
    font-family: 'Aero', var(--font-display);
    font-size: clamp(3.2rem, 7.5vw, 6rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -2px;
    margin-bottom: 36px;
    color: #fff;
    text-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
}

.hero-headline .line-danger {
    display: block;
    background: linear-gradient(135deg, var(--magenta), #ff3377, #ff5588);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(255, 0, 102, 0.35));
    animation: dangerPulse 3.5s ease-in-out infinite;
    padding-bottom: 6px;
}

@keyframes dangerPulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 0, 102, 0.2)); }
    50% { filter: drop-shadow(0 0 70px rgba(255, 0, 102, 0.5)); }
}

.hero-headline .line-safe {
    display: block;
    background: linear-gradient(135deg, var(--cyan), #30f0ff, #60ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.35));
    animation: safePulse 3.5s ease-in-out infinite 1.5s;
}

@keyframes safePulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.2)); }
    50% { filter: drop-shadow(0 0 70px rgba(0, 240, 255, 0.5)); }
}

.hero-sub {
    font-size: 1.1em;
    line-height: 1.75;
    color: var(--white-dim);
    max-width: 620px;
    margin: 0 auto 48px;
    font-weight: 400;
}

.hero-sub strong {
    color: var(--white-soft);
    font-weight: 600;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    font-family: var(--font-display);
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--void);
    background: linear-gradient(135deg, var(--cyan), #00d4e6);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.2),
        0 0 50px rgba(0, 240, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
    animation: btnBreath 4s ease-in-out infinite;
}

@keyframes btnBreath {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), 0 0 50px rgba(0, 240, 255, 0.06); }
    50% { box-shadow: 0 0 35px rgba(0, 240, 255, 0.35), 0 0 80px rgba(0, 240, 255, 0.1); }
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.4), 0 0 100px rgba(0, 240, 255, 0.12);
    color: var(--void);
    text-shadow: none;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    font-family: var(--font-display);
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--white-soft);
    background: transparent;
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.btn-ghost:hover {
    color: var(--cyan);
    border-color: rgba(0, 240, 255, 0.25);
    background: rgba(0, 240, 255, 0.03);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.06);
    transform: translateY(-3px);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white-muted);
    font-family: var(--font-mono);
    font-size: 0.6em;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: scrollFade 3s ease-in-out infinite;
}

.hero-scroll .chevron {
    width: 16px; height: 16px;
    border-right: 1px solid var(--white-muted);
    border-bottom: 1px solid var(--white-muted);
    transform: rotate(45deg);
}

@keyframes scrollFade {
    0%, 100% { opacity: 0.25; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.55; transform: translateX(-50%) translateY(10px); }
}

/* ================================================================
   SECTION COMMON
   ================================================================ */

section {
    position: relative;
    z-index: 2;
    padding: 0 var(--gutter);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-pad) 0;
    position: relative;
}

.section-inner::before {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    margin-bottom: 44px;
    opacity: 0.4;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
    animation: sectionLine 5s ease-in-out infinite;
}

@keyframes sectionLine {
    0%, 100% { width: 48px; opacity: 0.4; }
    50% { width: 64px; opacity: 0.55; }
}

.section-label {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.65em;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 18px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 900;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 22px;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 1.05em;
    color: var(--white-dim);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.section-divider {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border-glow) 50%, var(--border) 85%, transparent);
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.02);
}

/* ================================================================
   FEATURE CARDS
   ================================================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.feature-card {
    position: relative;
    padding: 36px 28px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    contain: layout style;
}

.feature-card .card-glow {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Electric edge effect — runs around border on hover */
.feature-card .card-electric {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.feature-card .card-electric::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: conic-gradient(from var(--electric-angle, 0deg), transparent 0%, var(--cyan) 10%, transparent 20%, var(--cyan) 35%, transparent 50%, var(--cyan) 65%, transparent 80%, var(--cyan) 92%, transparent 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
    animation: electricSpin 3s linear infinite;
    filter: blur(0.5px);
}

@keyframes electricSpin {
    to { --electric-angle: 360deg; }
}

@property --electric-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Inner glow wash on hover */
.feature-card .card-electric::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card::before,
.feature-card::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card::before {
    top: 12px; left: 12px;
    border-top: 1px solid var(--cyan);
    border-left: 1px solid var(--cyan);
}

.feature-card::after {
    bottom: 12px; right: 12px;
    border-bottom: 1px solid var(--cyan);
    border-right: 1px solid var(--cyan);
}

.feature-card:hover {
    border-color: transparent;
    background: var(--surface-raised);
    transform: translateY(-8px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 240, 255, 0.06),
        inset 0 0 40px rgba(0, 240, 255, 0.015);
}

.feature-card:hover .card-electric { opacity: 1; }
.feature-card:hover .card-electric::after { opacity: 1; }
.feature-card:hover::before,
.feature-card:hover::after { opacity: 0.3; }
.feature-card:hover .card-glow { opacity: 1; }

/* Card 2: magenta electric */
.feature-card:nth-child(2) .card-electric::before {
    background: conic-gradient(from var(--electric-angle, 0deg), transparent 0%, var(--magenta) 10%, transparent 20%, var(--magenta) 35%, transparent 50%, var(--magenta) 65%, transparent 80%, var(--magenta) 92%, transparent 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
}
.feature-card:nth-child(2) .card-electric::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 0, 102, 0.06) 0%, transparent 60%);
}
.feature-card:nth-child(2):hover {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 0, 102, 0.06),
        inset 0 0 40px rgba(255, 0, 102, 0.015);
}

.feature-card:nth-child(2)::before { border-color: var(--magenta); }
.feature-card:nth-child(2)::after { border-color: var(--magenta); }
.feature-card:nth-child(2) .card-glow { background: linear-gradient(90deg, transparent, var(--magenta), transparent); }

/* Card 3: acid electric */
.feature-card:nth-child(3) .card-electric::before {
    background: conic-gradient(from var(--electric-angle, 0deg), transparent 0%, var(--acid) 10%, transparent 20%, var(--acid) 35%, transparent 50%, var(--acid) 65%, transparent 80%, var(--acid) 92%, transparent 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
}
.feature-card:nth-child(3) .card-electric::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 65, 0.06) 0%, transparent 60%);
}
.feature-card:nth-child(3):hover {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 255, 65, 0.06),
        inset 0 0 40px rgba(0, 255, 65, 0.015);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2em;
    margin-bottom: 18px;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.07);
    color: var(--cyan);
}

.feature-card:nth-child(2) .feature-icon {
    background: rgba(255, 0, 102, 0.04);
    border-color: rgba(255, 0, 102, 0.07);
    color: var(--magenta);
}

.feature-card:nth-child(3) .feature-icon {
    background: rgba(0, 255, 65, 0.04);
    border-color: rgba(0, 255, 65, 0.07);
    color: var(--acid);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.feature-text {
    font-size: 0.88em;
    color: var(--white-dim);
    line-height: 1.75;
}

.feature-tag {
    display: inline-block;
    margin-top: 18px;
    padding: 4px 14px;
    font-family: var(--font-accent);
    font-size: 0.62em;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan-dim);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 100px;
    background: rgba(0, 240, 255, 0.02);
}

.feature-card:nth-child(2) .feature-tag {
    color: var(--magenta-dim);
    border-color: rgba(255, 0, 102, 0.1);
    background: rgba(255, 0, 102, 0.02);
}

.feature-card:nth-child(3) .feature-tag {
    color: var(--acid-dim);
    border-color: rgba(0, 255, 65, 0.1);
    background: rgba(0, 255, 65, 0.02);
}

/* ================================================================
   STATS RIBBON
   ================================================================ */

.stats-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 56px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
}

.stat-cell {
    padding: 36px 20px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.stat-cell + .stat-cell::before {
    content: '';
    position: absolute;
    top: 20%; left: 0;
    height: 60%; width: 1px;
    background: var(--border);
}

.stat-cell:hover {
    background: var(--surface-raised);
}

.stat-cell:hover .stat-value {
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.3em;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.08);
}

.stat-value .unit {
    font-size: 0.5em;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 2px;
    margin-left: 2px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.62em;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--white-muted);
}

/* ================================================================
   QUANTUM SHIELD
   ================================================================ */

.shield-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-top: 56px;
}

.shield-visual {
    position: relative;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
}

.shield-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0px, transparent 50px, rgba(0,240,255,0.012) 50px, transparent 51px),
        repeating-linear-gradient(0deg, transparent 0px, transparent 50px, rgba(0,240,255,0.012) 50px, transparent 51px);
    animation: circuitShift 25s linear infinite;
}

@keyframes circuitShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.shield-algo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    transition: all 0.4s ease;
}

.shield-algo:hover {
    border-color: rgba(0, 240, 255, 0.15);
    background: rgba(0, 240, 255, 0.02);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.04), inset 0 0 20px rgba(0, 240, 255, 0.01);
    transform: translateX(4px);
}

.shield-algo:last-child { margin-bottom: 0; }

.shield-algo-badge {
    flex-shrink: 0;
    padding: 5px 12px;
    font-family: var(--font-mono);
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 6px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
    color: var(--cyan);
}

.shield-algo:nth-child(2) .shield-algo-badge {
    background: rgba(168, 85, 247, 0.05);
    border-color: rgba(168, 85, 247, 0.12);
    color: var(--purple);
}

.shield-algo:nth-child(3) .shield-algo-badge {
    background: rgba(255, 106, 0, 0.05);
    border-color: rgba(255, 106, 0, 0.12);
    color: var(--orange);
}

.shield-algo-info { flex: 1; }

.shield-algo-info h3 {
    font-family: var(--font-body);
    font-size: 0.9em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.shield-algo-info p {
    font-size: 0.76em;
    color: var(--white-muted);
    line-height: 1.5;
}

.shield-algo-status {
    margin-left: auto;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.62em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.shield-algo-status.safe { color: var(--acid); }
.shield-algo-status.nist { color: var(--cyan); }

.shield-text h3 {
    font-family: var(--font-display);
    font-size: 1.6em;
    font-weight: 900;
    color: #fff;
    margin-bottom: 22px;
    line-height: 1.2;
}

.shield-text p {
    font-size: 0.93em;
    color: var(--white-dim);
    line-height: 1.8;
    margin-bottom: 14px;
}

.shield-text p:last-child { margin-bottom: 0; }

.shield-text .highlight {
    color: var(--cyan);
    font-weight: 600;
}

/* ================================================================
   GRAVEYARD TABLE
   ================================================================ */

.graveyard-table-wrap {
    margin-top: 48px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
}

.graveyard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.82em;
}

.graveyard-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-family: var(--font-accent);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white-dim);
    background: var(--void-soft);
    border-bottom: 1px solid var(--border);
    font-size: 0.82em;
}

.graveyard-table thead th:last-child {
    color: var(--cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.graveyard-table tbody td {
    padding: 12px 18px;
    color: var(--white-dim);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.graveyard-table tbody tr:last-child td { border-bottom: none; }
.graveyard-table tbody tr:hover td {
    background: rgba(0, 240, 255, 0.015);
    transition: background 0.3s ease;
}

.graveyard-table .dead {
    color: var(--magenta);
    text-shadow: 0 0 8px rgba(255, 0, 102, 0.15);
}
.graveyard-table .safe {
    color: var(--acid);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.15);
}

.graveyard-table .synx-col {
    background: rgba(0, 240, 255, 0.03);
    border-left: 1px solid rgba(0, 240, 255, 0.08);
    color: var(--acid);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

/* ================================================================
   QUANTUM READINESS COMPARISON TABLE
   ================================================================ */

.quantum-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 48px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.quantum-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82em;
}

.quantum-table thead th {
    font-family: var(--font-mono);
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white-dim);
    padding: 18px 20px;
    background: var(--surface);
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.quantum-table thead th:last-child {
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.quantum-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--white-dim);
    vertical-align: middle;
}

.quantum-table tbody td:first-child {
    font-weight: 600;
    color: var(--white-dim);
    white-space: nowrap;
}

.quantum-table tbody tr:last-child td { border-bottom: none; }

.quantum-table tbody tr:hover td {
    background: rgba(0, 240, 255, 0.02);
}

.quantum-table .dim {
    font-size: 0.85em;
    color: var(--white-muted);
}

.quantum-table .dead {
    color: #ff0033;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 0, 51, 0.2);
}

.quantum-table .safe {
    color: var(--acid);
    font-weight: 700;
}

.quantum-table .synx-col {
    background: rgba(0, 240, 255, 0.04);
    border-left: 1px solid rgba(0, 240, 255, 0.1);
}

.quantum-table thead th.synx-col {
    background: rgba(0, 240, 255, 0.06);
    border-left: 1px solid rgba(0, 240, 255, 0.1);
}

/* ================================================================
   TERMINAL TEASER
   ================================================================ */

.terminal-section { margin-top: 48px; }

.terminal-window {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--void-deep);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(0, 240, 255, 0.03), 0 0 0 1px rgba(0, 240, 255, 0.04);
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.terminal-window:hover {
    border-color: rgba(0, 240, 255, 0.12);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 240, 255, 0.06), 0 0 0 1px rgba(0, 240, 255, 0.08);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

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

.terminal-dot.r { background: #ff5f57; opacity: 0.7; }
.terminal-dot.y { background: #ffbd2e; opacity: 0.7; }
.terminal-dot.g { background: #28ca41; opacity: 0.7; }

.terminal-bar-title {
    font-family: var(--font-mono);
    font-size: 0.68em;
    color: var(--white-muted);
    margin-left: 8px;
    letter-spacing: 1.5px;
}

.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.78em;
    line-height: 1.85;
    color: var(--acid);
    max-height: 340px;
    overflow: hidden;
    position: relative;
    white-space: pre;
}

.terminal-body::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--void-deep));
    pointer-events: none;
}

.terminal-body .prompt { color: var(--magenta); }
.terminal-body .cmd { color: #fff; }
.terminal-body .dim { color: var(--white-muted); }
.terminal-body .w { color: #fff; font-weight: 600; }

.terminal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.78em;
    color: var(--cyan);
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.terminal-link:hover {
    color: #fff;
    letter-spacing: 2.5px;
}

/* ================================================================
   MANIFESTO
   ================================================================ */

.manifesto {
    text-align: center;
    padding: var(--section-pad) var(--gutter);
    position: relative;
    z-index: 2;
}

.manifesto-heading {
    font-family: var(--font-accent);
    font-size: 0.65em;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 32px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.manifesto-inner {
    max-width: 760px;
    margin: 0 auto;
}

.manifesto blockquote {
    font-family: var(--font-body);
    font-size: clamp(1.3rem, 2.8vw, 2.1rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.5;
    color: var(--white-soft);
    margin-bottom: 22px;
    position: relative;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.06);
}

.manifesto blockquote::before {
    content: '\201C';
    position: absolute;
    top: -25px;
    left: -16px;
    font-size: 4.5em;
    color: var(--cyan);
    opacity: 0.08;
    font-family: Georgia, serif;
    line-height: 1;
    animation: quoteGlow 6s ease-in-out infinite;
}

@keyframes quoteGlow {
    0%, 100% { opacity: 0.08; text-shadow: none; }
    50% { opacity: 0.14; text-shadow: 0 0 30px rgba(0, 240, 255, 0.15); }
}

.manifesto cite {
    font-family: var(--font-accent);
    font-style: normal;
    font-size: 0.7em;
    color: var(--white-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.rutkowska-attr {
    color: var(--white-muted);
    font-size: 0.85em;
}

.manifesto-divider {
    width: 32px;
    height: 1px;
    background: var(--magenta);
    margin: 28px auto;
    opacity: 0.25;
    box-shadow: 0 0 12px rgba(255, 0, 102, 0.15);
    animation: dividerPulse 4s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { width: 32px; opacity: 0.25; }
    50% { width: 44px; opacity: 0.4; }
}

/* ================================================================
   DOWNLOAD CTA
   ================================================================ */

.cta-section {
    text-align: center;
    position: relative;
    z-index: 2;
    padding-bottom: 0;
}

.cta-section .section-inner {
    padding-bottom: var(--section-pad);
}

.cta-inner { text-align: center; }

.cta-section .section-inner::before {
    margin: 0 auto 40px;
    background: linear-gradient(90deg, transparent, var(--magenta), transparent);
    width: 60px;
}

.cta-headline {
    font-family: 'Orbitron', var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -1px;
    text-shadow: 0 0 60px rgba(0, 240, 255, 0.15);
}

.cta-sub {
    font-size: 1em;
    color: var(--white-dim);
    max-width: 460px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.btn-download {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 32px 80px;
    font-family: var(--font-display);
    font-size: 1.3em;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--void);
    background: linear-gradient(135deg, var(--cyan), #00d4e6, var(--purple));
    background-size: 200% 200%;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2), 0 0 70px rgba(0, 240, 255, 0.06);
    animation: ctaGlow 5s ease-in-out infinite;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}

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

@keyframes ctaGlow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 0 25px rgba(0, 240, 255, 0.2), 0 0 70px rgba(0, 240, 255, 0.06);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 35px rgba(168, 85, 247, 0.25), 0 0 90px rgba(168, 85, 247, 0.06);
    }
}

.btn-download:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.35), 0 0 120px rgba(0, 240, 255, 0.1);
    color: var(--void);
    text-shadow: none;
}

.cta-platforms {
    margin-top: 28px;
    font-family: var(--font-mono);
    font-size: 1.1em;
    color: var(--white-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ================================================================
   FOOTER (Premium multi-column)
   ================================================================ */

.home-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
    padding: 0 var(--gutter);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand-col { max-width: 280px; }

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer-brand-link img {
    width: 36px;
    height: 32px;
    object-fit: contain;
    opacity: 0.6;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.2));
    transition: all 0.3s;
}

.footer-brand-link:hover img { opacity: 0.85; filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.4)); }

.footer-brand-name {
    font-family: var(--font-militech);
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--white-muted);
    transition: color 0.3s;
}

.footer-brand-link:hover .footer-brand-name { color: var(--white-dim); }

.footer-tagline {
    font-size: 0.82em;
    color: var(--white-muted);
    line-height: 1.6;
    font-style: italic;
}

.footer-nav-col {
    display: flex;
    gap: 56px;
}

.footer-nav-group { display: flex; flex-direction: column; gap: 10px; }

.footer-nav-label {
    font-family: var(--font-mono);
    font-size: 0.6em;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white-dim);
    margin-bottom: 4px;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 0.72em;
    color: var(--white-muted);
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-link:hover { color: var(--cyan); text-shadow: none; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.62em;
    color: var(--white-muted);
    letter-spacing: 1.5px;
}

.footer-nist {
    font-family: var(--font-mono);
    font-size: 0.6em;
    color: var(--cyan-dim);
    letter-spacing: 2px;
}

.footer-genesis {
    font-family: var(--font-mono);
    font-size: 0.6em;
    color: var(--white-muted);
    letter-spacing: 1.5px;
}

/* ================================================================
   AMBIENT SCANLINES (subtle CRT depth)
   ================================================================ */

body.home::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.015) 2px,
        rgba(0, 0, 0, 0.015) 4px
    );
    pointer-events: none;
    z-index: 9998;
}

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

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .shield-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-nav-col { gap: 36px; }
}

@media (max-width: 768px) {
    :root {
        --section-pad: clamp(60px, 10vh, 100px);
    }

    /* Nav: hide desktop links, show hamburger */
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav { height: 64px; padding: 0 16px; }
    .nav.scrolled { height: 56px; }
    .nav-logo img { width: 48px; height: 48px; }
    .nav-logo-text { font-size: 1.05em; letter-spacing: 4px; }
    .nav-logo { gap: 10px; }

    /* Hero */
    .hero { padding: 80px 16px 60px; min-height: 92vh; }
    .hero-headline { font-size: clamp(2.2rem, 8vw, 3.8rem); letter-spacing: -1px; margin-bottom: 24px; }
    .hero-sub { font-size: 0.95em; margin-bottom: 36px; }
    .hero-ctas { flex-direction: column; align-items: center; gap: 14px; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; max-width: 320px; padding: 14px 32px; font-size: 0.78em; }
    .hero-scroll { bottom: 24px; }
    .hero-badge { font-size: 0.55em; padding: 6px 16px; margin-bottom: 28px; }

    /* Features */
    .features-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
    .feature-card { padding: 28px 22px 26px; }
    .feature-card:hover { transform: none; }
    .feature-title { font-size: 1em; }
    .feature-text { font-size: 0.84em; }

    /* Stats */
    .stats-ribbon { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
    .stat-cell { padding: 24px 14px; }
    .stat-cell + .stat-cell:nth-child(3)::before { display: none; }
    .stat-value { font-size: 1.8em; }
    .stat-label { font-size: 0.56em; letter-spacing: 2px; }

    /* Shield */
    .shield-grid { gap: 28px; }
    .shield-visual { display: none; }
    .shield-algo { padding: 14px 14px; }
    .shield-algo:hover { transform: none; }

    /* Graveyard */
    .graveyard-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
    .graveyard-table { min-width: 580px; }
    .graveyard-table th, .graveyard-table td { padding: 10px 10px; font-size: 0.68em; }

    /* Quantum Readiness */
    .quantum-table-wrap { margin: 36px -16px 0; padding: 0 16px; }
    .quantum-table { min-width: 620px; }
    .quantum-table th, .quantum-table td { padding: 10px 12px; font-size: 0.7em; }

    /* Terminal */
    .terminal-body { font-size: 0.68em; padding: 16px; max-height: 260px; }
    .terminal-bar { padding: 10px 14px; }

    /* Manifesto */
    .manifesto blockquote { font-size: clamp(1.1rem, 4vw, 1.6rem); }
    .manifesto blockquote::before { font-size: 3em; left: 0; top: -18px; }
    .manifesto cite { font-size: 0.6em; }

    /* CTA */
    .cta-headline { font-size: clamp(1.8rem, 6vw, 2.8rem); }
    .cta-sub { font-size: 0.9em; margin-bottom: 36px; }
    .btn-download { padding: 16px 36px; font-size: 0.8em; letter-spacing: 2px; width: 100%; max-width: 320px; justify-content: center; }
    .cta-platforms { font-size: 0.58em; letter-spacing: 2px; }

    /* Footer */
    .footer-top { flex-direction: column; gap: 32px; padding: 36px 0 32px; }
    .footer-brand-col { max-width: 100%; }
    .footer-nav-col { flex-wrap: wrap; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; padding: 18px 0; }
    .footer-copy, .footer-nist, .footer-genesis { font-size: 0.56em; }

    /* Section common */
    .section-title { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
    .section-desc { font-size: 0.92em; }
    .section-label { font-size: 0.58em; letter-spacing: 3.5px; }

    /* Kill heavy ambient layers on mobile — saves GPU paint + improves LCP/Speed Index */
    .tiger-glow { display: none; }
    .hero-circuits { display: none; }
    #matrix-rain { display: none; }
    .scanlines { display: none; }
    .grid-pattern { display: none; }
    .light-leak { width: 300px !important; height: 300px !important; filter: blur(25px); animation: none !important; transition: none !important; }

    /* Disable heavy hover animations on touch */
    .card-electric { display: none; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: clamp(1.8rem, 9vw, 2.6rem); }
    .hero-sub { font-size: 0.88em; }
    .stats-ribbon { grid-template-columns: 1fr 1fr; border-radius: 12px; }
    .stat-cell { padding: 20px 10px; }
    .stat-cell + .stat-cell::before { display: none; }
    .stat-value { font-size: 1.5em; }
    .feature-card { padding: 22px 18px 22px; border-radius: 12px; }
    .section-inner { padding: clamp(48px, 8vh, 80px) 0; }
    .section-inner::before { margin-bottom: 28px; }
    .cta-headline { font-size: clamp(1.5rem, 7vw, 2.2rem); }
    .footer-nav-col { gap: 20px; }
    .footer-nav-group { gap: 8px; }
    .terminal-body { max-height: 200px; font-size: 0.6em; }
    .graveyard-table { min-width: 520px; }
    .quantum-table { min-width: 560px; }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger > .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-up:nth-child(3) { transition-delay: 0.2s; }
.stagger > .fade-up:nth-child(4) { transition-delay: 0.3s; }