/* ==========================================================================
   PROJECT CHIMERA // CYBERPUNK 2099 THEME STYLESHEET
   Author: Creative Director & Lead UI/UX Engineer
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    --bg-dark: #06070c;
    --bg-darker: #030407;
    --bg-panel: rgba(10, 14, 24, 0.82);
    --bg-panel-solid: #0c101c;
    --bg-panel-hover: rgba(16, 24, 42, 0.9);
    
    --neon-cyan: #00f0ff;
    --neon-cyan-dim: rgba(0, 240, 255, 0.25);
    --neon-cyan-glow: 0 0 10px rgba(0, 240, 255, 0.6), 0 0 25px rgba(0, 240, 255, 0.3);
    
    --neon-magenta: #ff0055;
    --neon-magenta-dim: rgba(255, 0, 85, 0.25);
    --neon-magenta-glow: 0 0 10px rgba(255, 0, 85, 0.6), 0 0 25px rgba(255, 0, 85, 0.3);
    
    --neon-purple: #9d00ff;
    --neon-green: #00ff66;
    --neon-green-glow: 0 0 10px rgba(0, 255, 102, 0.6);
    --neon-yellow: #ffe600;
    
    --text-main: #e2e8f0;
    --text-muted: #8492a6;
    --text-dim: #4a5568;
    
    --border-cyan: rgba(0, 240, 255, 0.4);
    --border-magenta: rgba(255, 0, 85, 0.4);
    --border-dim: rgba(255, 255, 255, 0.08);

    --font-heading: 'Orbitron', -apple-system, sans-serif;
    --font-subheading: 'Chakra Petch', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-accent: 'Syne', sans-serif;
    
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    --clip-corner: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    --clip-corner-large: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    --clip-corner-btn: polygon(10px 0%, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* --------------------------------------------------------------------------
   02. CSS Reset & Base Configurations
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: default;
    background: radial-gradient(circle at 50% 20%, #0d1222 0%, #06070c 80%);
}

body.loading-state {
    overflow: hidden;
}

::selection {
    background: var(--neon-cyan);
    color: #000;
    text-shadow: none;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
    outline: none;
}

input, select, textarea {
    font-family: var(--font-mono);
}

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

/* --------------------------------------------------------------------------
   03. Custom Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-left: 1px solid rgba(0, 240, 255, 0.1);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    box-shadow: var(--neon-cyan-glow);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-magenta);
    box-shadow: var(--neon-magenta-glow);
}

/* --------------------------------------------------------------------------
   04. Cyber Overlays (Scanlines, CRT, Vignette, Noise)
   -------------------------------------------------------------------------- */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.35) 50%
    );
    background-size: 100% 4px;
    opacity: 0.6;
}

.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 998;
    background: radial-gradient(circle at center, transparent 60%, rgba(3, 4, 7, 0.85) 100%);
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 997;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Background interactive canvas */
.cyber-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.matrix-canvas.active {
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   05. Custom Reticle Cursor
   -------------------------------------------------------------------------- */
.cyber-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, width 0.2s ease, height 0.2s ease;
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cyber-cursor {
        display: block;
    }
}

.cursor-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--neon-cyan);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--neon-cyan);
}

.cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px dashed var(--neon-cyan);
    border-radius: 50%;
    animation: cursorSpin 8s linear infinite;
    opacity: 0.7;
}

.cursor-crosshair {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid rgba(255, 0, 85, 0.4);
    clip-path: polygon(
        0% 20%, 0% 0%, 20% 0%, 
        80% 0%, 100% 0%, 100% 20%, 
        100% 80%, 100% 100%, 80% 100%, 
        20% 100%, 0% 100%, 0% 80%
    );
    transition: var(--transition-fast);
}

.cursor-label {
    position: absolute;
    left: 36px;
    top: 0;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--neon-cyan);
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.cursor-hover .cyber-cursor {
    width: 46px;
    height: 46px;
}
body.cursor-hover .cursor-ring {
    border-color: var(--neon-magenta);
    border-style: solid;
    animation-duration: 3s;
}
body.cursor-hover .cursor-dot {
    background: var(--neon-magenta);
    box-shadow: 0 0 8px var(--neon-magenta);
}
body.cursor-hover .cursor-label {
    opacity: 1;
    color: var(--neon-magenta);
}

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

