/* ==========================================================================
   PROJECT CHIMERA // NEO-NOIR GLITCHWAVE DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Core Dark Surfaces */
    --bg-void: #05070b;
    --bg-deep: #090d16;
    --bg-panel: rgba(12, 18, 30, 0.82);
    --bg-panel-solid: #0d1422;
    --bg-elevated: rgba(18, 27, 45, 0.9);

    /* Neon Accents (Default: NORMAL) */
    --accent-cyan: #00f0ff;
    --accent-cyan-dim: rgba(0, 240, 255, 0.16);
    --accent-cyan-glow: rgba(0, 240, 255, 0.48);
    --accent-magenta: #ff0055;
    --accent-magenta-dim: rgba(255, 0, 85, 0.16);
    --accent-volt: #ccff00;

    /* Typography Colors (High Contrast WCAG AA/AAA) */
    --text-bright: #f4f8ff;
    --text-body: #cbd5e1;
    --text-muted: #7c8da6;
    --border-subtle: rgba(0, 240, 255, 0.22);
    --border-faint: rgba(148, 163, 184, 0.15);

    /* Typography Stacks */
    --font-display: 'Orbitron', 'Noto Sans JP', sans-serif;
    --font-tactical: 'Rajdhani', 'Noto Sans JP', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout & Transitions */
    --header-h: 72px;
    --container-w: 1240px;
    --ease-cyber: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Core Modes */
html[data-mode="stealth"] {
    --accent-cyan: #00ff9d;
    --accent-cyan-dim: rgba(0, 255, 157, 0.15);
    --accent-cyan-glow: rgba(0, 255, 157, 0.45);
    --accent-magenta: #38bdf8;
    --accent-magenta-dim: rgba(56, 189, 248, 0.15);
    --accent-volt: #a3e635;
    --border-subtle: rgba(0, 255, 157, 0.24);
}

html[data-mode="overdrive"] {
    --accent-cyan: #ff1e56;
    --accent-cyan-dim: rgba(255, 30, 86, 0.18);
    --accent-cyan-glow: rgba(255, 30, 86, 0.55);
    --accent-magenta: #ffd600;
    --accent-magenta-dim: rgba(255, 214, 0, 0.18);
    --accent-volt: #00f0ff;
    --border-subtle: rgba(255, 30, 86, 0.32);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    background-color: var(--bg-void);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

body {
    background:
        radial-gradient(circle at 18% 12%, rgba(0, 240, 255, 0.07) 0%, transparent 42%),
        radial-gradient(circle at 85% 28%, rgba(255, 0, 85, 0.06) 0%, transparent 45%),
        var(--bg-void);
    overflow-x: clip;
    position: relative;
}

body.is-loading {
    overflow: hidden;
}

::selection {
    background: var(--accent-cyan);
    color: #030712;
}

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

button, input {
    font: inherit;
    color: inherit;
}

ul {
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 10000;
    background: var(--accent-cyan);
    color: #05070b;
    padding: 10px 18px;
    font-family: var(--font-mono);
    font-weight: 700;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 12px;
}

.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 28px;
}

.sp-only {
    display: none;
}

.ib {
    display: inline-block;
}

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

/* ==========================================================================
   BOOT LOADER SEQUENCE
   ========================================================================== */
.boot-loader {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: #04060a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s var(--ease-cyber), transform 0.55s var(--ease-cyber), visibility 0.55s;
}

.boot-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    pointer-events: none;
}

.boot-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 48%, rgba(0, 240, 255, 0.08) 50%, transparent 52%);
    background-size: 100% 6px;
    pointer-events: none;
}

.boot-inner {
    width: min(440px, 90vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}

.boot-reticle {
    position: relative;
    width: 124px;
    height: 124px;
    display: grid;
    place-items: center;
}

.boot-svg {
    width: 100%;
    height: 100%;
}

.boot-ring {
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 1.5;
    transform-origin: 60px 60px;
}

.boot-ring--outer {
    stroke-dasharray: 28 10 8 10;
    animation: spinCw 6s linear infinite;
}

.boot-ring--mid {
    stroke: var(--accent-magenta);
    stroke-dasharray: 16 12;
    animation: spinCcw 4s linear infinite;
}

.boot-tri {
    fill: none;
    stroke: rgba(0, 240, 255, 0.45);
    stroke-width: 1.2;
    transform-origin: 60px 60px;
    animation: pulseScale 1.6s ease-in-out infinite;
}

.boot-dot {
    fill: var(--accent-volt);
}

.boot-percent {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-bright);
    letter-spacing: 0.08em;
}

