/* ═══════════════════════════════════════════════════
   NEXUS // IDENTITY PROTOCOL — Cyberpunk Stylesheet
   ═══════════════════════════════════════════════════ */

/* ── Custom Font ───────────────────────────────────── */
@font-face {
  font-family: 'Proxime Oblique';
  src: url('img/proxime-oblique.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Root ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cyan: #00F0FF;
  --cyan-dim: #00F0FF66;
  --cyan-dark: #00F0FF22;
  --yellow: #f5e642;
  --bg-dark: #0a0a0f;
  --bg-card: rgba(10, 10, 18, 0.65);
  --bg-card-border: rgba(0, 240, 255, 0.08);
  --text-primary: #e2e8f0;
  --text-muted: #64748b;
  --font-display: 'Proxime Oblique', 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --spotlight-r: 260;
  --grid-cell: 48;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  cursor: crosshair;
}

/* ── App Container ────────────────────────────────── */
#app {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ── Background Layers ────────────────────────────── */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.6s ease;
}

#bg-main {
  background-image: url('img/img-main.png');
  background-position: 72% center;
  z-index: 1;
}

#reveal-layer {
  background-image: url('img/img-reveal.png');
  background-position: 72% center;
  z-index: 3;
  pointer-events: none;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(circle at -1000px -1000px, transparent 0, transparent 0);
  mask-image: radial-gradient(circle at -1000px -1000px, transparent 0, transparent 0);
}

/* When scrolled past hero, hide BG images */
#bg-main.hidden,
#reveal-layer.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Grid SVG ─────────────────────────────────────── */
#grid-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.1;
  pointer-events: none;
}

/* ── Hidden Canvas ────────────────────────────────── */
#mask-canvas {
  display: none;
}

/* ── Scanlines ────────────────────────────────────── */
#scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
}

/* ── Vignette ─────────────────────────────────────── */
#vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

/* ═══════════════ VERTICAL PROGRESS NAV ═══════════════ */
#progress-nav {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.progress-track {
  position: absolute;
  right: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(100, 116, 139, 0.2);
  border-radius: 1px;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-dim);
  border-radius: 1px;
  transition: height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.progress-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: var(--bg-dark);
  transition: all 0.3s ease;
  order: 2;
}

.node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.3s ease;
  order: 1;
  white-space: nowrap;
}

.progress-node:hover .node-label {
  opacity: 1;
  transform: translateX(0);
}

.progress-node:hover .node-dot {
  border-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-dim);
}

.progress-node.active .node-dot {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-dim);
}

.progress-node.active .node-label {
  color: var(--cyan);
}

/* ═══════════════ CONTENT LAYER ═══════════════════ */
#content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

#content a,
#content button,
#content input {
  pointer-events: auto;
}

/* ── Top Bar ──────────────────────────────────────── */
#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 42px;
  /* Transparent by default — no background in hero */
  backdrop-filter: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

/* Scrolled state — solid header */
#top-bar.scrolled {
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 18, 0.7);
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.logo-text {
  color: var(--cyan);
  position: relative;
  display: inline-block;
  animation: glitchNav 5s infinite;
}

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

.logo-text::before {
  color: #ff00ff;
  z-index: -1;
  animation: glitchNavLeft 4s infinite;
}

.logo-text::after {
  color: #00ff41;
  z-index: -1;
  animation: glitchNavRight 4s infinite;
}

@keyframes glitchNav {
  0%, 94%, 100% { transform: translate(0); }
  95%           { transform: translate(-2px, 1px); }
  97%           { transform: translate(2px, -1px); }
}

@keyframes glitchNavLeft {
  0%, 92%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  93%           { clip-path: inset(20% 0 50% 0); transform: translate(-3px, 0); }
  95%           { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
}

@keyframes glitchNavRight {
  0%, 90%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  91%           { clip-path: inset(40% 0 30% 0); transform: translate(3px, 0); }
  94%           { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 0); }
}

.logo-sep {
  color: var(--text-muted);
  font-weight: 300;
}

.logo-sub {
  color: var(--text-muted);
  font-family: 'Orbitron', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 4px;
}

/* Nav */
#nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
  pointer-events: auto;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan-dim);
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-dim);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Status */
.status-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: #34d399;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d39988;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* ═══════════════ SCROLL CONTAINER ═══════════════ */
#scroll-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-dark) transparent;
}