/* --------------------------------------------------------------------------
   06. Boot Loader Screen (Initial Experience)
   -------------------------------------------------------------------------- */
.boot-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #040508;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.boot-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-container {
    width: 100%;
    max-width: 720px;
    background: rgba(12, 16, 26, 0.95);
    border: 1px solid var(--border-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 15px rgba(0, 240, 255, 0.08);
    padding: 28px;
    position: relative;
    clip-path: var(--clip-corner);
}

.boot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-cyan);
    padding-bottom: 12px;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.boot-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-cyan);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.boot-status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-magenta);
    animation: blinkFast 1s steps(2, start) infinite;
}

.boot-terminal-window {
    background: #020305;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.terminal-bar {
    background: #0e1320;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-bar .dot.red { background: #ff4d4d; }
.terminal-bar .dot.yellow { background: #ffbb00; }
.terminal-bar .dot.green { background: #00e676; }

.terminal-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 14px;
    height: 180px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #00ffaa;
    line-height: 1.5;
}

.terminal-body .log-row {
    margin-bottom: 4px;
    opacity: 0;
    animation: fadeInLog 0.2s forwards;
}
.terminal-body .log-row.err { color: var(--neon-magenta); }
.terminal-body .log-row.warn { color: var(--neon-yellow); }
.terminal-body .log-row.cyan { color: var(--neon-cyan); }

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

.boot-progress-wrapper {
    margin-bottom: 24px;
}

.boot-progress-info {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.boot-progress-percent {
    color: var(--neon-cyan);
    font-weight: 700;
}

.boot-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.boot-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan));
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: width 0.15s ease-out;
}

.boot-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   07. Button Styles & Glitch Effects
   -------------------------------------------------------------------------- */
.cyber-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: var(--clip-corner-btn);
    transition: var(--transition-normal);
    overflow: hidden;
}

.cyber-btn .btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.cyber-btn--primary,
.cyber-btn--hero {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 0, 85, 0.15));
    border: 1px solid var(--neon-cyan);
    color: #ffffff;
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.2), 0 0 15px rgba(0, 240, 255, 0.25);
}

.cyber-btn--primary:hover,
.cyber-btn--hero:hover {
    background: var(--neon-cyan);
    color: #000000;
    box-shadow: var(--neon-cyan-glow), inset 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.cyber-btn--hero {
    padding: 18px 36px;
    font-size: 1rem;
    border-color: var(--neon-cyan);
}

.cyber-btn--secondary {
    background: rgba(14, 18, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.cyber-btn--secondary:hover {
    border-color: var(--neon-magenta);
    color: var(--neon-magenta);
    box-shadow: var(--neon-magenta-glow);
    background: rgba(255, 0, 85, 0.1);
}

.cyber-btn--ghost {
    background: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 10px 18px;
}

.cyber-btn--ghost:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.cyber-btn.full-width {
    width: 100%;
}

.corner-bracket {
    position: absolute;
    width: 6px;
    height: 6px;
    pointer-events: none;
    z-index: 3;
}
.corner-bracket.top-left {
    top: 2px;
    left: 2px;
    border-top: 2px solid var(--neon-cyan);
    border-left: 2px solid var(--neon-cyan);
}
.corner-bracket.bottom-right {
    bottom: 2px;
    right: 2px;
    border-bottom: 2px solid var(--neon-magenta);
    border-right: 2px solid var(--neon-magenta);
}

/* --------------------------------------------------------------------------
   08. HUD Audio & Utility Floating Panel
   -------------------------------------------------------------------------- */
.hud-audio-panel {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 1001;
    display: flex;
    gap: 8px;
}

.hud-sound-btn, .hud-tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid var(--border-cyan);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    backdrop-filter: blur(8px);
    transition: var(--transition-fast);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.hud-sound-btn:hover, .hud-tool-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: var(--neon-cyan-glow);
}

.sound-wave-icon {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}
.sound-wave-icon .bar {
    width: 2px;
    height: 4px;
    background: var(--neon-cyan);
    transition: height 0.2s ease;
}
.hud-sound-btn.playing .bar-1 { animation: soundWave 0.6s infinite ease-in-out; }
.hud-sound-btn.playing .bar-2 { animation: soundWave 0.8s infinite ease-in-out 0.2s; }
.hud-sound-btn.playing .bar-3 { animation: soundWave 0.5s infinite ease-in-out 0.1s; }
.hud-sound-btn.playing .bar-4 { animation: soundWave 0.7s infinite ease-in-out 0.3s; }

@keyframes soundWave {
    0%, 100% { height: 3px; }
    50% { height: 12px; }
}

/* --------------------------------------------------------------------------
   09. Navigation Bar (HUD Header)
   -------------------------------------------------------------------------- */
.hud-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 8, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-cyan);
    transition: var(--transition-normal);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.brand-glitch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 10px var(--neon-cyan);
}
.brand-sym {
    color: var(--neon-magenta);
    font-size: 1.2rem;
    animation: rotateSlow 12s linear infinite;
}
.brand-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-left: 24px;
}

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

