/* NBDL // Obsidian × Neural × Interactive Sandbox Design System */

:root,
html[data-theme="twilight"] {
  --bg-void: #07050c;
  --bg-panel: #0e091b;
  --bg-card: #150e26;
  --border: rgba(168, 85, 247, 0.24);
  --border-strong: rgba(216, 180, 254, 0.42);
  --text-main: #f5f3ff;
  --text-muted: #a799c4;
  --purple: #9333ea;
  --violet: #c084fc;
  --magenta: #ec4899;
  --gold: #fde047;
  --amber: #f59e0b;
  --accent-grad: linear-gradient(135deg, #7c3aed 0%, #c026d3 52%, #f59e0b 100%);
  --text-grad: linear-gradient(95deg, #c084fc 8%, #ec4899 52%, #fde047 95%);
  --gold-blend: 0.60;
  --glitch-power: 0.45;
  --scanline-opacity: 0.14;
  --star-speed: 1;
}

html[data-theme="nebula"] {
  --bg-void: #050610;
  --bg-panel: #0b0e22;
  --bg-card: #111633;
  --border: rgba(99, 102, 241, 0.30);
  --border-strong: rgba(56, 189, 248, 0.46);
  --text-main: #f0f9ff;
  --text-muted: #94a9cc;
  --purple: #6366f1;
  --violet: #a78bfa;
  --magenta: #e879f9;
  --gold: #38bdf8;
  --amber: #22d3ee;
  --accent-grad: linear-gradient(135deg, #4f46e5 0%, #a855f7 52%, #06b6d4 100%);
  --text-grad: linear-gradient(95deg, #a78bfa 8%, #e879f9 50%, #38bdf8 95%);
}

html[data-theme="solar"] {
  --bg-void: #0a0509;
  --bg-panel: #160a14;
  --bg-card: #200e1c;
  --border: rgba(244, 63, 94, 0.28);
  --border-strong: rgba(251, 191, 36, 0.48);
  --text-main: #fff7ed;
  --text-muted: #c8a2b2;
  --purple: #be123c;
  --violet: #fb7185;
  --magenta: #f97316;
  --gold: #fde047;
  --amber: #f59e0b;
  --accent-grad: linear-gradient(135deg, #9f1239 0%, #ea580c 52%, #facc15 100%);
  --text-grad: linear-gradient(95deg, #fb7185 8%, #fb923c 52%, #fde047 95%);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-void);
  color: var(--text-main);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(124, 58, 237, 0.18), transparent 44%),
    radial-gradient(circle at 82% 32%, rgba(253, 224, 71, calc(0.09 * var(--gold-blend))), transparent 42%),
    var(--bg-void);
  color: var(--text-main);
  overflow-x: clip;
  transition: background-color 0.45s ease;
}

/* Custom Neon Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #07050c; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple), var(--magenta), var(--gold));
  border-radius: 999px;
}

img {
  display: block;
  max-width: 100%;
}

button, input {
  font-family: inherit;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* Global Overlays */
#bg-canvas, #starburst-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
#bg-canvas { z-index: 0; }
#starburst-canvas { z-index: 60; }

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: var(--scanline-opacity);
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0) 2px,
    rgba(10, 6, 20, 0.5) 3px,
    rgba(10, 6, 20, 0.5) 4px
  );
}

.cursor-orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.24) 0%,
    rgba(253, 224, 71, calc(0.16 * var(--gold-blend))) 42%,
    transparent 72%
  );
  filter: blur(20px);
  transition: opacity 0.25s ease;
}

/* Cursor-Tracked Spotlight Glass Cards */
.spotlight-card {
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 46px rgba(0, 0, 0, 0.46);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(253, 224, 71, 0.14),
    rgba(168, 85, 247, 0.11) 42%,
    transparent 74%
  );
  transition: opacity 0.28s ease;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card > * {
  position: relative;
  z-index: 2;
}

/* Flagship Prismatic Rim Panels & Micro Dot-Matrix Glass */
.prism-panel {
  border-color: rgba(216, 180, 254, 0.36);
  box-shadow:
    0 24px 68px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(216, 180, 254, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  background-image: radial-gradient(rgba(192, 132, 252, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.prism-panel:hover {
  border-color: rgba(253, 224, 71, 0.45);
  box-shadow:
    0 28px 82px rgba(124, 58, 237, 0.28),
    0 0 34px rgba(253, 224, 71, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Holographic Sheen Sweep */
.sheen-card {
  position: relative;
  overflow: hidden;
}

.sheen-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(
    115deg,
    transparent 24%,
    rgba(192, 132, 252, 0.14) 44%,
    rgba(253, 224, 71, 0.18) 50%,
    transparent 68%
  );
  transform: translateX(-135%);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.sheen-card:hover::after {
  transform: translateX(135%);
}

.scroll-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: rgba(12, 8, 24, 0.85);
}

.scroll-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    #7c3aed 0%,
    #c084fc 16%,
    #ec4899 33%,
    #fde047 50%,
    #38bdf8 66%,
    #a855f7 83%,
    #7c3aed 100%
  );
  background-size: 300% 100%;
  background-position: 0% 50%;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.55), 0 0 8px rgba(253, 224, 71, 0.38);
}

/* Precision Top HUD */
.top-hud {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 24px));
  height: 54px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: rgba(12, 8, 24, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.5);
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace;
  flex-shrink: 0;
}

.hud-star {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(253, 224, 71, 0.8);
  font-size: 16px;
}

.hud-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 16px;
}

.hud-tag {
  font-size: 10px;
  color: var(--violet);
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hud-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  transition: color 0.2s, text-shadow 0.2s;
}

.hud-nav a:hover {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.55);
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hud-telemetry {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  padding: 5px 9px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 7px;
  background: rgba(7, 5, 12, 0.65);
}

.hud-telemetry b { color: var(--gold); }
.hud-telemetry .sep { opacity: 0.35; }

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.hud-icon-btn {
  cursor: pointer;
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(15, 10, 28, 0.85);
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, transform 0.15s;
}

