:root {
  --bg: #fafaf9;
  --bg2: #f3f2ef;
  --card: #ffffff;
  --ink: #16181d;
  --muted: #5f6570;
  --line: #e6e4df;
  --accent: #5b4ff0;
  --accent2: #8b5cf6;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f14;
    --bg2: #12151c;
    --card: #161a22;
    --ink: #edeef2;
    --muted: #9aa1ad;
    --line: #252a34;
    --accent: #8b7bff;
    --accent2: #a78bfa;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
ul[class] { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 1.02rem;
}

.brand svg { width: 28px; height: 28px; flex-shrink: 0; }

.links {
  display: flex;
  gap: 28px;
}

.links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.links a:hover, .links a.active { color: var(--ink); }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 8px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
  }
  .links.open { display: flex; }
  .links a { display: block; padding: 10px 0; font-size: 1.05rem; }
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.hero { padding: 104px 0 64px; position: relative; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 18% -10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(520px 280px at 88% -5%, color-mix(in srgb, var(--accent2) 11%, transparent), transparent 70%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 14px 0 18px;
  max-width: 22ch;
}

.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 58ch;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 10px 0 12px;
}

.section-head { margin-bottom: 36px; max-width: 62ch; }
.section-head p { color: var(--muted); }

.alt {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Buttons ---------- */

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid var(--line);
  background: var(--card);
  transition: filter 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
}

.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost:hover { border-color: var(--muted); }

.hero-note {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.3);
}

.card h3 { font-size: 1.05rem; letter-spacing: -0.01em; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.icon svg { width: 20px; height: 20px; }

.num {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* ---------- App cards ---------- */

.app {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px;
}

.app + .app { margin-top: 16px; }

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.app-icon svg { width: 34px; height: 34px; }

.app h3 { font-size: 1.2rem; letter-spacing: -0.015em; margin: 8px 0 8px; }
.app p { color: var(--muted); font-size: 0.97rem; max-width: 64ch; }

.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 4px 11px;
  border-radius: 999px;
}

@media (max-width: 560px) {
  .app { flex-direction: column; }
}

/* ---------- CTA band ---------- */

.band {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 24px;
  padding: 44px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.band h2 { margin: 0 0 6px; }
.band p { opacity: 0.85; max-width: 48ch; }

.band .btn {
  background: #fff;
  color: #241a5e;
  border: none;
  flex-shrink: 0;
}

/* ---------- Prose (about / privacy) ---------- */

.prose { max-width: 72ch; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 1.3rem; margin-top: 36px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li, .prose p { color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }
.muted { color: var(--muted); }

.facts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 28px;
}

.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { font-weight: 600; font-size: 0.95rem; }

@media (max-width: 560px) {
  .facts dl { grid-template-columns: 1fr; gap: 2px; }
  .facts dt { margin-top: 12px; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-grid .card:hover { transform: none; box-shadow: none; }

.big-link {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.big-link:hover { text-decoration: underline; }

address { font-style: normal; color: var(--muted); line-height: 1.8; }

/* ---------- 404 ---------- */

.center-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 44px;
  margin-top: 40px;
  font-size: 0.93rem;
  color: var(--muted);
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.foot-brand { max-width: 40ch; }
.foot-brand .brand { color: var(--ink); margin-bottom: 10px; }

.foot-links ul { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

.legal {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 0.85rem;
  line-height: 1.8;
}

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