/* Live Nav Telemetry */
.nav-telemetry {
    display: flex;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border: 1px solid var(--border-dim);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.telem-key { color: var(--text-muted); }
.telem-val { color: var(--neon-cyan); font-weight: 600; }
.telem-online { color: var(--neon-green); }

.pulse-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: var(--neon-green-glow);
    animation: blinkIndicator 1.2s infinite;
}

@keyframes blinkIndicator {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    position: relative;
}

.nav-num {
    color: var(--neon-magenta);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--neon-cyan);
}
.nav-link:hover::after {
    width: 100%;
}

.nav-cta-btn {
    background: transparent;
    border: 1px solid var(--neon-magenta);
    padding: 8px 18px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    clip-path: var(--clip-corner-btn);
    box-shadow: inset 0 0 10px rgba(255, 0, 85, 0.2);
    transition: var(--transition-fast);
}

.nav-cta-btn:hover {
    background: var(--neon-magenta);
    color: #fff;
    box-shadow: var(--neon-magenta-glow);
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    background: none;
    border: none;
}
.nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    transition: var(--transition-fast);
}

.nav-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    width: 0%;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* --------------------------------------------------------------------------
   10. Common Section Styles & HUD Panels
   -------------------------------------------------------------------------- */
.cyber-section {
    position: relative;
    z-index: 2;
    padding: 120px 24px;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    position: relative;
}
.section-header.text-center {
    text-align: center;
}

.section-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: var(--neon-cyan);
    letter-spacing: 2px;
}
.section-meta.justify-center {
    justify-content: center;
}

.sec-id {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--border-cyan);
    padding: 2px 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 12px;
}
.section-title.large {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.title-sub-tag {
    font-family: var(--font-subheading);
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--neon-magenta);
    font-weight: 600;
    display: block;
    margin-top: 6px;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    margin-top: 16px;
}
.section-divider.center {
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

/* Cyber Panels (HUD Framing & Glassmorphism) */
.cyber-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-cyan);
    backdrop-filter: blur(12px);
    position: relative;
    clip-path: var(--clip-corner);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.cyber-panel:hover {
    border-color: rgba(0, 240, 255, 0.8);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
}

.panel-hud-header {
    background: rgba(0, 240, 255, 0.05);
    border-bottom: 1px solid var(--border-cyan);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.hud-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 6px var(--neon-cyan);
}

.hud-title {
    color: var(--neon-cyan);
    font-weight: 700;
    letter-spacing: 1px;
}

.hud-badge {
    background: rgba(255, 0, 85, 0.15);
    color: var(--neon-magenta);
    border: 1px solid var(--neon-magenta);
    padding: 2px 6px;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.panel-body {
    padding: 24px;
}

.panel-hud-footer {
    border-top: 1px solid var(--border-dim);
    padding: 8px 18px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   11. HERO SECTION (Above the Fold)
   -------------------------------------------------------------------------- */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    z-index: 2;
}

.hero-hud-frame {
    position: absolute;
    top: 90px;
    bottom: 30px;
    left: 20px;
    right: 20px;
    pointer-events: none;
    border: 1px solid rgba(0, 240, 255, 0.08);
}

.hud-corner-bracket {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(0, 240, 255, 0.4);
    letter-spacing: 1px;
    padding: 4px 8px;
}
.hud-corner-bracket.tl { top: -1px; left: -1px; border-top: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan); }
.hud-corner-bracket.tr { top: -1px; right: -1px; text-align: right; border-top: 2px solid var(--neon-cyan); border-right: 2px solid var(--neon-cyan); }
.hud-corner-bracket.bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan); }
.hud-corner-bracket.br { bottom: -1px; right: -1px; text-align: right; border-bottom: 2px solid var(--neon-cyan); border-right: 2px solid var(--neon-cyan); }

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--neon-cyan);
    padding: 6px 18px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 24px;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-magenta);
    box-shadow: 0 0 6px var(--neon-magenta);
    border-radius: 50%;
}

