:root {
  color-scheme: dark;
  --bg: #070914;
  --bg-soft: #0f1424;
  --ink: #fff8ef;
  --muted: #d9c9bd;
  --rose: #e94b72;
  --rose-dark: #96284d;
  --gold: #f5b85f;
  --teal: #5ed7d0;
  --line: rgba(255, 248, 239, 0.16);
  --glass: rgba(13, 15, 28, 0.58);
  --shadow: rgba(0, 0, 0, 0.42);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 12%, rgba(233, 75, 114, 0.14), transparent 28rem),
    radial-gradient(circle at 82% 42%, rgba(94, 215, 208, 0.12), transparent 24rem),
    linear-gradient(180deg, #070914 0%, #10101d 45%, #090a13 100%);
  color: var(--ink);
  overflow-x: hidden;
}

body::selection {
  background: rgba(245, 184, 95, 0.32);
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

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

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 5.5rem 1.2rem 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/hero-romantic.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.06);
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 9, 20, 0.22) 0%, rgba(7, 9, 20, 0.34) 46%, rgba(7, 9, 20, 0.92) 100%),
    radial-gradient(circle at 50% 42%, rgba(7, 9, 20, 0.08), rgba(7, 9, 20, 0.56) 70%);
}

.hero__content {
  width: min(100%, 48rem);
  text-align: center;
  padding: 0.5rem;
  animation: rise-in 900ms ease both;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 1.2rem 3.2rem var(--shadow);
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.1rem;
  line-height: 1.05;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.85rem;
  font-size: 1.8rem;
  line-height: 1.1;
}

.hero__subtitle {
  max-width: 39rem;
  margin: 0 auto 1.6rem;
  color: rgba(255, 248, 239, 0.86);
  font-size: 1.1rem;
  line-height: 1.65;
  text-shadow: 0 0.8rem 2.5rem var(--shadow);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  max-width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid rgba(94, 215, 208, 0.58);
  outline-offset: 3px;
}

.button--primary {
  color: #160711;
  background: linear-gradient(135deg, var(--gold), #ffd7a0 44%, #ff8eac 100%);
  box-shadow: 0 1rem 2.2rem rgba(233, 75, 114, 0.22);
}

.button--ghost {
  color: var(--ink);
  border-color: rgba(255, 248, 239, 0.32);
  background: rgba(10, 12, 23, 0.48);
  backdrop-filter: blur(1rem);
}

.button--wide {
  width: min(100%, 24rem);
}

.heart-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.heart {
  position: absolute;
  width: 1rem;
  height: 1rem;
  opacity: 0.62;
  transform: rotate(45deg);
  animation: float-heart var(--duration, 12s) linear infinite;
}

.heart::before,
.heart::after,
.heart {
  background: var(--heart-color, rgba(245, 184, 95, 0.72));
}

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

.heart::before {
  left: -50%;
}

.heart::after {
  top: -50%;
}

.intro-band {
  padding: 1.2rem 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(94, 215, 208, 0.1), rgba(233, 75, 114, 0.14), rgba(245, 184, 95, 0.11));
}

.intro-band p {
  max-width: 58rem;
  margin: 0 auto;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
  text-align: center;
}

.section-inner {
  width: min(100% - 2.2rem, 67rem);
  margin: 0 auto;
}

.section-inner--narrow {
  width: min(100% - 2.2rem, 46rem);
}

.letter-section,
.reasons-section,
.gallery-section,
.surprise-section {
  padding: 4.8rem 0;
}

.letter-section {
  background:
    radial-gradient(circle at 88% 18%, rgba(94, 215, 208, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(7, 9, 20, 0.88), rgba(15, 20, 36, 0.92));
}

.letter {
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
}

.letter p {
  margin-bottom: 1.15rem;
  color: rgba(255, 248, 239, 0.86);
  font-size: 1.1rem;
  line-height: 1.8;
}

.reasons-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(245, 184, 95, 0.08), transparent 34%),
    linear-gradient(220deg, rgba(94, 215, 208, 0.09), transparent 32%),
    linear-gradient(180deg, rgba(15, 20, 36, 0.92), rgba(7, 9, 20, 0.9));
}

.reasons-stage {
  position: relative;
  margin-top: 1.8rem;
}

.reasons-intro {
  max-width: 43rem;
  margin: -0.35rem 0 0;
  color: rgba(255, 248, 239, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.reasons-glimmer {
  position: absolute;
  inset: -1.4rem 0 auto;
  height: 5rem;
  pointer-events: none;
  opacity: 0.75;
  overflow: hidden;
}

.reasons-glimmer span {
  position: absolute;
  top: 50%;
  left: 12%;
  width: 5.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 184, 95, 0.88), transparent);
  transform: rotate(-12deg);
  animation: glimmer-drift 5.8s ease-in-out infinite;
}