.boot-meta {
    width: 100%;
}

.boot-brand {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.boot-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}

.boot-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    box-shadow: 0 0 14px var(--accent-cyan);
    transition: width 0.08s linear;
}

.boot-log {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    min-height: 1.3em;
}

.boot-skip {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 6px 14px;
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: color 0.2s, border-color 0.2s;
}
.boot-skip:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* ==========================================================================
   AMBIENT CRT, HUD CORNERS & CUSTOM RETICLE CURSOR
   ========================================================================== */
.crt-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.014) 0px,
        rgba(255, 255, 255, 0.014) 1px,
        transparent 1px,
        transparent 3px
    );
}

.hud-frame {
    position: fixed;
    inset: 0;
    z-index: 850;
    pointer-events: none;
}

.hud-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: rgba(0, 240, 255, 0.35);
    border-style: solid;
}
.hud-corner--tl { top: calc(var(--header-h) + 12px); left: 12px; border-width: 2px 0 0 2px; }
.hud-corner--tr { top: calc(var(--header-h) + 12px); right: 12px; border-width: 2px 2px 0 0; }
.hud-corner--bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.hud-corner--br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.hud-rail-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.hud-rail-label {
    writing-mode: vertical-rl;
    letter-spacing: 0.18em;
}

.hud-rail-track {
    width: 2px;
    height: 130px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.hud-rail-fill {
    width: 100%;
    height: 0%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* Custom Cursor (Active only on fine pointer devices) */
.cyber-cursor {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cyber-cursor {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9200;
        pointer-events: none;
        transform: translate3d(-100px, -100px, 0);
    }

    .cyber-cursor__dot {
        width: 5px;
        height: 5px;
        background: var(--accent-cyan);
        border-radius: 50%;
        position: absolute;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 8px var(--accent-cyan);
    }

    .cyber-cursor__ring {
        width: 30px;
        height: 30px;
        border: 1px solid rgba(0, 240, 255, 0.55);
        position: absolute;
        transform: translate(-50%, -50%) rotate(45deg);
        transition: width 0.2s var(--ease-cyber), height 0.2s var(--ease-cyber), border-color 0.2s, background-color 0.2s;
    }

    .cyber-cursor.is-hover .cyber-cursor__ring {
        width: 44px;
        height: 44px;
        border-color: var(--accent-magenta);
        background: rgba(255, 0, 85, 0.08);
    }
}

/* ==========================================================================
   HUD HEADER & NAVIGATION
   ========================================================================== */
.hud-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(5, 8, 14, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
}

.hud-header__inner {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--accent-cyan);
}

.brand-logo__mark {
    display: inline-flex;
    filter: drop-shadow(0 0 8px var(--accent-cyan-glow));
}

.brand-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-logo__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.16em;
    color: var(--text-bright);
}

.brand-logo__sub {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent-cyan);
    letter-spacing: 0.08em;
}

.hud-telemetry {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 5px 12px;
    border: 1px solid var(--border-faint);
    background: rgba(9, 14, 24, 0.7);
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-volt);
    box-shadow: 0 0 8px var(--accent-volt);
    margin-right: 4px;
    animation: blinkPulse 2s infinite;
}

.telemetry-sep {
    color: rgba(0, 240, 255, 0.35);
}

.hud-telemetry strong {
    color: var(--accent-cyan);
    font-weight: 400;
}

.hud-nav__list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    font-family: var(--font-tactical);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    color: var(--text-body);
    transition: color 0.2s, background 0.2s;
}

.nav-idx {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    opacity: 0.8;
}

.hud-nav__link:hover,
.hud-nav__link.is-active {
    color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
}

.hud-nav__link--cta {
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.hud-nav__link--cta:hover {
    background: var(--accent-cyan);
    color: #05070b;
}
.hud-nav__link--cta:hover .nav-idx {
    color: #05070b;
}

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

.hud-btn-audio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-subtle);
    color: var(--text-body);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

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

.hud-btn-audio[aria-pressed="true"] {
    border-color: var(--accent-volt);
    color: var(--accent-volt);
    box-shadow: 0 0 14px rgba(204, 255, 0, 0.2);
}