.hud-icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(253, 224, 71, 0.28);
  transform: translateY(-1px);
}

.hud-icon-btn.active {
  border-color: var(--gold);
  background: rgba(253, 224, 71, 0.14);
  color: var(--gold);
}

.kbd-btn {
  font-size: 11px;
  color: var(--violet);
}

.btn-starburst {
  cursor: pointer;
  height: 32px;
  border: 1px solid rgba(253, 224, 71, 0.55);
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.42), rgba(245, 158, 11, 0.28));
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 11px;
  border-radius: 7px;
  transition: transform 0.18s, box-shadow 0.2s;
}

.btn-starburst:hover {
  box-shadow: 0 0 18px rgba(253, 224, 71, 0.48);
}

/* Right Section Nav Rail */
.side-rail {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 75;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  opacity: 0.62;
  transition: opacity 0.2s, color 0.2s, transform 0.2s;
}

.rail-item i {
  display: block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(168, 85, 247, 0.5);
  transition: width 0.25s, background 0.25s;
}

.rail-item.active {
  opacity: 1;
  color: var(--gold);
  transform: translateX(-3px);
}

.rail-item.active i {
  width: 26px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  box-shadow: 0 0 10px rgba(253, 224, 71, 0.65);
}

/* Common Typography, Dividers & Section Backdrops */
.sec-head { margin-bottom: 32px; }

.sec-kicker, .ch-tag, .sb-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 10px;
}

.sec-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  box-shadow: 0 0 10px var(--gold);
}

.sec-divider {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 85, 247, 0.48) 24%,
    rgba(253, 224, 71, 0.72) 50%,
    rgba(168, 85, 247, 0.48) 76%,
    transparent
  );
  display: grid;
  place-items: center;
}

.sec-divider span {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.48);
  background: #0a0614;
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.45);
}

.sec-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bd-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.22;
  animation: orbDrift 14s ease-in-out infinite alternate;
}

.bd-orb.orb-a { top: -110px; left: -120px; background: var(--purple); }
.bd-orb.orb-b { bottom: -120px; right: -90px; background: var(--gold); opacity: 0.16; animation-delay: -5s; }
.bd-orb.orb-c { top: 18%; right: -140px; background: var(--magenta); opacity: 0.18; animation-delay: -3s; }
.bd-orb.orb-d { bottom: -100px; left: 8%; background: var(--purple); opacity: 0.2; animation-delay: -8s; }

@keyframes orbDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(38px, -26px, 0) scale(1.12); }
}

.bd-watermark {
  position: absolute;
  top: 32px;
  right: max(24px, 4vw);
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(54px, 8.2vw, 134px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(192, 132, 252, 0.13);
  user-select: none;
  white-space: nowrap;
}

.bd-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.88;
}

.bd-radar-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 720px;
  height: 720px;
  margin-left: -360px;
  margin-top: -360px;
  border-radius: 50%;
  border: 1px dashed rgba(192, 132, 252, 0.18);
  background: conic-gradient(from 0deg, rgba(253, 224, 71, 0.14), rgba(168, 85, 247, 0.06) 22%, transparent 45%);
  animation: radarSpin 16s linear infinite;
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sec-title {
  margin: 0 0 10px;
  font-family: "Syne", sans-serif;
  font-size: clamp(28px, 4.3vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.sec-sub {
  margin: 0;
  color: var(--text-muted);
  max-width: 700px;
  font-size: 15px;
  line-height: 1.55;
}

.grad-text {
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ================= ACT 1: HERO ================= */
.act-hero {
  position: relative;
  min-height: 100vh;
  padding: 96px 0 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-sunset-mist {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: calc(0.18 + 0.16 * var(--gold-blend));
}

.hero-sunset-mist img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.08);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78) 55%, transparent 100%);
}

.hero-aurora {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 60%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 38% at 24% 28%, rgba(168, 85, 247, 0.22), transparent 72%),
    radial-gradient(ellipse 40% 34% at 76% 24%, rgba(253, 224, 71, 0.13), transparent 70%);
  filter: blur(36px);
  animation: auroraDrift 11s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
  0% { transform: translate3d(-2%, 0, 0) scale(1); }
  100% { transform: translate3d(2%, 3%, 0) scale(1.06); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.hero-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.sys-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 10, 28, 0.82);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--violet);
  letter-spacing: 0.08em;
}