.hero-title {
    margin-bottom: 24px;
}

.title-sub {
    display: block;
    font-family: var(--font-subheading);
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    color: var(--neon-cyan);
    letter-spacing: 4px;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.title-main {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 4px;
    color: #ffffff;
    text-transform: uppercase;
}

.title-japanese {
    display: block;
    font-family: var(--font-subheading);
    font-size: clamp(0.95rem, 1.8vw, 1.35rem);
    color: var(--neon-magenta);
    font-weight: 700;
    letter-spacing: 3px;
    margin-top: 12px;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

.hero-lead {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--text-main);
    max-width: 820px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.highlight-cyan { color: var(--neon-cyan); font-weight: 700; text-shadow: 0 0 6px var(--neon-cyan); }
.highlight-magenta { color: var(--neon-magenta); font-weight: 700; text-shadow: 0 0 6px var(--neon-magenta); }
.highlight-green { color: var(--neon-green); font-weight: 700; text-shadow: 0 0 6px var(--neon-green); }

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Hero Telemetry Metrics Strip */
.hero-metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.metric-card {
    background: rgba(12, 16, 28, 0.7);
    border: 1px solid var(--border-cyan);
    padding: 16px;
    clip-path: var(--clip-corner);
    backdrop-filter: blur(8px);
    text-align: left;
    transition: var(--transition-normal);
}
.metric-card:hover {
    border-color: var(--neon-magenta);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.2);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.metric-code { color: var(--neon-magenta); }

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.metric-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    position: relative;
}
.metric-bar span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--neon-cyan);
    box-shadow: 0 0 6px var(--neon-cyan);
}

.metric-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-green);
    letter-spacing: 1px;
}
.metric-status.warn {
    color: var(--neon-yellow);
}

/* Scroll Down Prompt */
.scroll-down-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    opacity: 0.8;
}

.scroll-mouse {
    width: 18px;
    height: 28px;
    border: 1px solid var(--neon-cyan);
    border-radius: 10px;
    position: relative;
}
.scroll-wheel {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 2px;
    animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   12. Section 01: PROLOGUE / GENESIS
   -------------------------------------------------------------------------- */
.prologue-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
}

.story-highlight {
    font-family: var(--font-subheading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 16px;
    border-left: 3px solid var(--neon-magenta);
    padding-left: 14px;
}

.story-desc {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 24px;
}

.warning-callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 0, 85, 0.08);
    border: 1px solid rgba(255, 0, 85, 0.3);
    padding: 16px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.warn-icon {
    color: var(--neon-magenta);
    font-size: 1.4rem;
    line-height: 1;
}
.warn-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.warn-text strong {
    color: var(--neon-magenta);
}

/* Neural HUD Viz */
.neural-hud-viz {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hologram-circle-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holo-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed var(--neon-cyan);
}
.holo-circle.c1 { width: 100%; height: 100%; animation: rotateSlow 14s linear infinite; border-color: var(--neon-cyan); }
.holo-circle.c2 { width: 80%; height: 80%; animation: rotateSlow 8s linear infinite reverse; border-color: var(--neon-magenta); border-style: dotted; }
.holo-circle.c3 { width: 60%; height: 60%; animation: rotateSlow 10s linear infinite; border-color: var(--neon-purple); }

.holo-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 2;
}
.core-icon { font-size: 2.2rem; filter: drop-shadow(0 0 8px var(--neon-cyan)); }
.core-text { font-family: var(--font-mono); font-size: 0.7rem; color: var(--neon-cyan); letter-spacing: 2px; }

