/* Zapp — components: nav, buttons, cards, hero, footer */

/* ─── Nav ──────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: var(--fw-bold);
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: var(--text);
}
.nav__logo-mark {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-100), var(--brand-200));
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: .9rem;
}
.nav__links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--text);
  opacity: .75;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
@media (max-width: 991px) {
  .nav__links { display: none; }
}
@media (max-width: 767px) {
  .nav__cta .btn--ghost { display: none; }
}

/* ─── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .75em 1.25em;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brand-500);
  color: var(--light-0);
  border-color: var(--brand-500);
}
.btn--primary:hover { background: var(--brand-100); border-color: var(--brand-100); }
.btn--secondary {
  background: var(--brand-100);
  color: var(--light-0);
  border-color: var(--brand-100);
}
.btn--secondary:hover { background: var(--brand-200); border-color: var(--brand-200); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--brand-100); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--brand-500); }
.btn--lg { padding: 1em 1.75em; font-size: var(--fs-lg); }
.section--dark .btn--ghost,
.section--dark .btn--outline { color: var(--text-on-dark); }
.section--dark .btn--outline { border-color: var(--border-dark); }

/* ─── Hero ─────────────────────────────────────── */
.hero {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero__inner { max-width: 880px; margin: 0 auto; }
.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -.035em;
  margin-bottom: var(--space-4);
}
.hero__sub {
  font-size: var(--fs-xl);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-6);
  line-height: var(--lh-relaxed);
}
.hero__cta {
  display: inline-flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.hero__visual {
  margin-top: var(--space-7);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--light-25);
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  color: var(--light-400);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  border: 1px solid var(--border);
}

/* ─── Logo bar (social proof) ──────────────────── */
.logobar {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.logobar__label {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}
.logobar__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-5);
  align-items: center;
  opacity: .55;
}
.logobar__logo {
  height: 32px;
  background: var(--light-100);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: var(--light-500);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
@media (max-width: 991px) { .logobar__row { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-4); } }
@media (max-width: 479px) { .logobar__row { grid-template-columns: repeat(2, 1fr); } }

/* ─── Feature section (visual + text) ──────────── */
.feature {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
.feature--vt { grid-template-columns: 1fr; }    /* visual top, text bottom */
.feature--lr { grid-template-columns: 1fr 1fr; }/* left/right split */
.feature--rl { grid-template-columns: 1fr 1fr; direction: rtl; }
.feature--rl > * { direction: ltr; }
@media (max-width: 991px) {
  .feature--lr, .feature--rl { grid-template-columns: 1fr; direction: ltr; }
}
.feature__text { max-width: 520px; }
.feature__text h2 { margin-bottom: var(--space-4); }
.feature__text p { font-size: var(--fs-lg); color: var(--text-muted); }
.feature__visual {
  border-radius: var(--radius-3xl);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  color: var(--light-400);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.feature--vt .feature__visual { aspect-ratio: 16 / 9; }
.feature--centered { text-align: center; }
.feature--centered .feature__text { margin: 0 auto; }
.feature--centered .feature__visual { margin-top: var(--space-7); }

/* ─── 3-col cards section ──────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 991px) { .cards { grid-template-columns: 1fr; } }
.card {
  padding: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-0);
  color: var(--brand-100);
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.card h3 { font-size: var(--fs-h6); margin-bottom: var(--space-3); }
.card p { color: var(--text-muted); font-size: var(--fs-md); margin: 0; }

/* ─── Stat strip ───────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding: var(--space-7);
  background: var(--bg-alt);
  border-radius: var(--radius-3xl);
  text-align: center;
}
.stat__num {
  font-size: var(--fs-h2);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-tight);
  color: var(--brand-100);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat__label { color: var(--text-muted); font-size: var(--fs-md); }
@media (max-width: 767px) { .stats { grid-template-columns: 1fr; } }

/* ─── Big bottom CTA ──────────────────────────── */
.cta-band {
  padding: var(--space-10) var(--space-7);
  background: var(--brand-500);
  color: var(--text-on-dark);
  border-radius: var(--radius-section);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: -40% -10% auto auto;
  width: 60%; height: 140%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-100) 65%, transparent), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-size: var(--fs-h1);
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
}
.cta-band p {
  font-size: var(--fs-xl);
  color: color-mix(in srgb, var(--text-on-dark) 70%, transparent);
  max-width: 560px;
  margin: 0 auto var(--space-6);
}

/* ─── Footer ──────────────────────────────────── */
.footer {
  background: var(--brand-500);
  color: var(--text-on-dark);
  padding-top: var(--space-9);
  padding-bottom: var(--space-7);
  margin-top: var(--space-8);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--border-dark);
}
.footer__brand p {
  color: color-mix(in srgb, var(--text-on-dark) 65%, transparent);
  max-width: 320px;
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
}
.footer__col h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--font-mono);
  color: color-mix(in srgb, var(--text-on-dark) 70%, transparent);
  margin-bottom: var(--space-4);
  font-weight: var(--fw-medium);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: var(--space-2); }
.footer__col a {
  color: color-mix(in srgb, var(--text-on-dark) 80%, transparent);
  font-size: var(--fs-md);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col a:hover { color: var(--text-on-dark); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  font-size: var(--fs-sm);
  color: color-mix(in srgb, var(--text-on-dark) 55%, transparent);
}
.footer__social { display: flex; gap: var(--space-3); }
.footer__social a {
  width: 32px; height: 32px;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  color: color-mix(in srgb, var(--text-on-dark) 70%, transparent);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.footer__social a:hover { border-color: var(--brand-100); color: var(--text-on-dark); }
@media (max-width: 991px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .footer__top { grid-template-columns: 1fr; } .footer__bottom { flex-direction: column; gap: var(--space-3); } }