.hero-contacts {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.contact-mini {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(15, 10, 28, 0.86);
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.contact-mini.tg {
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}

.contact-mini.dc {
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: var(--gold);
}

.contact-mini:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(253, 224, 71, 0.28);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.hero-title-lockup {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
}

.hero-title-halo {
  position: absolute;
  inset: -14px -26px;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 55% at 45% 55%, rgba(168, 85, 247, 0.32), rgba(253, 224, 71, 0.14) 52%, transparent 75%);
  filter: blur(22px);
  z-index: 0;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(62px, 9vw, 126px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero-edition-tag {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 12px;
  margin-bottom: 8px;
  border-left: 2px solid var(--gold);
  font-family: "JetBrains Mono", monospace;
}

.hero-edition-tag .ed-yr {
  font-family: "Syne", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(253, 224, 71, 0.5);
}

.hero-edition-tag .ed-lbl {
  font-size: 9.5px;
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: var(--violet);
}

.glitch-layer {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 0 28px rgba(168, 85, 247, 0.55));
}

.glitch-layer .split-char {
  background: linear-gradient(125deg, #ffffff 8%, #e9d5ff 38%, var(--magenta) 70%, var(--gold) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f5f3ff;
}

.glitch-layer::before,
.glitch-layer::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: calc(0.45 * var(--glitch-power));
  -webkit-text-fill-color: currentColor;
}

.glitch-layer::before {
  color: var(--gold);
  transform: translate(calc(3px * var(--glitch-power)), calc(-2px * var(--glitch-power)));
  clip-path: polygon(0 12%, 100% 12%, 100% 34%, 0 34%);
  animation: glitchShiftA 3.2s infinite steps(2, end);
}

.glitch-layer::after {
  color: var(--violet);
  transform: translate(calc(-3px * var(--glitch-power)), calc(2px * var(--glitch-power)));
  clip-path: polygon(0 62%, 100% 62%, 100% 82%, 0 82%);
  animation: glitchShiftB 2.7s infinite steps(2, end);
}

@keyframes glitchShiftA {
  0%, 92%, 100% { transform: translate(0, 0); }
  94% { transform: translate(calc(6px * var(--glitch-power)), -2px); }
  97% { transform: translate(calc(-4px * var(--glitch-power)), 1px); }
}

@keyframes glitchShiftB {
  0%, 89%, 100% { transform: translate(0, 0); }
  91% { transform: translate(calc(-6px * var(--glitch-power)), 2px); }
  95% { transform: translate(calc(4px * var(--glitch-power)), -1px); }
}

.split-char {
  display: inline-block;
  animation: charDrop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 75ms);
}

@keyframes charDrop {
  from { opacity: 0; transform: translateY(36px) rotateX(45deg); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}

.hero-subtitle {
  margin: 0 0 22px;
  font-size: clamp(16px, 1.48vw, 18.5px);
  line-height: 1.6;
  color: #d6cceb;
  max-width: 570px;
}

.hl-purple { color: var(--violet); font-weight: 600; }
.hl-star { color: var(--magenta); font-weight: 600; }
.hl-gold { color: var(--gold); font-weight: 600; }

/* Live Status Telemetry Strip */
.live-status-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  margin-bottom: 24px;
  border-radius: 8px;
  border: 1px solid rgba(253, 224, 71, 0.3);
  background: linear-gradient(90deg, rgba(15, 10, 28, 0.88), rgba(34, 16, 60, 0.65));
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #e9d5ff;
  letter-spacing: 0.04em;
  max-width: 100%;
}

.pulse-ring {
  position: relative;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #4ade80;
  animation: livePulse 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

.strip-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-sunset-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid rgba(253, 224, 71, 0.55);
  background: var(--accent-grad);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.42);
  transition: transform 0.2s, box-shadow 0.25s;
}

.btn-sunset-primary:hover {
  box-shadow: 0 12px 38px rgba(253, 224, 71, 0.45);
}

.btn-sunset-primary.full {
  width: 100%;
  margin-top: 4px;
}

.btn-obsidian-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 13px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 10, 28, 0.8);
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-obsidian-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 22px rgba(253, 224, 71, 0.22);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.metric-chip {
  padding: 11px 15px;
  border-radius: 10px;
  background: rgba(15, 10, 28, 0.78);
  border: 1px solid var(--border);
  min-width: 152px;
}

.m-val {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 25px;
  font-weight: 800;
  color: var(--gold);
}

.m-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Instant Hero Quick-Effects Dock */
.hero-dock {
  margin-top: 14px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(12, 8, 24, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.dock-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: 2px;
}

.dock-btn {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid rgba(168, 85, 247, 0.34);
  background: rgba(15, 10, 28, 0.9);
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  transition: border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
}

.dock-btn.gold {
  border-color: rgba(253, 224, 71, 0.45);
  color: var(--gold);
}

.dock-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(253, 224, 71, 0.28);
  transform: translateY(-1px);
}

.dock-btn:active {
  transform: scale(0.96);
}

/* Live Circular Charge Ring & Meter inside Hero Core Card */
.core-charge-svg {
  position: absolute;
  inset: 3%;
  width: 94%;
  height: 94%;
  z-index: 3;
  pointer-events: none;
}

#core-progress-ring {
  transition: stroke-dashoffset 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.72));
}

/* Interactive Tap-to-Charge Hero Core Card */
.hero-showcase-card {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 470px;
  width: 100%;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 45%, rgba(124, 58, 237, 0.26), rgba(10, 6, 20, 0.92) 74%);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), inset 0 0 42px rgba(168, 85, 247, 0.16);
  display: grid;
  place-items: center;
  overflow: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.hero-showcase-card.charged {
  border-color: var(--gold);
  box-shadow: 0 25px 80px rgba(253, 224, 71, 0.28), inset 0 0 60px rgba(253, 224, 71, 0.22);
}

.card-corner {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--violet);
  z-index: 4;
  padding: 4px 8px;
  background: rgba(7, 5, 12, 0.78);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 5px;
}

.card-corner.tl { top: 14px; left: 14px; }
.card-corner.tr { top: 14px; right: 14px; color: var(--gold); }
.card-corner.bl { bottom: 14px; left: 14px; }
.card-corner.br { bottom: 14px; right: 14px; color: var(--gold); }

.core-meter-wrap {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.core-hint {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.35);
  background: rgba(7, 5, 12, 0.78);
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  white-space: nowrap;
}

.core-meter-bar {
  width: 196px;
  height: 4px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.22);
  overflow: hidden;
}

.core-meter-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--magenta), var(--gold));
  box-shadow: 0 0 10px var(--gold);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.star-ring-outer {
  position: absolute;
  inset: 4%;
  pointer-events: none;
  z-index: 2;
}

.emblem-wrap {
  width: 76%;
  height: 76%;
  display: grid;
  place-items: center;
  z-index: 3;
}

.emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle, #000 56%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle, #000 56%, transparent 74%);
  filter: drop-shadow(0 0 26px rgba(168, 85, 247, 0.55));
  pointer-events: none;
}

.floating-stars span {
  position: absolute;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(253, 224, 71, 0.85);
  pointer-events: none;
  z-index: 4;
  animation: floatStar 4s ease-in-out infinite;
}

