/* 
   PROJECT CHIMERA // NEO-NOIR GLITCHWAVE DESIGN SYSTEM
   AUTHOR: ANTIGRAVITY (DEEPMIND CREATIVE)
*/

:root {
    --bg-color: #030307;
    --panel-bg: rgba(5, 7, 15, 0.85);
    --panel-bg-solid: #05070f;
    --border-color: rgba(0, 243, 255, 0.2);
    --border-color-active: rgba(0, 243, 255, 0.8);
    
    /* Neon Palette */
    --cyan: #00f3ff;
    --magenta: #ff007f;
    --green: #39ff14;
    --yellow: #ffff00;
    --white: #ffffff;
    --gray: #6f8095;
    
    /* Typography */
    --font-title: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-body: 'Roboto Mono', monospace;

    /* Glow Shadows */
    --glow-cyan: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.2);
    --glow-magenta: 0 0 10px rgba(ff, 0, 127, 0.5), 0 0 20px rgba(ff, 0, 127, 0.2);
    --glow-green: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 20px rgba(57, 255, 20, 0.2);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

body.loading-active {
    overflow: hidden;
}

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

/* ==========================================================================
   OVERLAYS (CRT SCANLINES & DIGITAL NOISE)
   ========================================================================== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.8;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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)' opacity='0.035'/%3E%3C/svg%3E");
    z-index: 9998;
    pointer-events: none;
}

#cyber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   BOOT SEQUENCE LOADER
   ========================================================================== */
#cyber-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #020204;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s;
}

#cyber-loader.fade-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.loader-bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.loader-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    z-index: 2;
}

.loader-hud-box {
    position: relative;
    background: rgba(5, 6, 12, 0.95);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), var(--glow-cyan);
}

.loader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.loader-title {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 2px;
}

.loader-status-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--magenta);
    border: 1px solid var(--magenta);
    padding: 2px 8px;
    background: rgba(255, 0, 127, 0.1);
    animation: flash 1.5s infinite alternate;
}

.loader-console {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--green);
    height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.console-line {
    margin-bottom: 6px;
    white-space: pre-wrap;
    opacity: 0.9;
}

.console-line.error {
    color: var(--magenta);
}

.console-line.success {
    color: var(--cyan);
}

.loader-progress-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.loader-progress-bar {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.1);
    position: relative;
}

.loader-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--cyan);
    box-shadow: var(--glow-cyan);
    transition: width 0.1s linear;
}

.loader-percentage {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--cyan);
    min-width: 45px;
    text-align: right;
}

.loader-action-panel {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    padding-top: 20px;
    animation: fadeIn 0.5s forwards;
}

.loader-alert {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--yellow);
    margin-bottom: 15px;
}

.loader-btn {
    position: relative;
    background: var(--magenta);
    border: none;
    color: var(--white);
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 15px 30px;
    cursor: pointer;
    letter-spacing: 1px;
    margin-bottom: 10px;
    transition: all 0.3s;
    box-shadow: var(--glow-magenta);
}

.loader-btn:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: var(--glow-cyan);
}

.loader-btn-sub {
    background: transparent;
    border: none;
    color: var(--gray);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    display: block;
    margin: 10px auto 0;
    transition: color 0.3s;
}

.loader-btn-sub:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ==========================================================================
   HUD UTILITIES (CORNERS & BOXES)
   ========================================================================== */
.hud-box {
    position: relative;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.hud-box:hover {
    border-color: var(--border-color-active);
}

.hud-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--cyan);
    border-style: solid;
    pointer-events: none;
}

.hud-corner.top-left {
    top: -2px;
    left: -2px;
    border-width: 2px 0 0 2px;
}
.hud-corner.top-right {
    top: -2px;
    right: -2px;
    border-width: 2px 2px 0 0;
}
.hud-corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 2px 2px;
}
.hud-corner.bottom-right {
    bottom: -2px;
    right: -2px;
    border-width: 0 2px 2px 0;
}

/* Brackets for Visual Framing */
.visual-hud-frame {
    position: relative;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[class^="hud-bracket-"] {
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: var(--magenta);
    border-style: solid;
    pointer-events: none;
}

.hud-bracket-top-left { top: -5px; left: -5px; border-width: 3px 0 0 3px; }
.hud-bracket-top-right { top: -5px; right: -5px; border-width: 3px 3px 0 0; }
.hud-bracket-bottom-left { bottom: -5px; left: -5px; border-width: 0 0 3px 3px; }
.hud-bracket-bottom-right { bottom: -5px; right: -5px; border-width: 0 3px 3px 0; }

.hud-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 8px var(--cyan);
    animation: scannerSweep 4s linear infinite;
    z-index: 5;
    pointer-events: none;
}

