﻿@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Quicksand:wght@300..700&display=swap');

:root {
  color-scheme: light;
  --ink: #1b0f12;
  --ink-soft: #3a2429;
  --rose: #ff5c7c;
  --rose-dark: #c53857;
  --peach: #ffb09b;
  --sun: #ffd38a;
  --mint: #d8f7e2;
  --cream: #fff4f2;
  --glass: rgba(255, 255, 255, 0.22);
  --glass-strong: rgba(255, 255, 255, 0.45);
  --shadow: 0 30px 60px rgba(34, 14, 18, 0.18);
  --scroll-y: 0px;
  --pulse-scale: 1.02;
  --beat-scale: 1.08;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Quicksand', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 203, 186, 0.9), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(255, 236, 188, 0.85), transparent 40%),
    radial-gradient(circle at 30% 85%, rgba(255, 179, 196, 0.7), transparent 45%),
    linear-gradient(120deg, #fff6f1, #ffe1e6 60%, #fff6f1);
  background-size: 140% 140%;
  animation: gradientMove 18s ease infinite;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Comfortaa', sans-serif;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  line-height: 1.7;
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.btn,
a,
.reason-pill,
.moment-card,
.album-item {
  -webkit-tap-highlight-color: transparent;
}

#perf-panel {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 170, 190, 0.4);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  font-size: 0.85rem;
  color: #3a2429;
  box-shadow: 0 12px 24px rgba(255, 156, 176, 0.2);
  max-width: 220px;
  backdrop-filter: blur(6px);
}

#perf-panel .perf-title {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

#perf-panel .perf-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.25rem;
}

#perf-panel .perf-section {
  margin: 0.5rem 0 0.2rem;
  font-weight: 600;
}

#perf-panel .perf-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0;
}

.debug-no-glow .glow,
.debug-no-glow .gradient-flow {
  opacity: 0 !important;
}

.debug-no-grain .grain {
  opacity: 0 !important;
}

.debug-no-stickers #sticker-layer,
.debug-no-bubbles #bubble-layer,
.debug-no-hearts #floating-hearts,
.debug-no-sparkles #sparkle-layer {
  display: none !important;
}

.debug-no-cardpulse .card-inner {
  animation: none !important;
}

.debug-no-shimmer .tilt-card::before,
.debug-no-shimmer .tilt-card::after {
  animation: none !important;
  transform: none !important;
}

.debug-no-heartbeat .heart-orbit svg {
  animation: none !important;
}

.debug-no-orbit .heart-orbit::before {
  animation: none !important;
}

.debug-no-reveal-blur .reveal {
  filter: none !important;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.gradient-flow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 160, 186, 0.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 230, 180, 0.5), transparent 60%);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: flow 20s ease-in-out infinite;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.7;
  animation: float 14s ease-in-out infinite;
  mix-blend-mode: screen;
}

.glow-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 102, 138, 0.65), transparent 70%);
  top: -120px;
  left: -80px;
}

.glow-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 214, 138, 0.55), transparent 70%);
  bottom: -120px;
  right: -60px;
  animation-delay: -4s;
}

.glow-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 162, 190, 0.55), transparent 70%);
  top: 50%;
  left: 55%;
  animation-delay: -7s;
}

#floating-hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  contain: paint;
}

#bubble-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  contain: paint;
}

#sticker-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  contain: paint;
}

.sticker {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size);
  height: var(--size);
  display: block;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 12px 20px rgba(255, 92, 124, 0.25));
  pointer-events: none;
  will-change: transform, opacity;
}

.bubble {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1) 55%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  animation: bubbleFloat var(--duration) ease-in-out infinite;
  filter: blur(0.2px);
  mix-blend-mode: screen;
}

.float-heart {
  position: absolute;
  bottom: -40px;
  width: var(--size);
  height: var(--size);
  background: var(--color);
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
  animation: floatUp var(--duration) linear infinite;
  opacity: 0;
  filter: blur(0.2px);
}