.fstar.s1 { top: 20%; left: 14%; font-size: 18px; }
.fstar.s2 { top: 24%; right: 15%; font-size: 14px; animation-delay: 1s; color: var(--violet); }
.fstar.s3 { bottom: 20%; left: 16%; font-size: 14px; animation-delay: 1.8s; color: var(--magenta); }
.fstar.s4 { bottom: 18%; right: 14%; font-size: 20px; animation-delay: 0.6s; }

@keyframes floatStar {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

.scroll-cue {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-decoration: none;
}

.scroll-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.38);
  background: rgba(11, 7, 22, 0.8);
  backdrop-filter: blur(10px);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  animation: floatCuePill 2.8s ease-in-out infinite;
}

.scroll-cue:hover .scroll-pill {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 18px rgba(253, 224, 71, 0.28);
}

@keyframes floatCuePill {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ================= ACT 2: TACTILE INTERACTIVE SANDBOX ================= */
.act-sandbox {
  background:
    radial-gradient(circle at 22% 16%, rgba(124, 58, 237, 0.14), transparent 52%),
    radial-gradient(circle at 80% 80%, rgba(253, 224, 71, 0.08), transparent 48%);
}

.sandbox-shell {
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 8, 24, 0.9);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.sandbox-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(25, 14, 48, 0.96), rgba(14, 9, 28, 0.96));
  border-bottom: 1px solid var(--border);
}

.sandbox-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stab {
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(7, 5, 12, 0.78);
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.stab:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.stab.active {
  color: #07050c;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  border-color: transparent;
  box-shadow: 0 0 20px rgba(253, 224, 71, 0.35);
}

.sandbox-tip {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--gold);
  opacity: 0.9;
}

.toy-pane {
  display: none;
  padding: 18px;
  flex-direction: column;
  gap: 14px;
}

.toy-pane.active {
  display: flex;
}

.toy-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ctrl-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.inline-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(7, 5, 12, 0.75);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.inline-range b { color: var(--gold); }
.inline-range input[type="range"] {
  width: 92px;
  accent-color: var(--gold);
  cursor: pointer;
}

.toy-canvas-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.32);
  background: radial-gradient(circle at 50% 45%, rgba(88, 28, 135, 0.18), #06040b 78%);
}

#gravity-canvas, #cloth-canvas, #aim-canvas, #kaleido-canvas {
  display: block;
  width: 100%;
  height: 430px;
  touch-action: none;
  cursor: crosshair;
}

.canvas-hud-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  pointer-events: none;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(7, 5, 12, 0.8);
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--violet);
}

/* Toy 2: 16-Step Synth Sequencer & Live Pads */
#audio-vis-canvas {
  display: block;
  width: 100%;
  height: 84px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 10, 32, 0.9), rgba(7, 5, 12, 0.96));
}

.seq-grid {
  display: grid;
  gap: 8px;
}

.seq-row {
  display: grid;
  grid-template-columns: 116px repeat(16, 1fr);
  gap: 5px;
  align-items: center;
}

.seq-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--violet);
  padding: 7px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(7, 5, 12, 0.78);
  white-space: nowrap;
}

.seq-label.gold { color: var(--gold); }

.seq-step {
  cursor: pointer;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background: rgba(15, 10, 28, 0.86);
  transition: transform 0.1s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.seq-step.beat-mark {
  background: rgba(28, 18, 52, 0.9);
}

.seq-step:hover {
  border-color: var(--gold);
  transform: scale(1.06);
}

.seq-step.on {
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  border-color: rgba(253, 224, 71, 0.65);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.45);
}

.seq-step.on.gold-row {
  background: linear-gradient(135deg, var(--magenta), var(--gold));
  box-shadow: 0 0 14px rgba(253, 224, 71, 0.55);
}

.seq-step.playhead {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
  transform: scale(1.07);
}

.synth-pads-wrap {
  display: grid;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

.pads-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.synth-pads {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.spad {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 60px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(26, 16, 50, 0.9), rgba(11, 7, 22, 0.95));
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace;
  transition: transform 0.08s, box-shadow 0.15s, border-color 0.15s;
}

.spad b { font-size: 14px; color: var(--violet); }
.spad span { font-size: 10px; color: var(--text-muted); }
.spad.gold b { color: var(--gold); }

.spad:hover, .spad.hit {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.45), rgba(245, 158, 11, 0.3));
  box-shadow: 0 0 22px rgba(253, 224, 71, 0.45);
  transform: translateY(-2px) scale(0.98);
}

/* Toy 4: Aim Stats */
.aim-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--text-muted);
}

.aim-stats b { color: var(--gold); }

/* ================= ACT 3: STICKY STORYBOARD ================= */
.act-storyboard {
  position: relative;
  height: 235vh;
}

.sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 56px;
}

.storyboard-bg-morph {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 68% 50%, rgba(147, 51, 234, 0.22), transparent 58%);
  transition: filter 0.2s linear;
}

.storyboard-inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.sb-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sb-pills { display: flex; gap: 8px; flex-wrap: wrap; }

.sb-pill {
  cursor: pointer;
  background: rgba(15, 10, 28, 0.78);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.25s;
}

.sb-pill.active {
  color: #07050c;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  border-color: transparent;
  box-shadow: 0 0 18px rgba(253, 224, 71, 0.45);
}

.sb-progress-readout {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.sb-progress-readout b { color: var(--gold); }

.sb-stage-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  min-height: 430px;
}

.sb-text-stack, .sb-visual-stack {
  position: relative;
  min-height: 390px;
}

.sb-chapter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.sb-chapter.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ch-title {
  margin: 0 0 14px;
  font-family: "Syne", sans-serif;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.06;
}

.ch-desc {
  margin: 0 0 22px;
  color: #d6cceb;
  font-size: 15px;
  line-height: 1.65;
}

.ch-bars {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.ch-bars > div:nth-child(odd) {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.ch-bars b { color: var(--gold); }

.bar-track {
  height: 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.16);
  overflow: hidden;
  margin-bottom: 6px;
}

.bar-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--magenta), var(--gold));
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ch-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ch-tags-row span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 10, 28, 0.85);
  color: var(--gold);
}

