:root {
  color-scheme: dark;
  --bg: #03040d;
  --ink: #f6f8ff;
  --muted: rgba(246, 248, 255, 0.62);
  --cyan: #6fe8ff;
  --mint: #79ffd8;
  --rose: #ff6f9f;
  --gold: #ffd271;
  --violet: #a993ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
}

.stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(111, 232, 255, 0.2), transparent 27%),
    radial-gradient(circle at 86% 21%, rgba(255, 111, 159, 0.17), transparent 24%),
    radial-gradient(circle at 50% 78%, rgba(121, 255, 216, 0.14), transparent 27%),
    linear-gradient(140deg, #03040d 0%, #090a1b 46%, #03040d 100%);
}

.stage::before,
.stage::after {
  position: absolute;
  inset: -20vmax;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.stage::before {
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(circle, black 0%, transparent 70%);
  transform: perspective(880px) rotateX(64deg) translateY(18vh);
}

.stage::after {
  opacity: 0.58;
  background:
    conic-gradient(from 130deg, transparent, rgba(111, 232, 255, 0.22), transparent 18%),
    conic-gradient(from 310deg, transparent, rgba(255, 210, 113, 0.16), transparent 16%);
  filter: blur(42px);
  animation: nebula-turn 24s linear infinite;
}

.scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(transparent 0 49%, rgba(111, 232, 255, 0.22) 50%, transparent 51%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  opacity: 0.16;
  transform: translateY(-100%);
  animation: scan-pass 8s ease-in-out infinite;
}

#cosmos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.system {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(124vw, 1320px);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 32px rgba(111, 232, 255, 0.12));
  transform: translate(-50%, -45%) rotateX(61deg) rotateZ(-17deg);
}

.orbit {
  position: absolute;
  inset: var(--inset);
  border: 1px solid rgba(246, 248, 255, var(--alpha));
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 58%, rgba(111, 232, 255, calc(var(--glow) * 0.16)) 100%);
  box-shadow:
    0 0 46px rgba(111, 232, 255, var(--glow)),
    0 0 120px rgba(255, 111, 159, calc(var(--glow) * 0.22)),
    inset 0 0 36px rgba(121, 255, 216, calc(var(--glow) * 0.74));
  animation: orbit-spin var(--speed) linear infinite;
}

.orbit::before {
  position: absolute;
  inset: -1px;
  content: "";
  border-radius: inherit;
  border: 1px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.52);
  border-right-color: rgba(111, 232, 255, 0.42);
}

.orbit-one {
  --inset: 0%;
  --alpha: 0.2;
  --glow: 0.32;
  --speed: 44s;
}

.orbit-two {
  --inset: 13%;
  --alpha: 0.22;
  --glow: 0.24;
  --speed: 31s;
  animation-direction: reverse;
}

.orbit-three {
  --inset: 25%;
  --alpha: 0.24;
  --glow: 0.18;
  --speed: 23s;
}

.orbit-four {
  --inset: 36%;
  --alpha: 0.26;
  --glow: 0.15;
  --speed: 17s;
  animation-direction: reverse;
}

.orbit-five {
  --inset: 47%;
  --alpha: 0.28;
  --glow: 0.12;
  --speed: 12s;
}

.orbit-six {
  --inset: 57%;
  --alpha: 0.3;
  --glow: 0.1;
  --speed: 9s;
  animation-direction: reverse;
}

.body {
  position: absolute;
  top: 50%;
  right: -5px;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.96), transparent 14%),
    radial-gradient(circle at 58% 56%, var(--body), rgba(255, 255, 255, 0.02) 66%);
  box-shadow:
    0 0 24px var(--body),
    0 0 58px rgba(255, 255, 255, 0.16);
  transform: translate(50%, -50%) rotateX(-64deg);
}

.body-one {
  --size: clamp(26px, 3.4vw, 48px);
  --body: var(--cyan);
}

.body-two {
  --size: clamp(19px, 2.5vw, 36px);
  --body: var(--rose);
}

.body-three {
  --size: clamp(15px, 2vw, 28px);
  --body: var(--mint);
}

.body-four {
  --size: clamp(12px, 1.6vw, 22px);
  --body: var(--gold);
}

.body-five {
  --size: clamp(9px, 1.2vw, 18px);
  --body: var(--violet);
}

.body-six {
  --size: clamp(7px, 0.9vw, 13px);
  --body: #ffffff;
}

