:root {
  color-scheme: dark;
  --ink: #fff8f4;
  --muted: rgba(255, 248, 244, 0.72);
  --rose: #f6a9b8;
  --rose-deep: #9f405b;
  --champagne: #f4dcc3;
  --gold: #d9b46d;
  --black: #10090d;
  --panel: rgba(35, 18, 25, 0.66);
  --panel-soft: rgba(255, 248, 244, 0.1);
  --line: rgba(255, 248, 244, 0.18);
  --shadow: 0 24px 80px rgba(16, 9, 13, 0.38);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #10090d;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background-color: #10090d;
  background:
    radial-gradient(circle at 18% 8%, rgba(246, 169, 184, 0.42), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(217, 180, 109, 0.26), transparent 26rem),
    linear-gradient(145deg, #2a101a 0%, #5f1f35 32%, #e8aeb6 66%, #f2dbc3 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(16, 9, 13, 0.14), rgba(16, 9, 13, 0.62)),
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.12), transparent 18rem);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

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

.spark,
.heart {
  position: absolute;
  opacity: 0.55;
  filter: blur(0.1px);
  animation: float 9s ease-in-out infinite;
}

.spark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 247, 219, 0.82);
  box-shadow: 0 0 22px rgba(255, 235, 177, 0.9);
}

.heart {
  color: rgba(255, 248, 244, 0.44);
  font-size: 2rem;
}

.spark-1 {
  left: 15%;
  top: 16%;
}

.spark-2 {
  right: 18%;
  top: 38%;
  animation-delay: -2s;
}

.spark-3 {
  left: 72%;
  bottom: 18%;
  animation-delay: -5s;
}

.heart-1 {
  left: 7%;
  top: 62%;
}

.heart-2 {
  right: 9%;
  top: 12%;
  animation-delay: -3s;
}

.heart-3 {
  right: 20%;
  bottom: 9%;
  animation-delay: -6s;
}

.experience {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.section {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  gap: 2rem;
  padding: 4.5rem 1.1rem;
  overflow: hidden;
}

.section::after {
  content: "";
  position: absolute;
  inset-inline: 1rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 244, 0.26), transparent);
}

.hero {
  grid-template-columns: 1fr;
  padding-top: 3rem;
}

.hero-copy,
.section-heading,
.note-inner,
.final-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-copy {
  width: 100%;
  max-width: calc(100vw - 2.2rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #ffe0d7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1,
h2 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  font-size: clamp(2.8rem, 14vw, 6.8rem);
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(2.35rem, 12vw, 5rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.hero-subtitle,
.note-inner p,
.final-copy > p,
.section-heading h2 + p {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.hero-subtitle {
  max-width: min(21rem, calc(100vw - 2.2rem));
  font-size: 1rem;
}

.primary-action,
.next-button,
.quiz-actions button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-action {
  margin-top: 1rem;
  padding: 0 1.35rem;
  background: linear-gradient(135deg, #fff8f4, #f3d2b1 48%, #d9b46d);
  color: #2d111b;
  box-shadow: 0 16px 40px rgba(70, 26, 38, 0.26);
}

.primary-action:hover,
.next-button:hover,
.quiz-actions button:hover {
  transform: translateY(-2px);
}

.mockup-cluster {
  position: relative;
  min-height: 28rem;
}

.phone {
  position: relative;
  width: min(74vw, 20rem);
  margin: 0 auto;
  border: 10px solid #1a1115;
  border-radius: 2.4rem;
  background: #1a1115;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 80px rgba(16, 9, 13, 0.45);
}

.phone-main {
  transform: rotate(-4deg);
}

.phone-side {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(42vw, 12rem);
  transform: rotate(8deg);
}

.phone-notch {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  z-index: 3;
  width: 5rem;
  height: 1rem;
  border-radius: 999px;
  background: #150d11;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  min-height: min(31rem, 72vh);
  overflow: hidden;
  border-radius: 1.75rem;
  background: linear-gradient(160deg, rgba(246, 169, 184, 0.22), rgba(16, 9, 13, 0.82));
}

.intro-screen img,
.mini-memory img,
.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-screen img {
  position: absolute;
  inset: 0;
}

.screen-glass {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(16, 9, 13, 0.86)),
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.34), transparent 8rem);
}

.screen-caption {
  position: absolute;
  inset-inline: 1.2rem;
  bottom: 1.3rem;
  display: grid;
  gap: 0.35rem;
}

.screen-caption span,
.screen-caption strong {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 248, 244, 0.22);
  border-radius: 1.1rem;
  background: rgba(255, 248, 244, 0.12);
  backdrop-filter: blur(12px);
}

.mini-memory {
  min-height: min(18rem, 45vh);
}

.mini-memory::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(16, 9, 13, 0.82));
}

