* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  min-height: 100vh;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

/* Background base */
.background {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(99, 102, 241, 0.18), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.12), transparent 30%),
    linear-gradient(to bottom, #0f172a 0%, #020617 100%);
  overflow: hidden;
  z-index: -3;
}

/* Glow layer */
.background .glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(129, 140, 248, 0.18), transparent 18%),
    radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.1), transparent 28%);
  filter: blur(20px);
  animation: pulseGlow 6s ease-in-out infinite;
  z-index: -2;
}

/* Star layers */
.background::before,
.background::after {
  content: "";
  position: absolute;
  inset: -50%;
  background-repeat: repeat;
  will-change: transform, opacity;
}

/* Small stars */
.background::before {
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(1.5px 1.5px at 25% 80%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(2px 2px at 40% 30%, rgba(191, 219, 254, 0.95), transparent 60%),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(2px 2px at 75% 15%, rgba(216, 180, 254, 0.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 50%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(2px 2px at 15% 60%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(1px 1px at 55% 10%, rgba(255, 255, 255, 0.85), transparent 60%);
  background-size: 420px 420px;
  opacity: 0.8;
  animation:
    moveStarsSlow 80s linear infinite,
    twinkle 5s ease-in-out infinite;
  z-index: -1;
}

/* Medium stars */
.background::after {
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 80%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(2px 2px at 40% 60%, rgba(147, 197, 253, 0.9), transparent 60%),
    radial-gradient(1px 1px at 90% 20%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 10% 90%, rgba(196, 181, 253, 0.85), transparent 60%),
    radial-gradient(2px 2px at 85% 65%, rgba(255, 255, 255, 0.85), transparent 60%);
  background-size: 600px 600px;
  opacity: 0.45;
  animation:
    moveStarsFast 45s linear infinite,
    twinkle 3.5s ease-in-out infinite reverse;
}

/* Shooting star */
.shooting-star {
  position: absolute;
  top: 18%;
  left: -20%;
  width: 180px;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
  border-radius: 999px;
  transform: rotate(-18deg);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(96, 165, 250, 0.4);
  animation: shootingStar 7s linear infinite;
  opacity: 0;
  z-index: -1;
}

.shooting-star::before {
  content: "";
  position: absolute;
  right: 0;
  top: -1px;
  width: 10px;
  height: 4px;
  border-radius: 999px;
  background: white;
  filter: blur(1px);
}

/* Center container */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

/* Card */
.content-box {
  width: min(100%, 560px);
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: floatCard 5.5s ease-in-out infinite;
}

/* Logo */
.logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin-bottom: 24px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(129, 140, 248, 0.45)) drop-shadow(0 0 28px rgba(59, 130, 246, 0.18));
  animation: floatLogo 4s ease-in-out infinite;
}

/* Title */
.title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

/* Description */
.description {
  font-size: 16px;
  color: #cbd5f5;
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.75;
  white-space: pre-line;
}

/* Buttons */
.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Button base */
.btn {
  min-width: 160px;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

/* Primary button */
.btn.primary {
  color: white;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow:
    0 12px 28px rgba(99, 102, 241, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 18px 36px rgba(99, 102, 241, 0.42),
    0 0 20px rgba(139, 92, 246, 0.22);
}

/* Secondary button */
.btn.secondary {
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn.secondary:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(191, 219, 254, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}

/* Animations */
@keyframes moveStarsSlow {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -240px, 0);
  }
}

@keyframes moveStarsFast {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -420px, 0);
  }
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.9;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes shootingStar {
  0% {
    transform: translate3d(0, 0, 0) rotate(-18deg);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  20% {
    transform: translate3d(120vw, 26vh, 0) rotate(-18deg);
    opacity: 0;
  }

  100% {
    transform: translate3d(120vw, 26vh, 0) rotate(-18deg);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .content-box {
    padding: 32px 20px;
    border-radius: 24px;
  }

  .logo {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
  }

  .description {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}