/* ==========================================================================
   FORENSIC ATLAS — SOVEREIGN DIGITAL FORENSICS INTELLIGENCE
   Design System & Cybernetic HUD Stylesheet
   ========================================================================== */

:root {
  --bg-darkest: #04060a;
  --bg-primary: #070b12;
  --bg-surface: #0c121e;
  --bg-surface-elevated: #111a2b;
  --bg-card: rgba(11, 19, 31, 0.75);
  --bg-card-hover: rgba(16, 27, 45, 0.88);
  --bg-glass: rgba(8, 14, 24, 0.65);
  
  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-glow: rgba(0, 242, 254, 0.35);
  --border-emerald-glow: rgba(0, 255, 157, 0.35);
  --border-alert: rgba(255, 51, 102, 0.4);

  --color-cyan: #00f2fe;
  --color-cyan-glow: rgba(0, 242, 254, 0.45);
  --color-blue: #38bdf8;
  --color-emerald: #00ff9d;
  --color-emerald-glow: rgba(0, 255, 157, 0.4);
  --color-amber: #ffb703;
  --color-crimson: #ff3366;
  --color-purple: #a855f7;
  --color-indigo: #6366f1;

  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-code: #38bdf8;

  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --nav-height: 64px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  background: var(--bg-darkest);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── WebGL Canvas (Fixed Background) ── */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ── Atmospheric Cyber Grid & Scanline Layers ── */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 2;
  pointer-events: none;
}

.cyber-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.6;
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(4, 6, 10, 0.85) 90%, #04060a 100%);
  z-index: 4;
  pointer-events: none;
}

/* ── TOP HUD NAVIGATION ── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  gap: 20px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-glow);
  background: radial-gradient(circle at 30% 30%, rgba(0, 242, 254, 0.2), rgba(11, 19, 31, 0.9));
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--color-cyan);
}

.brand-text h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text h1 span {
  color: var(--color-cyan);
}

.brand-text .sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1px;
  color: var(--color-emerald);
  text-transform: uppercase;
}

/* Nav Modules Links */
.nav-modules-strip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-module-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-module-link:hover {
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.25);
}

.nav-module-link.active {
  color: #fff;
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.nav-module-link.highlight {
  color: var(--color-emerald);
  background: rgba(0, 255, 157, 0.1);
  border-color: rgba(0, 255, 157, 0.35);
  font-weight: 700;
}

.nav-module-link.highlight:hover {
  background: rgba(0, 255, 157, 0.2);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.3);
}

/* Telemetry Ticker */
.nav-ticker-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 12px;
  background: rgba(4, 6, 10, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ticker-label {
  color: var(--text-muted);
}

.ticker-val {
  color: var(--text-main);
  font-weight: 600;
}

.ticker-val.cyan { color: var(--color-cyan); }
.ticker-val.green { color: var(--color-emerald); }
.ticker-val.amber { color: var(--color-amber); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
.bw-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(12, 18, 30, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.bw-btn:hover {
  color: #fff;
  border-color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.1);
}

.bw-btn.active {
  color: var(--color-cyan);
  border-color: var(--border-glow);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.surge-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(0, 255, 157, 0.25));
  border: 1px solid var(--color-cyan);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.surge-btn:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.35), rgba(0, 255, 157, 0.45));
  box-shadow: 0 0 24px rgba(0, 255, 157, 0.4);
  transform: translateY(-1px);
}

.surge-btn.amber {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.2), rgba(255, 51, 102, 0.25));
  border-color: var(--color-amber);
  box-shadow: 0 0 16px rgba(255, 183, 3, 0.25);
}

.surge-btn.amber:hover {
  box-shadow: 0 0 24px rgba(255, 183, 3, 0.45);
}

/* ── FIXED VERTICAL LEVEL SCRUBBER (RIGHT) ── */
.vertical-scrubber {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 90;
  padding: 12px 0;
}