#scroll-container::-webkit-scrollbar {
  width: 4px;
}

#scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

#scroll-container::-webkit-scrollbar-thumb {
  background: var(--cyan-dark);
  border-radius: 2px;
}

/* ── Page Sections ────────────────────────────────── */
.page-section {
  min-height: 100vh;
  padding: 28px 42px;
  padding-right: 90px;
  display: flex;
  flex-direction: column;
}

/* ═══════════════ HERO ═══════════════════════════ */
#hero {
  justify-content: space-between;
  padding-top: 90px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-left: 20px;
  margin-top: auto;
  margin-bottom: auto;
  max-width: 50%;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.glitch-text {
  color: var(--cyan);
  position: relative;
  display: inline-block;
  animation: glitch-flicker 4s infinite;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.9;
}

.hero-title .line {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 66px;
  letter-spacing: 8px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  animation: glitchHero 4s infinite;
}

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

.hero-title .line::before {
  color: #ff00ff;
  z-index: -1;
  animation: glitchHeroLeft 3s infinite;
}

.hero-title .line::after {
  color: #00ff41;
  z-index: -1;
  animation: glitchHeroRight 3s infinite;
}

@keyframes glitchHero {
  0%, 90%, 100% { transform: translate(0); }
  91%           { transform: translate(-3px, 2px); }
  93%           { transform: translate(4px, -1px); }
  95%           { transform: translate(-2px, -2px); }
  97%           { transform: translate(2px, 1px); }
}

@keyframes glitchHeroLeft {
  0%, 88%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  89%           { clip-path: inset(30% 0 40% 0); transform: translate(-5px, 0); }
  92%           { clip-path: inset(60% 0 10% 0); transform: translate(5px, 0); }
  95%           { clip-path: inset(0 0 70% 0); transform: translate(-3px, 0); }
}

@keyframes glitchHeroRight {
  0%, 86%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  87%           { clip-path: inset(50% 0 20% 0); transform: translate(5px, 0); }
  91%           { clip-path: inset(10% 0 60% 0); transform: translate(-5px, 0); }
  94%           { clip-path: inset(70% 0 0 0); transform: translate(3px, 0); }
}

.line-1 {
  color: var(--text-primary);
}

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

.hero-desc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 720px;
  letter-spacing: 0.5px;
}

.hero-desc .desc-line,
.hero-desc .desc-sub {
  white-space: nowrap;
}

.hero-desc .desc-sub {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
}

/* Hero Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.btn-cyber {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--bg-dark);
  background: var(--cyan);
  border: none;
  padding: 14px 36px;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-cyber:hover {
  background: #fff;
  box-shadow: 0 0 25px var(--cyan-dim), 0 0 60px rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}

.btn-cyber:active {
  transform: translateY(0);
}

/* Outline variant — same shape with seamless double-shell polygon border */
.btn-cyber-outline {
  color: var(--text-primary);
  background: transparent;
  border: none;
  position: relative;
}

.btn-cyber-outline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(100, 116, 139, 0.4);
  z-index: 1;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background 0.3s ease;
}

.btn-cyber-outline::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-dark);
  z-index: 2;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background 0.3s ease;
}

.btn-cyber-outline span,
.btn-cyber-outline .btn-label {
  position: relative;
  z-index: 3;
  color: inherit;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.btn-cyber-outline:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-dim), 0 0 20px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.btn-cyber-outline:hover::after {
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan), 0 0 35px var(--cyan-dim);
}

.btn-cyber-outline:hover::before {
  background: rgba(10, 10, 18, 0.92);
}

/* ── Bottom Bar ───────────────────────────────────── */
#bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  padding: 14px 20px;
  border-top: 1px solid rgba(100, 116, 139, 0.15);
  backdrop-filter: blur(6px);
  background: rgba(10, 10, 18, 0.35);
  border-radius: 4px;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.threat-low {
  color: #34d399;
}

.coord-block {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

#cx, #cy {
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════ CONTENT SECTIONS ═══════════════ */
.content-section {
  padding-top: 100px;
  position: relative;
  background: var(--bg-dark);
}

#section-archive {
  background: linear-gradient(90deg, rgba(10, 10, 15, 0.88) 0%, rgba(10, 10, 15, 0.4) 40%, rgba(10, 10, 15, 0.25) 75%, rgba(10, 10, 15, 0.6) 100%),
              url('img/img-profile.png') no-repeat 80% center / cover;
}