.reasons-glimmer span:nth-child(2) {
  left: 46%;
  width: 7rem;
  background: linear-gradient(90deg, transparent, rgba(94, 215, 208, 0.74), transparent);
  animation-delay: -1.6s;
}

.reasons-glimmer span:nth-child(3) {
  left: 74%;
  width: 4.5rem;
  background: linear-gradient(90deg, transparent, rgba(233, 75, 114, 0.82), transparent);
  animation-delay: -3.2s;
}

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.reason {
  position: relative;
  isolation: isolate;
  min-height: 8.4rem;
  overflow: hidden;
  padding: 1.05rem;
  border: 1px solid rgba(255, 248, 239, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 28%, transparent), transparent 13rem),
    linear-gradient(150deg, rgba(255, 248, 239, 0.09), rgba(255, 248, 239, 0.035));
  box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(1rem) scale(0.98);
  transition:
    opacity 560ms ease var(--delay, 0ms),
    transform 560ms ease var(--delay, 0ms),
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.reason::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0 36%, rgba(255, 248, 239, 0.16) 44%, transparent 52%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 44%);
  opacity: 0;
  transform: translateX(-45%);
  transition: opacity 220ms ease, transform 700ms ease;
}

.reason::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-right: 1px solid color-mix(in srgb, var(--accent) 56%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 56%, transparent);
  opacity: 0.58;
}

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

.reason:hover,
.reason:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 56%, rgba(255, 248, 239, 0.2));
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.22);
  transform: translateY(-0.28rem);
}

.reason:hover::before,
.reason:focus-visible::before {
  opacity: 1;
  transform: translateX(55%);
}

.reason:focus-visible {
  outline: 3px solid rgba(94, 215, 208, 0.58);
  outline-offset: 4px;
}

.reason__shine {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.82;
}

.reason__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reason__mark {
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 1.4rem color-mix(in srgb, var(--accent) 58%, transparent);
  animation: tiny-heartbeat 2.6s ease-in-out infinite;
}

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

.reason__mark::before {
  left: -50%;
}

.reason__mark::after {
  top: -50%;
}

.reason__number {
  color: color-mix(in srgb, var(--accent) 76%, var(--ink));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
}

.reason__title {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1.12;
}

.reason__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.gallery-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(233, 75, 114, 0.14), transparent 24rem),
    linear-gradient(180deg, rgba(7, 9, 20, 0.9), rgba(13, 15, 28, 0.94));
}

.memory-carousel {
  position: relative;
  margin-top: 1.5rem;
}

.memory-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0.25rem;
  padding: 0.75rem 0.25rem 1.4rem;
  margin: -0.75rem -0.25rem -1.4rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.memory-viewport::-webkit-scrollbar {
  display: none;
}

.memory-viewport:focus-visible {
  outline: 3px solid rgba(94, 215, 208, 0.58);
  outline-offset: 6px;
}

.memory-track {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.memory-card {
  position: relative;
  flex: 0 0 min(84vw, 22rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 239, 0.055);
  scroll-snap-align: start;
  cursor: pointer;
  transform-origin: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.memory-card:hover,
.memory-card:focus-visible {
  border-color: rgba(245, 184, 95, 0.5);
  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.22);
  transform: translateY(-0.24rem);
}

.memory-card:focus-visible {
  outline: 3px solid rgba(94, 215, 208, 0.58);
  outline-offset: 5px;
}

.memory-card.is-popped {
  animation: memory-pop 740ms cubic-bezier(0.18, 0.86, 0.24, 1) both;
  border-color: rgba(245, 184, 95, 0.74);
  box-shadow: 0 1.4rem 3.4rem rgba(233, 75, 114, 0.24);
}

.memory-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  min-height: 14rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 20%, rgba(245, 184, 95, 0.34), transparent 9rem),
    radial-gradient(circle at 78% 70%, rgba(94, 215, 208, 0.2), transparent 10rem),
    linear-gradient(145deg, rgba(233, 75, 114, 0.34), rgba(12, 15, 29, 0.88));
}

.memory-card__media::after {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border: 1px solid rgba(255, 248, 239, 0.22);
  border-radius: 6px;
}

.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease, filter 360ms ease;
}

.memory-card:hover img,
.memory-card:focus-visible img,
.memory-card.is-popped img {
  filter: saturate(1.08) brightness(1.04);
  transform: scale(1.045);
}

.memory-card__placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.8rem;
  height: 4.8rem;
  border: 1px solid rgba(255, 248, 239, 0.24);
  border-radius: 50%;
  color: rgba(255, 248, 239, 0.88);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  background: rgba(7, 9, 20, 0.36);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.memory-card:hover .memory-card__placeholder,
.memory-card:focus-visible .memory-card__placeholder,
.memory-card.is-popped .memory-card__placeholder {
  box-shadow: 0 0 2rem rgba(245, 184, 95, 0.22);
  transform: scale(1.08);
}