.mini-memory p {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.split-section {
  justify-items: center;
}

.content-card,
.note-inner,
.quiz-card,
.letter,
.video-card,
.music-player,
.modal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 248, 244, 0.16), rgba(30, 15, 22, 0.58));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.welcome-card,
.note-inner,
.quiz-card,
.letter {
  width: min(100%, 42rem);
  padding: clamp(1.4rem, 7vw, 3rem);
}

.welcome-card h2,
.note-inner h2,
.quiz-card h2,
.letter p,
.final-copy h2 {
  max-width: 100%;
}

.signature {
  margin: 1.5rem 0 0;
  color: #ffe4d9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-style: italic;
}

.next-button {
  justify-self: center;
  align-self: end;
  padding: 0 1.25rem;
  border: 1px solid rgba(255, 248, 244, 0.2);
  background: rgba(255, 248, 244, 0.12);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.product-note {
  justify-items: center;
  text-align: center;
}

.product-note h2 {
  margin-inline: auto;
}

.gallery-section,
.timeline-section,
.quiz-section,
.message-section,
.media-section,
.final-section {
  align-content: center;
}

.section-heading {
  max-width: 44rem;
}

.section-heading h2 {
  max-width: 14ch;
}

.gallery-phone {
  width: min(88vw, 22rem);
}

.gallery-screen {
  display: grid;
  min-height: 37rem;
  place-items: center;
  padding: 1.6rem;
}

.polaroid {
  position: absolute;
  width: 68%;
  padding: 0.65rem 0.65rem 1rem;
  border-radius: 1.1rem;
  background: #fff8f4;
  color: #2f151c;
  box-shadow: 0 18px 50px rgba(16, 9, 13, 0.24);
}

.polaroid img {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 0.8rem;
  object-fit: cover;
}

.polaroid span {
  display: block;
  padding-top: 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  text-align: center;
}

.polaroid-a {
  top: 2.4rem;
  left: 1.2rem;
  transform: rotate(-7deg);
}

.polaroid-b {
  right: 1rem;
  transform: rotate(5deg);
}

.polaroid-c {
  bottom: 2rem;
  left: 2rem;
  transform: rotate(-2deg);
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 248, 244, 0.12);
  backdrop-filter: blur(16px);
}

.timeline-card span {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: #f7d795;
  font-weight: 900;
}

.timeline-card p,
.video-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.quiz-section {
  justify-items: center;
  text-align: center;
}

.quiz-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.quiz-actions button {
  padding: 0 1rem;
  background: rgba(255, 248, 244, 0.94);
  color: #4c1a2b;
}

.answer-reveal {
  display: grid;
  max-height: 0;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition:
    max-height 420ms ease,
    opacity 320ms ease,
    transform 320ms ease;
}

.answer-reveal.is-visible {
  max-height: 14rem;
  opacity: 1;
  transform: translateY(0);
}

.burst-heart {
  margin-top: 1.4rem;
  color: #ffc1cc;
  font-size: 4rem;
  text-shadow: 0 0 28px rgba(255, 193, 204, 0.74);
  animation: pulse 1.3s ease-in-out infinite;
}

.answer-reveal p {
  margin: 0;
  color: #fff0ea;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.letter {
  justify-self: center;
}

.letter p:last-child {
  margin-bottom: 0;
  color: #fff5f0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 7vw, 2.75rem);
  line-height: 1.18;
}

.media-grid {
  display: grid;
  gap: 1rem;
}

.video-card,
.music-player {
  overflow: hidden;
}

.video-preview {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.video-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 9, 13, 0.05), rgba(16, 9, 13, 0.48));
}

.video-card h2,
.video-card p {
  padding-inline: 1.15rem;
}

.video-card h2 {
  max-width: 100%;
  margin-top: 1.1rem;
  font-size: 2rem;
}

.video-card p {
  padding-bottom: 1.25rem;
}

.play-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  width: 4.6rem;
  height: 4.6rem;
  margin: auto;
  place-items: center;
  border: 1px solid rgba(255, 248, 244, 0.36);
  border-radius: 50%;
  background: rgba(255, 248, 244, 0.22);
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.play-button span {
  width: 0;
  height: 0;
  margin-left: 0.25rem;
  border-top: 0.75rem solid transparent;
  border-bottom: 0.75rem solid transparent;
  border-left: 1.1rem solid #fff8f4;
}