/* ==========================================================================
   GLITCH EFFECT
   ========================================================================== */
.logo-glitch, .hero-title, .section-title {
    position: relative;
}

.logo-glitch::before, .logo-glitch::after,
.hero-title::before, .hero-title::after,
.section-title::before, .section-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    clip: rect(0, 0, 0, 0);
}

.logo-glitch::before, .hero-title::before, .section-title::before {
    left: 2px;
    text-shadow: -2px 0 var(--magenta);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.logo-glitch::after, .hero-title::after, .section-title::after {
    left: -2px;
    text-shadow: -2px 0 var(--cyan);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

/* ==========================================================================
   HUD HEADER
   ========================================================================== */
.hud-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(3, 3, 7, 0.9);
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-logo .logo-link {
    text-decoration: none;
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.logo-glitch {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--cyan);
    text-shadow: var(--glow-cyan);
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--gray);
    letter-spacing: 1px;
}

.hud-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 1.5px;
    transition: color 0.3s, text-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--cyan);
    text-shadow: var(--glow-cyan);
}

.nav-highlight {
    border: 1px solid var(--magenta);
    padding: 6px 15px;
    background: rgba(255, 0, 127, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
    color: var(--white);
}

.nav-highlight:hover {
    color: #000;
    background: var(--magenta);
    box-shadow: var(--glow-magenta);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Audio Toggle */
.audio-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gray);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.audio-toggle-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.audio-icon-wave {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 14px;
    height: 12px;
}

.wave-bar {
    width: 2px;
    background: var(--gray);
    transition: height 0.3s, background 0.3s;
}

.audio-toggle-btn.muted .wave-bar {
    height: 2px !important;
    background: var(--magenta) !important;
}

.wave-bar.bar-1 { height: 40%; }
.wave-bar.bar-2 { height: 80%; }
.wave-bar.bar-3 { height: 50%; }
.wave-bar.bar-4 { height: 100%; }

.audio-toggle-btn:not(.muted) .wave-bar.bar-1 { animation: soundWave 0.8s ease infinite alternate; }
.audio-toggle-btn:not(.muted) .wave-bar.bar-2 { animation: soundWave 0.5s ease infinite alternate; }
.audio-toggle-btn:not(.muted) .wave-bar.bar-3 { animation: soundWave 0.9s ease infinite alternate; }
.audio-toggle-btn:not(.muted) .wave-bar.bar-4 { animation: soundWave 0.6s ease infinite alternate; }

.audio-toggle-btn:not(.muted) .wave-bar {
    background: var(--cyan);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-indicator.online {
    background: var(--cyan);
    box-shadow: var(--glow-cyan);
    animation: flash 1.5s infinite alternate;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 130px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hud-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--magenta);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -1px;
    margin-bottom: 25px;
    color: var(--white);
}

.highlight-text {
    color: var(--cyan);
    text-shadow: var(--glow-cyan);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 35px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    margin-bottom: 45px;
}

/* Cyber Buttons */
.cyber-btn {
    position: relative;
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 18px 35px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.btn-primary {
    background: var(--cyan);
    color: #000;
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    background: var(--white);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--magenta);
    color: var(--magenta);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.1);
}

.btn-secondary:hover {
    background: var(--magenta);
    color: var(--white);
    box-shadow: var(--glow-magenta);
}

.btn-glow {
    position: absolute;
    width: 50px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    top: 0;
    left: -60px;
    transform: skewX(-20deg);
    transition: left 0.5s;
}

.cyber-btn:hover .btn-glow {
    left: 120%;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Stats Panel */
.hero-stats-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-color: rgba(255, 255, 255, 0.05);
}

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

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--gray);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.stat-value {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
}

.text-cyan { color: var(--cyan) !important; text-shadow: var(--glow-cyan); }
.text-magenta { color: var(--magenta) !important; text-shadow: var(--glow-magenta); }
.text-green { color: var(--green) !important; text-shadow: var(--glow-green); }

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: brightness(0.85) contrast(1.1) saturate(1.2);
}

