/* ═══════════════════════════════════════════════════════════
   RESONIX — Forensic Audio Evidence Platform
   Complete stylesheet with 3D text, portal
   ═══════════════════════════════════════════════════════════ */

/* ═══════════ CSS VARIABLES ═══════════ */
:root {
    /* Palette — Crimson / Titanium / Void */
    --bg-primary: #070204;
    --bg-secondary: #0d0608;
    --bg-card: rgba(13, 6, 8, 0.75);
    --accent-cyan: #DC143C;
    --accent-purple: #FF4D6A;
    --accent-gradient: linear-gradient(135deg, #DC143C, #FF4D6A);
    --accent-cyan-dim: rgba(220, 20, 60, 0.08);
    --text-primary: #E2E8F0;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(220, 20, 60, 0.25);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Spacing */
    --container-width: 1200px;
    --section-pad: clamp(80px, 10vh, 140px);

    /* Shadows */
    --shadow-glow-cyan: 0 0 20px rgba(220, 20, 60, 0.2), 0 0 60px rgba(220, 20, 60, 0.06);
    --shadow-glow-purple: 0 0 20px rgba(255, 77, 106, 0.15), 0 0 60px rgba(255, 77, 106, 0.05);

    /* Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --t-fast: 0.2s;

    /* Z-index layers */
    --z-cursor: 10001;
    --z-preloader: 10000;
    --z-mobile-menu: 9000;
    --z-nav: 8000;
    --z-scroll-progress: 7000;
    --z-overlay: 6000;

    /* 3D Chrome gradient — Titanium + Crimson */
    --chrome-gradient: linear-gradient(135deg,
            #6B7280 0%,
            #9CA3AF 12%,
            #E2E8F0 28%,
            #FFFFFF 38%,
            #DC143C 50%,
            #FFFFFF 62%,
            #E2E8F0 72%,
            #9CA3AF 88%,
            #6B7280 100%);
}

/* === 3D TEXT EFFECTS === */
.three-d-text {
    color: #fff;
    text-shadow:
        0 2px 4px #070204,
        0 4px 8px #8B0A1E,
        0 8px 16px #DC143C,
        0 16px 32px #FF4D6A,
        0 1px 0 #E2E8F0,
        0 0 2px #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
    perspective: 400px;
    /* Optional: 3D tilt on hover */
    transition: transform 0.4s cubic-bezier(.25, .8, .25, 1), text-shadow 0.4s cubic-bezier(.25, .8, .25, 1);
}

.three-d-text:hover {
    transform: rotateX(12deg) rotateY(-8deg) scale(1.04);
    text-shadow:
        0 4px 12px #070204,
        0 8px 24px #8B0A1E,
        0 16px 32px #DC143C,
        0 24px 48px #FF4D6A,
        0 2px 0 #E2E8F0,
        0 0 4px #fff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   ECLIPSE GLOW BORDER SYSTEM
   Lightweight sliding glow — a thin bar sweeps
   across the border edge. Far less GPU load than
   the 99999px conic-gradient approach.
   
   ::before = eclipse glow slider (z: -2)
   ::after  = inner fill covers center (z: -1)
   Content sits at z: 1 via .glow-border > *
   ═══════════════════════════════════════════════ */
.glow-border {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* ═══════════════════════════════════════════════
   BORDER GLOW SWEEP (for cards/shapes)
   Uses animated box-shadow — the glow sweeps
   around the border WITHOUT interfering with
   card content. Much simpler than pseudo-elements.
   ═══════════════════════════════════════════════ */
.border-glow-sweep {
    position: relative;
    animation: borderSweep var(--sweep-speed, 4s) linear infinite;
}

@keyframes borderSweep {
    0% {
        box-shadow: inset 2px 0 8px rgba(220, 20, 60, 0.5), -2px 0 12px rgba(220, 20, 60, 0.15);
    }

    25% {
        box-shadow: inset 0 2px 8px rgba(220, 20, 60, 0.5), 0 -2px 12px rgba(220, 20, 60, 0.15);
    }

    50% {
        box-shadow: inset -2px 0 8px rgba(220, 20, 60, 0.5), 2px 0 12px rgba(220, 20, 60, 0.15);
    }

    75% {
        box-shadow: inset 0 -2px 8px rgba(220, 20, 60, 0.5), 0 2px 12px rgba(220, 20, 60, 0.15);
    }

    100% {
        box-shadow: inset 2px 0 8px rgba(220, 20, 60, 0.5), -2px 0 12px rgba(220, 20, 60, 0.15);
    }
}

/* Speed variants */
.border-glow-sweep--slow {
    --sweep-speed: 8s;
}

.border-glow-sweep--fast {
    --sweep-speed: 2.5s;
}

/* Color variants */
.border-glow-sweep--cyan {
    animation-name: borderSweepCyan;
}

@keyframes borderSweepCyan {
    0% {
        box-shadow: inset 2px 0 8px rgba(0, 200, 255, 0.4), -2px 0 12px rgba(0, 200, 255, 0.1);
    }

    25% {
        box-shadow: inset 0 2px 8px rgba(0, 200, 255, 0.4), 0 -2px 12px rgba(0, 200, 255, 0.1);
    }

    50% {
        box-shadow: inset -2px 0 8px rgba(0, 200, 255, 0.4), 2px 0 12px rgba(0, 200, 255, 0.1);
    }

    75% {
        box-shadow: inset 0 -2px 8px rgba(0, 200, 255, 0.4), 0 2px 12px rgba(0, 200, 255, 0.1);
    }

    100% {
        box-shadow: inset 2px 0 8px rgba(0, 200, 255, 0.4), -2px 0 12px rgba(0, 200, 255, 0.1);
    }
}

.border-glow-sweep--mixed {
    animation-name: borderSweepMixed;
}

@keyframes borderSweepMixed {
    0% {
        box-shadow: inset 2px 0 8px rgba(220, 20, 60, 0.4), -2px 0 12px rgba(220, 20, 60, 0.1);
    }

    25% {
        box-shadow: inset 0 2px 8px rgba(0, 200, 255, 0.4), 0 -2px 12px rgba(0, 200, 255, 0.1);
    }

    50% {
        box-shadow: inset -2px 0 8px rgba(220, 20, 60, 0.4), 2px 0 12px rgba(220, 20, 60, 0.1);
    }

    75% {
        box-shadow: inset 0 -2px 8px rgba(0, 200, 255, 0.4), 0 2px 12px rgba(0, 200, 255, 0.1);
    }

    100% {
        box-shadow: inset 2px 0 8px rgba(220, 20, 60, 0.4), -2px 0 12px rgba(220, 20, 60, 0.1);
    }
}

/* Eclipse sweep — slides left-to-right behind everything */
.glow-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(220, 20, 60, 0.6);
    filter: blur(2px);
    animation: eclipseSlide 4s linear infinite;
    z-index: -2;
    pointer-events: none;
}

/* Inner fill — covers the interior, leaving only the 2px border edge visible */
.glow-border::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: var(--glow-fill, var(--bg-card, #0d0d15));
    border-radius: inherit;
    pointer-events: none;
}

/* All direct children above the glow layers */
.glow-border>* {
    position: relative;
    z-index: 1;
}

/* Blur companion — soft outer glow (place as sibling or use --glow class) */
.glow-border-blur {
    position: absolute;
    inset: -4px;
    overflow: hidden;
    z-index: -1;
    border-radius: inherit;
    filter: blur(12px);
    opacity: 0.5;
    pointer-events: none;
}

.glow-border-blur::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(220, 20, 60, 0.5);
    animation: eclipseSlide 4s linear infinite;
}

@keyframes eclipseSlide {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(110%);
    }
}

/* ── Speed & color variants ── */
.glow-border--slow::before {
    animation-duration: 7s;
}

.glow-border--fast::before {
    animation-duration: 2.5s;
}

.glow-border--subtle::before {
    background: rgba(220, 20, 60, 0.3);
    animation-duration: 6s;
}

.glow-border--cyan::before {
    background: rgba(0, 200, 255, 0.5);
    animation-duration: 5s;
}

.glow-border--mixed::before {
    background: linear-gradient(90deg, rgba(220, 20, 60, 0.5), rgba(0, 200, 255, 0.4));
    animation-duration: 6s;
}

/* ═══════════════════════════════════════════════
   CSS-ONLY ARC REACTOR (Crimson Theme)
   Replaces canvas — pure CSS concentric rings
   ═══════════════════════════════════════════════ */
.arc-reactor {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 30px 8px rgba(220, 20, 60, 0.15),
        inset 0 0 30px 8px rgba(220, 20, 60, 0.1);
}

.arc-reactor__case {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
}

.arc-reactor__ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.arc-reactor__ring--outer {
    inset: 0;
    border-color: rgba(220, 20, 60, 0.4);
    border-style: dashed;
    animation: arcSpin 12s linear infinite;
}

.arc-reactor__ring--mid {
    inset: 15%;
    border-width: 1.5px;
    border-color: rgba(220, 20, 60, 0.6);
    border-style: dotted;
    animation: arcSpin 8s linear infinite reverse;
}

.arc-reactor__ring--inner {
    inset: 30%;
    border-width: 2px;
    border-top-color: rgba(220, 20, 60, 0.8);
    border-right-color: rgba(220, 20, 60, 0.3);
    border-bottom-color: rgba(220, 20, 60, 0.8);
    border-left-color: rgba(220, 20, 60, 0.3);
    animation: arcSpin 5s linear infinite;
    box-shadow: 0 0 8px rgba(220, 20, 60, 0.3),
        inset 0 0 8px rgba(220, 20, 60, 0.2);
}

.arc-reactor__core {
    position: absolute;
    inset: 38%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.6) 0%, rgba(220, 20, 60, 0.2) 50%, transparent 70%);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.5),
        0 0 40px rgba(220, 20, 60, 0.2);
    animation: arcPulse 2s ease-in-out infinite;
}

