:root {
  --bg: #05080f;
  --bg-2: #0a1220;
  --ink: #eef6ff;
  --muted: #7f93ad;
  --signal: #3dff9a;
  --signal-2: #6ef0ff;
  --line: rgba(61, 255, 154, 0.18);
}

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

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  overflow: hidden;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(ellipse 70% 55% at 50% 115%, rgba(61, 255, 154, 0.12), transparent 60%),
    radial-gradient(ellipse 45% 40% at 85% 10%, rgba(110, 240, 255, 0.08), transparent 55%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-2) 55%, #071018 100%);
}

.grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-a {
  width: 340px;
  height: 340px;
  top: 18%;
  left: 12%;
  background: rgba(61, 255, 154, 0.12);
  animation: drift 10s ease-in-out infinite;
}

.glow-b {
  width: 280px;
  height: 280px;
  right: 10%;
  bottom: 16%;
  background: rgba(110, 240, 255, 0.1);
  animation: drift 12s ease-in-out infinite reverse;
}

.routes {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.route {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 8 14;
  animation: dash 18s linear infinite;
}

.route-2 {
  stroke: rgba(110, 240, 255, 0.16);
  animation-duration: 22s;
  animation-direction: reverse;
}

.route-3 {
  animation-duration: 26s;
}

.pulse {
  filter: drop-shadow(0 0 8px rgba(61, 255, 154, 0.9));
}

.pulse-2 {
  filter: drop-shadow(0 0 8px rgba(110, 240, 255, 0.9));
}

.stage {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.mark {
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 10vw, 5.2rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: lowercase;
  background: linear-gradient(120deg, #ffffff 10%, var(--signal) 55%, var(--signal-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(61, 255, 154, 0.15);
  animation: rise 0.9s ease-out both;
}

.title {
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--signal);
  animation: rise 0.9s ease-out 0.12s both, pulse-glow 3.2s ease-in-out infinite 1s;
}

.subtitle {
  max-width: 34ch;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  animation: rise 0.9s ease-out 0.22s both;
}

@keyframes dash {
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, -18px);
  }
}

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

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.75;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(61, 255, 154, 0.45);
  }
}

@media (max-width: 640px) {
  body {
    padding: 1.5rem 1rem;
  }

  .title {
    letter-spacing: 0.22em;
  }
}