.hud-data-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-line {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 12px;
    border-left: 2px solid var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.data-name { color: var(--text-muted); }
.data-val.danger { color: #ff4d4d; font-weight: 700; }

.blink-text {
    animation: blinkIndicator 1.5s infinite;
    color: var(--neon-green);
}

/* --------------------------------------------------------------------------
   13. Section 02: SOLUTION MODULES
   -------------------------------------------------------------------------- */
.module-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.module-tab {
    background: rgba(12, 16, 28, 0.6);
    border: 1px solid var(--border-dim);
    padding: 14px 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    clip-path: var(--clip-corner-btn);
    transition: var(--transition-fast);
}

.module-tab .tab-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.module-tab .tab-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
}

.module-tab:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.08);
}
.module-tab:hover .tab-label { color: #fff; }

.module-tab.active {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}
.module-tab.active .tab-num { color: var(--neon-cyan); }
.module-tab.active .tab-label { color: #ffffff; text-shadow: 0 0 8px var(--neon-cyan); }

/* Large Module Display Card */
.module-card-large {
    display: none;
    padding: 36px;
}
.module-card-large.active {
    display: block;
    animation: fadeInModule 0.4s ease-out;
}

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

.mod-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    align-items: center;
}

.mod-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-magenta);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.mod-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.mod-desc {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 24px;
}

.mod-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 1rem;
}

.mod-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mod-features-list .chk {
    color: var(--neon-cyan);
    font-weight: 700;
}

.mod-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: rgba(0, 0, 0, 0.4);
    padding: 16px;
    border: 1px solid var(--border-dim);
}

.stat-box {
    display: flex;
    flex-direction: column;
}
.stat-box .stat-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--neon-cyan);
}
.stat-box .stat-lbl {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Interactive Graphic Canvas for Modules */
.cyber-graphic-box {
    width: 100%;
    height: 320px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.graphic-chip-circuit {
    position: relative;
    width: 140px;
    height: 140px;
    border: 2px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.chip-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.graphic-data-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: rgba(0, 240, 255, 0.4);
    word-break: break-all;
}

/* AI Neural Mesh graphic */
.ai-neural-mesh {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-avatar-wireframe {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--neon-magenta);
    letter-spacing: 2px;
    border: 1px solid var(--neon-magenta);
    padding: 10px 20px;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}

/* Shield Hex Grid */
.shield-hex-grid {
    text-align: center;
}
.shield-status-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-green);
    margin-top: 15px;
    letter-spacing: 2px;
}

/* DNA Helix Viz */
.dna-helix-viz {
    text-align: center;
}
.nanite-status {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    margin-top: 15px;
    letter-spacing: 2px;
}

/* --------------------------------------------------------------------------
   14. Section 03: SYSTEM ARCHITECTURE
   -------------------------------------------------------------------------- */
.arch-layout-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
}

.arch-diagram-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arch-svg {
    width: 100%;
    max-width: 550px;
    height: auto;
}