.arc-reactor__core::after {
    content: '';
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.9);
    box-shadow: 0 0 12px rgba(220, 20, 60, 0.8);
}

/* Tick marks ring */
.arc-reactor__marks {
    position: absolute;
    inset: 5%;
    border-radius: 50%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.arc-reactor__marks li {
    display: block;
    width: 2px;
    height: 6px;
    background: rgba(220, 20, 60, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    animation: arcTickPulse 3s ease-in-out infinite;
}

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

@keyframes arcPulse {

    0%,
    100% {
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(220, 20, 60, 0.5), 0 0 40px rgba(220, 20, 60, 0.2);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 30px rgba(220, 20, 60, 0.7), 0 0 60px rgba(220, 20, 60, 0.3);
    }
}

@keyframes arcTickPulse {

    0%,
    100% {
        background: rgba(220, 20, 60, 0.5);
    }

    50% {
        background: rgba(220, 20, 60, 0.9);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

img,
svg {
    display: block;
    max-width: 100%;
}

code {
    font-family: var(--font-mono);
}

::selection {
    background: rgba(220, 20, 60, 0.2);
    color: var(--text-primary);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* ═══════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.preloader__logo {
    width: 60px;
    height: 60px;
}

.preloader__text {
    font-family: var(--font-display);
    font-size: clamp(16px, 2.5vw, 24px);
    letter-spacing: 0.4em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(10px);
}

.preloader__bar {
    width: 200px;
    height: 2px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
}

.preloader__progress {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.preloader__counter {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════
   CUSTOM CURSOR — 3D Crimson Arrow Pointer
   ═══════════════════════════════════════════════ */
.cursor {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-cursor);
    pointer-events: none;
}

@media (pointer: fine) {
    .cursor {
        display: block;
    }

    html,
    body {
        cursor: none !important;
    }

    a,
    button,
    [data-magnetic],
    input,
    label,
    .upload-dropzone,
    .resonix-letter {
        cursor: none !important;
    }
}

/* ── 3D Arrow container ── */
.cursor__arrow {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 40px;
    will-change: transform;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(220, 20, 60, 0.35));
    transition: filter 0.3s ease;
}

/* SVG with 3D perspective tilt */
.cursor__svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: perspective(400px) rotateX(8deg) rotateY(-10deg);
    transform-origin: 1px 0;
}

/* ── Glow halo around tip ── */
.cursor__glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.12) 0%, transparent 70%);
    will-change: transform;
    pointer-events: none;
}

/* ═══ Hover — lock-on state ═══ */
.cursor--active .cursor__arrow {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 25px rgba(220, 20, 60, 0.6));
}

