:root {
  --bg: #0c1220;
  --bg-soft: #101830;
  --panel: #141d33;
  --panel-hi: #1a2542;
  --line: #22304f;
  --text: #eaf0fa;
  --muted: #9aa8c2;
  --tg: #5fb0e8;
  --tt: #43cbff;
  --yt: #ff5470;
  --soon: #6b7891;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(67, 203, 255, .07), transparent 60%),
    radial-gradient(900px 480px at -10% 30%, rgba(95, 176, 232, .06), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Onest", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
}

::selection { background: rgba(67, 203, 255, .3); }

a { color: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--tt);
  outline-offset: 3px;
  border-radius: 6px;
}

.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

/* ── header ── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 18, 32, .78);
  border-bottom: 1px solid rgba(34, 48, 79, .6);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .02em;
  margin-right: auto;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--yt), var(--tt));
  display: grid;
  place-items: center;
  color: #0c1220;
  font-size: 13px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  transition: color .2s;
}

.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.btn-primary {
  background: linear-gradient(135deg, #ff5470, #43cbff);
  color: #08101f;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(67, 203, 255, .22); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

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

/* ── hero ── */

.hero {
  padding: 84px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 18px 0 22px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--tt), var(--yt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.platform-row {
  display: flex;
  gap: 10px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  font-style: normal;
}

/* ── flow svg ── */

.flow-card {
  background: linear-gradient(180deg, var(--bg-soft), var(--panel));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 20px 16px;
  box-shadow: 0 30px 80px rgba(4, 8, 18, .5);
}

.flow-card figcaption {
  text-align: center;
  padding-bottom: 8px;
}

.flow-path {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}

.flow-dot { visibility: visible; }

.flow-node {
  fill: var(--panel-hi);
  stroke-width: 1.5;
}

.flow-label {
  font-family: "Onest", sans-serif;
  font-size: 15px;
  font-weight: 600;
  fill: var(--text);
}

.flow-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .08em;
  fill: var(--muted);
  text-transform: uppercase;
}

.core-label {
  font-family: "Unbounded", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .04em;
}

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

.pop { animation: pop .7s cubic-bezier(.2, .7, .2, 1) both; }
.pop.d1 { animation-delay: .1s; }
.pop.d2 { animation-delay: .25s; }
.pop.d3 { animation-delay: .4s; }

/* ── sections ── */

section.block { padding: 76px 0; }

.block-head { max-width: 60ch; margin-bottom: 44px; }

.block-head h2 {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: clamp(23px, 3vw, 33px);
  line-height: 1.25;
  margin-top: 14px;
}

.block-head p { color: var(--muted); margin-top: 14px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s, border-color .2s;
}

.card:hover { transform: translateY(-4px); border-color: #33477a; }

.card .glyph {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.card h3 {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 17.5px;
  margin-bottom: 12px;
}

.card p { color: var(--muted); font-size: 15.5px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  border-left: 1px solid var(--line);
  padding: 6px 0 6px 26px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
  color: transparent;
  -webkit-text-stroke: 1px #3d538a;
}

.step h3 {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 16.5px;
  margin-bottom: 10px;
}

.step p { color: var(--muted); font-size: 15.5px; }

.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.doc-card {
  display: block;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s, border-color .2s;
}

.doc-card:hover { transform: translateY(-4px); border-color: #33477a; }

.doc-card h3 {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 19px;
  margin: 14px 0 10px;
}

.doc-card p { color: var(--muted); font-size: 15.5px; }

.doc-card .go {
  display: inline-block;
  margin-top: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tt);
}

/* ── legal pages ── */

.doc-page { padding: 64px 0 90px; }

.doc-article {
  max-width: 780px;
  margin: 0 auto;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 36px;
  transition: color .2s;
}

.backlink:hover { color: var(--text); }

.doc-article h1 {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.2;
  margin: 10px 0 14px;
}

.doc-article .updated { margin-bottom: 40px; }

.doc-article h2 {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 19px;
  margin: 40px 0 14px;
}

.doc-article p, .doc-article li { color: #c4cfe2; font-size: 16px; }

.doc-article ul { padding-left: 22px; margin: 12px 0; }

.doc-article li { margin-bottom: 8px; }

.doc-article strong { color: var(--text); }

.doc-article a { color: var(--tt); }

/* ── footer ── */

footer {
  border-top: 1px solid rgba(34, 48, 79, .6);
  padding: 34px 0;
}

.foot {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14.5px;
}

.foot nav { margin-left: auto; display: flex; gap: 22px; }

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

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

/* ── responsive ── */

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .cards, .steps, .docs-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pop { animation: none; }
  .flow-dot { display: none; }
  .btn, .card, .doc-card { transition: none; }
}
