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

/* ── Design tokens ── */
:root {
  --navy:          #0A0E1E;
  --navy-lift:     #0E1327;
  --navy-card:     #111830;
  --lime:          #E8FF3A;
  --lime-dim:      rgba(232,255,58,.15);
  --lime-border:   rgba(232,255,58,.22);
  --cream:         #F4F4F0;
  --cream-dim:     rgba(244,244,240,.60);
  --cream-mute:    rgba(244,244,240,.35);
  --border:        rgba(244,244,240,.08);
  --border-card:   rgba(232,255,58,.12);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill:999px;
  --nav-height: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--navy);
  color: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: calc(var(--nav-height) + var(--safe-top));
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--lime); color: var(--navy);
  padding: 8px 16px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700; z-index: 9999;
}
.skip-link:focus { top: 16px; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(10,14,30,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-brand img {
  width: 28px; height: 28px; border-radius: 7px;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; color: var(--cream-dim);
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--cream); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--lime); color: var(--navy);
  font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: opacity .15s;
}
.nav-cta:hover { opacity: .88; }

/* ── Containers ── */
.container       { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow{ max-width: 740px;  margin: 0 auto; padding: 0 24px; }

/* ── Hero ── */
.hero {
  padding: 96px 24px 104px;
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 64px;
}
.hero-copy { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center;
  background: var(--lime-dim); border: 1px solid var(--lime-border);
  color: var(--lime);
  border-radius: var(--radius-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  padding: 5px 14px; margin-bottom: 28px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.hero h1 .accent { color: var(--lime); }
.hero-tagline {
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--cream-dim);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-body {
  font-size: 17px;
  color: var(--cream-dim);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* App Store button */
.btn-appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream); color: var(--navy);
  padding: 12px 24px; border-radius: var(--radius-lg);
  font-weight: 700; font-size: 15px;
  transition: opacity .15s;
}
.btn-appstore:hover { opacity: .88; }
.btn-appstore svg { flex-shrink: 0; }
.btn-appstore-text { display: flex; flex-direction: column; line-height: 1.2; }
.btn-appstore-text small {
  font-size: 10px; font-weight: 500; opacity: .65; text-transform: uppercase; letter-spacing: .06em;
}
.btn-appstore-text span { font-size: 15px; font-weight: 700; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border);
  color: var(--cream-dim);
  font-size: 14px; font-weight: 500;
  padding: 12px 20px; border-radius: var(--radius-pill);
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--lime-border); color: var(--cream); }

/* Hero mark */
.hero-mark {
  flex-shrink: 0;
  width: clamp(200px, 28vw, 340px);
  display: flex; justify-content: center; align-items: center;
}
.hero-mark svg {
  width: 100%; height: auto;
  filter: drop-shadow(0 0 40px rgba(232,255,58,.18));
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Section ── */
.section { padding: 88px 24px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  color: var(--lime); text-transform: uppercase;
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px; color: var(--cream-dim);
  max-width: 520px; margin: 0 auto;
  line-height: 1.65;
}

/* ── Feature grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1120px; margin: 0 auto;
}
.feature-card {
  background: var(--navy-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover {
  border-color: rgba(232,255,58,.28);
  transform: translateY(-3px);
}
.feature-icon {
  font-size: 28px; margin-bottom: 18px; line-height: 1;
}
.feature-card h3 {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px; color: var(--cream-dim);
  line-height: 1.65;
}
.feature-highlight {
  color: var(--lime); font-weight: 600;
}

/* ── How it works ── */
.steps {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--lime);
  background: var(--lime-dim);
  border: 1px solid var(--lime-border);
  border-radius: var(--radius-md);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step p {
  font-size: 15px; color: var(--cream-dim); line-height: 1.65;
}

/* ── CTA band ── */
.cta-band {
  background: var(--navy-lift);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 17px; color: var(--cream-dim);
  margin-bottom: 36px; line-height: 1.65;
}
.cta-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}

/* ── Footer ── */
footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand {
  font-size: 13px; color: var(--cream-mute);
}
.footer-brand a {
  color: var(--cream-dim);
  transition: color .15s;
}
.footer-brand a:hover { color: var(--lime); }
.footer-links {
  display: flex; gap: 20px; list-style: none;
}
.footer-links a {
  font-size: 13px; color: var(--cream-mute);
  transition: color .15s;
}
.footer-links a:hover { color: var(--cream); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { flex-direction: column; text-align: center; padding: 72px 24px 80px; gap: 48px; }
  .hero-body { max-width: none; }
  .hero-actions { justify-content: center; }
  .hero-mark { width: clamp(160px, 40vw, 260px); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 64px 24px; }
  .hero { padding: 56px 20px 64px; }
  .hero-badge { font-size: 10px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
  .cta-band { padding: 64px 20px; }
}