.cursor--active .cursor__svg {
    transform: perspective(400px) rotateX(5deg) rotateY(-8deg) scale(1.08);
}

.cursor--active .cursor__glow {
    width: 64px;
    height: 64px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.2) 0%, transparent 70%);
}

/* ═══ Hidden state ═══ */
.cursor--hidden .cursor__arrow,
.cursor--hidden .cursor__glow {
    opacity: 0;
    transition: opacity 0.3s;
}

/* ═══════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-gradient);
    z-index: var(--z-scroll-progress);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.4);
    transition: width 0.05s linear;
}

/* ═══════════════════════════════════════════════
   OVERLAYS
   ═══════════════════════════════════════════════ */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px;
}

.scanline-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
}

#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: 20px 0;
    transition: all 0.4s var(--ease-smooth);
}

.nav--scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-subtle);
}

.nav__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__logo-svg {
    width: 28px;
    height: 28px;
    transition: transform 0.4s var(--ease-out-expo);
}

.nav__logo:hover .nav__logo-svg {
    transform: rotate(15deg) scale(1.1);
}

.nav__logo-text {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav__link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    padding: 8px 0;
    position: relative;
    transition: color var(--t-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent-gradient);
    transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover {
    color: var(--text-primary);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 20px;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    transition: all var(--t-fast);
}

.nav__cta:hover {
    background: var(--accent-cyan-dim);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
}

.nav__toggle--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle--active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__toggle--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-mobile-menu);
    background: rgba(5, 5, 16, 0.97);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.mobile-menu--open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu__links a {
    font-family: var(--font-display);
    font-size: clamp(20px, 5vw, 32px);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    transition: color var(--t-fast);
}

.mobile-menu__links a:hover {
    color: var(--accent-cyan);
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.btn__text {
    position: relative;
    z-index: 2;
}

.btn--primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
}

.btn__glow {
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    filter: blur(16px);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.btn--primary:hover .btn__glow {
    opacity: 0.5;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.3);
}

.btn--outline {
    border: 1px solid var(--border-glow);
    color: var(--accent-cyan);
}

.btn--outline:hover {
    background: var(--accent-cyan-dim);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 12px;
}

/* ═══════════════════════════════════════════════
   HERO PORTAL SCENE
   ═══════════════════════════════════════════════ */
.hero-scene {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 10;
    overflow: hidden;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.hero-scene__sticky {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Background effects */
.hero-scene__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-scene__grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(220, 20, 60, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 20, 60, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(35deg);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}

/* ── HERO SCENE RINGS — Mech-ring concentric style ── */
.hero-scene__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed;
    border-radius: 50%;
    opacity: 0.15;
}

.hero-scene__ring--1 {
    width: 420px;
    height: 420px;
    border-color: rgba(220, 20, 60, 0.5);
    border-width: 1.5px;
    animation: mechRingSpin 45s linear infinite;
    filter: drop-shadow(0 0 6px rgba(220, 20, 60, 0.3));
}

.hero-scene__ring--2 {
    width: 620px;
    height: 620px;
    border-color: rgba(220, 20, 60, 0.3);
    border-style: dashed;
    animation: mechRingSpin 60s linear infinite reverse;
    filter: drop-shadow(0 0 4px rgba(220, 20, 60, 0.2));
}

.hero-scene__ring--3 {
    width: 260px;
    height: 260px;
    border-color: rgba(220, 20, 60, 0.6);
    border-width: 2px;
    border-style: dotted;
    animation: mechRingSpin 30s linear infinite;
    filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.4));
}

@keyframes mechRingSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-scene__ambient {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}