.float-heart::before,
.float-heart::after {
  content: '';
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: inherit;
}

.float-heart::before {
  top: calc(var(--size) * -0.5);
  left: 0;
}

.float-heart::after {
  left: calc(var(--size) * -0.5);
  top: 0;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23noise)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.4;
}

.perf-lite .glow,
.perf-lite .gradient-flow {
  opacity: 0.45;
  mix-blend-mode: normal;
}

.perf-lite .grain {
  opacity: 0.25;
}

.perf-lite .bubble {
  mix-blend-mode: normal;
}

.perf-lite .tilt-card::before,
.perf-lite .tilt-card::after {
  opacity: 0.2;
}

.perf-lite {
  --pulse-scale: 1.01;
  --beat-scale: 1.05;
}

#cursor-glow {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 200, 0.45), rgba(255, 170, 200, 0) 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, opacity 0.3s ease, filter 0.3s ease;
  opacity: 0.85;
  filter: blur(12px);
  z-index: 2;
}

#cursor-glow.is-pressed {
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 1;
}

#ripple-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

#sparkle-layer,
#celebration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  contain: paint;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 6vw, 6rem);
  min-height: 100vh;
  content-visibility: visible;
}

.hero-content {
  max-width: 560px;
  animation: rise 1s ease both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: badgeFloat 6s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  margin: 1.4rem 0 1rem;
  background: linear-gradient(120deg, #1b0f12, #c53857, #ff5c7c, #ffb09b);
  background-size: 200% 200%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleShine 6s ease infinite;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.accent {
  color: var(--rose-dark);
  font-weight: 600;
}

.tap-heart {
  text-align: center;
  color: var(--rose-dark);
  font-weight: 600;
  font-size: 0.8rem;
}

[data-love] {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

[data-love]:hover {
  filter: drop-shadow(0 12px 20px rgba(255, 92, 124, 0.25));
}

[data-love]:active {
  transform: scale(0.98);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(120deg, var(--rose), var(--peach));
  color: #fff;
  box-shadow: 0 18px 30px rgba(255, 92, 124, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: glow 4s ease-in-out infinite;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 24px 40px rgba(255, 92, 124, 0.4);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--rose-dark);
  box-shadow: none;
  border: 1px solid rgba(255, 92, 124, 0.2);
  animation: none;
}

.typewriter {
  margin-top: 2.5rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: var(--ink-soft);
  min-height: 1.8rem;
}

.counter {
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
  max-width: 420px;
  padding: 1.2rem 1.4rem;
  border-radius: 22px;
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.perf-lite .counter {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.counter-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 0.7rem;
}

.counter-card {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 0.6rem 0.4rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: translateZ(0);
  transform-origin: center;
  will-change: transform;
}

.counter-card.is-tick {
  animation: tick 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.counter-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.counter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.counter-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-card {
  perspective: 900px;
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s ease-out;
  will-change: transform;
  contain: layout paint;
}

.tilt-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  will-change: transform;
  contain: paint;
}

.tilt-card.is-active {
  box-shadow: 0 40px 70px rgba(255, 92, 124, 0.25);
}

.tilt-card::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.6), transparent 55%);
  opacity: 0.4;
  animation: shimmer 8s ease-in-out infinite;
  z-index: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.tilt-card::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.55), transparent 60%);
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: sweep 7s ease-in-out infinite;
  z-index: 0;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.card-inner {
  position: relative;
  z-index: 1;
  padding: 2.4rem;
  display: grid;
  gap: 2rem;
  animation: cardPulse 6s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 620px 620px;
  backface-visibility: hidden;
}

.card-top {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.album {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 32px rgba(255, 156, 176, 0.2);
  contain: layout paint;
  transform: translateZ(0);
}

.album-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.album-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.album-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.album-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 28px rgba(255, 156, 176, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transform: translateZ(0);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.album-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.55));
  opacity: 0.4;
  pointer-events: none;
}

