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

:root {
  --bg-deep: #07080d;
  --bg-navy: #0b1020;
  --bg-surface: rgba(13, 18, 34, 0.78);
  --bg-surface-solid: #0d1222;

  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.16);
  --pink: #ff0055;
  --pink-dim: rgba(255, 0, 85, 0.16);
  --lime: #39ff14;
  --amber: #ffb800;

  --text-primary: #f0f4f8;
  --text-muted: #8b9bb4;
  --border-subtle: rgba(0, 240, 255, 0.22);
  --border-pink: rgba(255, 0, 85, 0.35);

  --font-display: 'Orbitron', 'Rajdhani', sans-serif;
  --font-ui: 'Rajdhani', 'Noto Sans JP', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Noto Sans JP', 'Rajdhani', sans-serif;

  --clip-card: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --clip-btn: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

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

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

body {
  min-height: 100vh;
  background: radial-gradient(circle at 75% 18%, rgba(0, 240, 255, 0.08), transparent 45%),
              radial-gradient(circle at 18% 72%, rgba(255, 0, 85, 0.07), transparent 48%),
              var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--cyan);
  color: var(--bg-deep);
}

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

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

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

.container {
  width: min(1200px, 90%);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.text-cyan { color: var(--cyan); text-shadow: 0 0 14px rgba(0, 240, 255, 0.45); }
.text-pink { color: var(--pink); text-shadow: 0 0 14px rgba(255, 0, 85, 0.45); }

/* ==========================================================================
   BOOT SEQUENCE OVERLAY
   ========================================================================== */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.boot-screen.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-container {
  width: min(560px, 100%);
  border: 1px solid var(--border-subtle);
  background: rgba(11, 16, 32, 0.92);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.12);
}

.boot-header,
.boot-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cyan);
}

.boot-header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  margin-bottom: 1rem;
}

.boot-skip {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.boot-skip:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.boot-logs {
  min-height: 115px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.boot-logs .ok { color: var(--lime); }
.boot-logs .hl { color: var(--cyan); }

.boot-progress-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

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

/* ==========================================================================
   AMBIENT CANVAS, SCANLINES & HUD CORNERS
   ========================================================================== */
.cyber-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0) 2px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
  opacity: 0.35;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 55%, rgba(4, 5, 10, 0.75) 100%);
}

.hud-frame {
  position: fixed;
  inset: 14px;
  z-index: 40;
  pointer-events: none;
}

.hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(0, 240, 255, 0.4);
  border-style: solid;
}

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

/* ==========================================================================
   TOP HUD HEADER
   ========================================================================== */
.hud-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(7, 8, 13, 0.75);
  border-bottom: 1px solid rgba(0, 240, 255, 0.16);
}

.hud-header__inner {
  width: min(1240px, 92%);
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__icon {
  width: 34px;
  height: 34px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

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

.brand__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hud-nav__link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.hud-nav__link::before {
  content: attr(data-index) "_";
  color: var(--cyan);
  opacity: 0.65;
  margin-right: 2px;
}

.hud-nav__link:hover,
.hud-nav__link:focus-visible {
  color: var(--text-primary);
}

.hud-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.25s ease;
}

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

.hud-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hud-telemetry {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 1.8s infinite;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 0.32rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.audio-btn:hover {
  background: rgba(0, 240, 255, 0.14);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

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

.audio-btn__bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--cyan);
  transition: height 0.2s;
}

.audio-btn.is-active .audio-btn__bars i:nth-child(1) { animation: eq 0.6s infinite alternate; }
.audio-btn.is-active .audio-btn__bars i:nth-child(2) { animation: eq 0.4s 0.15s infinite alternate; }
.audio-btn.is-active .audio-btn__bars i:nth-child(3) { animation: eq 0.55s 0.3s infinite alternate; }

.btn-mini {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  background: var(--pink);
  color: #fff;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(255, 0, 85, 0.6);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 0.45rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cyan);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 68px 0 0 0;
  z-index: 55;
  background: rgba(7, 8, 13, 0.96);
  backdrop-filter: blur(16px);
  padding: 2.5rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer__link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--cyan);
  background: rgba(0, 240, 255, 0.05);
}