.hero-scene__ambient--cyan {
    top: 20%;
    left: 15%;
    background: var(--accent-cyan);
}

.hero-scene__ambient--purple {
    bottom: 20%;
    right: 15%;
    background: var(--accent-purple);
}

/* ═══════════════════════════════════════════════
   3D MECHA LETTERS — True 3D Transformer Cubes
   Each letter is a CSS 3D box with 6 faces:
   front (chrome text), back, top, bottom, left, right
   Side faces = dark metallic armor panels with crimson seams
   ═══════════════════════════════════════════════ */
.resonix-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    z-index: 20;
    perspective: 1200px;
    will-change: perspective;
}

.resonix-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(-5deg);
}

/* Letter container — 3D cube host */
.resonix-letter {
    display: inline-block;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    --mecha-d: clamp(24px, 3.5vw, 50px);
    filter: drop-shadow(0 8px 25px rgba(220, 20, 60, 0.4)) drop-shadow(0 0 60px rgba(220, 20, 60, 0.15));
    transition: filter 0.3s;
}



/* ── FRONT FACE — Chrome gradient letter with enhanced 3D ── */
.mecha-face--front {
    display: inline-block;
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(56px, 12vw, 140px);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0 3px;
    background: var(--chrome-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chromeShift 8s ease infinite;
    transform: translateZ(calc(var(--mecha-d) / 2));
    backface-visibility: hidden;
    /* Enhanced 3D: text-stroke for readable edges */
    -webkit-text-stroke: 0.5px rgba(220, 20, 60, 0.3);
}

/* Subtle glow echo behind front text */
.mecha-face--front::before {
    content: attr(data-char);
    position: absolute;
    inset: 0;
    padding: 0 3px;
    background: linear-gradient(180deg, rgba(220, 20, 60, 0.3), rgba(255, 77, 106, 0.15));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateZ(-3px);
    filter: blur(4px);
    z-index: -1;
}

/* Portal O — no Z-offset (avoids depth scaling at 18x) */
.resonix-letter--portal .mecha-face--front {
    transform: translateZ(0);
    /* Square slot so reactor canvas is a perfect circle */
    min-width: 1.05em;
    min-height: 1em;
    background: none;
    -webkit-text-fill-color: transparent;
}

.resonix-letter--portal .mecha-face--front::before {
    display: none;
}

.resonix-letter--portal {
    overflow: visible;
}

/* ── BACK FACE — Dark armor panel ── */
.mecha-face--back {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--mecha-w, 100%);
    height: var(--mecha-h, 100%);
    background: linear-gradient(135deg, #0d0306 0%, #1a0810 50%, #080204 100%);
    border: 1px solid rgba(220, 20, 60, 0.1);
    transform: translateZ(calc(var(--mecha-d) / -2)) rotateY(180deg);
    backface-visibility: hidden;
}

/* ── SIDE PANELS — Enhanced metallic armor with visible depth ── */
/* Brighter edges + bevel highlights make 3D clearly readable */
/* Side panels — enhanced with animated border glow */
.mecha-face--top,
.mecha-face--bottom,
.mecha-face--left,
.mecha-face--right {
    position: absolute;
    backface-visibility: hidden;
    border: 1px solid rgba(220, 20, 60, 0.15);
    will-change: transform, opacity;
    transition: opacity 0.1s;
    animation: faceGlow 8s ease-in-out infinite;
}

@keyframes faceGlow {

    0%,
    100% {
        border-color: rgba(220, 20, 60, 0.15);
        box-shadow: inset 0 0 4px rgba(220, 20, 60, 0.05);
    }

    50% {
        border-color: rgba(220, 20, 60, 0.4);
        box-shadow: inset 0 0 12px rgba(220, 20, 60, 0.15);
    }
}

/* Hinge origins — panels open from the edge where they're attached */
.mecha-face--top {
    transform-origin: center bottom;
}

.mecha-face--bottom {
    transform-origin: center top;
}

.mecha-face--left {
    transform-origin: right center;
}

.mecha-face--right {
    transform-origin: left center;
}

/* Vertical sides (left/right) — brighter gradient for visible depth */
.mecha-face--left,
.mecha-face--right {
    background: linear-gradient(180deg,
            rgba(220, 20, 60, 0.25) 0%,
            #1a0810 8%,
            #200e14 40%,
            rgba(220, 20, 60, 0.12) 50%,
            #200e14 60%,
            #1a0810 92%,
            rgba(220, 20, 60, 0.25) 100%);
}

/* Mechanical panel seam on L/R sides */
.mecha-face--left::after,
.mecha-face--right::after {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 50%;
    width: 1px;
    background: rgba(220, 20, 60, 0.15);
    transform: translateX(-50%);
}

/* Horizontal sides (top/bottom) — top face brighter (lit), bottom darker */
.mecha-face--top {
    background: linear-gradient(90deg,
            rgba(220, 20, 60, 0.3) 0%,
            #2a1018 8%,
            #301420 40%,
            rgba(220, 20, 60, 0.18) 50%,
            #301420 60%,
            #2a1018 92%,
            rgba(220, 20, 60, 0.3) 100%);
}

/* Bottom face — BRIGHT so depth is unmistakable from below */
.mecha-face--bottom {
    background: linear-gradient(90deg,
            rgba(220, 20, 60, 0.4) 0%,
            #2a0810 8%,
            #3d1020 35%,
            rgba(220, 20, 60, 0.3) 50%,
            #3d1020 65%,
            #2a0810 92%,
            rgba(220, 20, 60, 0.4) 100%);
    border-color: rgba(220, 20, 60, 0.3);
}

/* Panel seam on top/bottom */
.mecha-face--top::after,
.mecha-face--bottom::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    top: 50%;
    height: 1px;
    background: rgba(220, 20, 60, 0.12);
    transform: translateY(-50%);
}

