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

:root {
  --primary: #3F8E5B;
  --primary-light: #E6EFEA;
  --accent: #7A4A26;
  --bg: #FAFBFA;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #5A5A5A;
  --border: #E0E0E0;
  --nav-bg: rgba(250, 251, 250, 0.85);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo {
  height: 36px;
  width: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

/* ── Hero ── */
.hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 440px;
}

/* ── Download Buttons ── */
.download-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.store-btn:active {
  transform: translateY(0);
}

.app-store,
.google-play {
  background: var(--text);
  color: var(--bg);
}

.store-btn-text {
  display: flex;
  flex-direction: column;
}

.store-btn-small {
  font-size: 0.65rem;
  opacity: 0.8;
  line-height: 1;
}

.store-btn-large {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ── Hero Carousel ── */
.hero-visual {
  display: flex;
  justify-content: center;
}

.carousel {
  position: relative;
  width: 360px;
  max-width: 100%;
}

.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 16px;
  touch-action: pan-y;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.95);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--primary);
}

/* ── How It Works ── */
.how-it-works {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: -24px;
  margin-bottom: 48px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 56px;
  background: var(--primary-light);
  border-radius: 12px;
  padding: 4px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.tab {
  flex: 1;
  padding: 10px 20px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.tab.active {
  background: var(--primary);
  color: #FFFFFF;
}

.steps {
  display: none;
}

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

.step {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.step-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ── App Preview ── */
.app-preview {
  padding: 100px 0;
  background: var(--primary-light);
}

.preview-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.preview-scroll::-webkit-scrollbar {
  height: 6px;
}

.preview-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.preview-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.preview-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  text-align: center;
}

.preview-card img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 16px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
}

.preview-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.preview-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── CTA ── */
.cta {
  padding: 80px 0;
  background: var(--primary-light);
}

.cta-inner {
  text-align: center;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta .download-buttons {
  justify-content: center;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand .logo {
  height: 28px;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title,
.hero-subtitle,
.download-buttons,
.hero-visual {
  animation: fadeUp 0.6s ease-out both;
}

.hero-subtitle { animation-delay: 0.1s; }
.download-buttons { animation-delay: 0.2s; }
.hero-visual { animation-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

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

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .download-buttons {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .carousel {
    width: 280px;
  }

  .preview-card {
    flex: 0 0 240px;
  }

  .steps.active {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

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

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

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

  .store-btn {
    padding: 10px 18px;
  }

  .store-btn-large {
    font-size: 0.95rem;
  }
}