.sb-card {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 10, 28, 0.9);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(34px) rotateX(8deg) scale(0.95);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.sb-card.active {
  opacity: 1;
  transform: translateY(0) rotateX(0) scale(1);
  pointer-events: auto;
}

.sb-card-head {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--violet);
}

.status-ok { color: #4ade80; }

#wave-canvas, #tensor-canvas {
  width: 100%;
  height: 240px;
  border-radius: 8px;
  background: rgba(7, 5, 12, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.sb-wave-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sb-wave-metrics div {
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(7, 5, 12, 0.72);
  border: 1px solid var(--border);
}

.sb-wave-metrics small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: var(--text-muted);
}

.sb-wave-metrics b {
  font-size: 13px;
  color: var(--gold);
}

.sb-card-horizon { padding: 0; }

.horizon-reveal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.6s ease;
}

.sb-card-horizon:hover .horizon-reveal-img { transform: scale(1.04); }

.horizon-overlay-hud {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(7, 5, 12, 0.78);
  border: 1px solid rgba(253, 224, 71, 0.35);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--gold);
}

/* ================= ACT 4: NEURAL CORE & AI ARSENAL ================= */
.act-section {
  padding: 94px 0;
  position: relative;
  z-index: 3;
  overflow: clip;
}

.neural-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}

.neural-panel, .arsenal-panel {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 10, 28, 0.86);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.panel-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--violet);
}

.panel-actions { display: flex; gap: 8px; }

.btn-mini {
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(7, 5, 12, 0.82);
  color: var(--text-main);
  border-radius: 7px;
  padding: 6px 11px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.18s;
}

.btn-mini.primary, .btn-mini.active {
  border-color: rgba(253, 224, 71, 0.6);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.55), rgba(245, 158, 11, 0.38));
  color: var(--gold);
}

.btn-mini:hover {
  border-color: var(--gold);
  color: var(--gold);
}

#neural-canvas {
  width: 100%;
  height: 360px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(91, 33, 182, 0.16), rgba(7, 5, 12, 0.96));
  border: 1px solid rgba(168, 85, 247, 0.22);
  cursor: pointer;
}

.nn-telemetry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.nn-telemetry div {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(7, 5, 12, 0.72);
}

.nn-telemetry small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.nn-telemetry b {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--gold);
}

.arsenal-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.atab {
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(7, 5, 12, 0.75);
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  transition: all 0.2s;
}

.atab.active {
  color: #07050c;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  border-color: transparent;
}

.arsenal-list {
  display: grid;
  gap: 10px;
  flex: 1;
}

.ai-item {
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(7, 5, 12, 0.72);
  transition: border-color 0.2s, transform 0.2s;
}

.ai-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.ai-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.ai-item-top b { font-size: 14px; color: var(--text-main); }
.ai-item-top span { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--gold); }
.ai-item p { margin: 0 0 8px; font-size: 12px; color: var(--text-muted); line-height: 1.45; }

.ai-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.16);
  overflow: hidden;
}

.ai-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
}

/* ================= ACT 5: REAL PC CONFIGURATION + LOAD SIMULATOR ================= */
.act-rig {
  background:
    radial-gradient(circle at 18% 25%, rgba(124, 58, 237, 0.12), transparent 52%),
    radial-gradient(circle at 84% 72%, rgba(253, 224, 71, 0.07), transparent 46%);
}

.rig-banner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 24px 26px;
  margin-bottom: 24px;
  border-radius: 15px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(21, 13, 40, 0.92), rgba(11, 7, 22, 0.95));
}

.rig-pill {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid rgba(253, 224, 71, 0.36);
  background: rgba(253, 224, 71, 0.07);
  margin-bottom: 12px;
}

.rig-banner-left h3 {
  margin: 0 0 10px;
  font-family: "Syne", sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.08;
}

.rig-banner-left p {
  margin: 0 0 14px;
  color: #cfc4e6;
  font-size: 14px;
  line-height: 1.55;
}

.rig-sim-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rig-banner-meters {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(7, 5, 12, 0.76);
}

.rig-meter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.rig-meter-row b { color: var(--gold); }

.rig-live-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed rgba(168, 85, 247, 0.25);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.rig-live-foot b { color: #4ade80; }

.rig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.rig-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 20px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(15, 10, 28, 0.88);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.rig-card:hover {
  border-color: rgba(253, 224, 71, 0.55);
  box-shadow: 0 18px 44px rgba(147, 51, 234, 0.24);
}

.rig-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rig-ico {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid rgba(192, 132, 252, 0.4);
  background: rgba(124, 58, 237, 0.2);
  color: var(--violet);
  font-size: 14px;
}

.rig-ico.gold {
  border-color: rgba(253, 224, 71, 0.45);
  background: rgba(245, 158, 11, 0.16);
  color: var(--gold);
}

.rig-cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--violet);
}

.rig-cat.gold { color: var(--gold); }

.rig-card h4 {
  margin: 2px 0 0;
  font-family: "Syne", sans-serif;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text-main);
}

.rig-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1;
}

.rig-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px dashed rgba(168, 85, 247, 0.24);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.rig-foot span { color: var(--text-muted); }
.rig-foot b { color: var(--gold); }

.rig-env-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(11, 7, 20, 0.85);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.rig-env-strip b {
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid rgba(192, 132, 252, 0.32);
  background: rgba(124, 58, 237, 0.14);
  color: var(--text-main);
  font-weight: 600;
}

/* ================= ACT 6: FREE VAULT & 6 BUILT-IN TOOLS ================= */
.act-vault {
  background:
    radial-gradient(circle at 80% 18%, rgba(236, 72, 153, 0.09), transparent 48%),
    radial-gradient(circle at 18% 78%, rgba(124, 58, 237, 0.11), transparent 52%);
}

.tools-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 11px;
  padding: 18px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 10, 28, 0.9);
}

.tool-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--violet);
}