.core {
  position: absolute;
  inset: 41%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 38%, #ffffff 0 5%, var(--cyan) 13%, rgba(121, 255, 216, 0.34) 42%, transparent 74%);
  box-shadow:
    0 0 28px rgba(255, 255, 255, 0.85),
    0 0 110px rgba(111, 232, 255, 0.72),
    0 0 210px rgba(255, 111, 159, 0.24);
}

.star {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(18vw, 210px);
  min-width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 42% 36%, #ffffff 0 7%, #9bf8ff 14%, #39d7e9 27%, #123449 58%, rgba(4, 7, 18, 0.04) 72%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 46%);
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.88),
    0 0 82px rgba(111, 232, 255, 0.72),
    0 0 180px rgba(121, 255, 216, 0.24),
    inset -30px -24px 42px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -46%);
}

.star::before,
.star::after {
  position: absolute;
  inset: -70%;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.star::before {
  border: 1px solid rgba(111, 232, 255, 0.28);
  opacity: 0.68;
  transform: scaleY(0.28) rotate(-9deg);
}

.star::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  height: 2px;
  top: 50%;
  opacity: 0.78;
  filter: blur(0.5px);
}

.brand {
  position: fixed;
  top: clamp(18px, 3vw, 34px);
  left: clamp(18px, 3vw, 38px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(calc(100vw - 76px), 520px);
  padding: 11px 16px 12px;
  border: 1px solid rgba(246, 248, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(111, 232, 255, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(5, 6, 17, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 70px rgba(111, 232, 255, 0.12);
  backdrop-filter: blur(16px);
}

.brand::after {
  width: 42px;
  height: 1px;
  content: "";
  margin-left: auto;
  background: linear-gradient(90deg, rgba(111, 232, 255, 0), rgba(111, 232, 255, 0.8));
  box-shadow: 0 0 18px rgba(111, 232, 255, 0.55);
}

.brand-sigil {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid rgba(111, 232, 255, 0.8);
  background:
    linear-gradient(90deg, transparent 43%, rgba(111, 232, 255, 0.92) 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 43%, rgba(111, 232, 255, 0.92) 43% 57%, transparent 57%);
  box-shadow: 0 0 20px rgba(111, 232, 255, 0.36);
  transform: rotate(45deg);
}

h1 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-family:
    "Arial Narrow", "Roboto Condensed", "DIN Condensed", "Segoe UI",
    ui-sans-serif, system-ui, sans-serif;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow:
    0 0 16px rgba(246, 248, 255, 0.2),
    0 0 34px rgba(111, 232, 255, 0.28);
}

.hud {
  position: fixed;
  z-index: 2;
  display: grid;
  gap: 12px;
  width: 136px;
  pointer-events: none;
  opacity: 0.72;
}

.hud span {
  display: block;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(111, 232, 255, 0.86), rgba(246, 248, 255, 0.32), transparent);
  box-shadow: 0 0 18px rgba(111, 232, 255, 0.32);
}

.hud span:nth-child(2) {
  width: 72%;
}

.hud span:nth-child(3) {
  width: 46%;
}

.hud-left {
  bottom: clamp(28px, 5vw, 58px);
  left: clamp(20px, 4vw, 64px);
}

.hud-right {
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(34px, 6vw, 78px);
  justify-items: end;
}

.hud-right span {
  background:
    linear-gradient(270deg, rgba(255, 111, 159, 0.74), rgba(246, 248, 255, 0.25), transparent);
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes nebula-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scan-pass {
  0%,
  32% {
    transform: translateY(-100%);
  }

  58%,
  100% {
    transform: translateY(100%);
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow: auto;
  }

  .stage {
    min-height: 100svh;
  }

  .system {
    width: 174vw;
    transform: translate(-50%, -42%) rotateX(61deg) rotateZ(-17deg);
  }

  .star {
    width: 130px;
    transform: translate(-50%, -38%);
  }

  .brand {
    width: min(calc(100vw - 36px), 340px);
    gap: 10px;
    padding: 10px 12px 11px;
  }

  .brand::after {
    display: none;
  }

  .brand-sigil {
    width: 15px;
    height: 15px;
  }

  h1 {
    font-size: 20px;
    line-height: 1;
  }

  .hud {
    display: none;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  h1 {
    font-size: 25px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 19px;
  }
}

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