/* ── Fonts ── */
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

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

:root {
  --bg: #1A3328;
  --card-bg: #223D2E;
  --surface: #2B4D3A;
  --text-primary: #F5F0E8;
  --text-secondary: #B0BFA8;
  --text-tertiary: #7A8E73;
  --accent: #4ADE80;
  --accent-soft: #22C55E;
  --separator: #345C46;
  --amber: #FBBF24;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
img { max-width: 100%; height: auto; }

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

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26, 51, 40, .85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--separator);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; color: var(--text-primary); }
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text-primary); opacity: 1; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--text-primary); color: var(--bg) !important;
  padding: 8px 18px; border-radius: 10px; font-weight: 600; font-size: .85rem;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(74,222,128,.2); opacity: 1; }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(74,222,128,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-icon {
  width: 120px; height: 120px; border-radius: 28px; margin-bottom: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; line-height: 1.1; margin-bottom: 16px; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--accent); }
.hero .subtitle { font-size: clamp(1.1rem, 2.5vw, 1.35rem); color: var(--text-secondary); max-width: 520px; margin: 0 auto 40px; line-height: 1.5; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text-primary); color: var(--bg);
  padding: 16px 32px; border-radius: 14px; font-weight: 600; font-size: 1.05rem;
  transition: transform .2s, box-shadow .2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(74,222,128,.25); opacity: 1; color: var(--bg); }
.hero-cta svg { width: 22px; height: 22px; }
.hero-note { margin-top: 16px; font-size: .85rem; color: var(--text-tertiary); }

/* ── Screenshots ── */
.screenshots { padding: 60px 0; overflow: hidden; }
.screenshots h2 { text-align: center; font-size: 1.8rem; font-weight: 700; margin-bottom: 32px; padding: 0 24px; }
.screenshots-scroll {
  display: flex; justify-content: center; gap: 20px; flex-wrap: nowrap; padding: 0 24px;
}
.phone-frame {
  width: 30%; max-width: 320px; height: auto; background: var(--card-bg); border-radius: 28px;
  border: 2px solid var(--separator); display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); font-size: .85rem; overflow: hidden; flex-shrink: 0;
}
.phone-frame img { width: 100%; height: auto; object-fit: contain; border-radius: 26px; }

/* ── Features ── */
.features { padding: 60px 24px; }
.features h2 { text-align: center; font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 40px; font-size: 1.05rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--card-bg); border-radius: 16px; padding: 28px;
  border: 1px solid var(--separator); transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.feature-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feature-header .feature-icon { margin-bottom: 0; }
.feature-header h3 { font-size: 1.1rem; font-weight: 600; }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: .92rem; line-height: 1.5; }

/* ── Challenges ── */
.challenges { padding: 60px 24px; }
.challenges h2 { text-align: center; font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.challenges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.challenge-tag {
  background: var(--surface); border: 1px solid var(--separator); border-radius: 12px;
  padding: 18px 16px; text-align: center; transition: transform .2s, border-color .2s;
}
.challenge-tag:hover { transform: translateY(-2px); border-color: var(--accent); }
.challenge-tag .emoji { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.challenge-tag .name { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 4px; }
.challenge-tag .count { color: var(--text-tertiary); font-size: .8rem; }

/* ── Stats ── */
.stats { padding: 40px 24px 60px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat-item .number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.stat-item .label { color: var(--text-secondary); font-size: .9rem; margin-top: 4px; }

/* ── CTA ── */
.cta-section { padding: 60px 24px; text-align: center; }
.cta-box {
  background: var(--card-bg); border: 1px solid var(--separator); border-radius: 24px;
  padding: 60px 40px; max-width: 640px; margin: 0 auto;
}
.cta-box h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.cta-box p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--separator); padding: 40px 24px 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-left { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-left img { width: 28px; height: 28px; border-radius: 6px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--text-tertiary); font-size: .85rem; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy { color: var(--text-tertiary); font-size: .8rem; }

/* ── Page (Privacy, Support) ── */
.page { padding: 120px 24px 80px; max-width: 720px; margin: 0 auto; }
.page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page .updated { color: var(--text-tertiary); font-size: .85rem; margin-bottom: 40px; }
.page h2 { font-size: 1.25rem; font-weight: 600; margin-top: 36px; margin-bottom: 12px; }
.page p, .page li { color: var(--text-secondary); font-size: .95rem; line-height: 1.7; margin-bottom: 12px; }
.page ul { padding-left: 20px; margin-bottom: 16px; }

.faq-item { background: var(--card-bg); border: 1px solid var(--separator); border-radius: 12px; padding: 20px 24px; margin-bottom: 12px; }
.faq-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; }

.contact-email {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); padding: 12px 20px; border-radius: 10px;
  border: 1px solid var(--separator); font-weight: 500; margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 840px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .challenges-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding: 80px 20px 24px; min-height: auto; align-items: flex-start; }
  .hero-icon { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 14px; }
  .hero h1 { margin-bottom: 10px; font-size: 2.2rem; }
  .hero .subtitle { margin-bottom: 20px; font-size: .95rem; }
  .hero-cta { padding: 12px 24px; font-size: .95rem; }
  .hero-note { margin-top: 8px; font-size: .8rem; }

  /* Screenshot carousel */
  .screenshots { padding: 16px 0 40px; }
  .screenshots h2 { margin-bottom: 24px; }
  .screenshots-scroll {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px; gap: 16px;
    scrollbar-width: none;
  }
  .screenshots-scroll::-webkit-scrollbar { display: none; }
  .phone-frame {
    width: 260px; height: auto;
    scroll-snap-align: center;
  }

  /* Features — inline emoji + header */
  .features { padding: 40px 24px; }
  .feature-icon { display: none; }
  .feature-header .feature-icon { display: block; font-size: 1.5rem; }
  .feature-card { padding: 20px; }

  /* Challenges */
  .challenges { padding: 40px 24px; }
  .challenges-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats */
  .stats { padding: 24px 24px 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* CTA & Footer */
  .cta-section { padding: 40px 24px; }
  .cta-box { padding: 40px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