#section-access {
  background: linear-gradient(90deg, rgba(10, 10, 15, 0.12) 0%, rgba(10, 10, 15, 0.35) 30%, rgba(10, 10, 15, 0.92) 55%, rgba(10, 10, 15, 0.98) 100%),
              url('img/img-back.png') no-repeat left center / cover;
}

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

.section-index {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--cyan-dark);
  letter-spacing: 4px;
  line-height: 1;
  position: relative;
  display: inline-block;
  animation: glitchSection 6s infinite;
}

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

.section-index::before {
  color: rgba(255, 0, 255, 0.25);
  z-index: -1;
  animation: glitchSectionLeft 5s infinite;
}

.section-index::after {
  color: rgba(0, 255, 65, 0.25);
  z-index: -1;
  animation: glitchSectionRight 5s infinite;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--text-primary);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  animation: glitchSection 5s infinite;
}

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

.section-title::before {
  color: #ff00ff;
  z-index: -1;
  animation: glitchSectionLeft 4s infinite;
}

.section-title::after {
  color: #00ff41;
  z-index: -1;
  animation: glitchSectionRight 4s infinite;
}

@keyframes glitchSection {
  0%, 93%, 100% { transform: translate(0); }
  94%           { transform: translate(-2px, 1px); }
  96%           { transform: translate(3px, -1px); }
  98%           { transform: translate(-1px, -1px); }
}

@keyframes glitchSectionLeft {
  0%, 91%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  92%           { clip-path: inset(25% 0 45% 0); transform: translate(-4px, 0); }
  94%           { clip-path: inset(55% 0 15% 0); transform: translate(4px, 0); }
  96%           { clip-path: inset(0 0 65% 0); transform: translate(-2px, 0); }
}

@keyframes glitchSectionRight {
  0%, 89%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  90%           { clip-path: inset(45% 0 25% 0); transform: translate(4px, 0); }
  93%           { clip-path: inset(15% 0 55% 0); transform: translate(-4px, 0); }
  95%           { clip-path: inset(65% 0 0 0); transform: translate(2px, 0); }
}

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

.section-body {
  flex: 1;
}

/* ── SYSTEMS: Card Grid ───────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cyber-card {
  position: relative;
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  border: none;
  background: transparent;
}

.cyber-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-card-border);
  z-index: 1;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: background 0.4s ease;
}

.cyber-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-card);
  z-index: 2;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: background 0.4s ease;
}

.cyber-card > * {
  position: relative;
  z-index: 3;
}

.cyber-card:hover::after {
  background: var(--cyan);
}

.cyber-card:hover::before {
  background: rgba(10, 10, 18, 0.85);
}

.cyber-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--cyan-dark);
}

.card-icon {
  font-size: 28px;
  color: var(--cyan);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px var(--cyan-dim));
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.card-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(100, 116, 139, 0.12);
}

.card-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.card-stat-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 1px;
}

/* ── ARCHIVE: Timeline ────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan-dim), rgba(100, 116, 139, 0.15));
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

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

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--bg-dark);
  box-shadow: 0 0 10px var(--cyan-dim);
  transition: all 0.35s ease;
}

.timeline-content {
  position: relative;
  max-width: 560px;
  padding: 20px 24px;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  cursor: pointer;
  backdrop-filter: blur(4px);
  border: none;
  background: transparent;
}

.timeline-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 240, 255, 0.12);
  z-index: 1;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background 0.35s ease;
}

.timeline-content::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: rgba(10, 10, 18, 0.55);
  z-index: 2;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background 0.35s ease;
}

.timeline-content > * {
  position: relative;
  z-index: 3;
}

.timeline-item:hover .timeline-content::after {
  background: var(--cyan);
}

.timeline-item:hover .timeline-content::before {
  background: rgba(10, 10, 18, 0.85);
}

.timeline-item:hover .timeline-content {
  transform: translateX(8px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5), 0 0 18px var(--cyan-dark);
}

.timeline-item:hover .timeline-marker {
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  transform: scale(1.35);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan);
  display: block;
  margin-bottom: 8px;
}

.timeline-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.timeline-item:hover .timeline-title {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-dim);
}

.timeline-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── NETWORK / SPECS: Blueprint & Hotspots ─────────── */
#section-network {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 40px;
  box-sizing: border-box;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#section-network .section-header {
  margin-bottom: 24px;
  flex-shrink: 0;
}

