/* ==========================================================================
   PROJECT CHIMERA // CYBERPUNK 204X STYLESHEET
   Concept: Neo-Noir Glitchwave / HUD High-Density Interface
   ========================================================================== */

/* --- CSS Variables / Color Palette --- */
:root {
  --bg-black: #060609;
  --bg-darker: #0a0a0f;
  --bg-card: rgba(14, 15, 23, 0.75);
  --bg-card-hover: rgba(22, 24, 38, 0.9);
  
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.45);
  --neon-pink: #ff0055;
  --neon-pink-glow: rgba(255, 0, 85, 0.45);
  --neon-yellow: #ffe600;
  --neon-yellow-glow: rgba(255, 230, 0, 0.45);
  --neon-green: #00ff66;
  --neon-green-glow: rgba(0, 255, 102, 0.45);
  
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #526071;
  
  --border-cyan: rgba(0, 240, 255, 0.35);
  --border-pink: rgba(255, 0, 85, 0.35);
  --border-grid: rgba(0, 240, 255, 0.08);

  --font-head: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sub: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-body: 'Noto Sans JP', 'Rajdhani', sans-serif;

  --transition-fast: 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Reset & Body Setup --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body.cyber-body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-black);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  min-height: 100vh;
  cursor: crosshair; /* Fallback for custom cursor */
}

/* Hide default cursor on desktop for custom HUD cursor */
@media (min-width: 1024px) {
  body.cyber-body {
    cursor: none;
  }
  a, button, input, select, textarea {
    cursor: none !important;
  }
}

/* --- Cyberpunk Boot Loading Screen --- */
.boot-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #040508;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
  overflow: hidden;
}

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

.boot-backdrop-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: bgGridPan 20s linear infinite;
  pointer-events: none;
}
@keyframes bgGridPan {
  0% { transform: translateY(0); }
  100% { transform: translateY(40px); }
}

.boot-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.boot-logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 15px var(--neon-cyan);
}

.boot-glyph {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.boot-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-pink);
  letter-spacing: 2px;
  margin-bottom: 2rem;
  text-shadow: 0 0 8px var(--neon-pink-glow);
}

.boot-spinner-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.boot-ring {
  position: absolute;
  border-radius: 50%;
}

.boot-ring.outer {
  width: 100%; height: 100%;
  border: 2px dashed var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  animation: bootRingSpin 8s linear infinite;
}

.boot-ring.inner {
  width: 75%; height: 75%;
  border: 2px dotted var(--neon-pink);
  animation: bootRingSpinRev 4s linear infinite;
}

@keyframes bootRingSpin { 100% { transform: rotate(360deg); } }
@keyframes bootRingSpinRev { 100% { transform: rotate(-360deg); } }

.boot-percent {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px var(--neon-cyan);
}

.boot-progress-frame {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-cyan);
  padding: 1px;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.boot-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  box-shadow: 0 0 12px var(--neon-cyan);
  transition: width 0.08s ease-out;
}

.boot-log-terminal {
  width: 100%;
  background: rgba(6, 8, 12, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.6rem 1rem;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.boot-log-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boot-skip-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.boot-skip-btn:hover {
  border-color: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 8px var(--neon-pink-glow);
}

/* --- Scanlines & Screen Texture Overlays --- */
.scanlines {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9990;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.35) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 3px, 6px 100%;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.scanlines.off {
  opacity: 0;
}

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

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

/* --- Custom HUD Cursor --- */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  display: none;
  mix-blend-mode: screen;
}

@media (min-width: 1024px) {
  .custom-cursor {
    display: block;
  }
}

.cursor-crosshair {
  width: 32px;
  height: 32px;
  border: 1px dashed var(--neon-cyan);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, border-color 0.2s;
  animation: cursorRotate 10s linear infinite;
}

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

.cursor-label {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--neon-cyan);
  white-space: nowrap;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 4px;
  border-left: 2px solid var(--neon-cyan);
}

body:hover .custom-cursor.hovering .cursor-crosshair {
  transform: translate(-50%, -50%) scale(1.4);
  border: 1px solid var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink-glow);
}

@keyframes cursorRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Typography Helpers & Neon Accents --- */
.neon-cyan-text {
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 8px var(--neon-cyan-glow);
}
.neon-pink-text {
  color: var(--neon-pink) !important;
  text-shadow: 0 0 8px var(--neon-pink-glow);
}
.neon-yellow-text {
  color: var(--neon-yellow) !important;
  text-shadow: 0 0 8px var(--neon-yellow-glow);
}
.neon-green-text {
  color: var(--neon-green) !important;
  text-shadow: 0 0 8px var(--neon-green-glow);
}

.neon-cyan-border { border-color: var(--neon-cyan) !important; }
.neon-pink-border { border-color: var(--neon-pink) !important; }
.neon-yellow-border { border-color: var(--neon-yellow) !important; }
.neon-green-border { border-color: var(--neon-green) !important; }