.audio-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.audio-bars span {
    width: 2px;
    height: 4px;
    background: currentColor;
    transition: height 0.2s;
}

.hud-btn-audio[aria-pressed="true"] .audio-bars span:nth-child(1) { animation: eqBar 0.55s ease-in-out infinite alternate; }
.hud-btn-audio[aria-pressed="true"] .audio-bars span:nth-child(2) { animation: eqBar 0.4s ease-in-out 0.1s infinite alternate; }
.hud-btn-audio[aria-pressed="true"] .audio-bars span:nth-child(3) { animation: eqBar 0.65s ease-in-out 0.2s infinite alternate; }
.hud-btn-audio[aria-pressed="true"] .audio-bars span:nth-child(4) { animation: eqBar 0.48s ease-in-out 0.05s infinite alternate; }

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 38px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-subtle);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--accent-cyan);
    transition: transform 0.25s, opacity 0.25s;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
    background: rgba(6, 10, 18, 0.97);
    border-bottom: 1px solid var(--accent-cyan);
    padding: 18px 24px 24px;
}
.mobile-drawer__meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.12em;
}
.mobile-drawer__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-drawer__link {
    display: block;
    padding: 11px 14px;
    border: 1px solid var(--border-faint);
    font-family: var(--font-tactical);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-bright);
}
.mobile-drawer__link span {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    margin-right: 8px;
}
.mobile-drawer__link--highlight {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
}

/* ==========================================================================
   HERO SECTION (ABOVE THE FOLD)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: min(100vh, 920px);
    padding: calc(var(--header-h) + 48px) 0 84px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 44px;
    align-items: center;
}

.hero-grid > *,
.genesis-layout > *,
.arch-explorer > *,
.cta-grid > *,
.footer-top > * {
    min-width: 0;
}

.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: var(--accent-magenta-dim);
    border-left: 3px solid var(--accent-magenta);
    border-top: 1px solid rgba(255, 0, 85, 0.35);
    border-right: 1px solid rgba(255, 0, 85, 0.35);
    border-bottom: 1px solid rgba(255, 0, 85, 0.35);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #ff85ad;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.warning-badge__icon {
    color: var(--accent-magenta);
    animation: blinkPulse 1.3s infinite;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--accent-cyan);
    letter-spacing: 0.22em;
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.15rem, 3.85vw, 3.75rem);
    line-height: 1.18;
    color: var(--text-bright);
    letter-spacing: 0.02em;
    margin-bottom: 22px;
    text-shadow: 0 0 28px rgba(0, 240, 255, 0.22);
}

/* Chromatic Glitch Text Effect */
.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%;
    pointer-events: none;
    opacity: 0.78;
    clip-path: inset(0 0 100% 0);
}

.glitch-text::before {
    color: var(--accent-cyan);
    z-index: -1;
    animation: glitchSliceA 4.5s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: var(--accent-magenta);
    z-index: -2;
    animation: glitchSliceB 3.8s infinite linear alternate-reverse;
}

.hero-lead {
    font-size: 1.02rem;
    color: var(--text-body);
    max-width: 590px;
    margin-bottom: 32px;
    line-height: 1.85;
}

.hero-lead strong {
    color: var(--accent-cyan);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 38px;
}

/* Cyber Polygon Buttons */
.cyber-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 26px;
    font-family: var(--font-tactical);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    border: none;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    transition: transform 0.2s var(--ease-cyber), box-shadow 0.25s, background 0.25s, color 0.25s;
    overflow: hidden;
}

.cyber-btn--primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #00b8ff 100%);
    color: #040810;
    box-shadow: 0 0 28px var(--accent-cyan-glow);
}

.cyber-btn--primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
    box-shadow: 0 0 36px var(--accent-cyan);
}

.cyber-btn--ghost {
    background: rgba(12, 20, 36, 0.85);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    box-shadow: inset 0 0 16px rgba(0, 240, 255, 0.1);
}

.cyber-btn--ghost:hover {
    background: var(--accent-cyan-dim);
    color: var(--text-bright);
    transform: translateY(-2px);
}

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

.cyber-btn--sm {
    padding: 10px 18px;
    font-size: 0.88rem;
}

.cyber-btn__tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(4, 8, 16, 0.22);
    border: 1px solid currentColor;
}