.mobile-drawer__link span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding: 112px 0 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: 3rem;
  margin-block: auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 240, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.status-badge__dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.status-badge__code {
  color: var(--pink);
}

.hero__title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

/* Glitch Effect */
.glitch {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 22px rgba(0, 240, 255, 0.3);
}

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

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

.glitch::after {
  color: var(--pink);
  z-index: -2;
  animation: glitch-2 2.9s infinite linear alternate-reverse;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 2.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

/* Cyber Buttons */
.btn-cyber {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 1.85rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: none;
  clip-path: var(--clip-btn);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.btn-cyber--primary {
  background: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
}

.btn-cyber--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(0, 240, 255, 0.65);
}

.btn-cyber--ghost {
  background: rgba(0, 240, 255, 0.05);
  color: var(--cyan);
  border: 1px solid var(--border-subtle);
}

.btn-cyber--ghost:hover {
  background: rgba(0, 240, 255, 0.14);
  border-color: var(--cyan);
}

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

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-item__val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-item__val small {
  font-size: 0.9rem;
  color: var(--cyan);
  margin-left: 2px;
}

.metric-item__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Hologram Core Visual */
.hero__visual {
  display: grid;
  place-items: center;
}

.holo-core {
  position: relative;
  width: min(370px, 84vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}

.holo-svg {
  width: 82%;
  height: 82%;
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.35));
}

.holo-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.holo-ring--outer {
  inset: 0;
  border: 1px dashed rgba(0, 240, 255, 0.3);
  animation: spin 26s linear infinite;
}

.holo-ring--mid {
  inset: 14%;
  border: 1px solid rgba(255, 0, 85, 0.28);
  border-top-color: var(--pink);
  animation: spin-rev 16s linear infinite;
}

.holo-ring--inner {
  inset: 28%;
  border: 1px dotted rgba(0, 240, 255, 0.45);
  animation: spin 10s linear infinite;
}

.holo-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.22rem 0.55rem;
  background: rgba(7, 8, 13, 0.88);
  border: 1px solid var(--border-subtle);
  color: var(--cyan);
}

.holo-tag--1 { top: 8%; left: 2%; }
.holo-tag--2 { bottom: 14%; right: -2%; border-color: var(--border-pink); color: var(--pink); }
.holo-tag--3 { top: 54%; left: -6%; }

/* Bottom Ticker */
.ticker {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(0, 240, 255, 0.16);
  border-bottom: 1px solid rgba(0, 240, 255, 0.16);
  background: rgba(11, 16, 32, 0.72);
  padding: 0.55rem 0;
  margin-top: 2.5rem;
}

.ticker__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  animation: marquee 30s linear infinite;
}

/* ==========================================================================
   SHARED SECTION & PANEL STYLES
   ========================================================================== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
}

.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 60ch;
}

.cyber-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  clip-path: var(--clip-card);
  padding: 1.75rem;
  position: relative;
}

.cyber-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tag-warn { color: var(--amber); border: 1px solid rgba(255, 184, 0, 0.4); padding: 0.15rem 0.5rem; }
.tag-ok { color: var(--lime); border: 1px solid rgba(57, 255, 20, 0.4); padding: 0.15rem 0.5rem; }

/* ==========================================================================
   PROLOGUE SECTION
   ========================================================================== */
.prologue__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: stretch;
}

.prologue__story p + p {
  margin-top: 1rem;
}

.prologue__story p {
  color: var(--text-muted);
}

.prologue__story strong {
  color: var(--text-primary);
}

.terminal-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(5, 7, 12, 0.85);
  border-left: 3px solid var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.t-prompt { color: var(--pink); margin-right: 0.4rem; }
.t-warn { color: var(--amber); }
.t-cyan { color: var(--cyan); }

.waveform-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 48px);
  gap: 1rem;
}

.waveform-svg {
  width: 100%;
  height: auto;
}

.wave-chimera {
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.65));
}

.waveform-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.dot-cyan, .dot-pink {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
}

.dot-cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot-pink { background: var(--pink); box-shadow: 0 0 8px var(--pink); }

/* ==========================================================================
   MODULES SECTION
   ========================================================================== */
.modules__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  clip-path: var(--clip-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 12px 30px rgba(0, 240, 255, 0.14);
}

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

.module-card__id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--pink);
  letter-spacing: 0.1em;
}

