:root {
  --ground-deep: #0F2018;
  --ground: #14261C;
  --ground-lift: #1D3527;
  --ground-edge: #2F5540;

  --surface: #FBF6E9;
  --surface-alt: #EFE4CA;
  --surface-sunk: #D6C7A6;

  --gold: #F5B32E;
  --gold-deep: #C4841A;
  --sprout: #56C271;
  --sprout-deep: #2E7D4F;
  --clay: #E2603F;

  --ink: #2A2118;
  --ink-muted: #6B5B45;
  --chalk: #F2EEE2;
  --chalk-muted: #93B9A2;

  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --radius-pill: 44px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ground-deep);
  color: var(--chalk);
  font-family: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(86, 194, 113, 0.10), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(245, 179, 46, 0.08), transparent 40%);
}

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

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

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 32, 24, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ground-edge);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--chalk);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--sprout), var(--sprout-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 600;
  font-size: 15px;
  color: var(--chalk-muted);
}

.nav-links a:hover { color: var(--gold); }

/* ---------- hero ---------- */

.hero {
  padding: 96px 24px 72px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--ground-lift);
  border: 1px solid var(--ground-edge);
  color: var(--sprout);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  color: var(--chalk);
}

.hero h1 span { color: var(--gold); }

.hero p {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--chalk-muted);
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--gold-deep);
}

.btn-primary:hover { box-shadow: 0 6px 0 var(--gold-deep); }

.btn-ghost {
  background: transparent;
  color: var(--chalk);
  border: 1px solid var(--ground-edge);
}

.btn-ghost:hover { border-color: var(--sprout); color: var(--sprout); }

/* ---------- phone mock ---------- */

.hero-art {
  margin: 56px auto 0;
  max-width: 300px;
  aspect-ratio: 9/16;
  border-radius: 36px;
  background: linear-gradient(165deg, var(--ground-lift), var(--ground));
  border: 6px solid var(--ground-edge);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.ticker-mask {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 78%, transparent 100%);
}

.ticker-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  animation: ticker-scroll 14s linear infinite;
}

@keyframes ticker-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.hero-art .card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.hero-art .card-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.hero-art .card > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.hero-art .card small {
  display: block;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 11px;
  margin-top: 2px;
}

.hero-art .card .val { color: var(--sprout-deep); flex-shrink: 0; }

.hero-art .pill {
  position: relative;
  z-index: 2;
  align-self: center;
  margin-top: 6px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 0 var(--gold-deep);
  animation: pill-pulse 2.4s ease-in-out infinite;
}

@keyframes pill-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero-art .pill { animation: none; }
}

/* ---------- sections ---------- */

section { padding: 64px 24px; }

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 10px;
  font-weight: 800;
}

.section-head p {
  color: var(--chalk-muted);
  max-width: 480px;
  margin: 0 auto;
  font-size: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.15);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}

.band {
  background: var(--ground);
  border-top: 1px solid var(--ground-edge);
  border-bottom: 1px solid var(--ground-edge);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 34px;
  color: var(--gold);
  font-weight: 800;
}

.stat span {
  color: var(--chalk-muted);
  font-size: 14px;
  font-weight: 600;
}

.final-cta {
  text-align: center;
  padding: 80px 24px;
}

.final-cta h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 14px;
  font-weight: 800;
}

.final-cta p {
  color: var(--chalk-muted);
  margin: 0 0 32px;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--ground-edge);
  padding: 32px 24px;
}

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

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--chalk-muted);
  flex-wrap: wrap;
}

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

.footer-copy {
  color: var(--chalk-muted);
  font-size: 13px;
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 6px;
}

.legal .updated {
  color: var(--chalk-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.15);
}

.legal-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 32px 0 12px;
  color: var(--sprout-deep);
}

.legal-card h2:first-child { margin-top: 0; }

.legal-card p, .legal-card li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.legal-card ul { padding-left: 20px; }

.legal-card a { color: var(--gold-deep); font-weight: 700; }

.legal-card strong { color: var(--ink); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--chalk-muted);
  font-weight: 600;
  font-size: 14px;
}

.back-link:hover { color: var(--gold); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .legal-card { padding: 28px 22px; }
}