.visual-hologram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 243, 255, 0.15) 0%, transparent 100%);
    pointer-events: none;
    mix-blend-mode: color-dodge;
}

.visual-data-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: rgba(5, 7, 15, 0.85);
    border-left: 2px solid var(--cyan);
    padding: 8px 12px;
    z-index: 10;
}

.data-row {
    margin-bottom: 4px;
    color: var(--cyan);
}

.data-row:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   SCROLL REVEAL & COMMON SECTIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-num {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--magenta);
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
}

.section-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

/* ==========================================================================
   SECTION 1: GENESIS (PROLOGUE)
   ========================================================================== */
.genesis-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.genesis-subtitle {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 20px;
}

.genesis-paragraph {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.genesis-paragraph.font-highlight {
    color: var(--white);
    border-left: 2px solid var(--magenta);
    padding-left: 15px;
}

/* Scanner HUD Panel */
.genesis-interactive {
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.hud-panel-header {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.scanner-screen {
    flex-grow: 1;
    background: rgba(2, 2, 4, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.1);
    position: relative;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.brain-matrix-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.scanner-sweep {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(57, 255, 20, 0.15));
    border-bottom: 1px solid var(--green);
    animation: radarSweep 3s infinite linear;
    z-index: 2;
    pointer-events: none;
}

.scanner-diagnostics {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray);
    z-index: 3;
}

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

.diag-val {
    color: var(--white);
    font-weight: 700;
}

.wave-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 80px;
    z-index: 3;
}

.wave-bar-element {
    flex-grow: 1;
    width: 100%;
    background: var(--cyan);
    min-height: 5px;
    transition: height 0.1s ease;
}

/* ==========================================================================
   SECTION 2: MODULE SECTION
   ========================================================================== */
.module-main-visual {
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.module-visual-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.module-center-image {
    width: 250px;
    height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.4));
    z-index: 3;
    animation: float 4s ease-in-out infinite alternate;
}

.module-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(rgba(0, 243, 255, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.hud-circle-decor {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px dashed rgba(0, 243, 255, 0.3);
    border-radius: 50%;
    animation: spin 30s linear infinite;
    z-index: 2;
}

.hud-circle-decor::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: var(--glow-cyan);
}

.hologram-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.holo-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--cyan);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 4px 8px;
    background: rgba(3, 3, 7, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.holo-label::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan);
}

.module-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.module-card {
    transition: transform 0.1s ease, box-shadow 0.3s;
    background: rgba(5, 7, 15, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    cursor: default;
}

.module-card:hover {
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 80%, rgba(0, 243, 255, 0.05) 100%);
    pointer-events: none;
}

.module-card:hover .card-glow {
    background: linear-gradient(135deg, transparent 60%, rgba(0, 243, 255, 0.1) 100%);
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--gray);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.card-title-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 300;
}

.card-description {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.5;
}

