:root {
  --neon-pink: #ff2ebd;
  --neon-violet: #7d3cff;
  --neon-cyan: #50e7ff;
  --neon-blue: #5577ff;
  --neon-green: #39f6aa;
  --neon-yellow: #ffd166;
  --bg: #030108;
  --bg-deeper: #000006;
  --panel: #0a0713;
  --panel-bg: #0a0713;
  --panel-2: #100b1c;
  --panel-hover: #151027;
  --panel-border: rgba(125, 60, 255, 0.42);
  --fg: #f8f3ff;
  --fg-bright: #ffffff;
  --fg-1: #f8f3ff;
  --fg-2: #d8cce4;
  --fg-dim: #aaa0b8;
  --bright: #ffffff;
  --dim: #aaa0b8;
  --muted: #d8cce4;
  --accent: #ff2ebd;
  --accent-light: #50e7ff;
  --accent-2: #7d3cff;
  --success: #39f6aa;
  --good: #39f6aa;
  --green: #39f6aa;
  --info: #5577ff;
  --teal: #50e7ff;
  --warn: #ffd166;
  --line: rgba(125, 60, 255, 0.24);
  --line-strong: rgba(80, 231, 255, 0.45);
  --pill: 999px;
}

html,
body {
  background: var(--bg);
  color: var(--fg-1);
  color-scheme: dark;
}

body {
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 46, 189, 0.18), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(85, 119, 255, 0.16), transparent 32%),
    linear-gradient(rgba(125, 60, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 231, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #030108 0%, #05020c 55%, #000006 100%);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  background-attachment: fixed;
}

::selection {
  background: rgba(255, 46, 189, 0.38);
  color: #fff;
}

.nav {
  background: #030108;
  border-bottom: 1px solid var(--neon-pink);
  box-shadow: 0 8px 30px rgba(255, 46, 189, 0.08);
}

.brand,
.nav__brand {
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 46, 189, 0.38);
}

.brand svg {
  filter: drop-shadow(0 0 8px rgba(255, 46, 189, 0.52));
}

#sa-bg stop:first-child { stop-color: #26072f; }
#sa-bg stop:last-child { stop-color: #030108; }
#sa-stroke stop:first-child { stop-color: var(--neon-pink); }
#sa-stroke stop:last-child { stop-color: var(--neon-violet); }
.brand svg circle { fill: var(--neon-cyan); }

.links a {
  position: relative;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.links a:hover,
.links a.active {
  color: #fff;
  text-shadow: 0 0 14px rgba(80, 231, 255, 0.52);
}

.links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  box-shadow: 0 0 10px rgba(80, 231, 255, 0.62);
}

.cta,
.btn.primary {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-violet), var(--neon-blue)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 0 18px rgba(255, 46, 189, 0.22), 0 0 24px rgba(85, 119, 255, 0.12);
}

.cta:hover,
.btn.primary:hover {
  background: linear-gradient(135deg, #ff5ccc, #925cff, #6b8cff) !important;
  box-shadow: 0 0 23px rgba(255, 46, 189, 0.32), 0 0 30px rgba(80, 231, 255, 0.13);
}

.btn {
  color: var(--fg-1);
  background: rgba(10, 7, 19, 0.88);
  border-color: rgba(80, 231, 255, 0.36);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  background: rgba(20, 12, 35, 0.96);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(80, 231, 255, 0.12);
}

.btn.danger {
  background: rgba(58, 8, 24, 0.42) !important;
  color: #ff718f !important;
  border-color: rgba(255, 61, 112, 0.55) !important;
  box-shadow: none;
}

.eyebrow {
  color: var(--neon-cyan);
  background: rgba(80, 231, 255, 0.08);
  border-color: rgba(80, 231, 255, 0.48);
  box-shadow: inset 0 0 18px rgba(80, 231, 255, 0.06);
  letter-spacing: 0.16em;
}

h1,
.hero h1 {
  color: #fff;
  text-shadow: 0 0 30px rgba(255, 46, 189, 0.13);
}

.section h2,
.cta-band h2,
.card h2,
.panel h2,
.card h3,
.panel h3 {
  color: #fff;
}

.lede,
.cta-band p {
  color: var(--fg-2);
}

.card,
.panel,
.step,
.launch-card,
.demo-card,
.mission-card,
.share-card,
.script-card,
.metric,
.feedback-row,
.team-card,
.sim-card,
.flow li,
.quote,
.cta-band,
.tester-callout {
  background: linear-gradient(150deg, rgba(15, 9, 26, 0.96), rgba(5, 3, 12, 0.9));
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 0 32px rgba(125, 60, 255, 0.04), 0 18px 52px rgba(0, 0, 0, 0.24);
}

.demo-card,
.mission-card,
.cta-band {
  border-color: rgba(255, 46, 189, 0.38);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 46, 189, 0.12), transparent 45%),
    linear-gradient(150deg, rgba(15, 9, 26, 0.98), rgba(4, 3, 11, 0.94));
}

.preview {
  background:
    radial-gradient(circle at 72% 36%, rgba(255, 46, 189, 0.28), transparent 22%),
    linear-gradient(135deg, rgba(80, 231, 255, 0.16), transparent 44%),
    linear-gradient(180deg, #0e081b, #04030b);
  border-color: rgba(125, 60, 255, 0.44);
}

.num,
.flow li::before {
  color: var(--neon-cyan);
  background: linear-gradient(135deg, rgba(255, 46, 189, 0.23), rgba(125, 60, 255, 0.26));
  border: 1px solid rgba(255, 46, 189, 0.24);
}

.control:first-child,
.launch-card strong,
.share-card strong,
.script-card strong,
.mission-stat strong,
.stat strong,
.metric strong,
.codepanel .code {
  color: var(--neon-cyan);
}

.control:first-child {
  background: rgba(255, 46, 189, 0.12);
  border-color: rgba(255, 46, 189, 0.38);
}

.check {
  color: var(--neon-green);
}

.sim-card:hover,
.team-card:hover {
  border-color: var(--neon-pink);
  box-shadow: 0 0 18px rgba(255, 46, 189, 0.12);
}

.sim-card.selected,
.team-card.selected,
.selected-callout {
  border-color: var(--neon-cyan);
  background: rgba(80, 231, 255, 0.08);
}

input,
textarea,
select {
  background: var(--panel-2);
  color: var(--fg-1);
  border-color: rgba(125, 60, 255, 0.5);
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(80, 231, 255, 0.58);
}

.copybox,
.copy-box,
.share-note,
.codepanel .code {
  background: rgba(2, 1, 8, 0.84);
  border-color: rgba(125, 60, 255, 0.46);
}

.status.ok,
.copy-status,
.status {
  color: var(--neon-green);
}

footer {
  border-top: 1px solid rgba(125, 60, 255, 0.22);
  color: var(--fg-dim);
}

:focus-visible {
  outline: 3px solid var(--neon-cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(80, 231, 255, 0.13);
}

@media (max-width: 620px) {
  body {
    background-size: auto, auto, 34px 34px, 34px 34px, auto;
  }

  h1,
  .hero h1 {
    font-size: clamp(2.45rem, 14vw, 4rem);
  }

  .nav {
    box-shadow: 0 6px 22px rgba(255, 46, 189, 0.08);
  }
}

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