#section-network .section-body {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: visible;
}

.blueprint-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 28px;
  align-items: center;
  height: 100%;
  max-height: 100%;
  width: 100%;
  min-height: 0;
}

.blueprint-specs {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.specs-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan);
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cyan-dark);
  flex-shrink: 0;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  justify-content: space-evenly;
  min-height: 0;
}

.spec-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 14px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  border: none;
  background: transparent;
}

.spec-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-card-border);
  z-index: 1;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background 0.3s ease;
}

.spec-row::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-card);
  z-index: 2;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background 0.3s ease;
}

.spec-row > * {
  position: relative;
  z-index: 3;
}

.spec-row:hover::after,
.spec-row.active::after {
  background: var(--cyan);
}

.spec-row:hover::before,
.spec-row.active::before {
  background: rgba(10, 10, 18, 0.85);
}

.spec-row:hover,
.spec-row.active {
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.12);
}

.spec-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding-top: 2px;
}

.spec-row:hover .spec-num,
.spec-row.active .spec-num {
  color: var(--cyan);
}

.spec-info {
  flex: 1;
}

.spec-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.spec-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
}

.spec-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Acoustic Spectrum Gauges */
.specs-acoustic {
  margin-top: 6px;
  padding: 10px 14px;
  background: rgba(10, 10, 18, 0.5);
  border: 1px solid var(--bg-card-border);
  flex-shrink: 0;
}

.acoustic-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.acoustic-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.bar-label {
  width: 110px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.bar-track {
  flex: 1;
  height: 4px;
  background: rgba(100, 116, 139, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--text-muted);
  border-radius: 2px;
}

.bar-fill.active-bar {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-dim);
}

.bar-val {
  width: 44px;
  text-align: right;
  color: var(--text-muted);
}

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

/* Right Side: Blueprint Visual Frame & Hotspots */
.blueprint-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.blueprint-frame {
  position: relative;
  width: 100%;
  max-width: 850px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.blueprint-frame::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: transparent;
  pointer-events: none;
}

/* Left and right edge gradient overlay removed in favor of direct video mask */
.blueprint-frame::after {
  display: none;
}

.fullview-video {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: scale(1.4);
  transform-origin: center center;
  filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
  opacity: 1;
  pointer-events: none;
}

/* Height indicator line on left of image */
.height-indicator {
  position: absolute;
  left: 12px;
  top: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: var(--cyan-dim);
  font-size: 10px;
}

.height-line {
  flex: 1;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--cyan-dim), var(--cyan-dim) 4px, transparent 4px, transparent 8px);
  margin: 8px 0;
}

.height-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 12px 0;
}

/* Hotspot Nodes */
.hotspot-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 15;
}

.node-target {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  position: relative;
  transition: all 0.3s ease;
}

.node-target::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--cyan-dim);
  animation: pulse-dot 2s infinite;
}

.node-line {
  width: 24px;
  height: 1px;
  background: var(--cyan-dim);
  transition: all 0.3s ease;
}

.node-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  background: rgba(10, 10, 18, 0.85);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--cyan-dark);
  transition: all 0.3s ease;
}

.hotspot-node:hover .node-target,
.hotspot-node.active .node-target {
  transform: scale(1.4);
  box-shadow: 0 0 16px var(--cyan);
}

.hotspot-node:hover .node-line,
.hotspot-node.active .node-line {
  background: var(--cyan);
  width: 32px;
}

.hotspot-node:hover .node-badge,
.hotspot-node.active .node-badge {
  background: var(--cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 16px var(--cyan);
  transform: scale(1.15);
}

/* ── ACCESS: Background Image on Left, Info & Form on Right ─ */
.access-container {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.access-right-panel {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
}

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

.field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.field-input {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-primary);
  background: rgba(10, 10, 18, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.2);
  padding: 14px 18px;
  outline: none;
  transition: all 0.3s ease;
}

.field-input::placeholder {
  color: rgba(100, 116, 139, 0.4);
}

.field-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-dark);
}

.clearance-levels {
  display: flex;
  gap: 8px;
}

.clearance-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
  background: rgba(10, 10, 18, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.2);
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.clearance-btn.active {
  border-color: var(--cyan);
  color: var(--bg-dark);
  background: var(--cyan);
}

