* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-1: #fff6f0;
  --bg-2: #ffe3ec;
  --bg-3: #fff2d9;
  --text: #3a2440;
  --muted: #8a7488;
  --accent: #e0a04a;
  --accent-light: #f3c785;
  --rose: #e88ba0;
  --rose-deep: #d46a86;
  --line: rgba(58, 36, 64, .16);
  --glow: rgba(224, 160, 74, .35);
}

html, body {
  min-height: 100%;
}

body {
  background: linear-gradient(120deg, var(--bg-1), var(--bg-2), var(--bg-3), var(--bg-1));
  background-size: 400% 400%;
  animation: driftGradient 22s ease infinite;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

@keyframes driftGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 34px 6vw 28px;
  isolation: isolate;
  overflow: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* Falling petals */
.petals {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -40px;
  width: 14px;
  height: 18px;
  background: linear-gradient(135deg, var(--rose), var(--accent-light));
  border-radius: 60% 10% 60% 10%;
  opacity: .55;
  filter: drop-shadow(0 2px 4px rgba(58,36,64,.12));
  animation-name: fall, sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

@keyframes fall {
  to { transform: translateY(112vh) rotate(340deg); }
}

@keyframes sway {
  0%, 100% { margin-left: 0; }
  50% { margin-left: 40px; }
}

.nav,
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 10px;
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  letter-spacing: .08em;
  font-weight: 600;
  background: linear-gradient(90deg, var(--text), var(--rose-deep), var(--accent), var(--text));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 8s ease infinite;
}

@keyframes shimmerText {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.nav-status {
  color: var(--muted);
  position: relative;
  padding-left: 16px;
}

.nav-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--rose-deep);
  box-shadow: 0 0 0 0 rgba(212, 106, 134, .55);
  animation: navPulse 2.1s ease-out infinite;
}

@keyframes navPulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 106, 134, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(212, 106, 134, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 106, 134, 0); }
}

.content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  margin: auto;
  text-align: center;
  padding: 70px 0;
  animation: appear 1.2s ease both;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: 10px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .9s ease .1s both;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(54px, 8vw, 108px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.035em;
  opacity: 0;
  animation: fadeUp 1s ease .28s both;
}

h1 span {
  display: inline-block;
  color: var(--rose-deep);
  font-style: normal;
  position: relative;
  animation: heartbeat 2.6s ease-in-out 1.3s infinite;
  text-shadow: 0 0 26px var(--glow);
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.18); }
  20% { transform: scale(1); }
  30% { transform: scale(1.14); }
  40% { transform: scale(1); }
}

h1 em {
  font-weight: 400;
  background: linear-gradient(90deg, var(--text), var(--accent) 45%, var(--rose-deep) 70%, var(--text));
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 10s ease infinite;
}

.line {
  width: 80px;
  height: 2px;
  margin: 38px auto 30px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--rose-deep), transparent);
  background-size: 200% 100%;
  animation: fadeUp .9s ease .45s both, lineShimmer 5s linear 1.4s infinite;
}

@keyframes lineShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.message {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp .9s ease .55s both;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  color: #5f4a5c;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  opacity: 0;
  animation: fadeUp .9s ease .68s both;
  box-shadow: 0 6px 24px rgba(224, 160, 74, .12);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--rose-deep);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
  box-shadow: 0 0 0 0 rgba(212, 106, 134, .5);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  margin-top: 55px;
  opacity: 0;
  animation: fadeUp .9s ease .8s both;
}

.time-box {
  min-width: 65px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  padding: 10px 6px 4px;
  border-radius: 16px;
  transition: transform .25s ease;
}

.time-box:hover {
  transform: translateY(-4px);
}

.time-box strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(180deg, var(--text), var(--rose-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.time-box strong.tick {
  animation: tickPop .5s cubic-bezier(.34,1.56,.64,1);
}

@keyframes tickPop {
  0%   { transform: translateY(-8px) scale(.85); opacity: .4; }
  60%  { transform: translateY(2px) scale(1.06); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}

.time-box span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.date {
  margin-top: 28px;
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  font-style: italic;
  opacity: 0;
  animation: fadeUp .9s ease .9s both;
}

.footer {
  color: var(--muted);
  opacity: 0;
  animation: fadeUp .9s ease 1s both;
}

.footer span:nth-child(2) {
  color: var(--rose-deep);
  display: inline-block;
  animation: heartbeat 2.6s ease-in-out infinite;
}

.decor {
  position: absolute;
  z-index: 0;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(224, 160, 74, .28);
  border-radius: 50%;
  animation: float 14s ease-in-out infinite;
}

.decor::after {
  content: "";
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(212, 106, 134, .18);
  border-radius: 50%;
}

.decor-one {
  top: -270px;
  right: -130px;
  animation-delay: 0s;
}

.decor-two {
  bottom: -320px;
  left: -170px;
  width: 620px;
  height: 620px;
  animation-delay: -7s;
  animation-direction: reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(14px, -18px) rotate(6deg); }
}

@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 106, 134, .5); }
  50% { opacity: .6; transform: scale(.8); box-shadow: 0 0 0 6px rgba(212, 106, 134, 0); }
}

@media (max-width: 600px) {
  .hero {
    padding: 24px 22px;
  }

  .content {
    padding: 45px 0;
  }

  .message br {
    display: none;
  }

  .countdown {
    gap: 13px;
  }

  .time-box {
    min-width: 52px;
  }

  .time-box strong {
    font-size: 32px;
  }

  .status {
    font-size: 8px;
    letter-spacing: .1em;
  }

  .footer {
    font-size: 8px;
  }

  .petal {
    display: none;
  }
}

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