.svg-node {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.svg-node:hover {
    transform: scale(1.1);
}

.svg-hint {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.insp-data-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.insp-prop {
    background: rgba(0, 0, 0, 0.35);
    padding: 10px 14px;
    border-left: 2px solid var(--neon-cyan);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.insp-prop .lbl {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.insp-prop .val {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.insp-log-stream .log-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    margin-bottom: 8px;
}

.log-console {
    background: #020305;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    height: 130px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #64ffda;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   15. Section 04: EXECUTION PROTOCOL (Roadmap)
   -------------------------------------------------------------------------- */
.cyber-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 40px;
}

.cyber-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: linear-gradient(180deg, var(--neon-green), var(--neon-cyan), var(--neon-magenta), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    left: -32px;
    width: 16px;
    height: 16px;
    background: #000;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot .inner {
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    border-radius: 50%;
}

.timeline-item.complete .timeline-dot { border-color: var(--neon-green); }
.timeline-item.complete .timeline-dot .inner { background: var(--neon-green); }

.timeline-item.active .timeline-dot {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 10px var(--neon-magenta);
}
.timeline-item.active .timeline-dot .inner {
    background: var(--neon-magenta);
    animation: blinkIndicator 0.8s infinite;
}

.timeline-content {
    padding: 24px;
}

.timeline-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 8px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.timeline-badge.status-complete { background: rgba(0, 255, 102, 0.1); color: var(--neon-green); border: 1px solid var(--neon-green); }
.timeline-badge.status-active { background: rgba(255, 0, 85, 0.15); color: var(--neon-magenta); border: 1px solid var(--neon-magenta); }
.timeline-badge.status-upcoming { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border-dim); }

.timeline-heading {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.timeline-text {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 16px;
}

.timeline-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}
.timeline-tags .tag-highlight {
    color: var(--neon-magenta);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   16. Section 05: INTERACTIVE CYBER TERMINAL
   -------------------------------------------------------------------------- */
.terminal-container {
    max-width: 900px;
    margin: 0 auto;
}

.terminal-hud-top {
    background: #090c14;
    border-bottom: 1px solid var(--border-cyan);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}
.term-btn {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.term-btn.term-close { background: #ff5f56; }
.term-btn.term-min { background: #ffbd2e; }
.term-btn.term-max { background: #27c93f; }

.terminal-session-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-actions-quick {
    display: flex;
    gap: 6px;
}

.term-action-btn {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 8px;
    transition: var(--transition-fast);
}
.term-action-btn:hover {
    background: var(--neon-cyan);
    color: #000;
}

.terminal-screen {
    background: #020306;
    padding: 20px;
    min-height: 280px;
    max-height: 380px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #00ffaa;
}

.term-line {
    margin-bottom: 6px;
    line-height: 1.5;
}
.term-line.cmd-echo { color: #ffffff; }
.term-line.sys-msg { color: var(--text-muted); }
.term-line.err { color: var(--neon-magenta); }
.term-line.highlight { color: var(--neon-cyan); }
.term-line.matrix-mode { color: #00ff66; text-shadow: 0 0 8px #00ff66; }

.term-input-row {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.term-prompt {
    color: var(--neon-cyan);
    font-weight: 700;
}

.term-input-field {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
}

/* --------------------------------------------------------------------------
   17. Section 06: FINAL CTA & REGISTRATION
   -------------------------------------------------------------------------- */
.countdown-wrapper {
    max-width: 700px;
    margin: 0 auto 50px;
    padding: 24px;
    text-align: center;
}

.countdown-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-magenta);
    box-shadow: 0 0 8px var(--neon-magenta);
    border-radius: 50%;
    animation: blinkIndicator 1s infinite;
}

.countdown-digits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

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

.digit-val {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.digit-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.digit-sep {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--neon-magenta);
    margin-top: -15px;
    animation: blinkIndicator 1s infinite;
}

/* Registration Form Grid */
.registration-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
}

.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-main);
}
.label-prefix {
    color: var(--neon-cyan);
    margin-right: 4px;
}

.input-hud-wrapper {
    position: relative;
}

.cyber-input, .cyber-select {
    width: 100%;
    background: rgba(4, 6, 12, 0.85);
    border: 1px solid var(--border-cyan);
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.cyber-input:focus, .cyber-select:focus {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 12px rgba(255, 0, 85, 0.3);
    outline: none;
}

.input-corner-tl {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--neon-cyan);
    border-left: 2px solid var(--neon-cyan);
}
.input-corner-br {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid var(--neon-cyan);
    border-right: 2px solid var(--neon-cyan);
}

.select-wrapper {
    position: relative;
}
.cyber-select {
    appearance: none;
    cursor: pointer;
}
.cyber-select option {
    background: #0c101c;
    color: #fff;
}
.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-cyan);
    pointer-events: none;
    font-size: 0.75rem;
}

.terms-checkbox {
    margin-top: 6px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.checkbox-label input {
    display: none;
}
.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 0, 0, 0.4);
    display: inline-block;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}
.checkbox-label input:checked + .custom-checkbox::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--neon-magenta);
    font-size: 0.75rem;
}

/* Biometric Scanner Simulation HUD */
.scanner-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reticle-scanner {
    width: 180px;
    height: 180px;
    border: 1px solid var(--border-cyan);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.4);
}

.scanner-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-magenta);
    box-shadow: 0 0 10px var(--neon-magenta);
    animation: scanLaser 2s infinite ease-in-out alternate;
}

@keyframes scanLaser {
    0% { top: 0%; }
    100% { top: 98%; }
}

.fp-svg {
    width: 110px;
    height: 110px;
}