/* Right panel positioning */
.mecha-face--right {
    width: var(--mecha-d);
    height: var(--mecha-h, 100%);
    top: 0;
    left: calc(50% - var(--mecha-d) / 2);
    transform: rotateY(90deg) translateZ(calc(var(--mecha-w, 0px) / 2));
}

/* Left panel positioning */
.mecha-face--left {
    width: var(--mecha-d);
    height: var(--mecha-h, 100%);
    top: 0;
    left: calc(50% - var(--mecha-d) / 2);
    transform: rotateY(-90deg) translateZ(calc(var(--mecha-w, 0px) / 2));
}

/* Top panel positioning */
.mecha-face--top {
    width: var(--mecha-w, 100%);
    height: var(--mecha-d);
    top: calc(50% - var(--mecha-d) / 2);
    left: 0;
    transform: rotateX(90deg) translateZ(calc(var(--mecha-h, 0px) / 2));
}

/* Bottom panel positioning */
.mecha-face--bottom {
    width: var(--mecha-w, 100%);
    height: var(--mecha-d);
    top: calc(50% - var(--mecha-d) / 2);
    left: 0;
    transform: rotateX(-90deg) translateZ(calc(var(--mecha-h, 0px) / 2));
}

@keyframes chromeShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Hover glow intensify */
.resonix-letter:hover {
    filter: drop-shadow(0 4px 30px rgba(220, 20, 60, 0.5)) drop-shadow(0 8px 60px rgba(255, 77, 106, 0.3));
}

/* ═══════════════════════════════════════════════
   O PORTAL — Canvas Arc Reactor
   Canvas-based Iron Man reactor drawn via JS
   ═══════════════════════════════════════════════ */
.portal-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    height: 110%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════
   HERO INFO PANEL
   ═══════════════════════════════════════════════ */
.hero-info {
    position: absolute;
    top: calc(50% + clamp(50px, 7vw, 90px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    text-align: center;
    max-width: 720px;
    width: 100%;
    padding: 0 24px;
}

.hero-info__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--border-glow);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-cyan);
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.hero-info__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.4);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 6px rgba(220, 20, 60, 0);
    }
}

.hero-info__subtitle {
    font-family: var(--font-mono);
    font-size: clamp(14px, 1.8vw, 18px);
    color: var(--accent-cyan);
    min-height: 28px;
    margin-bottom: 16px;
}

.hero-info__subtitle .typed-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent-cyan);
    margin-left: 2px;
    animation: blink 0.7s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-info__description {
    font-size: clamp(15px, 1.6vw, 17px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero-info__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-info__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

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

.hero-stat__value {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat__suffix {
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    color: var(--accent-purple);
}

.hero-stat__label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.hero-stat__divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* ═══════════════════════════════════════════════
   PORTAL WINDOW
   ═══════════════════════════════════════════════ */
.portal-window {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 40%, rgba(220, 20, 60, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 77, 106, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(220, 20, 60, 0.05) 0%, transparent 70%),
        linear-gradient(135deg, #1a0608 0%, #120408 30%, #0d0306 60%, #070204 100%);
    overflow: hidden;
    transform: translate(-50%, -50%);
    z-index: 25;
    opacity: 0;
    border: 2px solid rgba(220, 20, 60, 0.5);
    box-shadow: 0 0 80px rgba(220, 20, 60, 0.4), 0 0 160px rgba(255, 77, 106, 0.15), inset 0 0 120px rgba(220, 20, 60, 0.1);
}

.portal-window::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg,
            transparent 0%,
            rgba(220, 20, 60, 0.04) 25%,
            transparent 50%,
            rgba(255, 77, 106, 0.04) 75%,
            transparent 100%);
    animation: portalSpin 20s linear infinite;
    pointer-events: none;
}

@keyframes portalSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.portal-window__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
}

.portal-window__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15), transparent 70%);
    border-radius: 50%;
}

.portal-window__tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    position: relative;
}

.portal-window__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    position: relative;
}

.portal-window__desc {
    font-size: 15px;
    color: var(--text-secondary);
    position: relative;
    margin-bottom: 24px;
}

.portal-window__lines {
    display: flex;
    gap: 8px;
    position: relative;
}

.portal-window__lines span {
    width: 40px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════
   SCROLL CUE
   ═══════════════════════════════════════════════ */
.hero-scene__scroll-cue {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 20;
    pointer-events: none;
}

.hero-scene__scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero-scene__scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 3px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

.hero-scene__scroll-cue span {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════
   PAGE MAIN (portal target)
   ═══════════════════════════════════════════════ */
.page-main {
    position: relative;
    z-index: 10;
    background: var(--bg-primary);
}

/* ═══════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════ */
.section-header {
    margin-bottom: 56px;
}

.section-header__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    opacity: 0.8;
}

.section-header__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-header__title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
}

.section-header__desc {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.6;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
}

/* ═══════════════════════════════════════════════
   FEATURES — HORIZONTAL SCROLL
   ═══════════════════════════════════════════════ */
