@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --bg: #f8f3f4;
  --paper: #fffafb;
  --text: #655b60;
  --muted: #95888e;
  --rose: #d8b4c0;
  --rose-light: #f1dfe5;
  --lavender: #c9c3d7;
  --lavender-light: #e9e5ef;
  --peach: #dfc4b5;
  --peach-light: #f4e5dc;
  --sage: #c6d0c2;
  --line: rgba(107, 86, 96, .11);
  --shadow: 0 18px 55px rgba(91, 71, 80, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(216,180,192,.26), transparent 27%),
    radial-gradient(circle at 92% 30%, rgba(201,195,215,.22), transparent 28%),
    linear-gradient(180deg, #fbf7f8 0%, #f7f1f3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(rgba(111,94,102,.18) .7px, transparent .7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 65%);
}

.page-shell {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding-bottom: 32px;
}

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 82px 20px 58px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(215,181,193,.48);
  color: #9b7b87;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 26px rgba(117,92,103,.06);
}

h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  margin: 22px 0 10px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: .95;
  letter-spacing: -.045em;
  color: #6f6268;
}

h1 span {
  color: #b98e9e;
}

.hero-subtitle {
  width: min(560px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.sparkle {
  position: absolute;
  color: #c7a8b4;
  font-size: 1.5rem;
  opacity: .72;
  animation: float 5s ease-in-out infinite;
}

.sparkle-1 { top: 78px; left: 13%; }
.sparkle-2 { top: 112px; right: 14%; animation-delay: -1.8s; }
.sparkle-3 { top: 205px; right: 24%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

.bunny {
  width: 90px;
  height: 78px;
  margin: 34px auto -16px;
  position: relative;
}

.head {
  position: absolute;
  width: 65px;
  height: 54px;
  border-radius: 48% 48% 44% 44%;
  background: #f7ecef;
  border: 1px solid #e7d2d8;
  left: 13px;
  bottom: 0;
  box-shadow: 0 10px 25px rgba(145,117,128,.08);
}

.ear {
  position: absolute;
  top: 0;
  width: 21px;
  height: 45px;
  border: 1px solid #e7d2d8;
  background: #f7ecef;
  border-radius: 50% 50% 38% 38%;
  z-index: -1;
}

.ear::after {
  content: "";
  position: absolute;
  inset: 7px 6px 10px;
  border-radius: inherit;
  background: #efd5dd;
}

.ear-left { left: 19px; transform: rotate(-9deg); }
.ear-right { right: 18px; transform: rotate(9deg); }

.eye {
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: #85737a;
  position: absolute;
  top: 23px;
}

.eye-left { left: 19px; }
.eye-right { right: 19px; }

.nose {
  position: absolute;
  width: 7px;
  height: 5px;
  background: #d4a9b5;
  left: 50%;
  top: 31px;
  transform: translateX(-50%);
  border-radius: 60% 60% 70% 70%;
}

main {
  display: grid;
  gap: 24px;
}

.today-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,250,251,.86);
  border: 1px solid rgba(215,181,193,.34);
  border-radius: 34px;
  padding: 45px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.today-card::before,
.today-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.today-card::before {
  width: 160px;
  height: 160px;
  background: rgba(231,210,219,.42);
  top: -85px;
  left: -55px;
}

.today-card::after {
  width: 125px;
  height: 125px;
  background: rgba(220,213,232,.42);
  right: -38px;
  bottom: -75px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #aa8e99;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.main-age {
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.15rem, 6vw, 4.3rem);
  font-weight: 700;
  line-height: 1.12;
  color: #6e6066;
}

.main-age-detail {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: .96rem;
}

.section {
  background: rgba(255,255,255,.36);
  border-radius: 30px;
  padding: 30px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section-heading h2,
.birthday-card h2 {
  margin: 0;
  color: #71656a;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
}

.section-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #f1e4e8;
  color: #b48c9a;
  font-size: 1.28rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  min-height: 215px;
  border-radius: 26px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
}

.stat-card::after {
  content: "";
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: rgba(255,255,255,.23);
  position: absolute;
  top: -35px;
  right: -22px;
}

.stat-card.rose { background: var(--rose-light); }
.stat-card.lavender { background: var(--lavender-light); }
.stat-card.peach { background: var(--peach-light); }

.stat-icon {
  height: 30px;
  font-size: 1.45rem;
  opacity: .65;
}

.stat-value {
  margin-top: 21px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: #72656b;
  line-height: 1;
}

.stat-label {
  margin-top: 5px;
  font-size: 1rem;
  font-weight: 700;
}

.stat-note {
  margin-top: 18px;
  color: #8e8086;
  font-size: .84rem;
}

.timeline {
  display: grid;
  gap: 12px;
}

.milestone {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 16px;
  background: rgba(255,250,251,.83);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 18px;
}

.milestone-bubble {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #efe1e6;
  color: #a98492;
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.milestone-title {
  font-weight: 700;
  color: #6e6267;
}

.milestone-date {
  margin-top: 3px;
  color: var(--muted);
  font-size: .84rem;
}

.milestone-status {
  color: #a28691;
  font-size: .8rem;
  font-weight: 700;
  text-align: right;
}

.milestone.passed {
  opacity: .56;
}

.milestone.passed .milestone-status {
  color: #8c9d86;
}

.birthday-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(238,220,226,.94), rgba(231,226,239,.92));
  border: 1px solid rgba(205,186,199,.35);
}

.birthday-icon {
  display: grid;
  place-items: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: rgba(255,255,255,.54);
  font-size: 2rem;
}

#birthdayCountdown {
  margin: 8px 0 0;
  color: #887982;
}

footer {
  padding: 34px 12px 10px;
  text-align: center;
  color: #a09298;
  font-size: .82rem;
}

@media (max-width: 740px) {
  .hero {
    padding-top: 58px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 170px;
  }

  .section {
    padding: 22px 16px;
  }

  .milestone {
    grid-template-columns: 52px 1fr;
  }

  .milestone-status {
    grid-column: 2;
    text-align: left;
    margin-top: -9px;
  }

  .birthday-card {
    align-items: flex-start;
  }
}

@media (max-width: 470px) {
  .page-shell {
    width: min(100% - 18px, 1040px);
  }

  .hero {
    padding-left: 8px;
    padding-right: 8px;
  }

  .today-card {
    border-radius: 27px;
    padding: 34px 18px;
  }

  .birthday-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .birthday-icon {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    border-radius: 19px;
  }
}
