/* ─── Tokens ─────────────────────────────────────────────────────── */
:root {
  --primary: #16A34A;
  --primary-light: #22C55E;
  --primary-soft: #DCFCE7;
  --primary-tint: #F0FDF4;
  --gradient: linear-gradient(135deg, #16A34A 0%, #22C55E 100%);

  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-soft: #1E293B;
  --subtle: #475569;
  --muted: #94A3B8;
  --border: #E2E8F0;
  --border-soft: #F1F5F9;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, .12), 0 8px 16px rgba(15, 23, 42, .06);
  --shadow-glow: 0 18px 40px rgba(22, 163, 74, .35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

/* ─── Reset ──────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 22px 48px rgba(22, 163, 74, .42); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--text-soft);
  background: var(--surface);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ─── Brand mark ─────────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(22, 163, 74, .3);
}
.brand-name { font-size: 17px; color: var(--text); }

/* ─── Nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: rgba(248, 250, 252, .72);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-weight: 500;
  color: var(--subtle);
  font-size: 15px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600 !important;
  box-shadow: 0 8px 20px rgba(22, 163, 74, .25);
}
.nav-cta:hover { color: #fff !important; transform: translateY(-1px); }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -120px -120px auto auto;
  width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(34, 197, 94, .25), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 20px 0 18px;
  color: var(--text);
}
.lede {
  font-size: 18px;
  color: var(--subtle);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats {
  display: flex; gap: 32px;
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 24px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ─── Phone mockup ──────────────────────────────────────────────── */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-blob {
  position: absolute;
  width: 380px; height: 380px;
  background: var(--gradient);
  filter: blur(80px);
  opacity: 0.35;
  border-radius: 50%;
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 600px;
  background: #0f172a;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, .06);
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 22px;
  background: #0f172a;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 2;
}
.phone-screen {
  background: #fff;
  border-radius: 32px;
  width: 100%; height: 100%;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 32px 16px 16px;
}
.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 600; color: var(--text);
  padding: 0 6px 8px;
}
.status-icons { display: flex; gap: 4px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text); }
.screen-header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px 16px;
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
}
.screen-titles { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.screen-titles .muted { color: var(--muted); font-size: 11px; }
.screen-titles strong { font-size: 14px; color: var(--text); }
.bell { color: var(--subtle); }
.balance-card {
  background: var(--gradient);
  border-radius: 18px;
  padding: 16px;
  color: #fff;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 12px 24px rgba(22, 163, 74, .35);
}
.balance-label { font-size: 11px; opacity: .85; font-weight: 500; }
.balance-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.balance-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding-top: 8px; margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, .25);
}
.balance-row > div { display: flex; flex-direction: column; }
.balance-row span { font-size: 10px; opacity: .8; }
.balance-row strong { font-size: 14px; font-weight: 700; }
.tx-list { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.tx {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px;
  border-radius: 10px;
}
.tx + .tx { border-top: 1px solid var(--border-soft); border-radius: 0; }
.tx-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--border-soft);
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.tx-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tx-meta strong { font-size: 12px; color: var(--text); }
.tx-meta span { font-size: 10px; color: var(--muted); }
.tx-amt { font-size: 12px; font-weight: 700; }
.tx-amt.in { color: var(--primary); }
.tx-amt.out { color: #DC2626; }

/* ─── Section heads ──────────────────────────────────────────────── */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 16px 0 14px;
  color: var(--text);
  line-height: 1.15;
}
.section-lede { font-size: 17px; color: var(--subtle); margin: 0; }

/* ─── Features ───────────────────────────────────────────────────── */
.features { padding: 96px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 16px rgba(22, 163, 74, .25);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 14.5px;
  color: var(--subtle);
  margin: 0;
  line-height: 1.6;
}

/* ─── Screens ─────────────────────────────────────────────────────── */
.screens { padding: 96px 0; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.screens-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.shot { margin: 0; }
.shot-frame {
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.shot-frame.dark { background: #0f172a; border-color: #1e293b; }
.shot-placeholder {
  width: 100%; height: 100%;
  background: var(--primary-tint);
  border-radius: 22px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
}
.shot-frame.dark .shot-placeholder {
  background: rgba(34, 197, 94, .12);
}
.shot-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 4px 10px;
  background: rgba(255, 255, 255, .8);
  border-radius: 999px;
}
.shot-hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.shot-frame.dark .shot-tag { background: rgba(15, 23, 42, .6); }
.shot-frame.dark .shot-hint { color: rgba(241, 245, 249, .55); }

/* ─── Privacy ────────────────────────────────────────────────────── */
.privacy { padding: 96px 0; background: var(--surface); }
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.privacy h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 16px 0 16px;
  line-height: 1.15;
  color: var(--text);
}
.privacy p { color: var(--subtle); font-size: 16px; margin: 0 0 14px; }
.privacy-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.privacy-list li { display: flex; gap: 14px; align-items: flex-start; }
.bullet {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.privacy-list strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.privacy-list span { color: var(--subtle); font-size: 14px; line-height: 1.5; }

/* ─── Download ──────────────────────────────────────────────────── */
.download { padding: 96px 0; }
.download-card {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: #fff;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.download-card::after {
  content: '';
  position: absolute;
  inset: -100px -200px auto auto;
  width: 380px; height: 380px;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
  filter: blur(40px);
}
.download-card > * { position: relative; z-index: 1; }
.download-card h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  line-height: 1.1;
}
.download-card p { margin: 0; opacity: .92; font-size: 16px; }
.download-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.download .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .25);
}
.download .btn-primary:hover { box-shadow: 0 18px 36px rgba(15, 23, 42, .35); }
.download .btn-ghost {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.download .btn-ghost:hover { background: rgba(255, 255, 255, .25); border-color: rgba(255, 255, 255, .5); color: #fff; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand p { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 14px;
  color: var(--subtle);
  font-weight: 500;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 13px; color: var(--muted); margin: 0; }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-rail { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .download-card { padding: 40px 32px; flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .nav-inner { padding-top: 22px; padding-bottom: 22px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .screens-rail { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .phone { width: 260px; height: 520px; }
  .download { padding: 64px 0; }
  .download-card { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ─── Legal pages ───────────────────────────────────────────────── */
.legal { padding: 64px 0 96px; }
.legal-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.legal-head h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 16px 0 14px;
  color: var(--text);
}
.legal-head .lede { margin: 0 auto; }
.legal-meta {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  margin-top: 14px;
}
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow-sm);
}
.legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 32px 0 12px;
  padding-top: 8px;
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; }
.legal-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}
.legal-body p, .legal-body li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-soft);
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 14px; padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--primary); font-weight: 500; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--text); }
.legal-toc {
  background: var(--primary-tint);
  border: 1px solid var(--primary-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 0 0 32px;
}
.legal-toc-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc li { margin-bottom: 2px; font-size: 14px; }
.legal-toc a { color: var(--text-soft); }

/* Data-safety table */
.ds-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ds-table th, .ds-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.ds-table th {
  background: var(--primary-tint);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--primary-soft);
}
.ds-table tr:last-child td { border-bottom: none; }
.ds-table td:first-child { font-weight: 600; color: var(--text); width: 32%; }
.ds-pill {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  margin-right: 6px;
}
.ds-pill.warn { background: #FEF3C7; color: #B45309; }
.ds-pill.neutral { background: var(--border-soft); color: var(--subtle); }

@media (max-width: 640px) {
  .legal-body { padding: 32px 22px; }
  .ds-table th, .ds-table td { padding: 12px 12px; font-size: 14px; }
  .ds-table td:first-child { width: 38%; }
}
