*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: 'Poppins', sans-serif;
  background: #181821;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fafafa;
}
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}
.coming-soon {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #5ab4ff 0%, #ff5af0 100%);
  -webkit-background-clip: text;    /* Safari/Webkit */
  background-clip: text;            /* Standard property */
  -webkit-text-fill-color: transparent;
  animation: sheen 7.5s ease-in-out infinite;
  margin-bottom: 2rem;
  z-index: 1;
}
@keyframes sheen {
  0%, 77%   { filter: brightness(1); }
  82%, 88%  { filter: brightness(1.45); }
  100%      { filter: brightness(1); }
}
.card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 370px;
  height: 500px;
  max-width: 94vw;
  max-height: 94vh;
  aspect-ratio: 370/500;
  perspective: 1200px;
}
.comet-card {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #222;
  box-shadow: 0 6px 48px #000d, 0 1.5px 6px #2ca6fb17;
  will-change: transform, box-shadow;
  position: relative;
  cursor: default;
  transition:
    transform 0.88s cubic-bezier(.22,1.08,.36,1.01),
    box-shadow 0.28s cubic-bezier(.42,0,1,1);
  transform-style: preserve-3d;
}
.comet-card-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0; top: 0;
  transition: transform 0.7s cubic-bezier(.27,1.18,.47,1.11);
  transform-style: preserve-3d;
  z-index: 2;
}
.comet-card.flipped .comet-card-inner {
  transform: rotateY(180deg);
}
.comet-card-face {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.comet-card-front {
  z-index: 5;
}
.comet-card-back {
  background: #19192a;
  color: #fafafa;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: rotateY(180deg);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  z-index: 5;
}
.comet-bg,
.comet-glow,
.comet-dark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.comet-bg { z-index: 2; }
.comet-glow { mix-blend-mode: lighten; z-index: 3;}
.comet-dark { z-index: 4; mix-blend-mode: multiply; }

/* Glow SPOTS (fixed to corners) */
.comet-glow-spot {
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163,202,255,0.22) 0%, rgba(202,163,255,0.08) 65%, rgba(120,210,255,0.025) 100%);
  opacity: 0;
  filter: brightness(0.42);
  transition: opacity 0.2s;
  z-index: 3;
}
.glow-topleft    { left: 0; top: 0; transform: translate(-40%,-40%);}
.glow-topright   { right: 0;top: 0; transform: translate(40%,-40%);}
.glow-bottomleft { left: 0; bottom: 0; transform: translate(-40%,40%);}
.glow-bottomright{ right: 0;bottom: 0; transform: translate(40%,40%);}
.comet-glow-spot.active { opacity: 1; }

/* Dark CORNER overlays (fixed to corners) */
.comet-dark-corner {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 0 0 80px 0 / 0 0 120px 0;
  background: radial-gradient(circle at 100% 100%, rgba(18,19,32,0.38) 0%, rgba(24,24,33,0.11) 80%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
  z-index: 4;
}
.dark-topleft    { left:   0; top:    0;   border-radius: 80px 0 0 0 / 120px 0 0 0;
  background: radial-gradient(circle at 0% 0%,rgba(18,19,32,0.38) 0%,rgba(24,24,33,0.11) 80%,rgba(0,0,0,0) 100%);
}
.dark-topright   { right:  0; top:    0;   border-radius: 0 80px 0 0 / 0 120px 0 0;
  background: radial-gradient(circle at 100% 0%,rgba(18,19,32,0.38) 0%,rgba(24,24,33,0.12) 80%,rgba(0,0,0,0) 100%);
}
.dark-bottomleft { left:   0; bottom: 0;   border-radius: 0 0 0 80px / 0 0 120px 0;
  background: radial-gradient(circle at 0% 100%,rgba(18,19,32,0.38) 0%,rgba(24,24,33,0.13) 80%,rgba(0,0,0,0) 100%);
}
.dark-bottomright{ right:  0; bottom: 0;   border-radius: 0 0 80px 0 / 0 0 0 120px;
  background: radial-gradient(circle at 100% 100%,rgba(18,19,32,0.38) 0%,rgba(24,24,33,0.14) 80%,rgba(0,0,0,0) 100%);
}
.comet-dark-corner.active { opacity: 1; }

/* Email Signup Button Overlay */
.signup-btn {
  margin: 0 auto 32px auto;
  padding: 0.82rem 2.05rem;
  background: linear-gradient(90deg, #489cff 0%, #db57fa 100%);
  border: none;
  border-radius: 2.2em;
  color: #fff;
  font-size: 1.26rem;
  font-family: 'Poppins',sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 12px #0e176315;
  cursor: pointer;
  user-select: none;
  z-index: 22;
  transition: background 0.32s, box-shadow 0.18s;
  align-self: center;
  position: relative;
  bottom: 0;
  left: 0; right: 0;
  width: max-content;
  min-width: 160px;
  max-width: 80%;
  opacity: 0.98;
  pointer-events: auto;
}
.signup-btn:active {
  background: linear-gradient(90deg, #2a65e6 0%, #ad34b3 100%);
  box-shadow: 0 1px 5px #23253d38;
}

@media (max-width: 768px) {
  .card-wrapper {
    width: 80vw;
    height: 108vw;
    max-width: 340px;
    max-height: 460px;
    min-width: 200px;
    min-height: 270px;
    aspect-ratio: 370/500;
  }
  .comet-card {
    width: 100%;
    height: 100%;
  }
  .coming-soon {
    font-size: 1.7rem;
  }
  .signup-btn {
    font-size: 1.07rem;
    padding: 0.78rem 1.3rem;
    margin-bottom: 18px;
  }
}
/* Hide tilt overlay/detail when flipped */
.comet-card.flipped .comet-glow-spot,
.comet-card.flipped .comet-dark-corner {
  opacity: 0 !important;
  transition: opacity 0.2s;
}
.comet-card.flipped .signup-btn {
  display: none !important;
}
