/* ---------- Design tokens ---------- */
:root {
  --purple: #a855f7;
  --purple-deep: #9333ea;
  --purple-dark: #6b21a8;
  --pink-soft: #fde8ef;
  --pink: #f9c9dd;
  --lilac: #e9d5ff;
  --cream: #faf3ec;
  --coral: #f0532d;
  --ink: #1c1023;
  --ink-soft: #55416b;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 20px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--pink-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 232, 239, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand-heart {
  color: var(--purple-deep);
  font-size: 0.95em;
}

.brand-dot {
  color: var(--purple-deep);
}

.header-cta {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--white);
  background: var(--purple-deep);
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(147, 51, 234, 0.35);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(147, 51, 234, 0.45);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  background: linear-gradient(160deg, var(--pink-soft) 0%, #f3e0fb 55%, var(--lilac) 100%);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-blob-1 {
  width: 480px;
  height: 480px;
  background: var(--purple);
  top: -180px;
  right: -140px;
}

.hero-blob-2 {
  width: 380px;
  height: 380px;
  background: var(--pink);
  bottom: -160px;
  left: -120px;
}

.floating-heart {
  position: absolute;
  color: var(--purple);
  opacity: 0.25;
  pointer-events: none;
  animation: floatHeart 7s ease-in-out infinite;
}

.fh-1 { top: 18%; left: 6%; font-size: 2rem; animation-delay: 0s; }
.fh-2 { top: 60%; left: 44%; font-size: 1.3rem; animation-delay: 2s; }
.fh-3 { top: 12%; right: 38%; font-size: 1.6rem; animation-delay: 4s; }
.fh-4 { top: 15%; left: 8%; font-size: 2rem; color: var(--white); animation-delay: 1s; }
.fh-5 { bottom: 18%; right: 10%; font-size: 1.5rem; color: var(--white); animation-delay: 3s; }

@keyframes floatHeart {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--purple-dark);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.accent {
  color: var(--purple-deep);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}

/* App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 26px rgba(28, 16, 35, 0.3);
}

.appstore-badge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(28, 16, 35, 0.38);
}

.apple-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.badge-text small {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.85;
}

.badge-text strong {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(28, 16, 35, 0.25);
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.laurel {
  filter: hue-rotate(230deg);
}

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

/* Phone frames */
.phone-frame {
  border-radius: 34px;
  overflow: hidden;
  border: 6px solid var(--ink);
  box-shadow: 0 24px 60px rgba(107, 33, 168, 0.35);
  background: var(--ink);
}

.phone-frame img {
  border-radius: 28px;
  width: 100%;
}

.hero-phone {
  width: min(320px, 80%);
  margin-inline: auto;
  transform: rotate(3deg);
  transition: transform 0.4s ease;
}

.hero-phone:hover {
  transform: rotate(0deg) scale(1.02);
}

/* ---------- Sections ---------- */
section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

/* ---------- Features ---------- */
.features {
  background: var(--white);
  border-radius: 48px 48px 0 0;
  margin-top: -2.5rem;
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2.2rem 2rem;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(107, 33, 168, 0.15);
}

.card-pink { background: var(--pink-soft); }
.card-lilac { background: var(--lilac); }
.card-cream { background: var(--cream); }
.card-purple { background: #f3e8ff; }

.feature-emoji {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Gallery ---------- */
.gallery {
  background: linear-gradient(180deg, var(--white) 0%, #f6ecfc 100%);
  padding-bottom: 6rem;
}

.gallery-scroller {
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  padding: 1rem max(4%, calc((100% - 1120px) / 2)) 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
}

.shot {
  flex: 0 0 auto;
  width: min(250px, 66vw);
  scroll-snap-align: center;
  text-align: center;
}

.shot .phone-frame {
  border-width: 5px;
  border-radius: 30px;
  box-shadow: 0 16px 40px rgba(107, 33, 168, 0.22);
}

.shot .phone-frame img {
  border-radius: 25px;
}

.shot figcaption {
  margin-top: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--purple-dark);
  font-size: 1.02rem;
}

/* ---------- Stages ---------- */
.stages {
  background: #f6ecfc;
  padding-top: 1rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.pill {
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(107, 33, 168, 0.12);
  transition: transform 0.2s ease;
}

.pill:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.pill-pink { background: var(--pink-soft); }
.pill-lilac { background: var(--lilac); }
.pill-cream { background: var(--cream); }
.pill-purple { background: #e5c9fb; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 60%, var(--purple-dark) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 46rem;
  margin: 0 auto 1.2rem;
}

.cta-inner p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 38rem;
  margin: 0 auto 2.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand .brand-heart,
.footer-brand .brand-dot {
  color: var(--purple);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--purple);
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.55;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .floating-heart {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 840px) {
  .hero {
    padding: 3.5rem 0 4.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-actions {
    align-items: center;
  }

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

  section {
    padding: 3.5rem 0;
  }
}
