/* ── Custom Properties ─────────────────────────────────── */
:root {
  --primary: #00695C;
  --primary-dark: #142B27;
  --accent: #C6533C;
  --accent-light: #E8A070;
  --gold: #E8AA3C;
  --cream: #F0F5F4;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

/* ── Utilities ────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* 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);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  overflow: hidden;
}

/* Honeycomb pattern — real hexagonal grid matching the app icon */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.64' height='60'%3E%3Cpath d='M17.32 0L34.64 10L34.64 30L17.32 40L0 30L0 10Z M17.32 40L17.32 60' fill='none' stroke='%2380D8C9' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 34.64px 60px;
  opacity: 0.15;
  pointer-events: none;
}

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

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.app-store-badge:hover {
  transform: scale(1.05);
}

.app-store-badge img {
  height: 54px;
  width: auto;
}

/* ── Screenshots ──────────────────────────────────────── */
.screenshots {
  background: var(--cream);
}

.screenshots-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0 2rem;
}

.phone-frame {
  flex: 0 0 auto;
  width: 220px;
  height: 476px;
  border-radius: 28px;
  border: 4px solid var(--primary);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  border-radius: 10px;
  background: var(--primary);
  opacity: 0.15;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
}

/* ── Features ─────────────────────────────────────────── */
.features {
  background: var(--white);
}

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

.feature-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 105, 92, 0.12);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

.feature-card .learn-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── How It Works ─────────────────────────────────────── */
.how-it-works {
  background: var(--cream);
}

.steps {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.step-arrow {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 2rem;
  margin-top: 1rem;
  align-self: center;
}

/* ── CTA ──────────────────────────────────────────────── */
.cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}

.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.cta p {
  opacity: 0.85;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--accent-light);
  transition: color 0.2s ease;
}

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

/* ── Feature Detail Pages ─────────────────────────────── */
.feature-nav {
  background: var(--primary);
  padding: 1rem 1.5rem;
}

.feature-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.feature-nav a:hover {
  opacity: 1;
}

.feature-hero {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem 3.5rem;
}

.feature-hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.feature-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.feature-body {
  padding: 4rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.feature-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-body p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.screenshot-placeholder {
  background: var(--cream);
  border: 2px dashed rgba(0, 105, 92, 0.2);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 2rem 0;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem 3.5rem;
  }

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

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

  .hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

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

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .phone-frame {
    width: 180px;
    height: 390px;
  }

  .feature-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .cta h2 {
    font-size: 1.65rem;
  }

  .feature-hero h1 {
    font-size: 1.75rem;
  }
}
