/* ===========================
   CUSTOM PROPERTIES
   =========================== */
:root {
  --bg:           #0d1117;
  --surface:      #161b22;
  --card:         #1c2128;
  --border:       #30363d;
  --accent:       #71a100;
  --accent-light: #8bc34a;
  --accent-glow:  rgba(113, 161, 0, 0.12);
  --text:         #e6edf3;
  --muted:        #7d8590;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --radius:       16px;
  --radius-sm:    10px;
  --nav-h:        64px;
  --transition:   0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

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

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

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

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

.accent {
  color: var(--accent-light);
}

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--text);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: contain;
  background: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: 10px;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  border-radius: 8px;
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 65% 45%, rgba(113, 161, 0, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 35% 35% at 15% 85%, rgba(113, 161, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 520px;
}

/* App icon */
.hero-icon-wrap {
  margin-bottom: 28px;
}

.hero-icon-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(113, 161, 0, 0.3);
}

.hero-icon-img {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(113, 161, 0, 0.3);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid rgba(113, 161, 0, 0.28);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 38px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Google Play button */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.play-badge:hover {
  background: #252b34;
  border-color: rgba(113, 161, 0, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.play-badge-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.play-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.play-badge-label {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.play-badge-store {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* ===========================
   PHONE FRAME (shared)
   =========================== */
.phone-frame {
  width: 220px;
  flex-shrink: 0;
  background: #12161f;
  border-radius: 38px;
  border: 2.5px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  scroll-snap-align: start;
}

.phone-notch {
  width: 56px;
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  margin: 0 auto 10px;
}

.phone-screen {
  background: var(--card);
  border-radius: 26px;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  position: relative;
}

.phone-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
  padding: 16px;
  line-height: 1.5;
}

.phone-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.45;
}

.phone-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s;
}

/* Hero device — slightly larger */
.hero-device .phone-frame {
  width: 258px;
}

/* ===========================
   SHARED SECTION HEADER
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ===========================
   FEATURES
   =========================== */
.features {
  padding: 110px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: rgba(113, 161, 0, 0.38);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: var(--accent-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-light);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 9px;
  color: var(--text);
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.68;
}

/* ===========================
   SCREENSHOTS
   =========================== */
.screenshots {
  padding: 110px 0;
}

.screenshots-track-wrap {
  overflow: hidden;
  margin-top: 0;
}

.screenshots-track {
  display: flex;
  gap: 22px;
  padding: 12px 24px 36px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  /* Center on wide screens */
  max-width: 1100px;
  margin: 0 auto;
}

.screenshots-track::-webkit-scrollbar {
  height: 4px;
}

.screenshots-track::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots-track::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

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

.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: contain;
  background: #fff;
}

.footer-brand-name {
  font-weight: 600;
  font-size: 0.9rem;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-copy {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: auto;
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 52px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-icon-wrap {
    display: flex;
    justify-content: center;
  }

  .hero-subtitle {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-device {
    justify-content: center;
  }

  .hero-device .phone-frame {
    width: 200px;
  }
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 4px;
    margin-left: 0;
    /* Hidden by default */
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
  }

  .nav-links.open {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
  }

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

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

  .footer-copy {
    margin-left: 0;
  }

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