/* Pulse Animation */
.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulseAnim 1.6s infinite ease-in-out;
  margin-right: 6px;
}
@keyframes pulseAnim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
}

/* Glass & Cyber Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 16px rgba(0, 240, 255, 0.03);
  position: relative;
}

/* --- Top HUD Header --- */
.hud-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 68px;
  background: rgba(6, 6, 9, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
}

.hud-header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 160px; height: 3px;
  background: linear-gradient(90deg, var(--neon-pink), transparent);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-symbol {
  color: var(--neon-cyan);
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}

.logo-bracket {
  color: var(--neon-pink);
  opacity: 0.8;
}

.sys-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(0, 240, 255, 0.06);
  padding: 4px 10px;
  border-left: 2px solid var(--neon-cyan);
}

.status-indicator.live {
  width: 7px; height: 7px;
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
  border-radius: 50%;
  display: inline-block;
  animation: liveBlink 1.2s infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Nav Menu */
.hud-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

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

.nav-item:hover, .nav-item.active {
  color: #fff;
  text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* Controls Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hud-clock {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-cyan);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  letter-spacing: 1px;
}

.hud-btn {
  background: transparent;
  border: 1px solid var(--border-cyan);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.hud-btn:hover {
  border-color: var(--neon-pink);
  color: #fff;
  background: rgba(255, 0, 85, 0.1);
  box-shadow: 0 0 10px var(--neon-pink-glow);
}

/* --- Section Container & Common Layout --- */
.page-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 68px 2rem 4rem 2rem;
  position: relative;
}

.section {
  padding: 7rem 0 5rem 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  margin-bottom: 1.2rem;
  border-left: 3px solid var(--neon-pink);
  padding-left: 10px;
  letter-spacing: 2px;
}

.tag-index {
  color: var(--neon-pink);
  font-weight: bold;
}

.section-h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.section-h2.center {
  text-align: center;
}

.sub-h2 {
  font-family: var(--font-sub);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 1.8rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.section-sub-lead.center {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

/* Corner Decor */
.corner-decor {
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.corner-decor.top-left {
  top: 0; left: 0;
  border-top: 2px solid var(--neon-cyan);
  border-left: 2px solid var(--neon-cyan);
}
.corner-decor.top-right {
  top: 0; right: 0;
  border-top: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
}
.corner-decor.bottom-left {
  bottom: 0; left: 0;
  border-bottom: 2px solid var(--neon-cyan);
  border-left: 2px solid var(--neon-cyan);
}
.corner-decor.bottom-right {
  bottom: 0; right: 0;
  border-bottom: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
}

/* --- Cyber Buttons --- */
.cyber-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  border: none;
  cursor: pointer;
  background: transparent;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: var(--transition-fast);
}

.cyber-button.primary {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(255, 0, 85, 0.25));
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan-glow), inset 0 0 10px rgba(0, 240, 255, 0.2);
}

.cyber-button.primary:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.5), rgba(255, 0, 85, 0.5));
  box-shadow: 0 0 25px var(--neon-cyan), inset 0 0 15px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

.cyber-button.secondary {
  background: rgba(14, 15, 23, 0.8);
  border: 1px solid var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink-glow);
}

.cyber-button.secondary:hover {
  background: rgba(255, 0, 85, 0.2);
  box-shadow: 0 0 20px var(--neon-pink);
  transform: translateY(-2px);
}

.cyber-button.large {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

.btn-label {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.btn-corner {
  position: absolute;
  width: 6px; height: 6px;
}
.btn-corner.tl {
  top: 3px; left: 3px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}
.btn-corner.br {
  bottom: 3px; right: 3px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
}

/* ==========================================================================
   01: HERO SECTION STYLES
   ========================================================================== */
.hero-section {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  padding-top: 3rem;
}

.alert-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 0, 85, 0.12);
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 14px;
  margin-bottom: 1.8rem;
  letter-spacing: 1.5px;
  box-shadow: 0 0 10px var(--neon-pink-glow);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: 0.6rem;
  position: relative;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* Glitch Title Keyframes */
.hero-title::before, .hero-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.hero-title::before {
  left: 2px;
  text-shadow: -2px 0 var(--neon-pink);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitchAnim 3s infinite linear alternate-reverse;
}
.hero-title::after {
  left: -2px;
  text-shadow: -2px 0 var(--neon-cyan);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitchAnim2 2.5s infinite linear alternate-reverse;
}

@keyframes glitchAnim {
  0% { clip: rect(10px, 9999px, 44px, 0); }
  20% { clip: rect(80px, 9999px, 95px, 0); }
  40% { clip: rect(30px, 9999px, 60px, 0); }
  60% { clip: rect(120px, 9999px, 150px, 0); }
  80% { clip: rect(55px, 9999px, 75px, 0); }
  100% { clip: rect(135px, 9999px, 160px, 0); }
}
@keyframes glitchAnim2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  25% { clip: rect(10px, 9999px, 40px, 0); }
  50% { clip: rect(120px, 9999px, 150px, 0); }
  75% { clip: rect(40px, 9999px, 80px, 0); }
  100% { clip: rect(90px, 9999px, 115px, 0); }
}