.music-player {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.3rem;
  align-items: center;
  padding: 1.25rem;
}

.music-player h2 {
  max-width: 100%;
  margin: 0;
  font-size: 2rem;
}

.music-toggle {
  display: inline-flex;
  width: 3.6rem;
  height: 3.6rem;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff8f4, #e2bc73);
  cursor: pointer;
}

.pause-bar {
  width: 0.3rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #3a1521;
}

.music-player[data-playing="false"] .pause-bar:first-child {
  width: 0;
  height: 0;
  border-top: 0.62rem solid transparent;
  border-bottom: 0.62rem solid transparent;
  border-left: 0.92rem solid #3a1521;
  border-radius: 0;
  background: transparent;
}

.music-player[data-playing="false"] .pause-bar:last-child {
  display: none;
}

.wave {
  grid-column: 1 / -1;
  display: flex;
  height: 3.5rem;
  align-items: center;
  gap: 0.45rem;
}

.wave span {
  width: 100%;
  height: 35%;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe9d5, #d7b368);
  transform-origin: center;
  animation: wave 1.2s ease-in-out infinite;
  animation-play-state: paused;
}

.wave span:nth-child(2) {
  animation-delay: -0.2s;
}

.wave span:nth-child(3) {
  animation-delay: -0.4s;
}

.wave span:nth-child(4) {
  animation-delay: -0.6s;
}

.wave span:nth-child(5) {
  animation-delay: -0.8s;
}

.music-player[data-playing="true"] .wave span {
  animation-play-state: running;
}

.final-section {
  min-height: 96svh;
  justify-items: center;
  text-align: center;
}

.final-copy h2 {
  margin-inline: auto;
}

.final-copy p {
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 9, 13, 0.72);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(100%, 33rem);
  padding: 2rem;
}

.modal-card h2 {
  max-width: 100%;
  margin-bottom: 0;
  font-size: clamp(2rem, 9vw, 3.4rem);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgba(255, 248, 244, 0.18);
  border-radius: 50%;
  background: rgba(255, 248, 244, 0.1);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
}

.section > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 680ms ease,
    transform 680ms ease;
}

.section.section-active > *,
.section:first-child > * {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0.65rem, -1rem, 0) rotate(8deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.55);
  }
  50% {
    transform: scaleY(1.35);
  }
}

.floating-conversion {
  position: fixed;
  left: max(0.9rem, env(safe-area-inset-left));
  right: max(0.9rem, env(safe-area-inset-right));
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  z-index: 35;
  display: grid;
  gap: 0.62rem;
  pointer-events: none;
}

.floating-conversion a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 18px 42px rgba(35, 13, 23, 0.24);
}

.floating-back {
  color: #fff8f4;
  border: 1px solid rgba(255, 248, 244, 0.28);
  background: rgba(38, 18, 28, 0.72);
  backdrop-filter: blur(16px);
}

.floating-budget {
  color: #2f1320;
  background: linear-gradient(135deg, #ffe0a9 0%, #fff8f4 48%, #ffb9cf 100%);
  animation: premiumPulse 2.6s ease-in-out infinite;
}

@keyframes premiumPulse {
  0%,
  100% {
    box-shadow: 0 18px 42px rgba(35, 13, 23, 0.24), 0 0 0 rgba(255, 224, 169, 0);
  }

  50% {
    box-shadow: 0 22px 52px rgba(35, 13, 23, 0.32), 0 0 34px rgba(255, 224, 169, 0.34);
  }
}

@media (min-width: 760px) {
  .section {
    padding: 5rem clamp(2rem, 6vw, 5rem);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.82fr);
  }

  .mockup-cluster {
    min-height: 39rem;
  }

  .phone-main {
    width: min(28vw, 22rem);
  }

  .phone-side {
    right: 8%;
    width: min(17vw, 13rem);
  }

  .gallery-section,
  .timeline-section,
  .media-section {
    grid-template-columns: 0.82fr 1fr;
  }

  .gallery-section .next-button,
  .timeline-section .next-button,
  .media-section .next-button {
    grid-column: 1 / -1;
  }

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

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

  .media-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .music-player {
    align-self: end;
  }
}

@media (min-width: 1120px) {
  .timeline-card {
    padding: 1.45rem;
  }

  .gallery-phone {
    width: 22rem;
  }
}

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