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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1d1d1f;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #4A90D9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ===== Utilities ===== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6e6e73;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ===== Fade-in animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: #1d1d1f;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #4A90D9;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1d1d1f;
  margin: 4px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #4A90D9, #357ABD);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(74, 144, 217, 0.3);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero .tagline {
  font-size: 1.25rem;
  color: #6e6e73;
  max-width: 480px;
  margin: 0 auto 40px;
}

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

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.store-btn.apple {
  background: #1d1d1f;
  color: #fff;
}

.store-btn.apple:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.store-btn.google {
  background: #fff;
  color: #1d1d1f;
  border: 1.5px solid #d2d2d7;
}

.store-btn.google:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

.hero-mockup {
  max-width: 300px;
  margin: 0 auto;
}

.hero-mockup .iphone-frame {
  max-width: 280px;
  margin: 0 auto;
}

/* ===== iPhone Frame ===== */
.iphone-frame {
  position: relative;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 0 0 2px #333,
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.2);
}

.iphone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.iphone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
}

/* ===== Features ===== */
.features {
  background: #f5f5f7;
}

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

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.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: 12px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: #eef4fb;
  color: #4A90D9;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #6e6e73;
  line-height: 1.5;
}

/* ===== Who Is This For ===== */
.who-section {
  text-align: center;
}

.who-section .prose {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.125rem;
  color: #1d1d1f;
  line-height: 1.8;
}

/* ===== Screenshots ===== */
.screenshots {
  background: #f5f5f7;
  overflow: hidden;
}

.screenshots-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 16px;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshot-slot {
  flex: 0 0 240px;
  scroll-snap-align: center;
}

.screenshot-slot .iphone-frame {
  width: 100%;
}

/* ===== Download CTA ===== */
.download-cta {
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  background: #1d1d1f;
  color: #86868b;
  padding: 40px 0;
  font-size: 0.85rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-links a {
  color: #86868b;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #f5f5f7;
}

/* ===== Legal pages ===== */
.legal-page {
  padding: 100px 0 60px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: #6e6e73;
  margin-bottom: 40px;
  font-size: 0.9rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page ul {
  color: #424245;
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: #4A90D9;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  .hero-mockup .iphone-frame {
    max-width: 240px;
  }

  .screenshot-slot {
    flex: 0 0 200px;
  }

  .iphone-frame {
    border-radius: 36px;
    padding: 10px;
  }

  .iphone-frame::before {
    top: 10px;
    width: 80px;
    height: 22px;
    border-radius: 0 0 14px 14px;
  }

  .iphone-frame img {
    border-radius: 26px;
  }

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

  .section {
    padding: 60px 0;
  }

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

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
