:root {
  --bg: #fff6fb;
  --bg-soft: #ffeef8;
  --paper: #fffafc;
  --ink: #341f2f;
  --accent: #d85f9a;
  --accent-2: #f6bfdc;
  --muted: #7f6576;
  --line: rgba(216, 95, 154, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 8% 12%, #ffe2f1 0%, var(--bg) 42%),
    linear-gradient(150deg, #fff8fc 0%, var(--bg-soft) 100%);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(42px);
  z-index: -3;
  opacity: 0.5;
  pointer-events: none;
}

.orb-1 {
  width: 36vw;
  height: 36vw;
  background: #ffc3e3;
  left: -8vw;
  top: -8vw;
  animation: drift 16s ease-in-out infinite;
}

.orb-2 {
  width: 42vw;
  height: 42vw;
  background: #f8b8d8;
  right: -12vw;
  bottom: -10vw;
  animation: drift 20s ease-in-out infinite reverse;
}

.grid-mask {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: -2;
  mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 9rem) 0 3rem;
  text-align: center;
}

.kicker {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(216, 95, 154, 0.35);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #8a3f67;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

h1 {
  margin: 1rem 0 0.3rem;
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 7vw, 5rem);
  line-height: 0.95;
  text-wrap: balance;
}

h1 span {
  display: block;
  color: var(--accent);
  font-style: italic;
}

.subtitle {
  width: min(720px, 100%);
  margin: 1.1rem auto 1.6rem;
  color: #664b5d;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.5;
}

.pill-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.pill-row span {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(216, 95, 154, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #7b4f68;
  background: rgba(255, 255, 255, 0.7);
}

.cta {
  display: inline-block;
  text-decoration: none;
  color: #4d2340;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-2), #ffe4f4);
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(216, 95, 154, 0.22);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(216, 95, 154, 0.3);
}

.cta:focus-visible {
  outline: 2px solid #8c3d67;
  outline-offset: 3px;
}

main {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stats article {
  border: 1px solid rgba(216, 95, 154, 0.2);
  border-radius: 16px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 20px rgba(187, 116, 154, 0.12);
}

.num {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
}

.label {
  margin: 0.35rem 0 0;
  color: #71596a;
  line-height: 1.35;
}

.letter-wrap {
  position: relative;
  margin-bottom: 3rem;
}

.stamp {
  position: absolute;
  right: clamp(0.5rem, 3vw, 2.2rem);
  top: -1rem;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px dashed rgba(216, 95, 154, 0.82);
  color: var(--accent);
  font-size: 0.86rem;
  line-height: 1.1;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(15deg);
  background: rgba(255, 250, 254, 0.86);
}

.letter {
  background: linear-gradient(145deg, #fffdfa, var(--paper));
  color: var(--ink);
  border-radius: 22px;
  padding: clamp(1.3rem, 2.8vw, 2.6rem);
  box-shadow: 0 18px 42px rgba(141, 81, 112, 0.18);
  border: 1px solid rgba(216, 95, 154, 0.2);
  max-width: 860px;
  margin: 0 auto;
}

.letter p {
  margin: 0 0 1rem;
  line-height: 1.82;
  font-size: clamp(1rem, 1.8vw, 1.11rem);
}

.letter-meta {
  display: inline-block;
  font-weight: 700;
  color: #5a3048;
  border-bottom: 2px solid #e5c2d7;
  margin-bottom: 1.5rem;
}

.signature {
  margin-top: 1.6rem;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
}

.signature span {
  display: block;
  margin-top: 0.3rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  color: #76566a;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, 18px, 0);
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 3.2rem;
  }

  .pill-row {
    gap: 0.45rem;
  }

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

  .stamp {
    width: 72px;
    height: 72px;
    font-size: 0.72rem;
    top: -0.8rem;
  }
}

@media (max-width: 640px) {
  .hero,
  main {
    width: min(100%, 94%);
  }

  .hero {
    padding: 2.7rem 0 2rem;
  }

  .kicker {
    max-width: 100%;
    text-align: center;
    line-height: 1.35;
  }

  h1 {
    font-size: clamp(1.95rem, 10.5vw, 2.7rem);
    line-height: 1.02;
  }

  .subtitle {
    margin-bottom: 1.25rem;
  }

  .pill-row {
    width: 100%;
    justify-content: center;
  }

  .stats {
    gap: 0.8rem;
    margin-bottom: 2rem;
  }

  .stats article {
    text-align: center;
    padding: 1rem;
  }

  .letter-wrap {
    padding-top: 1.6rem;
  }

  .stamp {
    left: 50%;
    right: auto;
    top: 0;
    transform: translateX(-50%) rotate(10deg);
  }

  .letter {
    border-radius: 18px;
    padding: 1rem;
  }

  .letter-meta {
    display: block;
    text-align: center;
  }

  .signature {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