.scrubber-track {
  position: absolute;
  top: 14px;
  bottom: 14px;
  right: 5px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.scrubber-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--color-cyan), var(--color-emerald));
  box-shadow: 0 0 8px var(--color-cyan);
  transition: height 0.15s ease-out;
}

.scrubber-item {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  outline: none;
}

.scrubber-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-fast);
  white-space: nowrap;
  pointer-events: none;
  background: rgba(7, 11, 18, 0.9);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.scrubber-item:hover .scrubber-tag,
.scrubber-item.active .scrubber-tag {
  opacity: 1;
  transform: translateX(0);
}

.scrubber-item.active .scrubber-tag {
  color: var(--color-cyan);
  border-color: var(--border-glow);
}

.scrubber-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-darkest);
  border: 2px solid var(--text-muted);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.scrubber-item:hover .scrubber-bullet {
  border-color: var(--color-cyan);
  transform: scale(1.2);
}

.scrubber-item.active .scrubber-bullet {
  border-color: var(--color-emerald);
  background: var(--color-cyan);
  box-shadow: 0 0 12px var(--color-cyan);
  transform: scale(1.3);
}

/* ── MAIN SCROLL CONTAINER ── */
.scroll-container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.level-section {
  min-height: 100vh;
  padding: 100px 70px 60px 50px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 48px;
  position: relative;
}

.level-section.wide-section {
  grid-template-columns: 0.9fr 1.3fr;
}

/* ══════════════════════════════════════════════════════════════════
   HERO / INTRO SECTION (00)
   ══════════════════════════════════════════════════════════════════ */
.intro-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 100px 24px 60px;
  gap: 24px;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-glow);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-cyan);
  letter-spacing: 1px;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.15);
}

