:root {
  --void: #05070d;
  --cyan: #00e5ff;
  --copper: #c9854a;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  overflow-x: hidden;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0, 229, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(201, 133, 74, 0.07), transparent 50%),
    linear-gradient(180deg, #05070d 0%, #070b14 100%);
}

.starfield::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 54% 22%, rgba(0, 229, 255, 0.55), transparent),
    radial-gradient(1px 1px at 72% 48%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 88% 76%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 41% 84%, rgba(232, 166, 106, 0.45), transparent);
  opacity: 0.7;
  animation: drift 48s linear infinite;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-40px);
  }
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #64748b;
  box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.4);
}

.status-dot.is-up {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

.status-dot.is-down {
  background: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.55);
}

.scarcity-grid {
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
}

.scarcity-card {
  animation: pulse-border 4.5s ease-in-out infinite;
}

@keyframes pulse-border {
  0%,
  100% {
    border-color: rgba(201, 133, 74, 0.4);
  }
  50% {
    border-color: rgba(0, 229, 255, 0.45);
  }
}

.ship-float {
  animation: float-y 5.5s ease-in-out infinite;
}

.ship-float.delay-2 {
  animation-delay: 0.8s;
}

.ship-float.delay-3 {
  animation-delay: 1.4s;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.18s;
}

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

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 229, 255, 0.12);
  pointer-events: none;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .starfield::after,
  .ship-float,
  .scarcity-card,
  .reveal {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
