@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --bg: #0a0b0d;
  --panel: #121418;
  --line: #23262d;
  --ink: #f2f3f5;
  --muted: #8b909a;
  --accent: #2fe08a;
  --accent-2: #1a9cff;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.nav { display: flex; gap: 6px; font-size: 15px; font-weight: 500; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--panel); }

.hero { position: relative; padding-block: 112px 88px; text-align: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: -160px -20% auto;
  height: 620px;
  background:
    radial-gradient(closest-side, rgba(47, 224, 138, .22), transparent 70%),
    radial-gradient(closest-side at 70% 40%, rgba(26, 156, 255, .18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); background: var(--panel); margin-bottom: 28px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
h1 { font-weight: 700; font-size: clamp(40px, 7.6vw, 92px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 28px auto 0; max-width: 52ch; font-size: 19px; color: var(--muted); }
.cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 600; font-size: 16px; border: 1px solid var(--line); background: var(--panel); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #04130b; }

.section { padding: 56px 0; scroll-margin-top: 16px; }
.label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 10px; }
h2 { font-weight: 700; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 28px; }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 340px; transition: transform .2s, border-color .2s; }
a.card:hover { transform: translateY(-4px); border-color: #3a3f49; }
.card::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%; background: var(--glow); filter: blur(70px); opacity: .45; pointer-events: none; }
.card > * { position: relative; }
.card.half { grid-column: span 3; }
.card.third { grid-column: span 2; min-height: 220px; }
.card.wide { grid-column: span 4; min-height: 220px; scroll-margin-top: 16px; }
.card img, .card .ph { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.card .ph { display: grid; place-items: center; background: #1a1d23; border: 1px solid var(--line); font-size: 30px; color: var(--muted); }
.card h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.card p { color: var(--muted); font-size: 16px; }
.card p.big { color: var(--ink); font-size: clamp(18px, 2vw, 22px); line-height: 1.4; }
.row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chip { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.get { font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); white-space: nowrap; }

.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; align-items: center; }

.legal { max-width: 800px; padding-block: 56px 40px; }
.legal h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 36px; }
.legal h3, .legal h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.legal h3 { margin: 36px 0 12px; }
.legal p, .legal li { color: #c3c7ce; }
.legal p { margin-bottom: 14px; }
.legal ol { padding-left: 24px; margin-bottom: 14px; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.notfound { padding-block: 120px; text-align: center; }
.notfound p { color: var(--muted); margin: 20px 0 32px; }

:root { --sy: 0; --hp: 0; }
.motion .hero > * {
  translate: 0 calc(var(--sy) * 0.35px);
  scale: calc(1 - var(--hp) * 0.08);
  opacity: calc(1 - var(--hp) * 1.15);
  will-change: translate, opacity;
}
.motion .hero > h1 { translate: 0 calc(var(--sy) * 0.22px); }
.motion .hero::before { translate: 0 calc(var(--sy) * -0.25px); scale: calc(1 + var(--hp) * 0.25); }

.motion .reveal { opacity: 0; translate: 0 56px; scale: 0.94; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), translate .8s cubic-bezier(.2, .7, .2, 1), scale .8s cubic-bezier(.2, .7, .2, 1), transform .2s, border-color .2s; }
.motion .reveal.in { opacity: 1; translate: 0 0; scale: 1; }
.motion .card { --p: 0; }
.motion .card::before { translate: calc(var(--p) * -40px) calc(var(--p) * 140px); }
.motion .card img, .motion .card .ph { translate: 0 calc(var(--p) * -18px); }

@media (max-width: 760px) {
  .nav a.wide-only { display: none; }
  .hero { padding-block: 64px 56px; }
  .card.half, .card.third, .card.wide { grid-column: 1 / -1; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