.module-card__icon {
  width: 38px;
  height: 38px;
}

.module-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.module-card__sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.module-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.module-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.status-ok { color: var(--lime); }

/* ==========================================================================
   ARCHITECTURE SECTION
   ========================================================================== */
.arch-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.arch-nodes {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.arch-node {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: rgba(13, 18, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.arch-node:hover {
  border-color: var(--cyan);
  transform: translateX(4px);
}

.arch-node.is-active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.arch-node__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
  font-size: 1.1rem;
}

.arch-node__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.arch-node__info strong {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.arch-node__info small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.arch-node__arrow {
  color: var(--cyan);
  font-family: var(--font-mono);
}

.arch-detail__title {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

.arch-detail__desc {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.arch-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.spec-box {
  padding: 0.9rem;
  background: rgba(7, 8, 13, 0.72);
  border: 1px solid rgba(0, 240, 255, 0.18);
}

.spec-box__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.spec-box__val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cyan);
}

/* ==========================================================================
   PROTOCOL / TIMELINE SECTION
   ========================================================================== */
.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--pink), rgba(255, 255, 255, 0.1));
}

.timeline-item {
  position: relative;
}

.timeline-item__marker {
  position: absolute;
  left: -2rem;
  top: 1.6rem;
  width: 16px;
  height: 16px;
  background: var(--bg-deep);
  border: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

.timeline-item--done .timeline-item__marker {
  border-color: var(--lime);
  background: var(--lime);
}

.timeline-item--active .timeline-item__marker {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.timeline-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.phase-tag { color: var(--cyan); }

.status-pill {
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  font-size: 0.68rem;
}

.status-pill--done { border-color: var(--lime); color: var(--lime); }
.status-pill--active { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.status-pill--classified { border-color: var(--pink); color: var(--pink); }

.timeline-item__content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.timeline-item__content p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   CONNECT / PRE-REGISTRATION SECTION
   ========================================================================== */
.connect-box {
  padding: 2.5rem;
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.08);
}

.connect-box__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.connect-box__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.85rem;
}

.connect-box__desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  background: rgba(7, 8, 13, 0.8);
  border: 1px solid var(--border-subtle);
}

.countdown__cell {
  text-align: center;
  min-width: 48px;
}

.countdown__cell span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
}

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

.countdown__sep {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--pink);
}

.cyber-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

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

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(7, 8, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

.form-feedback {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-height: 1.2em;
  color: var(--pink);
}

/* Neural Pass */
.neural-pass {
  border: 1px solid var(--cyan);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 85, 0.08));
  padding: 1.5rem;
}

.neural-pass__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
}

.neural-pass__id small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.neural-pass__id strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.neural-pass__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 1rem 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.neural-pass__reset {
  background: transparent;
  border: none;
  color: var(--pink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.hud-footer {
  border-top: 1px solid rgba(0, 240, 255, 0.16);
  background: rgba(7, 8, 13, 0.9);
  padding: 2.5rem 0;
  position: relative;
  z-index: 2;
}

.hud-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

.hud-footer__links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.hud-footer__barcode {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  color: var(--cyan);
  opacity: 0.75;
}

.hud-footer__barcode svg {
  width: 110px;
  height: 24px;
}

.hud-footer__barcode span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

/* ==========================================================================
   SCROLL REVEAL & KEYFRAMES
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

@keyframes eq {
  0% { height: 3px; }
  100% { height: 11px; }
}

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

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

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

@keyframes glitch-1 {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  90% { transform: translate(-3px, 1px); opacity: 0.75; }
  94% { transform: translate(3px, -1px); opacity: 0.6; }
}

@keyframes glitch-2 {
  0%, 84%, 100% { transform: translate(0); opacity: 0; }
  86% { transform: translate(3px, 2px); opacity: 0.75; }
  92% { transform: translate(-2px, -2px); opacity: 0.6; }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .modules__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__grid,
  .prologue__grid,
  .arch-layout,
  .connect-box__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hud-nav,
  .hud-telemetry,
  .btn-mini {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .modules__grid {
    grid-template-columns: 1fr;
  }
  .hero__metrics,
  .arch-specs {
    grid-template-columns: 1fr;
  }
  .connect-box {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