.tool-head b {
  color: var(--gold);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(253, 224, 71, 0.1);
  border: 1px solid rgba(253, 224, 71, 0.3);
}

.tool-output-row { display: flex; gap: 6px; }

.tool-output-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #07050c;
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  outline: none;
}

.tool-output-row input:focus { border-color: var(--gold); }

.tool-slider {
  display: grid;
  gap: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.tool-slider b { color: var(--gold); }
.tool-slider input[type="range"] { accent-color: var(--gold); cursor: pointer; }

.tool-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.tool-checks label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.tool-checks input[type="checkbox"] { accent-color: var(--violet); }

.tool-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(7, 5, 12, 0.72);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.grad-preview {
  height: 54px;
  border-radius: 8px;
  border: 1px solid rgba(253, 224, 71, 0.4);
  background: linear-gradient(135deg, #7c3aed, #ec4899, #fde047);
}

.full-mini { width: 100%; padding: 8px 10px; }

.cps-pad {
  cursor: pointer;
  width: 100%;
  padding: 16px 12px;
  border-radius: 9px;
  border: 1px dashed rgba(253, 224, 71, 0.5);
  background: radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.24), rgba(7, 5, 12, 0.88));
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.08s, border-color 0.15s, box-shadow 0.15s;
}

.cps-pad:active {
  transform: scale(0.97);
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(253, 224, 71, 0.4);
}

.cps-pad strong {
  font-family: "Syne", sans-serif;
  font-size: 16px;
  color: var(--gold);
}

.cps-pad small {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
}

.pomo-clock {
  text-align: center;
  font-family: "Syne", sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 6px 0;
}

.vault-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.vault-filters { display: flex; flex-wrap: wrap; gap: 8px; }

.vtab {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: rgba(15, 10, 28, 0.85);
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s;
}

.vtab:hover { border-color: var(--gold); color: var(--gold); }

.vtab.active {
  color: #07050c;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  border-color: transparent;
  box-shadow: 0 0 18px rgba(253, 224, 71, 0.35);
}

.vault-note {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.vault-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 17px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(13, 9, 25, 0.88);
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.vault-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.28);
}

.vault-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.vault-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(192, 132, 252, 0.35);
  background: rgba(124, 58, 237, 0.18);
  color: var(--violet);
}

.vault-badge.gold {
  border-color: rgba(253, 224, 71, 0.42);
  background: rgba(245, 158, 11, 0.16);
  color: var(--gold);
}

.vault-arrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--gold);
  opacity: 0.7;
  transition: transform 0.2s, opacity 0.2s;
}

.vault-card:hover .vault-arrow { transform: translate(2px, -2px); opacity: 1; }
.vault-card h4 { margin: 2px 0 0; font-family: "Syne", sans-serif; font-size: 16px; color: var(--text-main); }
.vault-card p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); flex: 1; }

.vault-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed rgba(168, 85, 247, 0.18);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #4ade80;
}

.vault-card-foot span:last-child { color: var(--text-muted); }

/* ================= ACT 7: HORIZONTAL GALLERY ================= */
.act-gallery { position: relative; height: 220vh; }

.gallery-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.gallery-counter { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--text-muted); }
.gallery-counter b { color: var(--gold); }

.gallery-viewport {
  width: 100%;
  overflow: hidden;
  padding-left: max(20px, calc((100vw - 1200px) / 2));
  padding-right: 72px;
}

.gallery-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.gal-card {
  width: 390px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 10, 28, 0.9);
  overflow: hidden;
  flex-shrink: 0;
}

.gal-media {
  position: relative;
  height: 250px;
  background: #080510;
  overflow: hidden;
}

.gal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.5s ease;
}

.gal-card:hover .gal-media img { transform: scale(1.06); }
.gal-canvas-wrap, .gal-prism-card { display: grid; place-items: center; }

#sphere-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#sphere-canvas:active { cursor: grabbing; }

.prism-aura {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(253, 224, 71, 0.2), rgba(147, 51, 234, 0.3) 50%, transparent 76%);
}

.gal-prism-svg { width: 100%; height: 100%; position: relative; z-index: 2; }
.prism-diamond { transform-origin: 160px 94px; animation: floatDiamond 3.8s ease-in-out infinite; }

@keyframes floatDiamond {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-7px) scale(1.04); }
}

.gal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(7, 5, 12, 0.8);
  border: 1px solid var(--border-strong);
  color: var(--violet);
  pointer-events: none;
}

.gal-badge.gold { color: var(--gold); border-color: rgba(253, 224, 71, 0.45); }
.gal-body { padding: 16px 18px 18px; }
.gal-body h3 { margin: 0 0 6px; font-family: "Syne", sans-serif; font-size: 18px; }
.gal-body p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ================= ACT 8: MARQUEES + CONTROL DECK ================= */
.act-hud {
  padding: 40px 0 96px;
  position: relative;
  z-index: 3;
  overflow: clip;
}

.marquee-wrap {
  margin-bottom: 64px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(12, 8, 24, 0.68);
  overflow: hidden;
  padding: 10px 0;
}

.marquee-row {
  display: flex;
  width: max-content;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--violet);
  will-change: transform;
}

.marquee-row.reverse {
  font-size: 15px;
  font-family: "JetBrains Mono", monospace;
  color: var(--gold);
  opacity: 0.85;
  margin-top: 4px;
}

.deck-window {
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #0d0818;
  overflow: hidden;
}

.deck-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #170d2c, #110920);
  border-bottom: 1px solid var(--border);
}

.deck-brand { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; color: var(--text-main); }
.deck-brand span { color: var(--gold); }
.deck-tabs { display: flex; flex-wrap: wrap; gap: 6px; }

.ftab {
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(7, 5, 12, 0.72);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s;
}

.ftab.active {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
}