.hero-subheading {
  font-family: var(--font-sub);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* Telemetry Bar */
.telemetry-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: rgba(10, 12, 18, 0.7);
  border: 1px solid var(--border-cyan);
  padding: 1rem 1.4rem;
  position: relative;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.telem-val {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}

.telem-meter {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 4px;
}

.meter-fill {
  height: 100%;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}
.meter-fill.pink {
  background: var(--neon-pink);
  box-shadow: 0 0 6px var(--neon-pink);
}
.meter-fill.green {
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
}

/* Hero Visual Frame (HUD Ring & Reticle) */
.hero-visual-frame {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-target-reticle {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reticle-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--neon-cyan);
}

.reticle-ring.ring-1 {
  width: 100%; height: 100%;
  animation: spinCw 24s linear infinite;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.reticle-ring.ring-2 {
  width: 70%; height: 70%;
  border: 1px dotted var(--neon-pink);
  animation: spinCcw 14s linear infinite;
}

@keyframes spinCw { 100% { transform: rotate(360deg); } }
@keyframes spinCcw { 100% { transform: rotate(-360deg); } }

.reticle-cross {
  position: absolute;
  width: 40px; height: 40px;
}
.reticle-cross::before, .reticle-cross::after {
  content: '';
  position: absolute;
  background: var(--neon-cyan);
}
.reticle-cross::before { top: 19px; left: 0; width: 40px; height: 2px; }
.reticle-cross::after { top: 0; left: 19px; width: 2px; height: 40px; }

.reticle-data {
  position: absolute;
  bottom: -40px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border: 1px solid var(--border-cyan);
}

.hologram-hud-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.7);
  border-left: 3px solid var(--neon-pink);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ==========================================================================
   02: PROLOGUE / GENESIS SECTION
   ========================================================================== */
.prologue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

/* Terminal Box */
.cyber-terminal-box {
  background: #050608;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 240, 255, 0.05);
  font-family: var(--font-mono);
  margin-top: 2rem;
}

.terminal-header {
  background: #0f121a;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff4757; }
.terminal-dot.yellow { background: #ffa502; }
.terminal-dot.green { background: #2ed573; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-left: 8px;
}

.terminal-body {
  padding: 1.2rem 1.4rem;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.term-prompt {
  color: var(--neon-cyan);
  margin-right: 6px;
  font-weight: bold;
}

.term-line.highlight {
  color: var(--neon-yellow);
}

.term-line.typing-cursor::after {
  content: '█';
  color: var(--neon-pink);
  animation: blinkCursor 0.8s infinite;
}
@keyframes blinkCursor { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Stack Cards */
.prologue-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cyber-card {
  padding: 1.8rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.cyber-card:hover {
  transform: translateX(8px);
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.card-footer-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-cyan);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
  letter-spacing: 1px;
}

/* ==========================================================================
   03: SOLUTION MODULES SECTION
   ========================================================================== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.module-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: var(--transition-normal);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.module-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--neon-cyan);
  box-shadow: 0 14px 40px rgba(0, 240, 255, 0.18);
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.module-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
}

.module-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.module-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #fff;
}

.module-subtitle {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.module-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.module-specs {
  list-style: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.module-specs li {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.module-specs strong {
  color: var(--neon-cyan);
}

.module-corner-bracket {
  position: absolute;
  bottom: 0; right: 0;
  width: 16px; height: 16px;
  border-bottom: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
}

/* ==========================================================================
   04: SYSTEM ARCHITECTURE SPEC
   ========================================================================== */
.arch-console-container {
  margin-top: 2rem;
}

.console-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
  overflow-x: auto;
}

.console-tab {
  background: rgba(14, 15, 23, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-bottom: none;
  color: var(--text-secondary);
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.tab-indicator {
  width: 6px; height: 6px;
  background: var(--text-muted);
}

.console-tab.active {
  background: var(--bg-card);
  color: #fff;
  border-color: var(--neon-cyan);
  border-top: 3px solid var(--neon-cyan);
}

.console-tab.active .tab-indicator {
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

.console-display {
  padding: 2.5rem;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeInTab 0.3s ease-in-out;
}
@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.data-column h4 {
  font-family: var(--font-sub);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.bar-stat {
  margin-bottom: 1.4rem;
}

.stat-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.stat-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  border-radius: 1px;
}

.bar-fill {
  height: 100%;
}
.bar-fill.cyan { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.bar-fill.pink { background: var(--neon-pink); box-shadow: 0 0 8px var(--neon-pink); }
.bar-fill.green { background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }
.bar-fill.yellow { background: var(--neon-yellow); box-shadow: 0 0 8px var(--neon-yellow); }

.code-stream {
  background: #06070a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 190px;
}

/* ==========================================================================
   05: ROADMAP / TIMELINE SECTION
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 3rem auto 0 auto;
  padding: 1rem 0;
}

.timeline-line {
  position: absolute;
  top: 0; bottom: 0; left: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink), var(--neon-green));
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 18px; left: 24px;
  width: 14px; height: 14px;
  background: var(--bg-black);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  transform: translate(-50%, 0);
  z-index: 2;
}

.timeline-item.active .timeline-dot {
  border-color: var(--neon-pink);
  background: var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink);
}

.timeline-card {
  padding: 2rem;
  transition: var(--transition-normal);
}

.timeline-card:hover {
  transform: translateX(10px);
  border-color: var(--neon-cyan);
}

.card-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
}

.phase-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.phase-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}

.phase-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.phase-metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.metric-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-cyan);
  color: var(--neon-cyan);
  padding: 3px 8px;
}

/* ==========================================================================
   06: PRE-REGISTER / CTA SECTION
   ========================================================================== */
.cta-section {
  background: radial-gradient(circle at center, rgba(255, 0, 85, 0.08) 0%, rgba(6, 6, 9, 0.9) 70%);
  border: 1px solid var(--border-pink);
  box-shadow: 0 0 50px rgba(255, 0, 85, 0.15);
  padding: 5rem 3rem;
  position: relative;
  text-align: center;
}

.cta-inner {
  max-width: 820px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-pink);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--neon-pink);
  padding: 6px 14px;
  margin-bottom: 2rem;
  letter-spacing: 1.5px;
}

.cta-h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 1.5rem auto 3rem auto;
}

/* Countdown */
.cyber-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid var(--border-cyan);
  padding: 1.5rem 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
}

.count-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.count-val {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan);
  line-height: 1;
}

.count-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-top: 4px;
}

.count-sep {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--neon-pink);
  animation: sepBlink 1s infinite;
}
@keyframes sepBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.2; } }