.scanner-status {
    position: absolute;
    bottom: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.live-slot-counter {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    padding: 14px;
    border: 1px solid var(--border-dim);
}

.slot-hdr {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.slot-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neon-magenta);
    margin-bottom: 6px;
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.4);
}

.slot-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}
.slot-bar span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--neon-magenta);
    box-shadow: 0 0 6px var(--neon-magenta);
}

/* --------------------------------------------------------------------------
   18. Cyber Modal Popup (Registration Access Granted)
   -------------------------------------------------------------------------- */
.cyber-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.cyber-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 4, 7, 0.85);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 580px;
    border-color: var(--neon-magenta);
    box-shadow: 0 0 40px rgba(255, 0, 85, 0.3);
}

.modal-close-btn {
    color: var(--neon-cyan);
    font-size: 1.1rem;
    background: none;
    border: none;
}

.modal-cert-icon {
    font-size: 3rem;
    color: var(--neon-cyan);
    margin: 10px 0;
    animation: rotateSlow 15s linear infinite;
}

.modal-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.modal-sub {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.access-key-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px dashed var(--neon-cyan);
    padding: 16px;
    margin-bottom: 20px;
}

.key-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.key-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.modal-info-list {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   19. Footer Styles
   -------------------------------------------------------------------------- */
.cyber-footer {
    position: relative;
    z-index: 2;
    background: #030407;
    border-top: 1px solid var(--border-cyan);
    padding: 80px 24px 40px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.footer-clearance {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.65rem;
}
.badge-red { background: rgba(255, 0, 85, 0.15); border: 1px solid var(--neon-magenta); color: var(--neon-magenta); padding: 2px 6px; }
.badge-blue { background: rgba(0, 240, 255, 0.15); border: 1px solid var(--neon-cyan); color: var(--neon-cyan); padding: 2px 6px; }

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-left: 2px solid var(--neon-cyan);
    padding-left: 8px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--neon-cyan);
    padding-left: 4px;
}

.footer-social-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.social-hud-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(12, 16, 28, 0.7);
    border: 1px solid var(--border-dim);
    padding: 8px 12px;
    min-width: 65px;
    transition: var(--transition-fast);
}
.social-hud-btn:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.social-hud-btn .soc-icon { font-size: 1.1rem; color: #fff; margin-bottom: 2px; }
.social-hud-btn .soc-label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); }

.footer-net-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-green);
}

.footer-divider {
    height: 1px;
    background: var(--border-dim);
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer-warning-strip {
    color: var(--neon-magenta);
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   20. Glitch Keyframe Animations & Utilities
   -------------------------------------------------------------------------- */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-magenta);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitchAnim-1 2.5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitchAnim-2 2s infinite linear alternate-reverse;
}

@keyframes glitchAnim-1 {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    20% { clip: rect(60px, 9999px, 80px, 0); }
    40% { clip: rect(20px, 9999px, 50px, 0); }
    60% { clip: rect(70px, 9999px, 90px, 0); }
    80% { clip: rect(40px, 9999px, 60px, 0); }
    100% { clip: rect(80px, 9999px, 100px, 0); }
}

@keyframes glitchAnim-2 {
    0% { clip: rect(90px, 9999px, 100px, 0); }
    20% { clip: rect(10px, 9999px, 40px, 0); }
    40% { clip: rect(50px, 9999px, 70px, 0); }
    60% { clip: rect(30px, 9999px, 50px, 0); }
    80% { clip: rect(70px, 9999px, 85px, 0); }
    100% { clip: rect(15px, 9999px, 35px, 0); }
}

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

/* --------------------------------------------------------------------------
   21. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .prologue-grid,
    .mod-grid,
    .arch-layout-grid,
    .registration-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-metrics-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .module-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-telemetry,
    .nav-menu {
        display: none;
    }
    
    .nav-burger {
        display: flex;
    }
    
    .nav-menu.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #06080e;
        border-bottom: 2px solid var(--neon-cyan);
        padding: 24px;
        gap: 16px;
    }

    .hero-metrics-strip {
        grid-template-columns: 1fr;
    }

    .module-tabs {
        grid-template-columns: 1fr;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
    }

    .countdown-digits {
        gap: 8px;
    }
    .digit-sep {
        font-size: 1.8rem;
    }

    .boot-actions {
        flex-direction: column;
    }
}