.cyber-btn__arrow {
    transition: transform 0.2s;
}
.cyber-btn:hover .cyber-btn__arrow {
    transform: translateX(4px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid var(--border-faint);
    max-width: 560px;
}

.hero-stat__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.hero-stat__value {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-bright);
}

.hero-stat__value small {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    margin-left: 3px;
}

/* Hero Right: Interactive 3D Chimera Core Viewport */
.core-viewport {
    position: relative;
    aspect-ratio: 1 / 1.04;
    max-width: 500px;
    margin: 0 auto;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, rgba(8, 12, 22, 0.85) 68%);
    border: 1px solid var(--border-subtle);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 0 40px rgba(0, 240, 255, 0.06);
}

.core-hud-top {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    letter-spacing: 0.08em;
}

.chimera-core-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: grab;
}
.chimera-core-canvas:active {
    cursor: grabbing;
}

.core-reticle-svg {
    position: absolute;
    inset: 8%;
    width: 84%;
    height: 84%;
    z-index: 2;
    pointer-events: none;
    color: rgba(0, 240, 255, 0.25);
}

.reticle-dash-slow {
    fill: none;
    stroke: rgba(0, 240, 255, 0.22);
    stroke-width: 1;
    stroke-dasharray: 12 8 2 8;
    transform-origin: 200px 200px;
    animation: spinCw 28s linear infinite;
}

.reticle-dash-rev {
    fill: none;
    stroke: rgba(255, 0, 85, 0.22);
    stroke-width: 1;
    stroke-dasharray: 6 14;
    transform-origin: 200px 200px;
    animation: spinCcw 20s linear infinite;
}

.core-callout {
    position: absolute;
    z-index: 3;
    background: rgba(5, 9, 18, 0.85);
    border: 1px solid var(--border-subtle);
    padding: 6px 10px;
    font-family: var(--font-mono);
    pointer-events: none;
}
.core-callout--tl { top: 52px; left: 18px; }
.core-callout--br { bottom: 84px; right: 18px; text-align: right; }

.callout-key {
    display: block;
    font-size: 0.64rem;
    color: var(--text-muted);
}
.callout-val {
    font-size: 0.76rem;
    color: var(--accent-volt);
}

.core-mode-bar {
    position: relative;
    z-index: 3;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: rgba(4, 7, 14, 0.82);
    border: 1px solid var(--border-faint);
}

.core-mode-bar__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-right: 4px;
}

.mode-chip {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: var(--text-body);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.mode-chip:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}
.mode-chip.is-active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #04070d;
    font-weight: 700;
}

.core-barcode {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--text-muted);
}
.barcode-bars {
    letter-spacing: -1px;
    color: rgba(0, 240, 255, 0.55);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: var(--text-muted);
}
.scroll-indicator__line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
    animation: scrollDrop 1.8s ease-in-out infinite;
}

/* Caution Marquee Divider */
.cyber-ticker {
    background: rgba(0, 240, 255, 0.06);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    padding: 9px 0;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    color: var(--accent-cyan);
    white-space: nowrap;
}

.cyber-ticker__track {
    display: inline-block;
    animation: marqueeScroll 32s linear infinite;
}

/* ==========================================================================
   SHARED SECTION STYLING & PANELS
   ========================================================================== */
.section {
    position: relative;
    padding: 112px 0;
}

.section-header {
    margin-bottom: 56px;
}

.section-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.section-index {
    color: var(--accent-cyan);
    padding: 2px 10px;
    border: 1px solid var(--accent-cyan);
    background: var(--accent-cyan-dim);
}

.section-code {
    color: var(--accent-magenta);
    letter-spacing: 0.12em;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.85rem, 3.4vw, 2.85rem);
    color: var(--text-bright);
    line-height: 1.22;
    margin-bottom: 8px;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--text-muted);
    letter-spacing: 0.16em;
}

.cyber-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.cyber-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 240, 255, 0.06);
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.panel-tag {
    color: var(--accent-cyan);
    letter-spacing: 0.08em;
}

.panel-status {
    color: var(--accent-volt);
}

/* Scroll Reveal Utility */
.reveal-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-cyber), transform 0.7s var(--ease-cyber);
}
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   2.2 GENESIS SECTION (PROBLEM / OSCILLOSCOPE)
   ========================================================================== */
.genesis-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 42px;
    align-items: start;
}

.terminal-quote {
    padding: 18px 22px;
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--accent-cyan);
    margin-bottom: 22px;
}

