:root {
  color-scheme: dark;
  --bg: #040103;
  --bg-deep: #010001;
  --text: #fff7fb;
  --muted: #e6a9c6;
  --soft: rgba(255, 247, 251, 0.72);
  --line: rgba(255, 185, 218, 0.18);
  --panel: rgba(20, 5, 12, 0.72);
  --panel-strong: rgba(40, 8, 22, 0.78);
  --pink: #ff5aa8;
  --pink-hot: #ff2f8c;
  --rose: #d92270;
  --blush: #ffd1e6;
  --white: #fff8fb;
  --shadow: 0 24px 80px rgba(255, 47, 140, 0.22);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(108, 9, 48, 0.34), transparent 32rem),
    radial-gradient(circle at 12% 18%, rgba(255, 90, 168, 0.12), transparent 18rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 62%, #090204 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(circle at 50% 35%, black, transparent 76%);
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 780;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.primary-button {
  padding: 0 18px;
  border: 1px solid rgba(255, 209, 230, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 248, 251, 0.95), rgba(255, 209, 230, 0.88) 42%, rgba(255, 90, 168, 0.92));
  color: #3d051d;
  box-shadow: 0 12px 38px rgba(255, 47, 140, 0.34);
}

.primary-button.large {
  min-height: 52px;
  padding: 0 24px;
}

.secondary-button {
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255, 198, 226, 0.24);
  background: rgba(255, 209, 230, 0.08);
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(255, 209, 230, 0.86);
  outline-offset: 3px;
}

.secondary-button[aria-pressed="true"] {
  border-color: rgba(255, 209, 230, 0.62);
  background: rgba(255, 209, 230, 0.16);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 42px 24px 44px;
  overflow: hidden;
  isolation: isolate;
}

#heart-stage {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  background: transparent;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 0, rgba(4, 1, 3, 0.08) 31rem, rgba(4, 1, 3, 0.82) 72rem),
    linear-gradient(180deg, rgba(4, 1, 3, 0.12) 0%, rgba(4, 1, 3, 0.08) 45%, rgba(4, 1, 3, 0.94) 100%);
}

.hero-copy {
  align-self: end;
  width: min(calc(100vw - 48px), 900px);
  margin: 0 auto;
  padding-bottom: 34px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(44px, 6.6vw, 88px);
  font-weight: 400;
  line-height: 0.94;
  text-wrap: balance;
  text-shadow:
    0 14px 50px rgba(0, 0, 0, 0.82),
    0 0 34px rgba(255, 90, 168, 0.28);
}

.heart-name {
  position: absolute;
  top: 36%;
  left: 50%;
  z-index: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  perspective: 900px;
  will-change: transform;
}

.heart-name span {
  display: block;
  font-family: "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(54px, 8vw, 124px);
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 247, 251, 0.96);
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.42),
    0 0 28px rgba(255, 90, 168, 0.58),
    0 20px 72px rgba(0, 0, 0, 0.82);
  animation: nameBloom 4.2s ease-out both, nameGlow 2.5s ease-in-out 4.2s infinite alternate;
}

.flower-garden {
  position: absolute;
  top: 48%;
  z-index: 0;
  width: min(22vw, 260px);
  height: 260px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

.flower-garden-left {
  left: max(18px, 6vw);
}

.flower-garden-right {
  right: max(18px, 6vw);
}

.hero.is-bloom-complete .flower-garden {
  opacity: 1;
}

.flower {
  position: absolute;
  bottom: 0;
  left: var(--x);
  width: 58px;
  height: var(--h);
  transform-origin: bottom center;
}

.flower-garden-right .flower {
  transform: scaleX(-1);
}

.stem {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: var(--h);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 209, 230, 0.72), rgba(106, 192, 114, 0.78));
  box-shadow: 0 0 18px rgba(255, 90, 168, 0.25);
  transform: translateX(-50%) scaleY(0);
  transform-origin: bottom center;
}

