
:root {
  --bg: #100d14;
  --bg2: #17111d;
  --text: #fff8fb;
  --muted: #decfd6;
  --pink: #ff7cab;
  --pink2: #ffd1df;
  --glass: rgba(255,255,255,.075);
  --border: rgba(255,255,255,.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,124,171,.12), transparent 34%),
    radial-gradient(circle at 85% 75%, rgba(150,110,255,.10), transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

body {
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.bg-glow {
  position: fixed;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .18;
  pointer-events: none;
  z-index: 0;
  animation: drift 9s ease-in-out infinite alternate;
}

.bg-glow-1 {
  left: -18vw;
  top: -12vw;
  background: #ff6f9f;
}

.bg-glow-2 {
  right: -20vw;
  bottom: -15vw;
  background: #8d6cff;
  animation-delay: -3s;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.14); }
}

.app {
  min-height: 100dvh;
  width: 100%;
  position: relative;
  z-index: 3;
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    calc(22px + env(safe-area-inset-top))
    18px
    calc(22px + env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.985);
  transition:
    opacity .65s ease,
    transform .65s cubic-bezier(.2,.8,.2,1);
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.card {
  width: min(92vw, 640px);
  max-height: calc(100dvh - 44px);
  overflow: auto;
  text-align: center;
  padding: clamp(26px, 6vw, 42px);
  border-radius: 30px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}

.eyebrow {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink2);
  margin-bottom: 14px;
}

h1, h2 {
  margin: 0 0 16px;
  line-height: 1.08;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(2.3rem, 9vw, 4.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.85rem, 7vw, 3.1rem);
  font-weight: 780;
}

p {
  margin: 14px auto 0;
  max-width: 520px;
  font-size: clamp(1.04rem, 4.2vw, 1.24rem);
  line-height: 1.62;
  color: var(--muted);
}

.lead {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.15rem, 4.8vw, 1.42rem);
}

.btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  margin-top: 28px;
  padding: 15px 24px;
  min-width: 170px;
  font-size: 1rem;
  font-weight: 750;
  color: #2b1620;
  background: linear-gradient(135deg, #ffe0ea, #ff8fb8);
  box-shadow: 0 13px 34px rgba(255,124,171,.28);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(.96);
}

.signature {
  margin: 24px auto 0;
  max-width: 520px;
  font-size: clamp(1.02rem, 4vw, 1.2rem);
  font-weight: 750;
  line-height: 1.5;
}

.ps {
  margin-top: 20px;
  color: #cbbdc4;
  font-size: .92rem;
}

.pulse {
  display: inline-block;
  transform-origin: center;
  animation: pulse 1.35s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

#heart-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.heart {
  position: absolute;
  bottom: -80px;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,.2));
  animation: floatUp linear forwards;
}

@keyframes floatUp {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(.7);
    opacity: 0;
  }
  8% {
    opacity: .92;
  }
  88% {
    opacity: .82;
  }
  100% {
    transform: translate3d(var(--drift), -118vh, 0) rotate(var(--rotate)) scale(1.25);
    opacity: 0;
  }
}

.spark {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 22px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: burst 1.3s cubic-bezier(.1,.8,.2,1) forwards;
}

@keyframes burst {
  from {
    transform: translate(-50%, -50%) translate(0,0) scale(.5) rotate(0deg);
    opacity: 1;
  }
  to {
    transform:
      translate(-50%, -50%)
      translate(var(--x), var(--y))
      scale(1.35)
      rotate(var(--r));
    opacity: 0;
  }
}

@media (max-height: 680px) {
  .card {
    padding: 24px 22px;
  }
  .btn {
    margin-top: 20px;
  }
  p {
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