.card-specs {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-specs li {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.spec-label {
    color: var(--gray);
}

.spec-val {
    color: var(--white);
    font-weight: 700;
}

/* ==========================================================================
   SECTION 3: ARCHITECTURE (SVG CIRCUIT)
   ========================================================================== */
.arch-lead {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--magenta);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.arch-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.arch-visual-box {
    padding: 0;
    background: rgba(2, 2, 4, 0.95);
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.svg-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* SVG circuit styles */
.circuit-node-group {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.circuit-node-group:hover {
    transform: scale(1.1);
}

.node-outer {
    transition: stroke-width 0.3s, stroke 0.3s, fill-opacity 0.3s;
}

.node-inner {
    transition: filter 0.3s, fill 0.3s;
}

.circuit-node-group:hover .node-outer {
    stroke-width: 3px;
    stroke: var(--cyan) !important;
}

.circuit-node-group:hover .node-inner {
    fill: var(--cyan) !important;
}

.circuit-node-group.active .node-outer {
    stroke-width: 4px;
    stroke: var(--magenta) !important;
}

.circuit-node-group.active .node-inner {
    fill: var(--magenta) !important;
}

.circuit-wire {
    transition: stroke-width 0.3s, stroke 0.3s;
}

.circuit-wire.active {
    stroke: var(--magenta) !important;
    stroke-width: 3px;
}

/* Node Info HUD display */
.arch-hud-box {
    display: flex;
    flex-direction: column;
    height: 480px;
}

.node-info-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 10px;
}

.node-info-placeholder {
    text-align: center;
    color: var(--gray);
    font-family: var(--font-mono);
}

.blinking-arrow {
    font-size: 2rem;
    color: var(--magenta);
    animation: flash 1s infinite;
    margin-bottom: 15px;
}

.placeholder-text {
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.placeholder-text .sub-text {
    font-size: 0.65rem;
    opacity: 0.5;
}

/* Dynamic actual info display styling */
.node-actual-info {
    animation: fadeIn 0.4s forwards;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.node-info-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.node-info-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray);
    margin: 10px 0 15px 0;
}

.status-badge {
    color: var(--green);
    border: 1px solid var(--green);
    padding: 1px 6px;
    background: rgba(57, 255, 20, 0.1);
}

.node-info-desc {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 25px;
}

.node-info-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.diag-data-item {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--cyan);
    padding: 8px 12px;
}

.data-item-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.data-item-val {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.node-calibrate-box {
    margin-top: auto;
}

.calibrate-btn {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.calibrate-btn:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: var(--glow-cyan);
}

/* ==========================================================================
   SECTION 4: TIMELINE (EXECUTION PROTOCOL)
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 80px auto 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.timeline-progress-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--cyan), var(--magenta));
    box-shadow: var(--glow-cyan);
    transition: height 0.1s ease;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    position: relative;
    width: 50%;
    margin-bottom: 50px;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item.left {
    align-self: flex-start;
    padding-right: 40px;
}

.timeline-item.right {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 40px;
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 25px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
    z-index: 3;
}

.timeline-item.left .timeline-dot {
    right: -7px;
}

.timeline-item.right .timeline-dot {
    left: -7px;
}

.timeline-item.active .timeline-dot {
    border-color: var(--cyan);
    background: var(--cyan);
    box-shadow: var(--glow-cyan);
}

.timeline-content {
    background: rgba(5, 7, 15, 0.8);
    width: 100%;
    max-width: 400px;
    border-color: rgba(255, 255, 255, 0.03);
    transition: transform 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    font-weight: 700;
    margin-bottom: 8px;
    display: inline-block;
}

.timeline-title {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 15px;
}

.timeline-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
}

/* ==========================================================================
   SECTION 5: CTA & REGISTRATION
   ========================================================================== */
.cta-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
}

.cta-subtitle {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 15px;
}

.cta-paragraph {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 30px;
}

/* Form inputs */
.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--magenta);
    pointer-events: none;
}

.cyber-input {
    width: 100%;
    background: rgba(3, 3, 7, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 15px 15px 15px 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--cyan);
    box-shadow: var(--glow-cyan);
    transition: width 0.3s;
}

.cyber-input:focus + .input-line {
    width: 100%;
}

.form-error-msg {
    color: var(--magenta);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    margin-top: 5px;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.form-error-msg.active {
    opacity: 1;
}

/* Checkbox */
.checkbox-group {
    flex-direction: row;
}

.cyber-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--gray);
}

.cyber-checkbox {
    display: none;
}

.checkbox-box {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(3, 3, 7, 0.9);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.3s;
    margin-top: 2px;
}

.cyber-checkbox:checked + .checkbox-box {
    border-color: var(--cyan);
    box-shadow: var(--glow-cyan);
}

.cyber-checkbox:checked + .checkbox-box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: var(--cyan);
}

.checkbox-text {
    line-height: 1.4;
}

/* CTA Success Hologram Certificate */
.connection-success-card {
    position: relative;
    border: 2px solid var(--magenta);
    padding: 30px;
    background: rgba(20, 2, 10, 0.85);
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.2), var(--glow-magenta);
    animation: hologramReveal 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.success-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(255, 0, 127, 0.1) 0%, transparent 80%);
    pointer-events: none;
}

.success-header {
    border-bottom: 1px dashed rgba(255, 0, 127, 0.4);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.success-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--magenta);
    text-shadow: var(--glow-magenta);
}

.success-subtitle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gray);
    margin-top: 2px;
}

.success-barcode {
    display: flex;
    height: 25px;
    opacity: 0.5;
    gap: 2px;
    margin-bottom: 20px;
}

.success-barcode span {
    flex-grow: 1;
    background: var(--magenta);
    height: 100%;
}

.success-barcode span:nth-child(even) { width: 1px; }
.success-barcode span:nth-child(3n) { width: 3px; }
.success-barcode span:nth-child(5n) { width: 4px; }