.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.45s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.album-item:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 20px 34px rgba(255, 156, 176, 0.28);
}

.album-item:hover img {
  transform: scale(1.08);
}

.album-item.is-placeholder {
  background: linear-gradient(130deg, rgba(255, 195, 214, 0.6), rgba(255, 234, 208, 0.7));
}

.pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.heart-orbit {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  -webkit-tap-highlight-color: transparent
}

.heart-orbit::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 92, 124, 0.4);
  animation: spin 12s linear infinite;
}

.perf-lite .heart-orbit::before {
  animation-duration: 18s;
}



.heart-orbit svg {
  width: min(220px, 60%);
  filter: drop-shadow(0 20px 30px rgba(197, 56, 87, 0.3));
  transform-origin: center;
  animation: heartBeat 3.6s ease-in-out infinite;
  will-change: transform;
}

.spark {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.2) 60%, transparent 70%);
  animation: pulse 3.8s ease-in-out infinite;
  will-change: transform, opacity;
}

.spark-1 {
  top: 12%;
  right: 18%;
}

.spark-2 {
  bottom: 16%;
  left: 20%;
  animation-delay: -1.6s;
}

.spark-3 {
  bottom: 28%;
  right: 30%;
  animation-delay: -2.8s;
}

.card-bottom p {
  color: var(--ink-soft);
}

.signature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.signature .line {
  width: 50px;
  height: 1px;
  background: var(--rose-dark);
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 6rem);
  content-visibility: auto;
  contain-intrinsic-size: 900px 800px;
}

#moments.section {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.promise {
  position: relative;
}

/* .promise::before {
  content: '';
  position: absolute;
  inset: 1.5rem clamp(1rem, 5vw, 3rem);
  background: linear-gradient(135deg, rgba(255, 244, 242, 0.9), rgba(255, 223, 214, 0.85));
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 26px 50px rgba(255, 156, 176, 0.18);
  z-index: 0;
} */

.promise .final {
  position: relative;
  z-index: 1;
}

.section-title {
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.4rem;
}

.letter {
  background: var(--glass-strong);
  border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.letter.compact p {
  margin-bottom: 0.7rem;
}

.dropcap {
  float: left;
  font-size: 3rem;
  line-height: 1;
  font-weight: 600;
  margin-right: 0.6rem;
  color: var(--rose-dark);
}

.moments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.moment-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: 0 18px 30px rgba(255, 156, 176, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.moment-card::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.3;
  transform: translateX(-40%);
  animation: shimmerMove 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.moment-card > * {
  position: relative;
  z-index: 1;
}

.moment-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.7), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.moment-card.reveal {
  filter: none;
}

.moment-card:hover {
  transform: translateY(-6px) scale(1.01) rotate(-0.3deg);
  box-shadow: 0 24px 38px rgba(255, 156, 176, 0.28);
}

.moment-card:hover::after {
  opacity: 1;
}

.moment-time {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 92, 124, 0.15);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: stretch;
  --fly-x: 90px;
  --fly-y: 10px;
  contain: layout paint;
}

.reason-pill {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 250, 247, 0.98), rgba(255, 235, 228, 0.9)),
    repeating-linear-gradient(0deg, rgba(255, 205, 205, 0.25), rgba(255, 205, 205, 0.25) 1px, transparent 1px, transparent 24px);
  border: 1px solid rgba(255, 214, 214, 0.8);
  box-shadow:
    0 16px 26px rgba(255, 156, 176, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  -webkit-tap-highlight-color: transparent
}

.reason-pill.reveal {
  opacity: 0;
  transform: translateX(calc(var(--fly-x) * var(--fly-dir, 1))) translateY(var(--fly-y)) rotate(0deg) scale(0.9);
  filter: blur(6px);
}

.reason-pill::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 58px;
  height: 18px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 232, 187, 0.8);
  border: 1px solid rgba(255, 204, 140, 0.6);
  box-shadow: 0 4px 10px rgba(255, 170, 120, 0.25);
}

