:root {
  --brand: #E85D8E;
  --white: #FFFFFF;
  --soft-bg: #FAF7F9;
  --text: #2B2B2B;
  --muted: #6F6B70;
  --border: #E9E4E8;
  --blush: #FCEAF1;
  --shadow: 0 22px 70px rgba(232, 93, 142, 0.16);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--soft-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 50% 18%, rgba(232, 93, 142, 0.18), transparent 28rem),
    radial-gradient(circle at 17% 74%, rgba(252, 234, 241, 0.95), transparent 20rem),
    radial-gradient(circle at 88% 66%, rgba(232, 93, 142, 0.12), transparent 22rem),
    linear-gradient(180deg, var(--white) 0%, var(--soft-bg) 58%, var(--blush) 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  width: 32rem;
  height: 32rem;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(232, 93, 142, 0.13);
  border-radius: 45% 55% 48% 52%;
  opacity: 0.62;
  transform: rotate(-18deg);
}

body::before {
  top: -16rem;
  left: -11rem;
}

body::after {
  right: -14rem;
  bottom: -18rem;
  transform: rotate(22deg);
}

.launch-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
}

.celebration-canvas,
.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.launch-header {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: clamp(1.15rem, 3vw, 2rem) 1.25rem 0;
  animation: fadeDown 900ms ease both;
}

.brand {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand::after {
  display: block;
  width: 3.8rem;
  height: 2px;
  margin: 0.72rem auto 0;
  content: "";
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100vh - 5.5rem);
  padding: clamp(1.6rem, 4vw, 3.2rem) 1rem clamp(1.4rem, 4vw, 3rem);
  place-items: center;
}

.hero-inner {
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.95rem;
  color: var(--brand);
  font-size: clamp(0.72rem, 1.7vw, 0.86rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: fadeUp 780ms 180ms ease both;
}

h1 {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(2.45rem, 8vw, 5.85rem);
  font-weight: 700;
  line-height: 0.98;
  text-wrap: balance;
  animation: fadeUp 850ms 340ms ease both;
}

.hero-copy {
  max-width: 620px;
  margin: clamp(1rem, 2.6vw, 1.45rem) auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.1vw, 1.16rem);
  line-height: 1.75;
  text-wrap: balance;
  animation: fadeUp 850ms 500ms ease both;
}

.launch-date {
  position: relative;
  width: min(100%, 660px);
  margin: clamp(1.45rem, 4vw, 2.5rem) auto 0;
  padding: clamp(1.05rem, 3vw, 1.55rem) 1rem;
  color: var(--brand);
  font-family: var(--font-heading);
  text-transform: uppercase;
  animation: dateReveal 900ms 700ms ease both;
}

.launch-date::before,
.launch-date::after {
  position: absolute;
  left: 50%;
  width: min(70%, 440px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(232, 93, 142, 0.52), transparent);
  transform: translateX(-50%);
}

.launch-date::before {
  top: 0;
}

.launch-date::after {
  bottom: 0;
}

.launch-date span,
.launch-date strong {
  display: block;
}

.launch-date span {
  font-size: clamp(2rem, 7.5vw, 4.75rem);
  font-weight: 700;
  line-height: 0.95;
}

.launch-date strong {
  margin-top: 0.12rem;
  color: var(--text);
  font-size: clamp(1.65rem, 5.2vw, 3.6rem);
  line-height: 1;
}

.opening-note,
.welcome-line {
  margin: clamp(0.95rem, 2vw, 1.25rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  animation: fadeUp 800ms 840ms ease both;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(4.65rem, 1fr));
  gap: clamp(0.65rem, 2vw, 1rem);
  width: min(100%, 720px);
  margin: clamp(1.05rem, 3vw, 1.75rem) auto 0;
  animation: fadeUp 880ms 980ms ease both;
}

.time-card {
  position: relative;
  min-height: clamp(6.15rem, 13vw, 8.6rem);
  padding: clamp(0.85rem, 2.2vw, 1.15rem) 0.45rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(233, 228, 232, 0.88);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.time-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(252, 234, 241, 0.32));
  pointer-events: none;
}

