:root {
  --bg: #fff0f5;
  --bg-top: #fff7fb;
  --bg-bottom: #ffe1ec;
  --primary: #ff69b4;
  --primary-dark: #e14a93;
  --secondary: #ffb6c1;
  --soft: #ffc8dc;
  --text: #4a0e2e;
  --text-muted: #8b3a62;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 40%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body { position: relative; min-height: 100vh; }

::selection { background: var(--secondary); color: var(--text); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  border-radius: 9999px;
}

button, a { cursor: pointer; font-family: inherit; }

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

/* ============ Decorative rings ============ */
.bg-ring {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 9999px;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}
.bg-ring--pink {
  top: -160px; left: -160px;
  background: radial-gradient(circle, var(--soft) 0%, transparent 70%);
  opacity: 0.6;
}
.bg-ring--gold {
  top: 40%; right: -160px;
  background: radial-gradient(circle, #ffe9a8 0%, transparent 70%);
  opacity: 0.5;
}

/* ============ Petal field ============ */
.petal-field {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}
.petal, .sparkle { position: absolute; top: -10vh; }
.sparkle { top: auto; bottom: -10vh; }

/* ============ Glass surfaces ============ */
.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 60px -20px rgba(255, 105, 180, 0.35);
  border-radius: 2.5rem;
}

.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px -10px rgba(255, 105, 180, 0.35);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ============ Music toggle ============ */
.music-toggle-wrap { position: fixed; top: 20px; right: 20px; z-index: 50; }
.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 16px 6px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 40px -12px rgba(255, 105, 180, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.music-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px -10px rgba(255, 105, 180, 0.55);
}
.music-toggle__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-dark);
}
.music-toggle.is-playing .music-toggle__icon {
  background: linear-gradient(135deg, #ff8eb4, var(--primary-dark));
  color: #fff;
  animation: twinkle 2.4s ease-in-out infinite;
}

/* ============ Hero ============ */
main { position: relative; z-index: 20; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.kicker p, .kicker .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}
.kicker .line {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: rgba(225, 74, 147, 0.5);
}
.kicker svg { color: var(--primary-dark); }

.hero__title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  line-height: 0.95;
  color: var(--text);
  font-size: clamp(3rem, 8vw, 7.5rem);
}
.hero__title sup {
  font-size: 0.45em;
  color: var(--primary);
  vertical-align: super;
  margin-left: 0.1em;
}
.hero__title .italic {
  font-style: italic;
  color: var(--primary-dark);
}

.princess-underline { position: relative; display: inline-block; }
.princess-underline::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  bottom: -10px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 9999px;
  opacity: 0.8;
}

.hero__subtitle {
  margin: 2rem auto 0;
  max-width: 36rem;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: rgba(74, 14, 46, 0.85);
  line-height: 1.6;
}

.badge-row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero__flower { position: absolute; bottom: 0; pointer-events: none; }
.hero__flower--left { left: 0; }
.hero__flower--right { right: 0; }
@media (max-width: 767px) { .hero__flower { display: none; } }

/* ============ Cake section ============ */
.cake-section { padding: 6rem 1.5rem 8rem; }
.section-heading { text-align: center; margin-bottom: 3.5rem; }
.eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }

.cake-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
}
@media (max-width: 900px) {
  .cake-grid { grid-template-columns: 1fr; }
  .cake-flowers { justify-content: center !important; }
}
.cake-flowers { display: flex; gap: 0.75rem; }
.cake-flowers--left { justify-content: flex-end; }
.cake-flowers--right { justify-content: flex-start; }
.cake-flowers .offset { margin-bottom: -12px; }

.cake-card {
  padding: 2.5rem 2rem 1.5rem;
  max-width: 460px;
  margin: 0 auto;
  transition: transform 0.5s ease;
}
.cake-card:hover { transform: translateY(-6px); }
.cake-card__quote {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}
.cake-mount { width: 100%; max-width: 420px; margin: 0 auto; }
.cake-mount svg { animation: shimmer 3s ease-in-out infinite; }

/* ============ Virginity Timer section ============ */
.timer-section {
  padding: 2rem 1.5rem 4rem;
  text-align: center;
  max-width: 60rem;
  margin: 0 auto;
}
.timer-title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.75rem);
  color: var(--primary-dark);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}
.timer-card {
  margin: 1.5rem auto 0;
  padding: 2rem 2.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border-radius: 2rem;
  max-width: 100%;
}
.timer-grid {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 1.25rem 0 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
}
.timer-value {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.timer-label {
  margin-top: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 500;
}
.timer-sep {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--secondary);
  align-self: flex-start;
  margin-top: 0.2em;
  line-height: 1;
}
.timer-foot {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(74, 14, 46, 0.75);
}
@media (max-width: 540px) {
  .timer-sep { display: none; }
}

/* ============ Body Count section ============ */
.bc-section {
  padding: 2.5rem 1.5rem 8rem;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}
.bc-section .kicker { margin-bottom: 1.5rem; }
.bc-title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--text);
}
.bc-card {
  margin: 2.5rem auto 0;
  padding: 2.5rem 2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border-radius: 2rem;
}
.bc-card .eyebrow { margin-bottom: 0; color: var(--primary-dark); }
.bc-number {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: 1;
  color: var(--text);
  margin: 0.5rem 0 0;
}
.bc-subtitle {
  margin-top: -0.25rem;
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(74, 14, 46, 0.75);
}