.reason-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.7), transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.reason-pill:hover {
  transform: translateY(-6px) rotate(var(--tilt, 0deg)) scale(1.02);
  box-shadow: 0 24px 34px rgba(255, 156, 176, 0.25);
  animation: wiggle 0.6s ease;
}

.reason-pill.is-visible {
  opacity: 1;
  filter: blur(0);
  animation:
    flyIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both,
    phraseFloat 10s ease-in-out infinite;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) + 0.9s);
  will-change: transform, opacity;
}

.reason-pill.is-visible:hover {
  animation-play-state: paused;
}

.reason-pill.is-visible:hover {
  will-change: transform, opacity;
}

.reason-pill:hover::before {
  opacity: 1;
}

.reason-pill.is-active {
  background:
    linear-gradient(180deg, rgba(255, 242, 232, 0.98), rgba(255, 221, 208, 0.9)),
    repeating-linear-gradient(0deg, rgba(255, 205, 205, 0.28), rgba(255, 205, 205, 0.28) 1px, transparent 1px, transparent 24px);
  border-color: rgba(255, 92, 124, 0.25);
  box-shadow: 0 26px 36px rgba(255, 92, 124, 0.22);
}

.reason-pill:nth-child(odd) {
  --tilt: -1.5deg;
  --fly-dir: -1;
}

.reason-pill:nth-child(even) {
  --tilt: 1.4deg;
  --fly-dir: 1;
}

.reason-pill:nth-child(3n) {
  --tilt: -0.8deg;
}

.final {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(255, 245, 244, 0.9), rgba(255, 222, 210, 0.8));
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.final h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 0.4rem;
}

.final p {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
}

.footer {
  padding: 2.5rem;
  text-align: center;
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  filter: blur(10px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
  transition-delay: var(--delay, 0s);
  will-change: transform, opacity, filter;
}

.perf-lite .reveal {
  filter: none;
}

.reveal[data-reveal="slide-up"] {
  transform: translateY(44px);
}

.reveal[data-reveal="float"] {
  transform: translateY(26px) scale(0.98);
}

.reveal[data-reveal="pop"] {
  transform: scale(0.92);
}

.reveal[data-reveal="slide-left"] {
  transform: translateX(-36px);
}

.reveal[data-reveal="slide-right"] {
  transform: translateX(36px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.ripple {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 92, 124, 0.45);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 65%);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 1.3s ease-out forwards;
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.1) 60%, transparent 70%);
  animation: sparkle 0.8s ease-out forwards;
}

.perf-lite .sparkle {
  animation-duration: 0.6s;
}

.heart-flight {
  position: absolute;
  width: var(--size, 18px);
  height: var(--size, 18px);
  background: var(--rose);
  transform: rotate(45deg);
  border-radius: 4px;
  filter: drop-shadow(0 8px 12px rgba(255, 92, 124, 0.35));
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.heart-flight::before,
.heart-flight::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.heart-flight::before {
  top: -50%;
  left: 0;
}

.heart-flight::after {
  left: -50%;
  top: 0;
}

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

@keyframes flow {
  0% { transform: translate(-2%, -2%) rotate(0deg); }
  50% { transform: translate(2%, 2%) rotate(180deg); }
  100% { transform: translate(-2%, -2%) rotate(360deg); }
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 18px 30px rgba(255, 92, 124, 0.35); }
  50% { box-shadow: 0 22px 38px rgba(255, 92, 124, 0.5); }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(var(--beat-scale)); }
  60% { transform: scale(0.98); }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes tick {
  0% { transform: translateZ(0) scale(1); }
  18% { transform: translateZ(0) scale(1.06); }
  38% { transform: translateZ(0) scale(0.98); }
  62% { transform: translateZ(0) scale(1.03); }
  100% { transform: translateZ(0) scale(1); }
}