.intro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.setup-notice {
  display:flex;align-items:center;gap:18px;width:min(1050px,100%);
  margin:0 auto 30px;padding:20px 24px;text-align:left;
  background:rgba(8,29,39,.95);border:1px solid #55d6c2;border-radius:14px;
  box-shadow:0 8px 32px #0004;position:relative;z-index:2;flex-shrink:0;
}
.setup-notice-icon {display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border-radius:12px;background:#70e3ce;color:#10242d;font:700 27px system-ui;}
.setup-notice-copy {flex:1;min-width:0;}
.setup-notice-label {font:700 10px/1.5 'JetBrains Mono',monospace;letter-spacing:.12em;color:#8cf1dc;}
.setup-notice-copy h2 {margin:5px 0 6px;font:650 19px/1.3 'Space Grotesk',system-ui;color:#f0faf8;}
.setup-notice-copy p {margin:0;font:400 13px/1.6 system-ui;color:#c1d6de;max-width:660px;}
.setup-notice-button {display:inline-flex;gap:10px;align-items:center;justify-content:center;flex-shrink:0;padding:14px 18px;border-radius:8px;background:#8cf1dc;color:#09262c;text-decoration:none;font:700 13px/1.3 system-ui;transition:background .15s;}
.setup-notice-button:hover {background:#b6ffee;}
.setup-notice-button:focus-visible {outline:3px solid white;outline-offset:4px;}
@media(max-width:760px){.setup-notice{flex-wrap:wrap;padding:16px;gap:12px;margin-bottom:22px;}.setup-notice-icon{width:34px;height:34px;}.setup-notice-copy h2{font-size:17px;}.setup-notice-button{width:100%;}.setup-notice-copy{flex-basis:calc(100% - 48px);}}

.intro-hero-title {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  max-width: 960px;
  background: linear-gradient(135deg, #ffffff 40%, var(--color-cyan) 80%, var(--color-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 6px;
}

.intro-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
}

.intro-stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 10px;
  padding: 16px 28px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.intro-stat-unit {
  text-align: left;
}

.intro-stat-unit .stat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.intro-stat-unit .stat-num span {
  font-size: 13px;
  color: var(--color-cyan);
}

.intro-stat-unit .stat-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.intro-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.scroll-indicator-wrap {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.scroll-indicator-wrap:hover {
  opacity: 1;
}

.mouse-scroll-icon {
  width: 20px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid var(--color-cyan);
  position: relative;
}

.mouse-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background: var(--color-emerald);
  animation: scroll-wheel 1.6s infinite ease-out;
}

@keyframes scroll-wheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

.scroll-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════
   COMMON LEVEL COMPONENTS (LEFT PANE & RIGHT STAGE)
   ══════════════════════════════════════════════════════════════════ */
.level-info-pane {
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 10;
}

.level-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--color-cyan);
  text-transform: uppercase;
}

.level-num-badge {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--border-glow);
  color: #fff;
  font-weight: 800;
}

.level-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.level-title span {
  color: var(--color-cyan);
}

.level-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.level-desc strong {
  color: #fff;
}

.level-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.spec-box {
  background: rgba(12, 18, 30, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.spec-val.cyan { color: var(--color-cyan); }
.spec-val.green { color: var(--color-emerald); }
.spec-val.amber { color: var(--color-amber); }
.spec-val.crimson { color: var(--color-crimson); }

/* Right Stage Card */
.level-stage-pane {
  z-index: 10;
}

.stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.stage-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 20px 48px rgba(0, 242, 254, 0.12);
}

/* Corner Reticle Accents on Stage Cards */
.stage-card::before,
.stage-card::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--color-cyan);
  pointer-events: none;
}

.stage-card::before {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.stage-card::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.stage-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.stage-status-indicator {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.stage-status-indicator.green {
  background: rgba(0, 255, 157, 0.12);
  border: 1px solid var(--border-emerald-glow);
  color: var(--color-emerald);
}

.stage-status-indicator.cyan {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--color-cyan);
}

.stage-status-indicator.amber {
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.3);
  color: var(--color-amber);
}

/* ══════════════════════════════════════════════════════════════════
   LEVEL 01: 14-AGENT HYBRID HUB & PIPELINE
   ══════════════════════════════════════════════════════════════════ */
.agent-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.agent-tab-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(12, 18, 30, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.agent-tab-btn:hover,
.agent-tab-btn.active {
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--border-glow);
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}

.agent-card-item {
  background: rgba(7, 11, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-card-item:hover,
.agent-card-item.selected {
  border-color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.08);
  transform: translateY(-2px);
}

.agent-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
}

.agent-mode-badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-blue);
}

