/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:           #0a120e;
  --bg-card:      #121d18;
  --bg-nav:       #08110dee;
  --accent:       #10B981;
  --accent-dim:   #059669;
  --text:         #e8f0ec;
  --text-muted:   #8aa39a;
  --text-faint:   #4d5f58;
  --border:       #1f2e27;
  --radius:       12px;
  --radius-lg:    20px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:        1140px;
  --transition:   0.25s ease;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #34d399; }
ul { list-style: none; }

/* ── Layout helpers ─────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section--sm { padding: 64px 0; }

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.navbar__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.navbar__brand:hover { color: var(--text); }
.navbar__links { display: flex; gap: 24px; font-size: 0.9rem; }
.navbar__links a { color: var(--text-muted); }
.navbar__links a:hover { color: var(--text); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 0;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}
.hero__title span { color: var(--accent); }
.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}
.hero__stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero__stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.hero__stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero__image {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__screenshot {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--accent);
  color: #06281d;
}
.btn--primary:hover {
  background: #34d399;
  color: #06281d;
  box-shadow: 0 8px 24px rgba(16,185,129,0.4);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* Google Play badge */
.play-badge {
  height: 52px;
  width: auto;
  border-radius: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.play-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}

/* ── Feature Cards ──────────────────────────────────────────────────────────── */
.features { background: var(--bg); }
.features__title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
}
.features__sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 56px;
}
.features__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.feature-card {
  flex: 0 0 calc(33.333% - 14px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(16,185,129,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.feature-card__desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; }

/* ── Screenshots Carousel ───────────────────────────────────────────────────── */
.carousel-section { background: #07100c; }
.carousel-section .section-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.carousel-section .section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 48px;
}
.carousel {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.carousel__track {
  display: grid;
}
.carousel__slide {
  grid-area: 1 / 1;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.carousel__slide.active {
  opacity: 1;
  pointer-events: auto;
}
.carousel__slide img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
  z-index: 10;
}
.carousel__btn:hover { border-color: var(--accent); background: rgba(16,185,129,0.1); }
.carousel__btn--prev { left: -60px; }
.carousel__btn--next { right: -60px; }
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel__dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ── Feature Detail Rows ────────────────────────────────────────────────────── */
.details { background: var(--bg); }
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-row--reverse .detail-row__img { order: 2; }
.detail-row--reverse .detail-row__text { order: 1; }
.detail-row__img {
  display: flex;
  justify-content: center;
}
.detail-row__img img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}
.detail-row__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.detail-row__title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.detail-row__desc { color: var(--text-muted); margin-bottom: 24px; }
.detail-row__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-row__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.detail-row__list li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 3px;
  opacity: 0.8;
}

/* ── Download CTA ───────────────────────────────────────────────────────────── */
.download {
  background: linear-gradient(135deg, #0c1c15 0%, #0a120e 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.download__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
}
.download__sub { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }
.download__badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.download__note { font-size: 0.85rem; color: var(--text-faint); }
.download__note span { margin: 0 8px; color: var(--text-faint); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer__brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  opacity: 0.7;
}
.footer__links { display: flex; gap: 20px; font-size: 0.875rem; }
.footer__links a { color: var(--text-muted); }
.footer__links a:hover { color: var(--text); }
.footer__attr {
  width: 100%;
  font-size: 0.78rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 16px;
}

/* ── Privacy page specific ──────────────────────────────────────────────────── */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.privacy-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 8px;
}
.privacy-content .updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 40px;
}
.privacy-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 40px;
  margin-bottom: 12px;
}
.privacy-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 24px;
  margin-bottom: 8px;
}
.privacy-content p { color: var(--text-muted); margin-bottom: 16px; }
.privacy-content ul { margin-left: 24px; margin-bottom: 16px; list-style: disc; }
.privacy-content ul li { color: var(--text-muted); margin-bottom: 6px; }
.privacy-content strong { color: var(--text); }
.privacy-content code {
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.875em;
}

/* ── Section helpers ────────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
}

/* ── Responsive — 768px breakpoint ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .section    { padding: 64px 0; }
  .section--sm { padding: 48px 0; }

  /* Navbar */
  .navbar__links { gap: 16px; }

  /* Hero */
  .hero { padding: 56px 0 0; }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__sub { max-width: 100%; }
  .hero__stats { justify-content: center; }
  .hero__cta { justify-content: center; }
  .hero__image { margin-top: 0; }
  .hero__screenshot { max-width: 240px; }

  /* Feature cards: 3 → 2 columns */
  .features__grid .feature-card { flex: 0 0 calc(50% - 10px); }

  /* Carousel */
  .carousel__slide img { max-height: 400px; }
  .carousel__btn--prev { left: -10px; }
  .carousel__btn--next { right: -10px; }

  /* Detail rows */
  .detail-row {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0;
  }
  .detail-row--reverse .detail-row__img { order: 0; }
  .detail-row--reverse .detail-row__text { order: 0; }
  .detail-row__img { order: -1; }
  .detail-row__img img { max-height: 400px; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  /* Feature cards: 2 → 1 column */
  .features__grid .feature-card { flex: 0 0 100%; }

  /* Carousel */
  .carousel__slide img { max-height: 340px; }

  /* Navbar: stack brand and links to avoid wrapping/overlap */
  .navbar__inner {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding: 12px 0;
    gap: 8px;
  }
  .navbar__links { gap: 14px; font-size: 0.8rem; }
}