.features {
    position: relative;
    padding: var(--section-pad) 0;
    z-index: 10;
    overflow: hidden;
    touch-action: pan-y;
}

.features__pin-wrapper {
    position: relative;
}

.features__track {
    display: flex;
    gap: 28px;
    padding: 0 clamp(20px, 4vw, 48px);
    width: max-content;
}

.feature-card {
    position: relative;
    width: 380px;
    min-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 36px;
    overflow: hidden;
    will-change: transform;
    transition: border-color 0.4s, box-shadow 0.4s;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-cyan);
}

.feature-card__glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(220, 20, 60, 0.06), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover .feature-card__glow {
    opacity: 1;
}

.feature-card--intelligence .feature-card__glow {
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 77, 106, 0.06), transparent 60%);
}

.feature-card__number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.06;
    line-height: 1;
}

.feature-card__content {
    position: relative;
    z-index: 2;
}

.feature-card__icon-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

.feature-card--intelligence .feature-card__icon-wrap {
    color: var(--accent-purple);
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.feature-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-card__tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════
   UPLOAD SECTION
   ═══════════════════════════════════════════════ */
.upload-section {
    position: relative;
    padding: var(--section-pad) 0;
    z-index: 10;
}

.upload-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.upload-dropzone {
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    background: var(--bg-card);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.upload-dropzone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.upload-dropzone--drag {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
}

.upload-dropzone--drag::before {
    opacity: 0.04;
}

.upload-dropzone:hover {
    border-color: rgba(220, 20, 60, 0.3);
}

.upload-dropzone__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--accent-cyan);
    opacity: 0.6;
    position: relative;
}

.upload-dropzone__text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    position: relative;
}

.upload-dropzone__hint {
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
}

.upload-dropzone__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

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

.upload-dropzone__status {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.upload-dropzone__detail {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-progress {
    width: 80%;
    max-width: 240px;
    height: 4px;
    background: var(--border-subtle);
    border-radius: 4px;
    margin: 8px auto;
    overflow: hidden;
}

.upload-progress__bar {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.3s;
}

.upload-fields {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.upload-field {
    flex: 1;
}

.upload-field__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.upload-field__input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
    transition: border-color var(--t-fast);
}

.upload-field__input:focus {
    border-color: var(--accent-cyan);
}

/* Upload Result */
.upload-result {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(10px);
}

.upload-result__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.upload-result__badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.1em;
}

.upload-result__badge--success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.upload-result__filename {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
}

.upload-result__details {
    margin-bottom: 20px;
}

.upload-result__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.upload-result__key {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.upload-result__value {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
}

.upload-result__value--hash {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--accent-cyan);
}

/* Transcript Viewer */
.transcript-viewer {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 16px;
    backdrop-filter: blur(10px);
}

.transcript-viewer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.transcript-viewer__title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.transcript-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transcript-search__input {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    outline: none;
    width: 160px;
    transition: border-color var(--t-fast);
}

.transcript-search__input:focus {
    border-color: var(--accent-cyan);
}

.transcript-search__count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.transcript-viewer__body {
    padding: 16px 20px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
}

.transcript-viewer__body::-webkit-scrollbar {
    width: 4px;
}

.transcript-viewer__body::-webkit-scrollbar-track {
    background: transparent;
}

.transcript-viewer__body::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

.transcript-viewer__placeholder {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 24px;
}

.transcript-segment {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-left: 2px solid var(--accent-cyan);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    background: rgba(220, 20, 60, 0.02);
}

.transcript-segment__speaker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.transcript-segment__time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 8px;
}

.transcript-word {
    transition: background 0.2s;
}

.transcript-word--highlighted {
    background: rgba(220, 20, 60, 0.2);
    border-radius: 2px;
    padding: 0 2px;
}

/* ═══════════════════════════════════════════════
   ARCHITECTURE
   ═══════════════════════════════════════════════ */
.architecture {
    position: relative;
    padding: var(--section-pad) 0;
    z-index: 10;
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.arch-layer {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: border-color 0.4s, box-shadow 0.4s;
    backdrop-filter: blur(10px);
}

.arch-layer:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-cyan);
}

.arch-layer--intelligence:hover {
    box-shadow: var(--shadow-glow-purple);
}

.arch-layer__label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    margin-bottom: 14px;
}

.arch-layer--intelligence .arch-layer__label {
    color: var(--accent-purple);
}

.arch-nodes-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.arch-node {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: border-color 0.3s;
}

.arch-node:hover {
    border-color: var(--border-glow);
}

