/* ── GeoNudge website — shared styles ───────────────────────────────────── */

:root {
  --red:    #FF6B6B;
  --amber:  #F59E0B;
  --grad:   linear-gradient(135deg, #FF6B6B 0%, #F59E0B 100%);
  --grad-h: linear-gradient(135deg, #ff5252 0%, #e08e00 100%);

  --bg:        #f8f8fa;
  --surface:   #ffffff;
  --surface2:  #f1f1f5;
  --border:    #e4e4ea;
  --text:      #1a1a2e;
  --text-2:    #5a5a7a;
  --text-3:    #8888aa;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 2px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.13);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0f0f18;
    --surface:  #1c1c2e;
    --surface2: #252538;
    --border:   #2e2e48;
    --text:     #f0f0f8;
    --text-2:   #a0a0c0;
    --text-3:   #606080;
    --shadow:    0 2px 16px rgba(0,0,0,.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { display: block; }

.logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface2);
  color: var(--text);
}

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
.page { max-width: 900px; margin: 0 auto; padding: 0 24px 80px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 72px 24px 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 24px;
}

.hero-badge span { font-size: .9rem; }

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ── App icon large ───────────────────────────────────────────────────────── */
.app-icon-wrap {
  margin: 0 auto 40px;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 48px rgba(255, 107, 107, .35);
}

.app-icon-wrap svg { width: 64px; height: 64px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 12px;
  padding: 13px 24px;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,107,107,.4);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(255,107,107,.55); }

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ── Section headings ─────────────────────────────────────────────────────── */
.section { margin-top: 72px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section > p {
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 36px;
}

/* ── Feature grid ─────────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,107,107,.15), rgba(245,158,11,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── Privacy / Terms prose ────────────────────────────────────────────────── */
.prose-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.prose-hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.prose-hero p {
  color: var(--text-2);
  font-size: .95rem;
}

.prose-hero .updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: .8rem;
  color: var(--text-3);
  background: var(--surface2);
  border-radius: 100px;
  padding: 4px 12px;
}

.prose { max-width: 720px; }

.prose h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 40px 0 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.prose h2 .h-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,107,107,.2), rgba(245,158,11,.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.prose p, .prose li {
  font-size: .97rem;
  color: var(--text-2);
  line-height: 1.75;
}

.prose ul, .prose ol {
  padding-left: 20px;
  margin: 10px 0;
}

.prose li { margin-bottom: 6px; }

.prose a { color: var(--red); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.prose strong { color: var(--text); font-weight: 600; }

.info-box {
  background: linear-gradient(135deg, rgba(255,107,107,.08), rgba(245,158,11,.08));
  border: 1px solid rgba(255,107,107,.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: .9rem;
  color: var(--text-2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-box .info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 32px 24px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-3);
  font-size: .85rem;
  transition: color .15s;
}

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

.footer-copy {
  font-size: .82rem;
  color: var(--text-3);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links a { padding: 6px 8px; font-size: .8rem; }
  .hero { padding: 48px 0 40px; }
  .app-icon-wrap { width: 96px; height: 96px; border-radius: 22px; }
}
