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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  position: relative;
}

/* Animated background particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float linear infinite;
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.8);
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* Glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: pulse 8s ease-in-out infinite alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: #6366f1;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: #ec4899;
  bottom: -80px;
  right: -80px;
  animation-delay: 2s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #06b6d4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.3); opacity: 0.5; }
}

.container {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
}

.title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow:
    0 0 20px rgba(99, 102, 241, 0.8),
    0 0 40px rgba(99, 102, 241, 0.5),
    0 0 60px rgba(236, 72, 153, 0.3);
  animation: titleEntrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             glow 3s ease-in-out infinite alternate 1.2s;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
}

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

@keyframes glow {
  0% {
    text-shadow:
      0 0 20px rgba(99, 102, 241, 0.8),
      0 0 40px rgba(99, 102, 241, 0.5),
      0 0 60px rgba(236, 72, 153, 0.3);
  }
  100% {
    text-shadow:
      0 0 30px rgba(99, 102, 241, 1),
      0 0 60px rgba(236, 72, 153, 0.7),
      0 0 90px rgba(6, 182, 212, 0.5);
  }
}

.digits {
  margin-top: 1.8rem;
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  font-family: 'Courier New', Courier, monospace;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.35em;
  animation: digitsEntrance 1s ease-out 0.6s forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

.digit {
  display: inline-block;
  transition: color 0.3s, transform 0.3s;
  animation: digitPulse 2.5s ease-in-out infinite;
}

.digit:nth-child(odd) {
  animation-delay: 0.15s;
}

.digit:nth-child(3n) {
  animation-delay: 0.3s;
}

@keyframes digitPulse {
  0%, 100% {
    color: rgba(255, 255, 255, 0.45);
    transform: scale(1);
  }
  50% {
    color: rgba(165, 243, 252, 0.9);
    transform: scale(1.15);
  }
}

/* Subtle floating animation for the whole container */
.container {
  animation: floatContainer 6s ease-in-out infinite;
}

@keyframes floatContainer {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Decorative line */
.line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a5f3fc, transparent);
  margin: 1.4rem auto 0;
  animation: lineGrow 1.4s ease-out 0.9s forwards;
}

@keyframes lineGrow {
  to { width: 180px; }
}
