/* ─── Design tokens ──────────────────────────────────────────────────── */
:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --navy-3: #334155;
  --green: #22C55E;
  --green-dark: #16A34A;
  --green-light: #4ADE80;
  --sky: #38BDF8;
  --amber: #FBBF24;
  --pink: #F472B6;
  --purple: #A78BFA;
  --orange: #FB923C;
  --text: #F8FAFC;
  --text-dim: #CBD5E1;
  --text-dim-2: #94A3B8;
  --surface: #1E293B;
  --surface-2: #334155;
  --border: rgba(148, 163, 184, 0.18);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-md: 0 10px 30px rgba(0,0,0,0.25);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 80px rgba(34,197,94,0.25);

  --wrap: 1120px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* ─── Reset / base ───────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Animated gradient backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(34,197,94,0.18), transparent 60%),
    radial-gradient(700px 500px at 10% 10%, rgba(56,189,248,0.12), transparent 60%),
    radial-gradient(600px 400px at 50% 110%, rgba(167,139,250,0.12), transparent 60%);
  z-index: -1;
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-40px, -20px, 0); }
}

/* ─── Typography ─────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 48px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p  { margin: 0; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-dim); max-width: 60ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-light);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.accent { color: var(--green); }

/* ─── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(15, 23, 42, 0.65);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.25em;
  font-size: 14px;
}
.brand img { border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(34,197,94,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(34,197,94,0.5);
  background: var(--green-light);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.2); }
.btn-small { padding: 10px 16px; font-size: 13px; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 8vw, 80px); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-dim-2);
}
.trust-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(34,197,94,0.8);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}
.hero-copy .lede { margin-top: 18px; }

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.phone {
  position: relative;
  width: min(360px, 85vw);
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(145deg, #0a0f1a 0%, #020617 100%);
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 0 0 1px rgba(0,0,0,0.6);
  transform: rotate3d(1, -0.2, 0, 6deg) rotate(-3deg);
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}
.phone:hover { transform: rotate3d(1, -0.2, 0, 2deg) rotate(-1deg); }
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--navy);
  border-radius: 36px;
  padding: 48px 18px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.25em;
  color: var(--green);
}
.phone-total {
  display: inline-flex;
  flex-direction: column;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--green);
  background: rgba(34,197,94,0.1);
  align-self: flex-start;
}
.phone-total .label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-light);
}
.phone-total .amount { font-size: 18px; font-weight: 900; }

.big-btn {
  position: relative;
  align-self: center;
  width: 170px; height: 170px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: breathe 4s ease-in-out infinite;
  overflow: hidden;
}
.big-btn-a {
  background: radial-gradient(circle at 30% 30%, var(--green-light), var(--green));
  border: 3px solid var(--green-dark);
}
.big-btn-b {
  background: radial-gradient(circle at 30% 30%, #7dd3fc, var(--sky));
  border: 3px solid #0284C7;
  animation-delay: 2s;
}
.big-btn-icon { width: 54px; height: 54px; object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }
.big-btn-count {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.big-btn-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.15;
  margin-top: 6px;
}
.big-btn-minus {
  position: absolute;
  bottom: 4px; left: 4px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #EF4444;
  color: white;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(239,68,68,0.5);
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.phone-cards {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.kid-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
}
.kid-card-a { border-color: var(--green); }
.kid-card-b { border-color: var(--sky); }
.kid-card-head { font-size: 11px; font-weight: 700; color: var(--text); }
.kid-card-amt { font-size: 18px; font-weight: 800; margin-top: 2px; }
.kid-card-lbl { font-size: 8px; color: var(--text-dim-2); text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── Sections ───────────────────────────────────────────────────────── */
.section { padding: clamp(60px, 10vw, 120px) 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.section-head .lede { margin: 16px auto 0; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  background: linear-gradient(180deg, rgba(30,41,59,0.5) 0%, rgba(30,41,59,0.25) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(34,197,94,0.35);
  background: linear-gradient(180deg, rgba(34,197,94,0.06) 0%, rgba(30,41,59,0.4) 100%);
}
.feature-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  margin-bottom: 20px;
  padding: 10px;
}
.feature-icon img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 15px; }

/* How it works */
.how { background: linear-gradient(180deg, transparent 0%, rgba(30,41,59,0.4) 50%, transparent 100%); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  position: relative;
  padding: 32px;
  background: rgba(15,23,42,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: var(--green);
  opacity: 0.4;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* CTA */
.cta { padding: clamp(60px, 10vw, 100px) 0; }
.cta-inner {
  background: radial-gradient(circle at 20% 0%, rgba(34,197,94,0.2), transparent 60%),
              linear-gradient(160deg, rgba(30,41,59,0.9), rgba(15,23,42,0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  top: -40%; left: -20%;
  width: 140%; height: 180%;
  background: radial-gradient(circle, rgba(34,197,94,0.08), transparent 60%);
  pointer-events: none;
}
.cta-icon {
  border-radius: 24px;
  margin: 0 auto 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.cta h2 { margin-bottom: 16px; }
.cta .lede { margin: 0 auto; }
.cta-form {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-form input {
  min-width: 280px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.8);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease;
}
.cta-form input:focus { border-color: var(--green); }
.cta-form-status {
  width: 100%;
  margin-top: 12px;
  font-size: 13px;
  color: var(--green-light);
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: rgba(30,41,59,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 22px;
  transition: border-color 160ms ease;
}
.faq-item[open] { border-color: rgba(34,197,94,0.35); }
.faq-item summary {
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--green);
  transition: transform 200ms ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding-bottom: 20px;
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

/* Footer */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.25em;
  font-size: 12px;
}
.footer-brand img { border-radius: 6px; }
.footer-meta { font-size: 13px; color: var(--text-dim-2); }

/* ─── Reveal on scroll ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
