/* ── Variables ───────────────────────────────────────────── */
:root {
  --accent:       #79c447;
  --accent-dark:  #5a9c2e;
  --accent-glow:  rgba(121, 196, 71, 0.25);
  --dark:         #0d1117;
  --dark-2:       #161b22;
  --dark-3:       #1c2128;
  --white:        #ffffff;
  --text:         #111827;
  --text-muted:   #6b7280;
  --text-light:   #9ca3af;
  --border:       #e5e7eb;
  --border-dark:  rgba(255, 255, 255, 0.08);
  --bg-tint:      #f7fdf2;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.14);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.97);
  border-bottom: 1px solid var(--border-dark);
  transform: translateZ(0);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: white; }
.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background 0.15s, opacity 0.15s !important;
}
.nav-cta:hover { background: var(--accent-dark); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(121,196,71,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(121,196,71,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(121,196,71,0.15);
  color: var(--accent);
  border: 1px solid rgba(121,196,71,0.25);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: white;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 40px;
}

/* Store buttons */
#download {
  scroll-margin-top: 80px;
}
.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  min-width: 160px;
}
.store-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.store-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.9;
}
.store-text {
  display: flex;
  flex-direction: column;
}
.store-label {
  font-size: 10px;
  opacity: 0.6;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.store-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

/* Light variant for CTA section */
.store-btn--light {
  background: white;
  border-color: var(--border);
  color: var(--text);
}
.store-btn--light:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Globe visual */
.hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 340px;
}
.globe-wrap {
  position: relative;
  width: 280px;
  height: 280px;
}
.globe-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121,196,71,0.18) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}
.globe {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2d5a1a 0%, #1a3510 40%, #0d1f08 100%);
  border: 1.5px solid rgba(121,196,71,0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: globe-spin 30s linear infinite;
}
.globe-svg {
  width: 100%;
  height: 100%;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(121,196,71,0.12);
}
.orbit-1 {
  inset: -30px;
  animation: orbit-anim 12s linear infinite;
}
.orbit-2 {
  inset: -55px;
  border-color: rgba(121,196,71,0.07);
  animation: orbit-anim 20s linear infinite reverse;
}

.hero-scroll-hint {
  display: flex;
  justify-content: center;
  padding-bottom: 28px;
  animation: bounce 2.5s ease-in-out infinite;
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes globe-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes orbit-anim {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 0.8; }
}

/* ── Shared section styles ───────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.section-label.light { color: var(--accent); }

/* ── Features ────────────────────────────────────────────── */
.features {
  padding: 96px 0;
  background: var(--white);
}
.features h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 56px;
  color: var(--text);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-dark);
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Globe section ───────────────────────────────────────── */
.globe-section {
  padding: 80px 0;
  background: var(--dark-2);
}
.globe-section-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.globe-section-text {
  flex: 1;
  max-width: 520px;
}
.globe-section-text h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: white;
  margin-bottom: 16px;
}
.globe-section-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.globe-section-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ── Data sources ────────────────────────────────────────── */
.sources {
  padding: 40px 0;
  background: var(--bg-tint);
  border-top: 1px solid #e8f5da;
  border-bottom: 1px solid #e8f5da;
}
.sources-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sources-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(121,196,71,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
}
.sources-icon svg { width: 18px; height: 18px; }
.sources-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.sources-text a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(90,156,46,0.3);
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.sources-text a:hover { color: var(--accent); }

/* ── Privacy ─────────────────────────────────────────────── */
.privacy {
  padding: 96px 0;
  background: var(--white);
}
.privacy h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}
.privacy-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 48px;
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.privacy-card {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}
.privacy-card:hover {
  border-color: rgba(121,196,71,0.2);
}
.privacy-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(121,196,71,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.privacy-card-icon svg { width: 20px; height: 20px; }
.privacy-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.privacy-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

/* ── CTA ─────────────────────────────────────────────────── */
.cta {
  padding: 96px 0;
  background: var(--dark);
}
.cta-inner {
  text-align: center;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  color: white;
  margin-bottom: 14px;
}
.cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.cta .store-buttons {
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--dark-3);
  border-top: 1px solid var(--border-dark);
  padding: 40px 0 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 700;
}
.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
  max-width: 600px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    padding-top: 56px;
    padding-bottom: 40px;
    gap: 48px;
  }
  .hero-visual { width: 100%; }
  .globe-wrap { width: 220px; height: 220px; }
  .feature-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .globe-section-content { flex-direction: column; gap: 40px; }
  .globe-section-stats { gap: 20px; }
  .stat-num { font-size: 28px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .store-buttons { flex-direction: column; }
  .store-btn { min-width: unset; width: 100%; max-width: 240px; }
  .cta .store-btn { max-width: 100%; }
  .globe-section-stats { gap: 16px; }
  .stat-divider { height: 32px; }
}