.leaf {
  position: absolute;
  bottom: calc(var(--h) * 0.36);
  left: 50%;
  width: 34px;
  height: 16px;
  border-radius: 100% 10% 100% 10%;
  background: linear-gradient(135deg, rgba(195, 255, 198, 0.82), rgba(76, 167, 95, 0.56));
  box-shadow: 0 0 14px rgba(255, 209, 230, 0.12);
  opacity: 0;
  transform: translateX(-4px) rotate(-24deg) scale(0);
  transform-origin: 0 50%;
}

.leaf-right {
  bottom: calc(var(--h) * 0.52);
  transform: translateX(4px) rotate(204deg) scale(0);
}

.flower-head {
  position: absolute;
  top: -24px;
  left: 50%;
  width: 62px;
  height: 62px;
  opacity: 0;
  transform: translateX(-50%) scale(0.08) rotate(-18deg);
  transform-origin: center;
}

.petal,
.flower-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
}

.petal {
  width: 22px;
  height: 34px;
  border-radius: 999px 999px 70% 70%;
  background: radial-gradient(circle at 35% 24%, var(--white), var(--petal2) 34%, var(--petal) 78%);
  box-shadow: 0 0 22px rgba(255, 90, 168, 0.32);
}

.p1 {
  transform: translate(-50%, -84%) rotate(0deg);
}

.p2 {
  transform: translate(-13%, -62%) rotate(58deg);
}

.p3 {
  transform: translate(-12%, -20%) rotate(118deg);
}

.p4 {
  transform: translate(-50%, -2%) rotate(180deg);
}

.p5 {
  transform: translate(-88%, -20%) rotate(242deg);
}

.p6 {
  transform: translate(-87%, -62%) rotate(302deg);
}

.flower-core {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff9c8, #ffcf63 52%, #f276a9);
  box-shadow: 0 0 16px rgba(255, 207, 99, 0.45);
  transform: translate(-50%, -50%);
}

.hero.is-bloom-complete .flower-garden-left .stem {
  animation: growStem 900ms ease-out forwards var(--delay);
}

.hero.is-bloom-complete .flower-garden-left .leaf {
  animation: openLeaf 700ms ease-out forwards calc(var(--delay) + 520ms);
}

.hero.is-bloom-complete .flower-garden-left .leaf-right {
  animation-name: openLeafRight;
}

.hero.is-bloom-complete .flower-garden-left .flower-head {
  animation: openFlower 900ms cubic-bezier(.16, 1.1, .3, 1) forwards calc(var(--delay) + 850ms);
}

.hero.is-bloom-complete .flower-garden-right .stem {
  animation: growStem 900ms ease-out forwards calc(var(--delay) + .85s);
}

.hero.is-bloom-complete .flower-garden-right .leaf {
  animation: openLeaf 700ms ease-out forwards calc(var(--delay) + 1.37s);
}

.hero.is-bloom-complete .flower-garden-right .leaf-right {
  animation-name: openLeafRight;
}

.hero.is-bloom-complete .flower-garden-right .flower-head {
  animation: openFlower 900ms cubic-bezier(.16, 1.1, .3, 1) forwards calc(var(--delay) + 1.7s);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(100%, 560px);
  margin-top: 30px;
  margin-right: auto;
  margin-left: auto;
}

.motion-meter {
  position: absolute;
  right: 28px;
  bottom: 38px;
  z-index: 2;
  display: flex;
  gap: 6px;
  align-items: end;
}

.motion-meter span {
  width: 5px;
  height: 18px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--blush), var(--pink-hot));
  box-shadow: 0 0 18px rgba(255, 90, 168, 0.58);
  animation: meter 1600ms ease-in-out infinite;
}

.motion-meter span:nth-child(2) {
  height: 30px;
  animation-delay: 180ms;
}