.deck-build { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--gold); }
.deck-body { padding: 22px; }
.deck-pane { display: none; }
.deck-pane.active { display: block; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.prof-card, .stack-box {
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(21, 14, 38, 0.72);
}

.prof-card h3, .stack-box h4 {
  margin: 0 0 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.kv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.kv-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed rgba(168, 85, 247, 0.16);
  padding-bottom: 6px;
  font-size: 13px;
}

.kv-list span { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--text-muted); }

.kv-link, .kv-copy-btn {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s, text-shadow 0.2s;
}

.kv-link:hover, .kv-copy-btn:hover {
  text-shadow: 0 0 12px rgba(253, 224, 71, 0.6);
  opacity: 0.9;
}
.prof-card p, .stack-box p { margin: 0 0 14px; color: #d6cceb; font-size: 14px; line-height: 1.6; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-grid span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 5, 12, 0.7);
  color: var(--violet);
}

.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stack-meter { height: 6px; border-radius: 4px; background: rgba(168, 85, 247, 0.15); overflow: hidden; }
.stack-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--gold)); }

.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.fx-sliders, .fx-toggles {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(21, 14, 38, 0.72);
}

.fx-row { display: grid; gap: 6px; font-size: 13px; }
.fx-row b { color: var(--gold); font-family: "JetBrains Mono", monospace; }
.fx-row input[type="range"] { accent-color: var(--gold); cursor: pointer; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; cursor: pointer; }
.toggle-row input { width: 18px; height: 18px; accent-color: var(--violet); }
.theme-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* Console */
.console-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.console-quick button {
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(21, 14, 38, 0.85);
  color: var(--gold);
  border-radius: 5px;
  padding: 4px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.console-log {
  height: 210px;
  overflow-y: auto;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #06040b;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.console-line.sys { color: var(--violet); }
.console-line.gold { color: var(--gold); }
.console-line.cmd { color: #94a3b8; }

.console-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #07050c;
}

.console-input-row .prompt { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--gold); }
.console-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.console-input-row button {
  cursor: pointer;
  border: 1px solid rgba(253, 224, 71, 0.5);
  background: rgba(147, 51, 234, 0.45);
  color: var(--gold);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

/* ================= ACT 9: FINALE ================= */
.act-finale {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 96px 0 42px;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.finale-bg { position: absolute; inset: -14% 0; z-index: 1; pointer-events: none; }
.finale-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }

.finale-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 5, 12, 0.96) 0%,
    rgba(24, 12, 46, 0.62) 48%,
    rgba(124, 58, 237, 0.34) 76%,
    rgba(245, 158, 11, 0.28) 100%
  );
}

.finale-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
.finale-title { margin: 0 0 10px; font-family: "Syne", sans-serif; font-size: clamp(44px, 7vw, 88px); line-height: 0.96; }
.finale-sub { margin: 0 0 28px; color: #e2d9f3; font-size: 16px; }

.link-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 30px; }

.link-pill {
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 8, 24, 0.84);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.link-pill.tg-pill { border-color: rgba(56, 189, 248, 0.52); }
.link-pill.dc-pill { border-color: rgba(192, 132, 252, 0.62); }

.link-pill .lp-ico { color: var(--gold); }
.link-pill:hover { border-color: var(--gold); box-shadow: 0 0 24px rgba(253, 224, 71, 0.35); }

.btn-warp-top {
  cursor: pointer;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid rgba(253, 224, 71, 0.5);
  background: rgba(15, 10, 28, 0.85);
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 38px;
}

.site-footer {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(168, 85, 247, 0.24);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* ================= CTRL+K COMMAND PALETTE MODAL ================= */
.cmd-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  background: rgba(5, 3, 12, 0.78);
  backdrop-filter: blur(14px);
  display: none;
  place-items: start center;
  padding: 12vh 18px 24px;
}

.cmd-modal.open { display: grid; }

.cmd-box {
  width: min(580px, 100%);
  border-radius: 15px;
  border: 1px solid var(--border-strong);
  background: rgba(14, 9, 28, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72), 0 0 40px rgba(168, 85, 247, 0.22);
  overflow: hidden;
}

.cmd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.cmd-close {
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(7, 5, 12, 0.8);
  color: var(--text-muted);
  border-radius: 5px;
  padding: 3px 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

#cmd-search {
  width: 100%;
  padding: 14px 16px;
  background: rgba(7, 5, 12, 0.78);
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.cmd-list {
  max-height: 330px;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  gap: 5px;
}

.cmd-item {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  transition: background 0.15s, border-color 0.15s;
}

.cmd-item:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: rgba(253, 224, 71, 0.4);
}

.cmd-item span:last-child {
  font-size: 10px;
  color: var(--gold);
}

/* Lightbox & Toast */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 3, 10, 0.92);
  backdrop-filter: blur(14px);
  display: none;
  place-items: center;
  padding: 24px;
}

.lightbox.open { display: grid; }

.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(15, 10, 28, 0.9);
  color: var(--gold);
  font-size: 18px;
}

