:root {
  --primary-dark: #353F47;
  --primary-bg: #FEF8ED;
  --accent: #A4CFF2;
  --white: #FFFFFF;
  --memory-black-20: #D7D9DA;
  --memory-black-40: #AEB2B5;
  --foggy-blue-10: #EEF6FC;
  --foggy-blue-20: #DCEDFA;
  --foggy-blue-70: #83A6C2;
  --foggy-blue-80: #627C91;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--primary-bg);
  color: var(--primary-dark);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(254, 248, 237, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(53, 63, 71, 0.08);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.nav-cta {
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--primary-dark);
  color: var(--primary-bg);
  transition: opacity 0.15s ease;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* Full-screen intro animation */
body.intro-active {
  overflow: hidden;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

.intro-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

#lottie-hero {
  width: 100%;
  height: 100%;
}

#lottie-hero svg {
  display: block;
  width: 100%;
  height: 100%;
}

.intro-skip {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 1;
  padding: 9px 18px;
  border: 1px solid rgba(254, 248, 237, 0.4);
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--primary-bg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.intro-skip:hover {
  background: rgba(0, 0, 0, 0.35);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 24px 64px;
  text-align: center;
  background: var(--primary-dark);
  color: var(--primary-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 130px;
  height: 130px;
  opacity: 0.6;
  animation: floatBlob ease-in-out infinite;
}

.blob-1 {
  top: 6%;
  left: 24%;
  width: 130px;
  height: 130px;
  animation-duration: 9s;
}

.blob-2 {
  top: 34%;
  right: 6%;
  width: 84px;
  height: 84px;
  opacity: 0.45;
  animation-duration: 7s;
  animation-delay: 1s;
}

.blob-3 {
  bottom: 30%;
  left: 5%;
  width: 96px;
  height: 96px;
  opacity: 0.45;
  animation-duration: 8s;
  animation-delay: 0.5s;
}

.blob-4 {
  bottom: 2%;
  right: 26%;
  width: 170px;
  height: 170px;
  opacity: 0.35;
  animation-duration: 10s;
  animation-delay: 2s;
}

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

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--foggy-blue-20);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-row {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(254, 248, 237, 0.45);
}

/* App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 12px 22px;
  border-radius: 12px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.appstore-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.appstore-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  font-weight: 600;
  font-size: 16px;
}

.appstore-badge-text small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}

.appstore-badge-dark {
  background: var(--primary-dark);
}

/* Story */
.story {
  padding: 48px 24px 80px;
}

.story-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.story-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--foggy-blue-70);
  margin-bottom: 16px;
}

.story-text {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--primary-dark);
}

/* Steps */
.steps {
  padding: 64px 24px;
  background: var(--foggy-blue-10);
}

.steps-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.steps h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 48px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-num {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--foggy-blue-70);
}

.step h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 12px 0 8px;
}

.step p {
  font-size: 15px;
  color: var(--foggy-blue-80);
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  margin-top: 10px;
}

.waveform span {
  width: 3px;
  height: 6px;
  background: var(--foggy-blue-70);
  border-radius: 2px;
  animation: waveBar 1.1s ease-in-out infinite;
}

.waveform span:nth-child(1) { height: 8px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.waveform span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.waveform span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.waveform span:nth-child(5) { height: 12px; animation-delay: 0.4s; }
.waveform span:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.waveform span:nth-child(7) { height: 7px; animation-delay: 0.6s; }

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.3); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.step-grid .step:nth-child(2) { transition-delay: 0.1s; }
.step-grid .step:nth-child(3) { transition-delay: 0.2s; }
.features-inner .feature-card:nth-child(2) { transition-delay: 0.08s; }
.features-inner .feature-card:nth-child(3) { transition-delay: 0.16s; }
.features-inner .feature-card:nth-child(4) { transition-delay: 0.24s; }

/* Features */
.features {
  padding: 80px 24px;
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(53, 63, 71, 0.06);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--foggy-blue-80);
}

/* Final CTA */
.cta-final {
  padding: 96px 24px;
  text-align: center;
  background: var(--primary-dark);
  color: var(--primary-bg);
}

.cta-final-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cta-final h2 {
  font-size: 28px;
  font-weight: 700;
}

.cta-final .appstore-badge {
  background: var(--accent);
  color: var(--primary-dark);
}

/* Footer */
.footer {
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--memory-black-40);
}

.footer-links {
  display: flex;
  gap: 20px;
}

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

/* Responsive */
@media (max-width: 720px) {
  .hero h1 {
    font-size: 34px;
  }
  .hero-sub {
    font-size: 16px;
  }
  .step-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-inner {
    grid-template-columns: 1fr;
  }
  .story-text {
    font-size: 19px;
  }
  .blob-1, .blob-4 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .waveform span {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
