:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #15161b;
  --ink-2: #4a4c57;
  --ink-3: #8a8c96;
  --line: #ebe9e3;
  --chip: #f1efe9;
  --accent: #5b4bff;
  --accent-2: #ff6a4d;
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 8px 24px rgba(20, 20, 30, .06);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13;
    --surface: #17181e;
    --ink: #f3f3f5;
    --ink-2: #b7b8c2;
    --ink-3: #7d7f8a;
    --line: #26272f;
    --chip: #1f2027;
    --accent: #8a7dff;
    --accent-2: #ff8a70;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; }
.brand b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { background: var(--chip); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.nav-links a.btn-dark, .nav-links a.btn-dark:hover { color: var(--bg); }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 25%, transparent); }
h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02; letter-spacing: -.035em;
  margin: 20px 0 20px; font-weight: 800;
}
h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.collage {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  transform: rotate(-8deg);
  padding: 20px;
}
.collage::before {
  content: ""; position: absolute; inset: -10%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
              radial-gradient(closest-side at 80% 80%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 70%);
  z-index: -1; filter: blur(10px);
}
.collage img {
  width: 100%; aspect-ratio: 1; border-radius: 24%;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.collage img:nth-child(2n) { animation-delay: -2s; }
.collage img:nth-child(3n) { animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .collage img { animation: none; } }

/* Stats */
.stats { border-block: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--ink-3); font-size: 14px; font-weight: 600; }

/* Sections */
section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 8px; font-weight: 800; }
.sub { color: var(--ink-2); margin: 0; font-size: 17px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.app {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.app:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.app[hidden] { display: none; }
.app-top { display: flex; gap: 14px; align-items: center; }
.app-top img { width: 64px; height: 64px; border-radius: 24%; flex: none; box-shadow: 0 0 0 1px var(--line); }
.app h3 { margin: 0; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.app .cat { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.app p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; flex: 1; }
.stores { display: flex; gap: 8px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 10px;
  background: var(--chip); text-decoration: none;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.store:hover { background: var(--ink); color: var(--bg); }
.store svg { width: 14px; height: 14px; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
  margin-bottom: 16px;
}
.value .ico svg { width: 22px; height: 22px; }
.value h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.value p { margin: 0; color: var(--ink-2); }

/* Contact */
.contact-card {
  border-radius: 32px; padding: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
}
.contact-card h2 { color: #fff; }
.contact-card p { margin: 0; opacity: .9; font-size: 17px; }
.contact-card .btn { background: #fff; color: #15161b; }
.contact-list { display: grid; gap: 10px; justify-items: start; }
.contact-list small { opacity: .85; font-weight: 600; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--ink-2); font-weight: 600; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--ink-3); margin: 0 0 40px; font-weight: 600; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .collage { max-width: 420px; margin: 8px auto 0; }
  .values { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 36px 28px; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 40px 0 32px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  section { padding: 64px 0; }
  .collage { gap: 12px; max-width: 300px; }
}