.terminal-quote__prefix {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--accent-cyan);
    margin-bottom: 6px;
}

.terminal-quote p {
    color: var(--text-bright);
    font-size: 1rem;
}

.genesis-body {
    margin-bottom: 18px;
    font-size: 0.98rem;
}
.genesis-body strong {
    color: var(--accent-cyan);
}

.genesis-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 26px;
}

.metric-card {
    padding: 16px;
    border: 1px solid var(--border-faint);
    background: rgba(9, 14, 25, 0.75);
}
.metric-card--legacy {
    border-top: 2px solid var(--accent-magenta);
}
.metric-card--chimera {
    border-top: 2px solid var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
}

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

.metric-card__num {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 4px;
}
.metric-card--legacy .metric-card__num { color: #ff6b8b; }
.metric-card--chimera .metric-card__num { color: var(--accent-cyan); }

.metric-card__desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.genesis-visualizer {
    padding-bottom: 22px;
}

.oscilloscope-canvas {
    display: block;
    width: 100%;
    height: 250px;
    background: #050811;
    border-bottom: 1px solid var(--border-faint);
}

.osc-legend {
    padding: 14px 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.osc-legend__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-swatch {
    width: 12px;
    height: 3px;
    display: inline-block;
}
.osc-legend__item--bio .legend-swatch { background: var(--accent-magenta); }
.osc-legend__item--bio strong { color: #ff6b8b; }
.osc-legend__item--chimera .legend-swatch { background: var(--accent-cyan); }
.osc-legend__item--chimera strong { color: var(--accent-cyan); }

.stress-control {
    padding: 12px 20px 0;
}

.stress-control__label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-body);
    margin-bottom: 8px;
}

.stress-control__label output {
    color: var(--accent-volt);
    font-weight: 700;
}

.cyber-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    cursor: pointer;
}
.cyber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-cyan);
    border: 2px solid #05070b;
    box-shadow: 0 0 12px var(--accent-cyan);
    transform: rotate(45deg);
    cursor: pointer;
}
.cyber-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-cyan);
    border: 2px solid #05070b;
    border-radius: 0;
    box-shadow: 0 0 12px var(--accent-cyan);
    cursor: pointer;
}

.stress-control__ticks {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ==========================================================================
   2.3 SOLUTION MODULES SECTION (3D TILT CARDS)
   ========================================================================== */
.modules-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.025) 50%, transparent 100%);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.module-card {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    padding: 28px;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.18s ease-out;
    transform-style: preserve-3d;
    overflow: hidden;
}

.module-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 240, 255, 0.14);
}

.module-card__glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(0, 240, 255, 0.14), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s;
}
.module-card:hover .module-card__glare {
    opacity: 1;
}

.module-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    margin-bottom: 18px;
}

.module-id {
    color: var(--text-muted);
}

.module-badge {
    padding: 2px 8px;
    background: var(--accent-cyan-dim);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.module-icon {
    width: 54px;
    height: 54px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px var(--accent-cyan-glow));
}

.module-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.module-title small {
    font-family: var(--font-tactical);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.module-desc {
    font-size: 0.94rem;
    color: var(--text-body);
    margin-bottom: 20px;
}
.module-desc strong {
    color: var(--accent-volt);
}

/* Mini Cyber Mockups inside Cards */
.module-mockup {
    background: rgba(4, 8, 16, 0.8);
    border: 1px solid var(--border-faint);
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.mockup-bar-row {
    display: grid;
    grid-template-columns: 62px 1fr 38px;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}
.mockup-bar-row:last-child { margin-bottom: 0; }

.m-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.09);
}
.m-bar i {
    display: block;
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}
.m-bar--alt i {
    background: var(--accent-volt);
}

.module-mockup--matrix span {
    display: block;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.weight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.weight-grid i {
    font-style: normal;
    text-align: center;
    padding: 3px 0;
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-cyan);
}