/* Form */
.cyber-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.input-wrap label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.input-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-cyan);
  padding: 0.2rem 0.8rem;
  transition: var(--transition-fast);
}

.input-box:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.input-prefix {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  margin-right: 8px;
  font-size: 0.85rem;
}

.input-box input, .input-box select {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.8rem 0;
  outline: none;
}

.input-box select option {
  background: #0b0c10;
  color: #fff;
}

.cyber-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cyber-checkbox input {
  display: none;
}

.checkmark {
  width: 18px; height: 18px;
  border: 1px solid var(--neon-cyan);
  background: rgba(0, 0, 0, 0.6);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.cyber-checkbox input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--neon-pink);
  font-weight: bold;
  font-size: 0.8rem;
}

.cta-guarantee {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 1px;
}

/* ==========================================================================
   MODAL / POPUP
   ========================================================================== */
.cyber-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.cyber-modal-backdrop.open {
  display: flex;
}

.cyber-modal {
  width: 100%;
  max-width: 540px;
  padding: 2.2rem;
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 35px var(--neon-green-glow);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  animation: modalPopup 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPopup {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

.modal-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: bold;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: var(--neon-pink); }

.modal-glitch-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 15px var(--neon-green);
}

.modal-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.access-key-box {
  background: #040507;
  border: 1px dashed var(--neon-cyan);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

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

.key-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--neon-cyan);
  letter-spacing: 2px;
  word-break: break-all;
}

.terminal-body.mini {
  padding: 0.8rem;
  font-size: 0.75rem;
  background: #020204;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.cyber-footer {
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  background: #030305;
  padding: 4.5rem 2rem 2.5rem 2rem;
  margin-top: 6rem;
  position: relative;
}

.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 1.2rem 0;
  max-width: 320px;
}

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

.footer-heading {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 1.4rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

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

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.social-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-cyan);
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  background: rgba(0, 0, 0, 0.4);
}

.social-icon:hover {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink-glow);
  transform: translateY(-2px);
}

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

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

.legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.legal-links a:hover {
  color: var(--text-primary);
}

.sep { opacity: 0.3; }

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-visual-frame {
    height: 320px;
  }
  .prologue-grid, .content-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hud-header {
    padding: 0 1rem;
  }
  .hud-nav {
    display: none; /* Can be toggled or kept minimal */
  }
  .page-container {
    padding: 68px 1rem 3rem 1rem;
  }
  .telemetry-bar {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .cyber-countdown {
    gap: 0.8rem;
    padding: 1rem;
  }
  .count-val {
    font-size: 1.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