.lb-inner { max-width: 960px; text-align: center; }
.lb-inner img { max-height: 76vh; margin: 0 auto 14px; border-radius: 12px; border: 1px solid var(--border-strong); }
.lb-caption h3 { margin: 0 0 6px; font-family: "Syne", sans-serif; color: var(--gold); }
.lb-caption p { margin: 0; color: var(--text-muted); font-size: 14px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 130;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid rgba(253, 224, 71, 0.55);
  background: rgba(15, 10, 28, 0.96);
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= INTERACTIVE FLOATING AI COMPANION (NBDL-SPARK) ================= */
.ai-pet {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 85;
  width: 46px;
  height: 46px;
  cursor: pointer;
  user-select: none;
  will-change: transform;
  outline: none;
}

.ai-pet.hidden { display: none; }

.pet-orbit {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px dashed rgba(253, 224, 71, 0.6);
  pointer-events: none;
  animation: radarSpin 7s linear infinite;
}

.pet-body {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--violet), #3b0764 58%, #0d071b 100%);
  border: 1.5px solid rgba(253, 224, 71, 0.68);
  box-shadow:
    0 0 22px rgba(168, 85, 247, 0.55),
    inset 0 0 12px rgba(253, 224, 71, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-pet:hover .pet-body {
  transform: scale(1.1);
  box-shadow: 0 0 28px rgba(253, 224, 71, 0.55), inset 0 0 14px rgba(253, 224, 71, 0.4);
}

.ai-pet.happy .pet-body {
  animation: petHop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes petHop {
  0% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(1.25) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

.pet-eye {
  width: 6px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  transition: transform 0.08s linear;
}

.pet-bubble {
  position: absolute;
  left: 24px;
  bottom: 58px;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid rgba(253, 224, 71, 0.52);
  background: rgba(12, 8, 24, 0.94);
  backdrop-filter: blur(10px);
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.pet-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= LUSH LEFT & RIGHT NEON PALMS + CYBER FLANKS ================= */
.edge-decor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.edge-flank {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(220px, 24vw, 480px);
  pointer-events: none;
}

.flank-left { left: 0; }
.flank-right { right: 0; }

.flank-mist {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  pointer-events: none;
}

.mist-l {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(18, 7, 38, 0.72) 0%,
    rgba(124, 58, 237, 0.14) 36%,
    transparent 100%
  );
}

.mist-r {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(18, 7, 38, 0.72) 0%,
    rgba(245, 158, 11, calc(0.14 * var(--gold-blend))) 32%,
    rgba(147, 51, 234, 0.12) 55%,
    transparent 100%
  );
}

.flank-palm {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  opacity: 0.88;
  filter: drop-shadow(0 0 22px rgba(168, 85, 247, 0.42))
          drop-shadow(0 0 10px rgba(253, 224, 71, 0.24));
}

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

.palm-tl {
  top: -18px;
  left: -24px;
  width: clamp(148px, 15vw, 370px);
  transform-origin: top left;
}

.palm-bl {
  bottom: -26px;
  left: -34px;
  width: clamp(190px, 20vw, 490px);
  transform-origin: bottom left;
}

.palm-tr {
  top: -18px;
  right: -24px;
  width: clamp(148px, 15vw, 370px);
  transform-origin: top right;
}

.palm-br {
  bottom: -26px;
  right: -34px;
  width: clamp(190px, 20vw, 490px);
  transform-origin: bottom right;
}

.edge-obj {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.35));
}

.edge-crystal-l {
  top: 26%;
  left: clamp(22px, 2.8vw, 68px);
  width: clamp(58px, 4.8vw, 88px);
  height: clamp(58px, 4.8vw, 88px);
}

.edge-ruler-l {
  top: 40%;
  left: clamp(20px, 2.5vw, 62px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
}

.ruler-coord b { color: var(--gold); }

.ruler-track {
  position: relative;
  width: 14px;
  height: 150px;
  border-left: 1px solid rgba(168, 85, 247, 0.45);
}

.ruler-ticks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(192, 132, 252, 0.55) 0px,
    rgba(192, 132, 252, 0.55) 1px,
    transparent 1px,
    transparent 12px
  );
  width: 7px;
}

.ruler-pulse {
  position: absolute;
  left: -3px;
  top: 0%;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.ruler-tag {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.14em;
  color: rgba(192, 132, 252, 0.72);
  font-size: 9px;
}

.edge-gyro-arc {
  top: 24%;
  right: clamp(-118px, -5.5vw, -72px);
  width: clamp(200px, 18.5vw, 360px);
  height: clamp(200px, 18.5vw, 360px);
  opacity: 0.85;
  filter: drop-shadow(0 0 24px rgba(236, 72, 153, 0.32));
}

.edge-chevrons-r {
  top: 54%;
  right: clamp(58px, 4.6vw, 108px);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.7;
  font-size: 20px;
  font-weight: 700;
}

.edge-chevrons-r span {
  color: var(--violet);
  animation: chevPulse 1.6s ease-in-out infinite;
  animation-delay: calc(var(--ci) * 180ms);
}

@keyframes chevPulse {
  0%, 100% { color: #7c3aed; opacity: 0.3; transform: translateY(0); }
  50% { color: var(--gold); opacity: 1; transform: translateY(3px); }
}

/* Responsive Breakpoints */
@media (max-width: 1480px) {
  .edge-crystal-l,
  .edge-ruler-l,
  .edge-chevrons-r {
    display: none;
  }
  .palm-bl,
  .palm-br {
    width: clamp(175px, 15.5vw, 230px);
    opacity: 0.72;
  }
  .palm-tl,
  .palm-tr {
    width: clamp(140px, 13vw, 200px);
    opacity: 0.78;
  }
  .edge-gyro-arc { opacity: 0.55; }
}

@media (max-width: 1080px) {
  .edge-decor-layer { display: none; }
}

@media (max-width: 980px) {
  .hud-nav, .side-rail, .hud-telemetry { display: none; }
  .hero-edition-tag { display: none; }
  .hero-grid, .sb-stage-grid, .neural-grid, .rig-banner, .rig-grid, .tools-row, .vault-grid, .profile-grid, .stack-grid, .fx-grid {
    grid-template-columns: 1fr;
  }
  .act-storyboard, .act-gallery { height: auto; }
  .sticky-stage, .gallery-sticky { position: relative; height: auto; padding: 72px 0; }
  .sb-text-stack { min-height: 240px; }
  .sb-visual-stack { min-height: 330px; }
  .gallery-viewport { overflow-x: auto; padding: 0 20px 12px; }
  .gal-card { width: 310px; }
  .nn-telemetry { grid-template-columns: repeat(2, 1fr); }
  .seq-row { grid-template-columns: 84px repeat(16, minmax(16px, 1fr)); gap: 3px; }
  .synth-pads { grid-template-columns: repeat(4, 1fr); }
  #gravity-canvas, #cloth-canvas, #aim-canvas, #kaleido-canvas { height: 340px; }
}

@media (max-width: 720px) {
  .bd-watermark, .ai-pet { display: none; }
}