.bc-btn-wrap { margin-top: 2.5rem; }
.plus-one-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.125rem 3rem;
  border: 0;
  border-radius: 9999px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  color: #fff;
  background: linear-gradient(135deg, #ff8eb4 0%, var(--primary) 50%, var(--primary-dark) 100%);
  box-shadow: 0 18px 50px -8px rgba(255, 105, 180, 0.65);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plus-one-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px -8px rgba(255, 105, 180, 0.85);
}
.plus-one-btn .btn-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
.plus-one-btn.jiggle { animation: jiggle 0.55s ease-in-out; }

.bc-hint {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: rgba(74, 14, 46, 0.7);
}

/* ============ Footer ============ */
.footer {
  position: relative;
  z-index: 20;
  padding: 2rem 1rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.footer p {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============ Animations ============ */
@keyframes fade-up {
  0% { transform: translateY(24px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.animate-fade-up { animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes petal-fall {
  0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translate3d(18px, 55vh, 0) rotate(180deg); }
  100% { transform: translate3d(-12px, 115vh, 0) rotate(360deg); opacity: 0.9; }
}

@keyframes sparkle-float {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate3d(20px, -80vh, 0) scale(1.2); opacity: 0; }
}

@keyframes shimmer {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 182, 193, 0.6)); }
  50% { filter: drop-shadow(0 0 24px rgba(255, 105, 180, 0.85)); }
}

@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

@keyframes bloom {
  0% { transform: scale(0.6) rotate(-12deg); opacity: 0; }
  60% { transform: scale(1.1) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes flicker {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: 1; }
  50% { transform: scaleY(1.15) translateY(-1px); opacity: 0.85; }
}

@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.4); opacity: 1; }
}

@keyframes jiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-6deg) scale(1.04); }
  40% { transform: rotate(5deg) scale(0.98); }
  60% { transform: rotate(-4deg) scale(1.03); }
  80% { transform: rotate(3deg) scale(1); }
}

.type-section {
  position: relative;
  padding: 4.5rem 1.5rem 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 200, 220, 0.55), transparent 38%),
    linear-gradient(180deg, rgba(255, 247, 251, 0.2), rgba(255, 225, 236, 0.45));
}

.type-section::before,
.type-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.32;
}

.type-section::before {
  left: -3.5rem;
  top: 18rem;
  width: 13rem;
  height: 13rem;
  border: 1px solid rgba(255, 105, 180, 0.45);
  border-radius: 50%;
  transform: rotate(-18deg) scaleX(1.35);
}

.type-section::after {
  right: -5rem;
  bottom: 7rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(255, 105, 180, 0.35);
  border-radius: 50%;
  transform: rotate(16deg) scaleX(1.2);
}

.type-section__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 auto -0.45rem;
  color: #a33c6c;
}

.type-section__kicker span {
  width: clamp(2rem, 4vw, 3.5rem);
  height: 1px;
  background: rgba(255, 105, 180, 0.65);
}
.type-section__kicker p {
  margin: 0;
  font-size: clamp(0.72rem, 1.6vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  white-space: nowrap;
}

.type-section__title {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #4a0e2e;
  margin: 0;
}

.type-section__title::after {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: -0.72rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ff8fca 18%, #ff69b4 50%, #ff8fca 82%, transparent);
  opacity: 0.8;
}

.type-section__subtitle {
  margin: 1.7rem auto 3rem;
  max-width: 58rem;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  color: #ff4fa3;
}

.type-section__frame {
  width: min(100%, 750px);
  margin: 0 auto;
  padding: clamp(1.05rem, 2.2vw, 1.7rem);
  border-radius: 2.55rem 2.55rem 0 0;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 30px 90px -36px rgba(255, 105, 180, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.type-section__photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem 1.8rem 0 0;
  background: rgba(74, 14, 46, 0.08);
}

.type-section__photo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.type-section__label {
  position: absolute;
  z-index: 2;
  top: 1.55rem;
  left: 2rem;
  font-size: clamp(0.62rem, 1.4vw, 0.86rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(74, 14, 46, 0.9);
}

.type-section__caption {
  position: absolute;
  z-index: 2;
  right: 1.35rem;
  bottom: 0.95rem;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 10px rgba(74, 14, 46, 0.45);
}

@media (max-width: 700px) {
  .type-section {
    padding: 3.25rem 1rem 0;
  }

  .type-section__kicker {
    gap: 0.55rem;
    margin-bottom: 0.1rem;
  }

  .type-section__kicker p {
    letter-spacing: 0.28em;
  }

  .type-section__subtitle {
    margin-bottom: 2rem;
  }

  .type-section__frame {
    border-radius: 1.8rem 1.8rem 0 0;
    padding: 0.9rem;
  }

  .type-section__photo-wrap {
    border-radius: 1.2rem 1.2rem 0 0;
  }

  .type-section__label {
    top: 1rem;
    left: 1rem;
  }
}