.ice-log {
    color: var(--accent-volt);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-mockup--coords {
    display: flex;
    justify-content: space-between;
    color: var(--accent-cyan);
}

/* ==========================================================================
   2.4 SYSTEM ARCHITECTURE SECTION
   ========================================================================== */
.arch-explorer {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}

.arch-svg-wrap {
    padding: 12px;
    background: #060a14;
}

.arch-svg {
    width: 100%;
    height: auto;
    display: block;
}

.arch-trace {
    stroke-dasharray: 10 10;
    opacity: 0.18;
    transition: opacity 0.3s, stroke 0.3s;
}
.arch-trace.is-active {
    opacity: 1;
    stroke: var(--accent-cyan);
    animation: packetFlow 1.2s linear infinite;
}

.arch-node {
    cursor: pointer;
}

.arch-node__box {
    fill: #0b1324;
    stroke: rgba(0, 240, 255, 0.32);
    stroke-width: 1.5;
    transition: fill 0.25s, stroke 0.25s;
}

.arch-node__code {
    fill: var(--text-muted);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 1px;
}

.arch-node__name {
    fill: #f1f5f9;
    font-family: 'Orbitron', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
}

.arch-node__led {
    fill: #334155;
    transition: fill 0.25s;
}

.arch-node:hover .arch-node__box,
.arch-node.is-active .arch-node__box {
    fill: rgba(0, 240, 255, 0.14);
    stroke: var(--accent-cyan);
    stroke-width: 2.2;
}

.arch-node.is-active .arch-node__led {
    fill: var(--accent-volt);
}

.arch-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border-subtle);
}

.arch-tab {
    padding: 11px 8px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-faint);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.arch-tab:last-child { border-right: none; }
.arch-tab:hover { color: var(--text-bright); }
.arch-tab.is-active {
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
}

.arch-inspector {
    display: flex;
    flex-direction: column;
}

.arch-inspector__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.arch-inspector__title {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.arch-inspector__desc {
    font-size: 0.93rem;
    color: var(--text-body);
    margin-bottom: 22px;
}

.arch-spec-list {
    border-top: 1px solid var(--border-faint);
    margin-bottom: 20px;
}

.arch-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-faint);
    font-size: 0.84rem;
}

.arch-spec-row dt {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.arch-spec-row dd {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    text-align: right;
}

.arch-hex-dump {
    margin-top: auto;
    padding: 10px 12px;
    background: #04070e;
    border: 1px solid var(--border-faint);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-volt);
    overflow-x: auto;
}

/* ==========================================================================
   2.5 EXECUTION PROTOCOL (USE CASES & TIMELINE)
   ========================================================================== */
.usecase-box {
    margin-bottom: 64px;
}

.usecase-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border-subtle);
}

.usecase-tab {
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-faint);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}
.usecase-tab:last-child { border-right: none; }

.uc-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-cyan);
    margin-bottom: 3px;
}

.uc-label {
    font-family: var(--font-tactical);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-body);
}

.usecase-tab.is-active {
    background: var(--accent-cyan-dim);
    box-shadow: inset 0 -2px 0 var(--accent-cyan);
}
.usecase-tab.is-active .uc-label {
    color: var(--text-bright);
}

.usecase-content {
    padding: 32px;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 32px;
    align-items: center;
}

.usecase-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-magenta);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.usecase-heading {
    font-size: 1.4rem;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.usecase-text {
    font-size: 0.95rem;
    color: var(--text-body);
}

.usecase-kpi {
    padding: 22px;
    background: rgba(4, 8, 16, 0.75);
    border: 1px solid var(--border-subtle);
    text-align: center;
}

.usecase-kpi__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.usecase-kpi__val {
    display: block;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--accent-volt);
    line-height: 1.2;
    margin: 6px 0;
}

.usecase-kpi__sub {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent-cyan);
}

/* Roadmap Timeline */
.roadmap-heading {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    margin-bottom: 28px;
}

.roadmap-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan) 65%, rgba(148, 163, 184, 0.2) 100%);
}

.roadmap-item {
    position: relative;
    padding-top: 28px;
}

.roadmap-marker {
    position: absolute;
    top: 3px;
    left: 0;
    width: 16px;
    height: 16px;
    background: var(--bg-void);
    border: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

.roadmap-item.is-done .roadmap-marker {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan);
}

.roadmap-item.is-current .roadmap-marker {
    border-color: var(--accent-volt);
    background: var(--accent-volt);
    box-shadow: 0 0 14px var(--accent-volt);
}

.roadmap-card {
    padding: 18px;
    background: rgba(11, 17, 30, 0.8);
    border: 1px solid var(--border-faint);
    height: 100%;
}

.roadmap-item.is-current .roadmap-card {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.06);
}

.roadmap-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    margin-bottom: 10px;
}