.agent-desc-short {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Agent Live Simulator Console */
.agent-sim-box {
  background: #04060a;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}

.sim-console-stream {
  min-height: 100px;
  max-height: 130px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.sim-time {
  color: var(--text-muted);
  flex-shrink: 0;
}

.sim-tag {
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 9px;
  flex-shrink: 0;
}

.sim-tag.cyan { background: rgba(0, 242, 254, 0.2); color: var(--color-cyan); }
.sim-tag.green { background: rgba(0, 255, 157, 0.2); color: var(--color-emerald); }
.sim-tag.amber { background: rgba(255, 183, 3, 0.2); color: var(--color-amber); }

/* ══════════════════════════════════════════════════════════════════
   LEVEL 02: FALKORDB KNOWLEDGE GRAPH & ENTITY NEXUS
   ══════════════════════════════════════════════════════════════════ */
.graph-stage-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.graph-canvas-container {
  position: relative;
  width: 100%;
  height: 290px;
  background: radial-gradient(circle at 50% 50%, rgba(12, 22, 38, 0.8), #04060a);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

#graphInteractiveCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.graph-canvas-overlay {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

.graph-canvas-overlay span {
  color: var(--color-cyan);
}

.graph-query-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cypher-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(12, 18, 30, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cypher-btn:hover,
.cypher-btn.active {
  color: var(--color-cyan);
  border-color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.1);
}

.entity-inspect-panel {
  background: rgba(7, 11, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.entity-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entity-lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.entity-val {
  font-weight: 700;
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════
   LEVEL 03: DEEPFAKE LAB & ACOUSTIC SCANNER
   ══════════════════════════════════════════════════════════════════ */
.audio-stage-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audio-sample-picker {
  display: flex;
  gap: 8px;
}

.audio-sample-btn {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(12, 18, 30, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.audio-sample-btn:hover,
.audio-sample-btn.active {
  color: #fff;
  border-color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.12);
}

.audio-sample-btn strong {
  display: block;
  font-size: 11px;
  color: var(--color-cyan);
  margin-bottom: 2px;
}

/* Waveform Canvas & Spectrogram */
.waveform-view-card {
  background: #04060a;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.waveform-canvas-box {
  position: relative;
  width: 100%;
  height: 120px;
  background: rgba(8, 14, 22, 0.6);
  border-radius: 4px;
  overflow: hidden;
}

#waveformCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.waveform-laser-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
  pointer-events: none;
  animation: laser-sweep 2.8s infinite linear;
}

@keyframes laser-sweep {
  0% { left: 0%; opacity: 1; }
  98% { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Deepfake Detection Gauges */
.deepfake-results-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
}

.score-circular-gauge {
  background: rgba(12, 18, 30, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.score-circle-svg {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}

.score-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.score-circle-fill {
  fill: none;
  stroke: var(--color-emerald);
  stroke-width: 6;
  stroke-dasharray: 200;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.8s ease-out, stroke 0.4s ease;
}

.score-number {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.score-desc-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-emerald);
  font-weight: 700;
}

.metadata-forensic-table {
  background: rgba(7, 11, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 4px;
}

.meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta-key { color: var(--text-muted); }
.meta-val { color: var(--color-cyan); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════
   LEVEL 04: CRYPTOGRAPHIC EVIDENCE VAULT & HASHING TERMINAL
   ══════════════════════════════════════════════════════════════════ */
.vault-stage-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sample-files-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.evidence-file-card {
  background: rgba(12, 18, 30, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.evidence-file-card:hover,
.evidence-file-card.active {
  border-color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.1);
}

.file-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  flex-shrink: 0;
}

.file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.file-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
}

/* Real-Time SHA-256 Hashing Terminal */
.hash-terminal-box {
  background: #04060a;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hash-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.terminal-title {
  color: var(--color-emerald);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hash-output-display {
  background: rgba(8, 14, 22, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hash-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hash-row-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hash-string {
  font-size: 11.5px;
  color: var(--color-cyan);
  word-break: break-all;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.audit-receipt-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
}

.audit-receipt-strip span {
  color: var(--text-muted);
}

.audit-receipt-strip strong {
  color: var(--color-emerald);
}

/* ══════════════════════════════════════════════════════════════════
   INTERACTIVE MODAL SYSTEM
   ══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.2);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 18, 30, 0.85);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.modal-subtitle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-body h3 {
  font-size: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.modal-body p {
  color: var(--text-secondary);
}

.modal-architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.arch-block {
  background: rgba(7, 11, 18, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-cyan);
}

.arch-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── FOOTER ── */
.site-footer {
  position: relative;
  z-index: 10;
  background: #04060a;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* ── RESPONSIVE DESIGN ── */
@media (max-width: 1100px) {
  .level-section,
  .level-section.wide-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 90px 30px 50px 24px;
  }
  .vertical-scrubber {
    display: none;
  }
  .nav-ticker-strip {
    display: none;
  }
  .intro-hero-title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .top-nav {
    padding: 0 16px;
  }
  .nav-modules-strip {
    display: none;
  }
  .intro-hero-title {
    font-size: 32px;
  }
  .level-specs-grid,
  .agents-grid,
  .sample-files-strip,
  .modal-architecture-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 30px 20px;
  }
}