.success-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.detail-row .lbl {
    color: var(--gray);
}

.detail-row .val {
    color: var(--white);
    font-weight: 700;
}

.success-message {
    font-size: 0.8rem;
    color: var(--gray);
    border-left: 2px solid var(--magenta);
    padding-left: 15px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Warnings Box */
.cta-warning-box {
    display: flex;
    flex-direction: column;
    border-color: rgba(255, 0, 127, 0.15);
}

.cta-warning-box:hover {
    border-color: rgba(255, 0, 127, 0.4);
}

.warning-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.warning-header-icon {
    font-size: 2.2rem;
    color: var(--magenta);
    margin-bottom: 15px;
    animation: flash 1s infinite alternate;
}

.warning-title {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.warning-desc {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 15px;
}

.warning-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.warning-list li {
    font-size: 0.75rem;
    color: var(--white);
    position: relative;
    padding-left: 18px;
}

.warning-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.65rem;
    color: var(--magenta);
}

.warning-footer {
    font-size: 0.7rem;
    color: var(--gray);
    line-height: 1.4;
    margin-top: auto;
    border-top: 1px solid rgba(255, 0, 127, 0.1);
    padding-top: 15px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hud-footer {
    border-top: 1px solid rgba(0, 243, 255, 0.15);
    background: #020204;
    padding: 50px 0 30px 0;
    position: relative;
    z-index: 10;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 60%;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.footer-warning-ticker {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--magenta);
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: 1px;
    animation: ticker 20s linear infinite;
    width: 100%;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    text-decoration: none;
    color: var(--gray);
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: all 0.3s;
}

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

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-link {
    text-decoration: none;
    color: var(--gray);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    transition: color 0.3s;
}

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

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--gray);
    text-align: right;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    from { transform: translateY(0px) rotate(0deg); }
    to { transform: translateY(-15px) rotate(3deg); }
}

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

@keyframes scannerSweep {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

@keyframes radarSweep {
    from { top: -50%; }
    to { top: 120%; }
}

@keyframes soundWave {
    from { height: 10%; }
    to { height: 100%; }
}

@keyframes hologramReveal {
    0% {
        opacity: 0;
        transform: scale(0.9) rotateX(-20deg);
        filter: brightness(2);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
        filter: brightness(1);
    }
}

@keyframes ticker {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Glitch Animations */
@keyframes glitch-anim-1 {
    0% { clip: rect(24px, 9999px, 86px, 0); }
    10% { clip: rect(85px, 9999px, 5px, 0); }
    20% { clip: rect(27px, 9999px, 52px, 0); }
    30% { clip: rect(5px, 9999px, 88px, 0); }
    40% { clip: rect(72px, 9999px, 64px, 0); }
    50% { clip: rect(31px, 9999px, 45px, 0); }
    60% { clip: rect(100px, 9999px, 12px, 0); }
    70% { clip: rect(15px, 9999px, 92px, 0); }
    80% { clip: rect(62px, 9999px, 10px, 0); }
    90% { clip: rect(44px, 9999px, 78px, 0); }
    100% { clip: rect(98px, 9999px, 3px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(76px, 9999px, 11px, 0); }
    10% { clip: rect(22px, 9999px, 94px, 0); }
    20% { clip: rect(64px, 9999px, 12px, 0); }
    30% { clip: rect(8px, 9999px, 66px, 0); }
    40% { clip: rect(90px, 9999px, 43px, 0); }
    50% { clip: rect(15px, 9999px, 87px, 0); }
    60% { clip: rect(53px, 9999px, 19px, 0); }
    70% { clip: rect(82px, 9999px, 58px, 0); }
    80% { clip: rect(3px, 9999px, 74px, 0); }
    90% { clip: rect(91px, 9999px, 6px, 0); }
    100% { clip: rect(38px, 9999px, 89px, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid, .genesis-grid, .arch-grid, .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .module-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
    }
    
    .timeline-dot {
        left: 13px !important;
    }
}

@media (max-width: 768px) {
    .hud-header {
        padding: 0 20px;
    }
    
    .hud-nav {
        display: none; /* In a real app we'd trigger a burger menu, but we keep it clean or make it a drawer */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .module-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .module-visual-container {
        width: 300px;
        height: 300px;
    }
    
    .module-center-image {
        width: 180px;
        height: 180px;
    }
    
    .hud-circle-decor {
        width: 250px;
        height: 250px;
    }
}