.motion-meter span:nth-child(3) {
  height: 23px;
  animation-delay: 360ms;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  padding: 12px 16px;
  border: 1px solid rgba(255, 198, 226, 0.28);
  border-radius: 999px;
  background: rgba(10, 2, 6, 0.82);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(18px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes meter {
  0%,
  100% {
    transform: scaleY(0.62);
    opacity: 0.55;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes nameBloom {
  0% {
    opacity: 0;
    transform: scale(0.72) translateY(22px);
  }

  48% {
    opacity: 0.88;
    transform: scale(1.06) translateY(0);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes nameGlow {
  from {
    opacity: 0.88;
    text-shadow:
      0 0 12px rgba(255, 255, 255, 0.36),
      0 0 24px rgba(255, 90, 168, 0.45),
      0 20px 72px rgba(0, 0, 0, 0.82);
  }

  to {
    opacity: 1;
    text-shadow:
      0 0 18px rgba(255, 255, 255, 0.52),
      0 0 42px rgba(255, 90, 168, 0.72),
      0 20px 72px rgba(0, 0, 0, 0.82);
  }
}

@keyframes growStem {
  to {
    transform: translateX(-50%) scaleY(1);
  }
}

@keyframes openLeaf {
  to {
    opacity: 1;
    transform: translateX(-4px) rotate(-24deg) scale(1);
  }
}

@keyframes openLeafRight {
  to {
    opacity: 1;
    transform: translateX(4px) rotate(204deg) scale(1);
  }
}

@keyframes openFlower {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.08) rotate(-18deg);
  }

  70% {
    opacity: 1;
    transform: translateX(-50%) scale(1.12) rotate(4deg);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1) rotate(0deg);
  }
}

@media (max-width: 860px) {
  .hero h1 {
    font-size: 62px;
  }

  .flower-garden {
    top: 45%;
    width: 180px;
    height: 210px;
  }

  .flower-garden-left {
    left: -34px;
  }

  .flower-garden-right {
    right: -34px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 100svh;
    padding: 26px 18px 32px;
  }

  .hero-copy {
    width: min(100%, 360px);
    padding-bottom: 12px;
  }

  .hero h1 {
    max-width: 360px;
    margin: 0 auto;
    font-size: 44px;
  }

  .heart-name {
    top: 36%;
  }

  .heart-name span {
    font-size: 56px;
  }

  .flower-garden {
    top: 41.5%;
    z-index: -1;
    width: 118px;
    height: 160px;
    opacity: 0;
    filter: saturate(0.95) drop-shadow(0 0 14px rgba(255, 90, 168, 0.18));
  }

  .hero.is-bloom-complete .flower-garden {
    opacity: 0.72;
  }

  .flower-garden-left {
    left: -14px;
    transform: scale(0.72);
    transform-origin: left bottom;
  }

  .flower-garden-right {
    right: -14px;
    transform: scale(0.72);
    transform-origin: right bottom;
  }

  .flower {
    width: 44px;
  }

  .flower-small {
    display: none;
  }

  .flower-head {
    width: 48px;
    height: 48px;
  }

  .petal {
    width: 17px;
    height: 26px;
  }

  .flower-core {
    width: 14px;
    height: 14px;
  }

  .hero-actions {
    width: min(100%, 330px);
  }

  .primary-button.large,
  .secondary-button {
    width: 100%;
    min-height: 48px;
  }

  .motion-meter {
    display: none;
  }

}

@media (max-width: 390px) {
  .flower-garden {
    top: 42.5%;
  }

  .flower-garden-left {
    left: -12px;
    transform: scale(0.66);
  }

  .flower-garden-right {
    right: -12px;
    transform: scale(0.66);
  }
}

@media (max-width: 360px) {
  .flower-garden-left {
    left: -18px;
    transform: scale(0.6);
  }

  .flower-garden-right {
    right: -18px;
    transform: scale(0.6);
  }
}

@media (max-width: 560px) and (max-height: 740px) {
  .flower-garden {
    top: 39%;
  }

  .hero h1 {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