.access-submit {
  margin-top: 8px;
  width: fit-content;
}

.access-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-block {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-left: 2px solid var(--cyan);
}

.info-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
}

.info-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.info-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.access-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.access-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  text-align: center;
}

.access-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--cyan);
  letter-spacing: 2px;
}

.access-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ═══════════════ ACCESS DENIED PANEL ═══════════════ */

/* Hide form, show denied panel via parent class */
.access-container.denied .access-form {
  display: none;
}

.access-denied-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  width: 100%;
  padding: 60px 20px;
  animation: deniedFadeIn 0.5s ease-out;
}

.access-container.denied .access-denied-panel {
  display: flex;
}

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

/* Warning triangle icon */
.denied-icon {
  width: 80px;
  height: 72px;
  animation: deniedIconPulse 2s ease-in-out infinite;
}

.denied-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(255, 59, 59, 0.4));
}

@keyframes deniedIconPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}

/* ACCESS_DENIED title with glitch */
.denied-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ff3b3b;
  position: relative;
  display: inline-block;
  animation: glitchDenied 3s infinite;
}

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

.denied-title::before {
  color: #ff00ff;
  z-index: -1;
  animation: glitchDeniedLeft 2s infinite;
}

.denied-title::after {
  color: #ffaa00;
  z-index: -1;
  animation: glitchDeniedRight 2s infinite;
}

@keyframes glitchDenied {
  0%, 88%, 100% { transform: translate(0); }
  89%           { transform: translate(-4px, 2px); }
  91%           { transform: translate(5px, -1px); }
  93%           { transform: translate(-3px, -2px); }
  95%           { transform: translate(3px, 1px); }
  97%           { transform: translate(-2px, 3px); }
}

@keyframes glitchDeniedLeft {
  0%, 85%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  86%           { clip-path: inset(20% 0 50% 0); transform: translate(-6px, 0); }
  89%           { clip-path: inset(60% 0 10% 0); transform: translate(6px, 0); }
  92%           { clip-path: inset(0 0 70% 0); transform: translate(-4px, 0); }
  95%           { clip-path: inset(40% 0 30% 0); transform: translate(3px, 0); }
}

@keyframes glitchDeniedRight {
  0%, 83%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  84%           { clip-path: inset(50% 0 20% 0); transform: translate(6px, 0); }
  88%           { clip-path: inset(10% 0 60% 0); transform: translate(-6px, 0); }
  91%           { clip-path: inset(70% 0 0 0); transform: translate(4px, 0); }
  94%           { clip-path: inset(30% 0 40% 0); transform: translate(-3px, 0); }
}

/* Description text */
.denied-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 460px;
}

/* Retry button */
.denied-retry-btn {
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .denied-title {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .denied-icon {
    width: 60px;
    height: 54px;
  }

  .denied-desc {
    font-size: 10px;
  }
}

/* ═══════════════ SCROLL REVEAL ANIMATIONS ═══════════ */
.reveal-el {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-el.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ ANIMATIONS ═══════════════════════ */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px var(--cyan-dim)); }
  50% { opacity: 0.7; filter: drop-shadow(0 0 12px var(--cyan)); }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px #34d39988; transform: scale(1); }
  50% { box-shadow: 0 0 14px #34d399cc; transform: scale(1.3); }
}

@keyframes glitch-flicker {
  0%, 93%, 100% { opacity: 1; transform: translateX(0); }
  94% { opacity: 0.7; transform: translateX(-2px); color: var(--cyan); }
  95% { opacity: 1; transform: translateX(2px); color: var(--cyan); }
  96% { opacity: 0.8; transform: translateX(-1px); }
  97% { opacity: 1; transform: translateX(0); }
}

