@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700&family=Orbitron:wght@600;700;800&display=swap");

:root {
  --overlay-dark: rgba(6, 10, 18, 0.72);
  --text-main: #eff6ff;
  --text-muted: #c3d2ea;
  --discord: #5865f2;
  --ip: #dc2626;
  --store: #f97316;
  --vote: #22c55e;
  --font-body: "Exo 2", "Segoe UI", Arial, sans-serif;
  --font-space: "Orbitron", "Exo 2", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: #040912 url("assets/starrysky.png") center center / cover no-repeat fixed;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.scene,
.overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene {
  z-index: 1;
}

.overlay-layer {
  z-index: 2;
  background: linear-gradient(var(--overlay-dark), var(--overlay-dark));
}

.starfield {
  position: absolute;
  inset: -25%;
  display: block;
}

.starfield-back {
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 18% 24%, #ffffff 1px, transparent 2px),
    radial-gradient(circle at 64% 48%, #dbeafe 1px, transparent 2px),
    radial-gradient(circle at 84% 72%, #ffffff 1px, transparent 2px),
    radial-gradient(circle at 42% 78%, #ffffff 1px, transparent 2px),
    radial-gradient(circle at 8% 42%, #dbeafe 1px, transparent 2px);
  background-size: 320px 320px, 260px 260px, 360px 360px, 290px 290px, 340px 340px;
  animation: drift-stars 105s linear infinite;
}

.starfield-front {
  opacity: 0.66;
  background-image:
    radial-gradient(circle at 36% 12%, #ffffff 1.2px, transparent 2px),
    radial-gradient(circle at 8% 86%, #e0f2fe 1.2px, transparent 2px),
    radial-gradient(circle at 76% 30%, #ffffff 1.2px, transparent 2px),
    radial-gradient(circle at 92% 64%, #e0f2fe 1.2px, transparent 2px),
    radial-gradient(circle at 58% 58%, #ffffff 1.2px, transparent 2px),
    radial-gradient(circle at 24% 48%, #e0f2fe 1.2px, transparent 2px);
  background-size: 220px 220px, 280px 280px, 250px 250px, 300px 300px, 240px 240px, 260px 260px;
  animation: drift-stars 72s linear infinite reverse;
}

.asteroid {
  --scale: 1;
  --rise: -30vh;
  position: absolute;
  left: -20vw;
  width: 26px;
  height: 22px;
  border-radius: 58% 42% 57% 43%;
  background: radial-gradient(circle at 30% 28%, #f8fafc 0%, #a8b4c7 28%, #5f6a78 65%, #313845 100%);
  box-shadow: 0 0 12px rgba(236, 253, 255, 0.25);
  opacity: 0;
  animation: fly-asteroid 26s linear infinite;
}

.asteroid-a {
  top: 21%;
  --scale: 0.9;
  --rise: -34vh;
  animation-duration: 24s;
  animation-delay: -8s;
}

.asteroid-b {
  top: 56%;
  width: 34px;
  height: 26px;
  --scale: 1.1;
  --rise: -22vh;
  animation-duration: 32s;
  animation-delay: -14s;
}

.asteroid-c {
  top: 38%;
  width: 18px;
  height: 18px;
  --scale: 0.75;
  --rise: -38vh;
  animation-duration: 19s;
  animation-delay: -2s;
}

.content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: min(950px, 100%);
  transform: translateY(-20px);
}

.logo-image {
  display: block;
  width: min(780px, 92vw);
  max-height: 260px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.65));
  animation: logo-float 5.4s ease-in-out infinite;
}

.tagline {
  margin: 0.85rem 0 1.85rem;
  font-size: clamp(0.95rem, 2.1vw, 1.25rem);
  color: var(--text-muted);
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.actions {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.actions-top,
.actions-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-space);
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.26);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease,
    box-shadow 260ms ease, border-color 260ms ease, background-color 260ms ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.btn:active {
  transform: translateY(0) scale(0.995);
}

.btn-discord {
  background: var(--discord);
}

.btn-ip {
  position: relative;
  background: var(--ip);
  cursor: pointer;
  overflow: hidden;
  min-width: 260px;
  max-width: 320px;
}

.btn-ip .label-default,
.btn-ip .label-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  white-space: nowrap;
  transition: opacity 220ms ease, transform 220ms ease;
}

.btn-ip .label-default {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.btn-ip .label-hover {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px));
}

.btn-ip:hover .label-default {
  opacity: 0;
  transform: translate(-50%, calc(-50% - 8px));
}

.btn-ip:hover .label-hover {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.btn-ip.copied .label-default,
.btn-ip.copied .label-hover {
  opacity: 0;
}

.btn-ip.copied::after {
  content: "COPIED!";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.btn-vote {
  background: var(--vote);
}

.btn-store {
  background: linear-gradient(180deg, #fb923c 0%, var(--store) 100%);
  border-color: rgba(255, 237, 213, 0.5);
}

.vote-content {
  width: min(760px, 100%);
}

.vote-title {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 5rem);
  line-height: 1;
  letter-spacing: 0.08em;
  font-family: var(--font-space);
  color: #ef4444;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.42), 0 10px 24px rgba(0, 0, 0, 0.56);
}

.vote-subtitle {
  margin: 0.65rem 0 1.35rem;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.vote-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vote-link-btn {
  min-width: 190px;
  background: #dc2626;
}

.vote-back-btn {
  margin-top: 0.85rem;
  background: #0f172a;
}

@media (max-width: 600px) {
  .btn {
    width: min(330px, 92vw);
  }

  .btn-ip {
    min-width: 0;
  }

  .vote-link-btn {
    min-width: 0;
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes drift-stars {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-120px, -190px, 0);
  }
}

@keyframes fly-asteroid {
  0% {
    transform: translate(-20vw, 0) rotate(0deg) scale(var(--scale));
    opacity: 0;
  }
  8%,
  88% {
    opacity: 0.7;
  }
  100% {
    transform: translate(120vw, var(--rise)) rotate(520deg) scale(var(--scale));
    opacity: 0;
  }
}