.roadmap-date { color: var(--accent-cyan); }
.roadmap-status { color: var(--text-muted); }
.roadmap-status--live {
    color: var(--accent-volt);
    font-weight: 700;
}

.roadmap-card h4 {
    font-size: 0.98rem;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.roadmap-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* ==========================================================================
   2.6 CLOSING CTA SECTION (COUNTDOWN & REGISTRATION TERMINAL)
   ========================================================================== */
.cta-box {
    position: relative;
    padding: 48px;
    overflow: hidden;
}

.cta-box__glow {
    position: absolute;
    top: -35%;
    right: -15%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.cta-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.cta-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    color: var(--text-bright);
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 0.98rem;
    margin-bottom: 28px;
}
.cta-desc strong {
    color: var(--accent-cyan);
}

.countdown-panel {
    background: #050811;
    border: 1px solid var(--border-subtle);
    padding: 16px 20px;
    margin-bottom: 22px;
}

.countdown-panel__head {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.live-blink {
    color: var(--accent-magenta);
    animation: blinkPulse 1.2s infinite;
}

.countdown-digits {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.cd-unit {
    text-align: center;
    flex: 1;
}

.cd-unit span {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 2.05rem);
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1.1;
}

.cd-unit--ms span {
    color: var(--accent-magenta);
}

.cd-unit small {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.cd-sep {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: rgba(148, 163, 184, 0.4);
}

.quota-meter__labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-bottom: 6px;
}
.quota-meter__labels strong {
    color: var(--accent-volt);
}

.quota-meter__bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
}
.quota-meter__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* Registration Form */
.cyber-form {
    background: rgba(5, 9, 17, 0.88);
    border: 1px solid var(--border-subtle);
    padding: 26px;
}

.cyber-form__head {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-faint);
}

.form-field {
    margin-bottom: 16px;
}

.form-field label,
.form-fieldset legend {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-body);
    margin-bottom: 6px;
}

.req { color: var(--accent-magenta); }

.form-field input {
    width: 100%;
    padding: 12px 14px;
    background: #080e1a;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-bright);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

.form-fieldset {
    border: none;
    margin-bottom: 20px;
}

.tier-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tier-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tier-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #080e1a;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s;
}

.tier-box strong {
    font-size: 0.76rem;
    color: var(--text-bright);
}
.tier-box small {
    font-size: 0.66rem;
    color: var(--text-muted);
}

.tier-option input:checked + .tier-box {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}
.tier-option input:checked + .tier-box small {
    color: var(--accent-cyan);
}

.tier-option input:focus-visible + .tier-box {
    outline: 2px solid var(--accent-cyan);
}

.form-error {
    margin-bottom: 14px;
    padding: 8px 12px;
    background: var(--accent-magenta-dim);
    border-left: 3px solid var(--accent-magenta);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #ff9ebb;
}

.form-note {
    margin-top: 12px;
    font-size: 0.73rem;
    color: var(--text-muted);
    text-align: center;
}

/* Generated Clearance Pass */
.clearance-pass {
    background: linear-gradient(145deg, rgba(6, 15, 28, 0.96), rgba(14, 24, 44, 0.96));
    border: 1px solid var(--accent-volt);
    padding: 26px;
    box-shadow: 0 0 32px rgba(204, 255, 0, 0.16);
}

.clearance-pass__badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(204, 255, 0, 0.14);
    border: 1px solid var(--accent-volt);
    color: var(--accent-volt);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    margin-bottom: 10px;
}

.clearance-pass__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-bright);
    margin-bottom: 16px;
}

.clearance-pass__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: #040811;
    border: 1px solid var(--border-subtle);
    margin-bottom: 18px;
}

.pass-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.16);
}
.pass-row:last-child { border-bottom: none; }
.pass-row span { color: var(--text-muted); }
.pass-row strong, .pass-row code { color: var(--accent-cyan); }

.pass-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
}

#pass-qr-canvas {
    border: 1px solid var(--accent-cyan);
    background: #040811;
}

.clearance-pass__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cyber-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-decoration: underline;
    cursor: pointer;
}
.cyber-link-btn:hover { color: var(--accent-cyan); }

/* ==========================================================================
   2.7 FOOTER & MODAL
   ========================================================================== */
.cyber-footer {
    border-top: 1px solid var(--border-subtle);
    background: #04060b;
    padding: 64px 0 36px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-faint);
}