/* ═══════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .network-grid {
    grid-template-columns: 1fr 1fr;
  }

  .access-panel {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  #top-bar {
    padding: 16px 20px;
  }

  #nav-links {
    display: none;
  }

  .page-section {
    padding: 20px 20px;
    padding-right: 60px;
  }

  .hero-inner {
    max-width: 100%;
  }

  .hero-title .line {
    font-size: 40px;
  }

  .hero-desc {
    white-space: normal;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .network-grid {
    grid-template-columns: 1fr 1fr;
  }

  #progress-nav {
    right: 12px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-height: 800px) {
  #section-network {
    padding-top: 70px;
    padding-bottom: 14px;
  }

  #section-network .section-header {
    margin-bottom: 8px;
  }

  #section-network .spec-row {
    padding: 5px 12px;
  }

  #section-network .spec-desc {
    font-size: 11px;
    line-height: 1.25;
  }

  #section-network .specs-acoustic {
    margin-top: 4px;
    padding: 8px 12px;
  }

  #section-network .acoustic-title {
    margin-bottom: 6px;
  }

  #section-network .acoustic-bars {
    gap: 4px;
  }
}

/* ═══════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════ */

/* Hide the app while loading */
body.is-loading #app {
  opacity: 0;
  visibility: hidden;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.preloader-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Inner container ───────────────────────────── */
.preloader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 80px;
  width: 420px;
}

/* ── Corner brackets ──────────────────────────── */
.preloader-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--cyan);
  border-style: solid;
  border-width: 0;
  opacity: 0.5;
}

.preloader-corner--tl {
  top: 0; left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
  animation: cornerPulse 2s ease-in-out infinite;
}

.preloader-corner--tr {
  top: 0; right: 0;
  border-top-width: 2px;
  border-right-width: 2px;
  animation: cornerPulse 2s ease-in-out infinite 0.5s;
}

.preloader-corner--bl {
  bottom: 0; left: 0;
  border-bottom-width: 2px;
  border-left-width: 2px;
  animation: cornerPulse 2s ease-in-out infinite 1s;
}

.preloader-corner--br {
  bottom: 0; right: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
  animation: cornerPulse 2s ease-in-out infinite 1.5s;
}

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

/* ── Logo (glitch text) ───────────────────────── */
.preloader-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--cyan);
  position: relative;
  animation: glitchLogo 3s infinite;
}

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

.preloader-logo::before {
  color: #ff00ff;
  z-index: -1;
  animation: glitchLeft 2.5s infinite;
}

.preloader-logo::after {
  color: #00ff41;
  z-index: -1;
  animation: glitchRight 2.5s infinite;
}

@keyframes glitchLogo {
  0%, 92%, 100% { transform: translate(0); }
  93%           { transform: translate(-3px, 1px); }
  95%           { transform: translate(3px, -1px); }
  97%           { transform: translate(-1px, -2px); }
}

@keyframes glitchLeft {
  0%, 90%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  91%           { clip-path: inset(20% 0 40% 0); transform: translate(-4px, 0); }
  93%           { clip-path: inset(60% 0 10% 0); transform: translate(4px, 0); }
  95%           { clip-path: inset(0 0 70% 0); transform: translate(-2px, 0); }
}

@keyframes glitchRight {
  0%, 88%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  89%           { clip-path: inset(50% 0 20% 0); transform: translate(4px, 0); }
  92%           { clip-path: inset(10% 0 60% 0); transform: translate(-4px, 0); }
  94%           { clip-path: inset(70% 0 0 0); transform: translate(2px, 0); }
}

/* ── Subtitle ─────────────────────────────────── */
.preloader-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--text-muted);
  margin-top: -4px;
  margin-bottom: 16px;
}

/* ── Percentage ───────────────────────────────── */
.preloader-percent {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--text-primary);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  transition: color 0.3s;
}

/* ── Progress bar track ───────────────────────── */
.preloader-bar-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(100, 116, 139, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), #00ff88);
  border-radius: 2px;
  transition: width 0.15s ease-out;
}

.preloader-bar-glow {
  position: absolute;
  top: -4px;
  left: 0;
  height: 11px;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  filter: blur(6px);
  opacity: 0.7;
  border-radius: 2px;
  transition: width 0.15s ease-out;
}

/* ── Status text ──────────────────────────────── */
.preloader-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--cyan-dim);
  margin-top: 8px;
  min-height: 16px;
  animation: statusBlink 1.2s step-end infinite;
}

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

/* ── Scanlines inside preloader ───────────────── */
.preloader-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  z-index: 1;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 480px) {
  .preloader-inner {
    width: 90vw;
    padding: 40px 30px;
  }

  .preloader-logo {
    font-size: 36px;
    letter-spacing: 8px;
  }

  .preloader-percent {
    font-size: 48px;
  }

  .preloader-subtitle {
    font-size: 10px;
    letter-spacing: 4px;
  }
}