.arch-node__name {
    display: block;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.arch-node--ai .arch-node__name {
    color: var(--accent-purple);
}

.arch-node--storage .arch-node__name {
    color: var(--accent-cyan);
}

.arch-node__detail {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.arch-connector {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

.arch-connector__line {
    width: 2px;
    height: 28px;
    background: var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.arch-connector__pulse {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent-gradient);
    animation: connectorPulse 2s ease-in-out infinite;
}

@keyframes connectorPulse {
    0% {
        top: -50%;
    }

    100% {
        top: 150%;
    }
}

.patterns {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.pattern-pill {
    padding: 8px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    transition: all 0.3s;
}

.pattern-pill:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
}

/* ═══════════════════════════════════════════════
   API SECTION
   ═══════════════════════════════════════════════ */
.api-section {
    position: relative;
    padding: var(--section-pad) 0;
    z-index: 10;
}

.api-terminal {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.api-terminal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
}

.api-terminal__dots {
    display: flex;
    gap: 6px;
}

.api-terminal__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.api-terminal__dots span:nth-child(1) {
    background: var(--danger);
}

.api-terminal__dots span:nth-child(2) {
    background: var(--warning);
}

.api-terminal__dots span:nth-child(3) {
    background: var(--success);
}

.api-terminal__title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.api-terminal__body {
    padding: 20px;
}

.api-terminal__divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 12px 0;
}

.api-terminal__section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    transition: background var(--t-fast);
}

.api-endpoint:hover {
    background: rgba(255, 255, 255, 0.02);
}

.api-endpoint__method {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.05em;
    min-width: 48px;
    text-align: center;
}

.api-endpoint__method--get {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.api-endpoint__method--post {
    background: rgba(220, 20, 60, 0.1);
    color: var(--accent-cyan);
}

.api-endpoint__path {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.api-endpoint__desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.api-example {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.api-example__header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.api-example__label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
}

.api-example__code {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    overflow-x: auto;
    color: var(--text-secondary);
}

.code-comment {
    color: var(--text-muted);
}

.code-cmd {
    color: var(--accent-cyan);
}

.code-string {
    color: var(--accent-purple);
}

/* ═══════════════════════════════════════════════
   STATUS DASHBOARD
   ═══════════════════════════════════════════════ */
.status-section {
    position: relative;
    padding: var(--section-pad) 0;
    z-index: 10;
}

.status-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(10px);
}

.status-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

.status-card__indicator {
    flex-shrink: 0;
}

.status-card__dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.5s;
}

.status-card--online .status-card__dot {
    background: var(--success);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.status-card--offline .status-card__dot {
    background: var(--danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.status-card__name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.status-card__value {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   SECURITY
   ═══════════════════════════════════════════════ */
.security-section {
    position: relative;
    padding: var(--section-pad) 0;
    z-index: 10;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.threat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(10px);
}

.threat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

.threat-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.threat-card__vector {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.threat-card__status {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.1em;
}

.threat-card__status--mitigated {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.threat-card__defense {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   VISION SECTION
   ═══════════════════════════════════════════════ */
.vision-section {
    position: relative;
    padding: var(--section-pad) 0;
    z-index: 10;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.vision-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.4s var(--ease-out-expo);
}

.vision-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

.vision-card__icon {
    width: 48px;
    height: 48px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.vision-card__icon svg {
    width: 100%;
    height: 100%;
}

.vision-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.vision-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.vision-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

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

.vision-stat__number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.vision-stat__label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.vision-stat__divider {
    width: 1px;
    height: 48px;
    background: var(--border-subtle);
}

/* ═══════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════ */
.about-section {
    position: relative;
    padding: var(--section-pad) 0;
    z-index: 10;
}

.about-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 48px;
    backdrop-filter: blur(10px);
}

.about-card__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    min-width: 0;
}

.about-card__avatar {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15), rgba(255, 77, 106, 0.08));
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.25), 0 0 60px rgba(220, 20, 60, 0.08);
}

.about-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(0.85) contrast(1.1) saturate(0.8);
    transition: filter 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
    position: relative;
    z-index: 1;
}

.about-card__avatar:hover .about-card__photo {
    filter: brightness(1) contrast(1.05) saturate(1);
    transform: scale(1.05);
}

/* Fallback for old initial style */
.about-card__initial {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.about-card__ring {
    position: absolute;
    inset: -4px;
    border: 3px solid transparent;
    border-top-color: var(--accent-cyan);
    border-right-color: var(--accent-purple);
    border-radius: 50%;
    animation: ringRotate 4s linear infinite;
    z-index: 3;
    filter: drop-shadow(0 0 6px rgba(220, 20, 60, 0.5));
}

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

.about-card__name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.about-card__handle {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-cyan);
}

.about-card__links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.about-card__link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.about-card__link:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.about-card__link svg {
    width: 16px;
    height: 16px;
}

.about-card__bio {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-card__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.about-card__tech {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.about-card__tech:hover {
    border-color: var(--border-glow);
    color: var(--accent-cyan);
}

.about-card__quote {
    border-left: 3px solid transparent;
    border-image: var(--accent-gradient) 1;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
}

.about-card__quote-attr {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-top: 6px;
    font-style: normal;
}

.about-card__highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.about-card__highlight {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.about-card__highlight-icon {
    color: var(--accent-cyan);
    margin-right: 8px;
    font-size: 10px;
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact-section {
    position: relative;
    padding: var(--section-pad) 0;
    z-index: 10;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.contact-card__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.contact-card__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.contact-link:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateX(4px);
}

.contact-link__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.contact-link__icon svg {
    width: 20px;
    height: 20px;
}

.contact-link__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-link__label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-link__value {
    font-size: 14px;
    color: var(--accent-cyan);
    font-weight: 500;
}

.contact-card--quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.contact-card--quote .contact-card__quote {
    font-size: clamp(18px, 2.5vw, 24px);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    border-left: 3px solid transparent;
    border-image: var(--accent-gradient) 1;
    padding-left: 24px;
    margin-bottom: 16px;
}

.contact-card--quote .contact-card__attribution {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    padding-left: 27px;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
    position: relative;
    z-index: 10;
    padding: 48px 0 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer__logo-svg {
    -webkit-text-fill-color: initial;
}

.footer__tagline {
    font-size: 13px;
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color var(--t-fast);
}

.footer__links a:hover {
    color: var(--accent-cyan);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-muted);
}

.footer__status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.footer__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.5s;
}

.footer__status-dot--online {
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* ═══════════════════════════════════════════════
   MAGNETIC EFFECTS
   ═══════════════════════════════════════════════ */
[data-magnetic] {
    transition: transform 0.4s var(--ease-out-expo);
}

/* ═══════════════════════════════════════════════
   GSAP UTILITIES
   ═══════════════════════════════════════════════ */
.gs-hidden {
    opacity: 0;
}

.gs-reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .feature-card {
        min-width: 320px;
        width: 320px;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__cta {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .mecha-face--front {
        font-size: clamp(40px, 12vw, 72px);
    }

    .hero-info__stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat__divider {
        display: none;
    }

    /* Hero rings scale down for mobile */
    .hero-scene__ring--1 {
        width: 200px;
        height: 200px;
    }

    .hero-scene__ring--2 {
        width: 300px;
        height: 300px;
    }

    .hero-scene__ring--3 {
        width: 150px;
        height: 150px;
    }

    .hero-scene__ambient {
        width: 250px;
        height: 250px;
        filter: blur(80px);
    }

    /* Features: vertical stack on mobile */
    .features__track {
        flex-direction: column;
        width: 100%;
        padding: 0 clamp(20px, 4vw, 48px);
        gap: 16px;
    }

    .feature-card {
        width: 100%;
        min-width: unset;
    }

    .upload-panel {
        grid-template-columns: 1fr;
    }

    .upload-fields {
        flex-direction: column;
    }

    /* Vision responsive */
    .vision-grid {
        grid-template-columns: 1fr;
    }

    .vision-stats {
        flex-direction: column;
        gap: 24px;
    }

    .vision-stat__divider {
        width: 48px;
        height: 1px;
    }

    /* Portal window responsive */
    .portal-window__inner {
        padding: 24px;
    }

    .portal-window__glow {
        width: 150px;
        height: 150px;
    }

    .about-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .about-card__left {
        order: -1;
    }

    /* Architecture responsive */
    .arch-nodes-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .arch-node {
        min-width: unset;
        width: 100%;
    }

    .footer__content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Contact responsive */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .hero-info__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-info__actions .btn {
        width: 100%;
    }

    .upload-dropzone {
        padding: 32px 20px;
    }

    .about-card {
        padding: 24px 16px;
    }

    .status-dashboard {
        grid-template-columns: 1fr;
    }

    /* Even smaller hero rings */
    .hero-scene__ring--1 {
        width: 140px;
        height: 140px;
    }

    .hero-scene__ring--2 {
        width: 200px;
        height: 200px;
    }

    .hero-scene__ring--3 {
        width: 100px;
        height: 100px;
    }

    .hero-scene__ambient {
        width: 150px;
        height: 150px;
    }

    .mecha-face--front {
        font-size: clamp(32px, 14vw, 56px);
    }

    .portal-window__title {
        font-size: clamp(20px, 6vw, 32px);
    }

    .portal-window__desc {
        font-size: 13px;
    }

    /* Scroll cue smaller */
    .hero-scene__scroll-cue {
        bottom: 16px;
    }

    .hero-scene__scroll-mouse {
        width: 20px;
        height: 32px;
    }

    .section-header__title {
        font-size: clamp(24px, 7vw, 40px);
    }
}

/* ═══════════════════════════════════════════════
   LENIS SMOOTH SCROLL — Body overrides
   ═══════════════════════════════════════════════ */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   Elements with [data-reveal] start hidden,
   get .is-revealed via GSAP ScrollTrigger
   ═══════════════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger variants */
[data-reveal="left"] {
    transform: translateX(-40px) translateY(0);
}

[data-reveal="left"].is-revealed {
    transform: translateX(0) translateY(0);
}

[data-reveal="right"] {
    transform: translateX(40px) translateY(0);
}

[data-reveal="right"].is-revealed {
    transform: translateX(0) translateY(0);
}

[data-reveal="scale"] {
    transform: scale(0.92);
}

[data-reveal="scale"].is-revealed {
    transform: scale(1);
}

/* ═══════════════════════════════════════════════
   AUDIO WAVEFORM SECURITY DIVIDER
   ═══════════════════════════════════════════════ */
.waveform-divider {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.waveform-divider__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    color: rgba(220, 20, 60, 0.6);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.waveform-divider__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.7);
    animation: wfDotPulse 2s ease-in-out infinite;
}

@keyframes wfDotPulse {

    0%,
    100% {
        opacity: 0.4;
        box-shadow: 0 0 0 rgba(220, 20, 60, 0);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(220, 20, 60, 0.5);
    }
}

.waveform-divider__bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 60px;
}

.waveform-divider__bars span {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(220, 20, 60, 0.8), rgba(0, 200, 255, 0.3));
    animation: wfBar 1.2s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * 0.04s);
}

@keyframes wfBar {
    0% {
        height: 8px;
        opacity: 0.4;
    }

    100% {
        height: calc(12px + var(--i) * 1.5px);
        opacity: 1;
    }
}

.waveform-divider__line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.3), transparent);
    margin-top: 24px;
}

/* ═══════════════════════════════════════════════
   PARALLAX HELPERS
   ═══════════════════════════════════════════════ */
[data-parallax] {
    will-change: transform;
}