/* zapp landing — soft-minimal, brand-first */

:root {
  --bg: #f7f7f7;
  --ink: #171717;
  --muted: #777777;
  --line: #e8e8e8;
  --line-strong: #d4d4d4;
  --surface: #ffffff;
  --hover: #f3f3f3;
  --inverse: #f5f5f5;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 8px;
  --max: 720px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 120ms;
}

html[data-theme="dark"] {
  --bg: #111111;
  --ink: #f5f5f5;
  --muted: #929292;
  --line: #2b2b2b;
  --line-strong: #3a3a3a;
  --surface: #191919;
  --hover: #1f1f1f;
  --inverse: #171717;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  display: flex;
  flex-direction: column;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(61, 139, 95, 0.12), transparent 60%),
    radial-gradient(700px 480px at 92% 8%, rgba(184, 146, 58, 0.08), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, #fff) 0%, var(--bg) 48%, color-mix(in srgb, var(--bg) 92%, #ececec) 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

html[data-theme="dark"] .atmosphere {
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(90, 171, 120, 0.1), transparent 60%),
    radial-gradient(700px 480px at 92% 8%, rgba(201, 168, 76, 0.06), transparent 55%),
    linear-gradient(180deg, #141414 0%, var(--bg) 45%, #0e0e0e 100%);
}

@keyframes drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(-1.5%, 1%, 0);
  }
}

.top {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 20;
  background: transparent;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn:hover {
  background: var(--hover);
  border-color: var(--line-strong);
}

.menu-btn span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 4px 20px 14px;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mobile-menu:not([hidden]) {
  display: flex;
}

main {
  flex: 1;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.hero {
  width: 100%;
  max-width: var(--max);
  padding: 24px 0 48px;
  animation: rise 700ms var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand-hero {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.4vw, 2.15rem);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.lede {
  margin: 18px 0 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 2.8vw, 1.05rem);
}

.cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: inherit;
  background: transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition:
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    color var(--fast) var(--ease),
    opacity var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn.sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.btn.lg {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

.btn.primary {
  background: var(--ink);
  color: var(--inverse);
}

.btn.primary:hover {
  opacity: 0.9;
}

.btn.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn.secondary:hover {
  background: var(--hover);
  border-color: var(--line-strong);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.btn.ghost:hover {
  background: var(--hover);
  color: var(--ink);
}

.foot {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 20px calc(28px + var(--safe-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .cta {
    width: 100%;
  }

  .cta .btn {
    flex: 1 1 auto;
  }

  .top,
  .mobile-menu,
  main,
  .foot {
    padding-inline: 16px;
  }
}

@media (max-width: 420px) {
  .brand-hero {
    font-size: 2.7rem;
  }

  .hero h1 {
    max-width: none;
  }

  .cta .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .hero {
    animation: none;
  }
}