@keyframes shimmer {
  0% { transform: translate3d(-10%, -10%, 0); }
  50% { transform: translate3d(10%, 10%, 0); }
  100% { transform: translate3d(-10%, -10%, 0); }
}

@keyframes sweep {
  0% { transform: translate3d(-20%, 0, 0) rotate(0deg); }
  50% { transform: translate3d(20%, 0, 0) rotate(8deg); }
  100% { transform: translate3d(-20%, 0, 0) rotate(0deg); }
}

@keyframes cardPulse {
  0%, 100% { transform: translate3d(0, 0, 0) scale3d(1, 1, 1); }
  50% { transform: translate3d(0, 0, 0) scale3d(var(--pulse-scale), var(--pulse-scale), 1); }
}

@keyframes shimmerMove {
  0% { transform: translate3d(-40%, 0, 0); }
  50% { transform: translate3d(30%, 0, 0); }
  100% { transform: translate3d(110%, 0, 0); }
}

@keyframes phraseFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--tilt, 0deg)); }
  50% { transform: translate3d(0, -6px, 0) rotate(var(--tilt, 0deg)); }
}

@keyframes flyIn {
  0% {
    opacity: 0;
    transform: translate3d(calc(var(--fly-x) * var(--fly-dir, 1)), var(--fly-y), 0) rotate(0deg) scale(0.9);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(var(--tilt, 0deg)) scale(1);
    filter: blur(0);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sparkle {
  from {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -70%) scale(0.4);
    opacity: 0;
  }
}

@keyframes wiggle {
  0% { transform: translateY(-4px) rotate(0deg); }
  30% { transform: translateY(-6px) rotate(-2deg); }
  60% { transform: translateY(-4px) rotate(2deg); }
  100% { transform: translateY(-4px) rotate(0deg); }
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(4.2);
    opacity: 0;
  }
}

@keyframes pop {
  0% {
    transform: translate(-50%, -50%) scale(0.4) rotate(45deg);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -140px) scale(1.2) rotate(45deg);
    opacity: 0;
  }
}

@keyframes floatUp {
  0% {
    transform: translateX(-50%) translateY(0) scale(var(--scale)) rotate(45deg);
    opacity: 0;
  }
  12% {
    opacity: var(--opacity);
  }
  100% {
    transform: translateX(calc(-50% + var(--drift))) translateY(-120vh) scale(var(--scale)) rotate(45deg);
    opacity: 0;
  }
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(0.9);
    opacity: 0;
  }
  20% {
    opacity: var(--opacity);
  }
  50% {
    transform: translateY(-60vh) translateX(var(--drift)) scale(1);
  }
  100% {
    transform: translateY(-120vh) translateX(calc(var(--drift) * 1.6)) scale(0.95);
    opacity: 0;
  }
}

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

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-card {
    order: 1;
  }

  .hero-content {
    order: 0;
  }

  .card-inner {
    padding: 2rem;
  }

  .section,
  .card-inner {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reasons {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    --fly-x: 60px;
    --fly-y: 8px;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .badge {
    font-size: 0.7rem;
  }

  .promise::before {
    inset: 1rem;
  }

  .counter-grid {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }

  .counter-value {
    font-size: 1.2rem;
  }

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

  .album-item {
    aspect-ratio: 3 / 4;
  }

  .reasons {
    grid-template-columns: 1fr;
    --fly-x: 26px;
    --fly-y: 6px;
  }

  .reason-pill {
    --tilt: 0deg;
    font-size: 1rem;
  }

  .reason-pill:hover {
    transform: translateY(-3px);
  }

  .reason-pill::before {
    width: 48px;
  }
}

@media (pointer: coarse) {
  #cursor-glow {
    display: none;
  }

  .section,
  .card-inner {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #cursor-glow,
  #ripple-layer,
  #floating-hearts,
  #bubble-layer,
  #sticker-layer {
    display: none !important;
  }
}