.memory-card__body {
  padding: 1rem;
}

.memory-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.memory-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.memory-flying-heart {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 8;
  width: var(--size, 0.72rem);
  height: var(--size, 0.72rem);
  pointer-events: none;
  background: currentColor;
  filter: drop-shadow(0 0.45rem 0.8rem rgba(0, 0, 0, 0.28));
  transform: translate(-50%, -50%) rotate(45deg) scale(0.35);
  animation: memory-heart-rise 900ms ease-out forwards;
}

.memory-flying-heart::before,
.memory-flying-heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: currentColor;
}

.memory-flying-heart::before {
  left: -50%;
}

.memory-flying-heart::after {
  top: -50%;
}

.slider-button {
  position: absolute;
  top: 43%;
  z-index: 2;
  display: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 248, 239, 0.26);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(7, 9, 20, 0.68);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(0.9rem);
  cursor: pointer;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 2.15rem;
  line-height: 1;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.slider-button:hover,
.slider-button:focus-visible {
  transform: translateY(-50%) scale(1.05);
  border-color: rgba(245, 184, 95, 0.58);
}

.slider-button:focus-visible {
  outline: 3px solid rgba(94, 215, 208, 0.58);
  outline-offset: 3px;
}

.slider-button:disabled {
  opacity: 0.32;
  cursor: default;
}

.slider-button:disabled:hover {
  transform: translateY(-50%);
}

.slider-button--prev {
  left: -0.55rem;
  transform: translateY(-50%);
}

.slider-button--next {
  right: -0.55rem;
  transform: translateY(-50%);
}

.memory-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.memory-dot {
  width: 0.66rem;
  height: 0.66rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 248, 239, 0.3);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.memory-dot[aria-current] {
  transform: scale(1.35);
  background: linear-gradient(135deg, var(--gold), var(--rose));
}

.memory-dot:focus-visible {
  outline: 3px solid rgba(94, 215, 208, 0.58);
  outline-offset: 4px;
}

.surprise-section {
  min-height: 80svh;
  display: grid;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(245, 184, 95, 0.17), transparent 21rem),
    radial-gradient(circle at 16% 68%, rgba(94, 215, 208, 0.12), transparent 19rem),
    linear-gradient(180deg, rgba(13, 15, 28, 0.94), #070914);
}

.final-message {
  margin: 1.4rem auto 0;
  padding: 1.4rem 1.1rem;
  border: 1px solid rgba(245, 184, 95, 0.32);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(1rem);
  animation: reveal-message 560ms ease both;
}

.final-message__kicker {
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.final-message p:last-child {
  margin-bottom: 0;
  color: rgba(255, 248, 239, 0.9);
  font-size: 1.08rem;
  line-height: 1.75;
}

@media (min-width: 48rem) {
  .hero {
    min-height: 90svh;
    padding: 6.5rem 1.5rem 4rem;
  }

  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.9rem;
  }

  .hero__subtitle {
    font-size: 1.24rem;
  }

  .intro-band p {
    font-size: 1.2rem;
  }

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

  .memory-card {
    flex-basis: min(28rem, 48%);
  }

  .slider-button {
    display: grid;
  }
}

@media (min-width: 70rem) {
  h1 {
    font-size: 5.8rem;
  }

  .letter-section,
  .reasons-section,
  .gallery-section,
  .surprise-section {
    padding: 6.2rem 0;
  }
}

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

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

  #sky,
  .heart-field {
    display: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-heart {
  0% {
    opacity: 0;
    transform: translate3d(0, 2rem, 0) rotate(45deg) scale(0.75);
  }

  12%,
  80% {
    opacity: 0.62;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 1rem), -102svh, 0) rotate(45deg) scale(1.12);
  }
}

@keyframes glimmer-drift {
  0%,
  100% {
    opacity: 0.28;
    transform: translateX(-0.8rem) rotate(-12deg);
  }

  50% {
    opacity: 0.92;
    transform: translateX(1.4rem) rotate(-12deg);
  }
}

@keyframes tiny-heartbeat {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
  }

  18% {
    transform: rotate(45deg) scale(1.13);
  }

  34% {
    transform: rotate(45deg) scale(0.96);
  }

  48% {
    transform: rotate(45deg) scale(1.06);
  }
}

@keyframes memory-pop {
  0% {
    transform: translateY(0) scale(1);
  }

  42% {
    transform: translateY(-0.42rem) scale(1.045);
  }

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

@keyframes memory-heart-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.35);
  }

  18% {
    opacity: 0.92;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, -60px))) rotate(calc(45deg + var(--spin, 90deg))) scale(1.15);
  }
}

@keyframes reveal-message {
  from {
    opacity: 0;
    transform: translateY(0.9rem) scale(0.98);
  }

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