* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

body {
  height: 100vh;
  background: #050507;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
  touch-action: manipulation;
}

/* INTRO */
.intro {
  position: fixed;
  inset: 0;
  background: #050507;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  animation: introFade 2.6s forwards;
}

.intro-text {
  font-size: 28px;
  letter-spacing: 0.4em;
  opacity: 0;
  animation: introText 2s forwards;
}

@keyframes introText {
  40% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.05); }
}

@keyframes introFade {
  85% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

/* ORBS */
.orb {
  position: absolute;
  width: 320px;
  height: 320px;
  filter: blur(100px);
  opacity: 0.8;
  animation: move 6s infinite alternate ease-in-out;
}

.orb.pink { background: #ff00ff; top: -120px; left: -120px; }
.orb.purple { background: #6f00ff; top: 50%; left: 60%; animation-delay: 1s; }
.orb.cyan { background: #00ffd5; bottom: -120px; right: -120px; animation-delay: 2s; }

@keyframes move {
  to { transform: translateY(-80px) translateX(60px); }
}

/* CARD */
.card {
  z-index: 2;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(22px);
  border-radius: 24px;
  padding: 32px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.25);
  transform-style: preserve-3d;
  will-change: transform;
}

/* TEXT */
.tag {
  font-size: 12px;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 14px;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
}

h1 span {
  background: linear-gradient(90deg,#ff00ff,#00ffd5);
  -webkit-background-clip: text;
  color: transparent;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  to { filter: drop-shadow(0 0 14px rgba(255,0,255,0.7)); }
}

.subtitle {
  opacity: 0.75;
  margin: 16px 0;
  font-size: 14px;
}

/* FEATURES */
.features {
  text-align: left;
  font-size: 14px;
  margin: 18px 0;
}

.features div {
  margin-bottom: 6px;
  opacity: 0;
  animation: reveal 0.6s forwards;
}

.features div:nth-child(1) { animation-delay: 0.3s }
.features div:nth-child(2) { animation-delay: 0.5s }
.features div:nth-child(3) { animation-delay: 0.7s }
.features div:nth-child(4) { animation-delay: 0.9s }

@keyframes reveal {
  to { opacity: 1; }
}

/* INPUT + BUTTON */
input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  margin-top: 14px;
}

button {
  width: 100%;
  padding: 15px;
  margin-top: 12px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg,#ff00ff,#6f00ff);
  color: white;
  font-weight: 700;
  cursor: pointer;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  100% { box-shadow: 0 0 30px rgba(255,0,255,0.9); }
}

.footer-text {
  margin-top: 14px;
  font-size: 12px;
  opacity: 0.6;
}

/* SECRET */
.secret {
  margin-top: 16px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.6s ease;
  color: #ff9cff;
}

/* POPUP */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* 🔥 SAFARI FIX */
}

.popup-box {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(22px);
  padding: 30px;
  border-radius: 22px;
  text-align: center;
}

/* RIPPLE */
.ripple {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255,0,255,0.6), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: rippleExpand 0.7s ease-out forwards;
  z-index: 5;
}

@keyframes rippleExpand {
  to {
    width: 180px;
    height: 180px;
    opacity: 0;
  }
}