.time-value,
.time-label {
  position: relative;
  z-index: 1;
  display: block;
}

.time-value {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6.4vw, 4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
}

.time-value.is-changing {
  animation: numberLift 360ms ease both;
}

.time-label {
  margin-top: 0.62rem;
  color: var(--brand);
  font-size: clamp(0.62rem, 1.7vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome-line {
  color: var(--text);
  font-weight: 500;
  animation-delay: 1.12s;
}

.live-state {
  width: min(100%, 620px);
  margin: clamp(1.2rem, 3vw, 1.9rem) auto 0;
  padding: clamp(1.35rem, 4vw, 2.1rem);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(233, 228, 232, 0.92);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.live-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.live-state h2 {
  margin: 0.45rem 0 1.1rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.live-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.78rem 1.35rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--brand);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(232, 93, 142, 0.24);
}

.sparkle,
.petal {
  position: absolute;
  opacity: 0.72;
  transform: translate3d(0, 0, 0);
}

.sparkle {
  width: 0.42rem;
  height: 0.42rem;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 18px 4px rgba(232, 93, 142, 0.24);
  animation: floatSparkle 9s ease-in-out infinite;
}

.sparkle::before,
.sparkle::after {
  position: absolute;
  inset: 50% auto auto 50%;
  content: "";
  background: rgba(232, 93, 142, 0.55);
  border-radius: 99px;
  transform: translate(-50%, -50%);
}

.sparkle::before {
  width: 1.25rem;
  height: 1px;
}

.sparkle::after {
  width: 1px;
  height: 1.25rem;
}

.sparkle-one {
  top: 23%;
  left: 13%;
}

.sparkle-two {
  top: 17%;
  right: 18%;
  animation-delay: -2.4s;
}

.sparkle-three {
  bottom: 24%;
  left: 19%;
  animation-delay: -4.2s;
}

.sparkle-four {
  right: 13%;
  bottom: 29%;
  animation-delay: -6.1s;
}

.petal {
  width: 1.9rem;
  height: 0.8rem;
  background: linear-gradient(90deg, rgba(232, 93, 142, 0.2), rgba(255, 255, 255, 0.74));
  border-radius: 100% 0 100% 0;
  filter: blur(0.1px);
  animation: driftPetal 13s ease-in-out infinite;
}

.petal-one {
  top: 34%;
  left: 7%;
}

.petal-two {
  top: 61%;
  right: 7%;
  animation-delay: -5s;
}

.petal-three {
  bottom: 14%;
  left: 52%;
  animation-delay: -8s;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-0.9rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.15rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dateReveal {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes numberLift {
  0% {
    opacity: 0.6;
    transform: translateY(0.45rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSparkle {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.42;
  }
  50% {
    transform: translate3d(0.75rem, -1.45rem, 0) rotate(35deg);
    opacity: 0.9;
  }
}

@keyframes driftPetal {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-12deg);
    opacity: 0.2;
  }
  50% {
    transform: translate3d(1rem, -1.3rem, 0) rotate(18deg);
    opacity: 0.66;
  }
}

@media (min-width: 900px) {
  .launch-header {
    justify-content: flex-start;
    width: min(100% - 4rem, 1180px);
    margin: 0 auto;
    padding-inline: 0;
  }

  .brand::after {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 50% 11%, rgba(232, 93, 142, 0.2), transparent 18rem),
      radial-gradient(circle at 10% 78%, rgba(252, 234, 241, 0.92), transparent 14rem),
      linear-gradient(180deg, var(--white) 0%, var(--soft-bg) 56%, var(--blush) 100%);
  }

  .hero {
    align-items: start;
    min-height: calc(100vh - 4.6rem);
    padding-top: 1.7rem;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 25rem);
  }

  .time-card {
    min-height: 5.65rem;
  }

  .petal-three,
  .sparkle-three {
    display: none;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.16rem;
    letter-spacing: 0.14em;
  }

  .countdown {
    gap: 0.52rem;
  }

  .time-card {
    min-height: 5.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .celebration-canvas,
  .ambient-layer {
    display: none;
  }
}