.footer-tagline {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col__title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    color: var(--accent-cyan);
    margin-bottom: 14px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col a,
.footer-doc-link {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-body);
    cursor: pointer;
    transition: color 0.2s;
}
.footer-col a:hover,
.footer-doc-link:hover {
    color: var(--accent-cyan);
}

.social-grid {
    display: flex;
    gap: 10px;
}

.social-hex {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--accent-cyan);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social-hex:hover {
    background: var(--accent-cyan);
    color: #04070d;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Modal */
.hud-modal {
    position: fixed;
    inset: 0;
    z-index: 9300;
    display: grid;
    place-items: center;
    padding: 20px;
}
.hud-modal[hidden] {
    display: none;
}

.hud-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 12, 0.82);
    backdrop-filter: blur(6px);
}

.hud-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(620px, 100%);
    max-height: 85vh;
    overflow-y: auto;
}

.hud-modal__close {
    background: none;
    border: 1px solid var(--border-subtle);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    padding: 3px 9px;
    cursor: pointer;
}
.hud-modal__close:hover {
    background: var(--accent-magenta);
    border-color: var(--accent-magenta);
    color: #fff;
}

.hud-modal__content {
    padding: 26px;
}

.hud-modal__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-bright);
    margin-bottom: 14px;
}

.hud-modal__body {
    font-size: 0.92rem;
    color: var(--text-body);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes spinCw {
    to { transform: rotate(360deg); }
}

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

@keyframes pulseScale {
    0%, 100% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.06); opacity: 1; }
}

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

@keyframes eqBar {
    0% { height: 3px; }
    100% { height: 12px; }
}

@keyframes scrollDrop {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

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

@keyframes packetFlow {
    to { stroke-dashoffset: -40; }
}

@keyframes glitchSliceA {
    0%, 86%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
    88% { clip-path: inset(14% 0 62% 0); transform: translate(-3px, 1px); }
    91% { clip-path: inset(68% 0 10% 0); transform: translate(3px, -1px); }
    94% { clip-path: inset(38% 0 42% 0); transform: translate(-2px, 0); }
}

@keyframes glitchSliceB {
    0%, 84%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0); }
    87% { clip-path: inset(55% 0 20% 0); transform: translate(3px, 1px); }
    92% { clip-path: inset(12% 0 72% 0); transform: translate(-3px, -1px); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & SMARTPHONE)
   ========================================================================== */
@media (max-width: 1120px) {
    .hud-telemetry {
        display: none;
    }

    .hero-grid,
    .genesis-layout,
    .arch-explorer,
    .cta-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .core-viewport {
        width: 100%;
        max-width: 440px;
    }

    .roadmap-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .roadmap-timeline::before {
        display: none;
    }
}

@media (max-width: 820px) {
    .hud-nav,
    .hud-rail-right {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .section {
        padding: 80px 0;
    }

    .modules-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .usecase-tabs {
        grid-template-columns: minmax(0, 1fr);
    }
    .usecase-tab {
        border-right: none;
        border-bottom: 1px solid var(--border-faint);
    }

    .usecase-content {
        grid-template-columns: minmax(0, 1fr);
        padding: 22px;
    }

    .footer-top,
    .footer-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .cta-box {
        padding: 28px 20px;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }

    .hud-header__inner {
        padding: 0 14px;
        gap: 8px;
    }

    .brand-logo__sub {
        display: none;
    }

    .hud-btn-audio {
        padding: 6px 9px;
        font-size: 0.68rem;
    }

    .warning-badge {
        font-size: 0.68rem;
        padding: 6px 10px;
        max-width: 100%;
    }

    .hero-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        overflow-wrap: anywhere;
    }

    .cyber-btn {
        padding: 13px 16px;
        font-size: 0.88rem;
        gap: 8px;
    }

    .sp-only {
        display: inline;
    }

    .hero-stats,
    .genesis-metrics,
    .roadmap-timeline,
    .arch-tabs,
    .tier-selector,
    .clearance-pass__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .arch-tab {
        border-right: none;
        border-bottom: 1px solid var(--border-faint);
    }

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

    .hero-actions .cyber-btn {
        width: 100%;
        justify-content: center;
    }

    .core-callout {
        display: none;
    }

    .core-barcode {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .glitch-text::before,
    .glitch-text::after {
        display: none !important;
    }
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }
}
