/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #FBF6F3;
  --color-bg-warm: #F2E8E2;
  --color-text: #3C3C3A;
  --color-text-light: #7A7370;
  --color-accent: #C4968A;
  --color-accent-soft: #E8CCC4;
  --color-white: #FFFFFF;
  --color-card-bg: #FFFFFF;
  --color-border: #E8DDD6;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1120px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(251, 246, 243, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 8px 20px;
  border-radius: 100px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-bg-warm);
}

.nav-link.active {
  color: var(--color-text);
  background: var(--color-bg-warm);
}

/* ─── Hero ─── */
.hero {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto 24px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--color-text);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(60, 60, 58, 0.2);
}

.store-btn svg {
  width: 22px;
  height: 22px;
}

.store-btn-label {
  text-align: left;
  line-height: 1.2;
}

.store-btn-label small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.75;
  display: block;
}

/* ─── Phone Mockup ─── */
.hero-mockup {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.phone-frame {
  width: 260px;
  height: 520px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  background: var(--color-bg-warm);
  position: relative;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-style: italic;
}

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

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 56px;
  color: var(--color-text);
}

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

.feature-card {
  background: var(--color-card-bg);
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ─── Testimonials ─── */
.testimonials {
  padding: 80px 0;
  background: var(--color-bg-warm);
}

.testimonials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--color-card-bg);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid var(--color-border);
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ─── CTA ─── */
.cta {
  padding: 100px 0;
  text-align: center;
}

.cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.cta h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 36px;
}

/* ─── Footer ─── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

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

.footer-links a {
  font-size: 0.82rem;
  color: var(--color-text-light);
  transition: color 0.2s;
}

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

/* ─── Scroll Fade-in ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-child > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-child.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-child.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-child.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-child.visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-child.visible > *:nth-child(4) { transition-delay: 0.3s; }
.fade-in-child.visible > *:nth-child(5) { transition-delay: 0.4s; }
.fade-in-child.visible > *:nth-child(6) { transition-delay: 0.5s; }

/* Page-load fade-in (for elements visible on arrival) */
.fade-in-load {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.7s ease forwards;
}

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

.fade-in-load.delay-1 { animation-delay: 0.1s; }
.fade-in-load.delay-2 { animation-delay: 0.2s; }
.fade-in-load.delay-3 { animation-delay: 0.3s; }
.fade-in-load.delay-4 { animation-delay: 0.4s; }
.fade-in-load.delay-5 { animation-delay: 0.5s; }
.fade-in-load.delay-6 { animation-delay: 0.6s; }

/* Screenshot staggered fade */
.fade-in-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-stagger.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-stagger.stagger-2 {
  transition-delay: 0.2s;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-mockup {
    gap: 12px;
  }

  .phone-frame {
    width: 180px;
    height: 360px;
    border-radius: 24px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .header-inner {
    padding: 0 20px;
  }

  .features-inner,
  .testimonials-inner,
  .cta-inner,
  .hero-inner {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .phone-frame {
    width: 150px;
    height: 300px;
    border-radius: 20px;
  }
}
