:root {
  --paper: #eef1f5;
  --paper-2: #e3e8ef;
  --surface: #f8fafc;
  --ink: #142233;
  --ink-2: #4a5a6e;
  --rule: #c9d2de;
  --cobalt: #2442e0;
  --cobalt-ink: #1a33b8;
  --amber: #c9861f;
  --on-cobalt: #ffffff;
  --display: "Bricolage Grotesque", "Inter Display", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1824;
    --paper-2: #152131;
    --surface: #1a2738;
    --ink: #e6ecf4;
    --ink-2: #9fb0c4;
    --rule: #2b3b51;
    --cobalt: #6d86ff;
    --cobalt-ink: #93a6ff;
    --amber: #e3a54a;
    --on-cobalt: #0b1220;
    color-scheme: dark;
  }
}

:lang(ru), :lang(uk) { --display: "Onest", "Inter Display", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.01em; }
.brand__mark { width: 30px; height: 30px; }
.top__right { display: flex; align-items: center; gap: 18px; }
.lang { position: relative; font-size: 15px; }
.lang { border-bottom: 0; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--ink-2); padding: 6px 4px; font: 500 15px/1 var(--body); }
.lang summary::after { content: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); }
.lang summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 160px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 12px 32px -12px rgba(20, 34, 51, .35); }
.lang a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.lang a:hover { background: var(--paper-2); }
.lang a[aria-current="page"] { font-weight: 600; color: var(--cobalt-ink); }
.lang summary { min-height: 44px; border-radius: 999px; padding: 6px 10px; }
.lang[open] summary { background: var(--paper-2); color: var(--ink); }
.lang ul { z-index: 20; }
@media (max-width: 760px) {
  .lang summary span { display: none; }
  .lang summary { width: 44px; justify-content: center; padding: 0; }
  .lang summary svg { width: 20px; height: 20px; }
  .lang ul { position: fixed; top: 64px; left: 12px; right: 12px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .lang a { padding: 12px 14px; }
}
@media (max-width: 1180px) and (min-width: 981px) { .nav { gap: 18px; } .top__right { gap: 10px; } }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav .nav__cta { color: var(--ink); font-weight: 600; border: 1.5px solid var(--ink); padding: 6px 14px; border-radius: 999px; }
.nav .nav__cta:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 980px) { .nav a:not(.nav__cta) { display: none; } }

/* Type */
h1, h2, h3 { font-family: var(--display); margin: 0; color: var(--ink); }
h1 {
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14ch;
  overflow-wrap: break-word;
  font-variation-settings: "opsz" 96;
}
h2 { font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 54ch; margin-top: 24px; }
.section-lede { color: var(--ink-2); max-width: 58ch; margin-top: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--solid { background: var(--cobalt); color: var(--on-cobalt); }
.btn--solid:hover { background: var(--cobalt-ink); }
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--big { min-height: 56px; padding: 0 30px; font-size: 17px; margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; gap: 48px; } .hero { padding: 48px 0 64px; } }

.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); justify-content: start; }
.facts dt { font-size: 13px; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; gap: 14px; } }

/* Routing diagram */
.route { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 22px 20px 18px; }
.route svg { width: 100%; height: auto; overflow: visible; }
.route text { font: 500 12px var(--body); fill: var(--ink); }
.r-in path, .r-cut path, .r-win path, .r-win-flow path { fill: none; }
.r-in path { stroke: var(--rule); stroke-width: 2; }
.r-src rect { fill: var(--paper); stroke: var(--rule); stroke-width: 1.5; }
.r-src text { text-anchor: middle; }
.r-cut path { stroke: var(--amber); stroke-width: 2; stroke-dasharray: 5 6; animation: cut 1s ease 1.4s forwards; }
.r-win path { stroke: var(--cobalt); stroke-width: 2; animation: grow .9s ease 1.6s forwards; }
.r-win-flow path { stroke: var(--paper); stroke-width: 2; stroke-dasharray: 3 22; opacity: 0; animation: flow 1.1s linear infinite, show .4s ease 2.2s forwards; }
.r-hub circle { fill: var(--ink); }
.r-hub path { stroke: var(--paper); stroke-width: 3; stroke-linecap: round; }
.r-hub-label { text-anchor: middle; fill: var(--ink-2) !important; }
.r-dst rect { stroke-width: 1.5; }
.r-dst--win rect { fill: var(--cobalt); stroke: var(--cobalt); }
.r-dst--win text { fill: var(--on-cobalt); font-weight: 600; }
.r-dst--cut rect { fill: var(--paper); stroke: var(--rule); }
.r-dst--cut g { animation: dim 1s ease 1.4s forwards; }

@keyframes cut { to { opacity: .28; } }
@keyframes dim { to { opacity: .45; } }
@keyframes grow { to { stroke-width: 6; } }
@keyframes show { to { opacity: .9; } }
@keyframes flow { to { stroke-dashoffset: -25; } }

.route figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.key::before { content: ""; width: 22px; height: 0; border-top: 4px solid var(--cobalt); border-radius: 2px; }
.key--cut::before { border-top: 2px dashed var(--amber); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r-cut path, .r-dst--cut g, .r-win path, .r-win-flow path { animation: none; }
  .r-cut path { opacity: .28; }
  .r-dst--cut g { opacity: .45; }
  .r-win path { stroke-width: 6; }
}

/* Sections */
section { padding: 96px 0; }
.band { background: var(--paper-2); border-block: 1px solid var(--rule); }
@media (max-width: 600px) { section { padding: 64px 0; } }

/* Paths */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 2px solid var(--ink); }
.path { padding: 28px 28px 32px 0; display: flex; flex-direction: column; gap: 14px; }
.path + .path { padding-left: 28px; border-left: 1px solid var(--rule); }
.path__who { color: var(--ink-2); }
.path ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.path li { padding-left: 20px; position: relative; }
.path li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 2px; background: var(--cobalt); }
.path .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) {
  .paths { grid-template-columns: 1fr; }
  .path { padding: 28px 0; }
  .path + .path { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* Steps */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.steps li { counter-increment: step; padding: 0 20px 0 0; position: relative; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
  font: 700 17px/1 var(--display);
  position: relative; z-index: 1; margin-bottom: 18px;
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 1.5px; background: var(--rule); }
.steps li:last-child::after { display: none; }
.steps li:nth-child(4)::before { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.steps p { color: var(--ink-2); margin-top: 6px; font-size: 16px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 28px 60px; }
  .steps li::before { position: absolute; left: 0; top: -4px; margin: 0; }
  .steps li::after { top: 40px; bottom: 0; left: 20px; right: auto; width: 1.5px; height: auto; }
}

/* Markets */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 2px solid var(--ink); }
.tier { padding: 28px 28px 8px 0; }
.tier + .tier { padding-left: 28px; border-left: 1px solid var(--rule); }
.tier h3 { font-size: 30px; letter-spacing: -0.02em; display: flex; flex-direction: column; gap: 4px; }
.tier h3 span { font: 500 16px/1.4 var(--body); color: var(--ink-2); letter-spacing: 0; }
.tier__count { display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 999px; background: var(--cobalt); color: var(--on-cobalt); font-size: 13px; font-weight: 600; }
.tier dl { margin: 20px 0 0; }
.tier dt { font-size: 13px; color: var(--ink-2); margin-top: 16px; }
.tier dd { margin: 3px 0 0; font-size: 16px; }
.tier dt:first-child + dd { font-weight: 600; line-height: 1.55; }
@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; }
  .tier { padding: 28px 0; }
  .tier + .tier { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

.mx { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); }
.mx h3 { font-size: 19px; margin-bottom: 18px; }
.mx table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mx th, .mx td { padding: 12px 8px; border-bottom: 1px solid var(--rule); text-align: center; }
.mx thead th { font: 700 14px var(--display); color: var(--ink-2); }
.mx th[scope="row"], .mx thead th:first-child { text-align: left; padding-left: 0; font-weight: 500; }
.mx thead th:first-child { font-weight: 700; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.dot--lead { background: var(--cobalt); }
.dot--sel { border: 2px solid var(--ink-2); opacity: .7; }
.legend { display: flex; gap: 20px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: grid; gap: 26px; }
.stack__group h4 { margin: 0; font: 700 15px/1.3 var(--display); color: var(--ink); }
.stack__group p { margin: 3px 0 10px; font-size: 14px; color: var(--ink-2); }
.stack__group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.stack__group li { border-bottom: 1px solid var(--rule); }
.stack__group a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 2px; text-decoration: none; font-weight: 500; }
.stack__group a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.stack__domain { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.stack__group li { padding-bottom: 10px; }
.stack__group li a { padding-bottom: 2px; }
.stack__role { display: block; padding: 0 2px; font-size: 14px; color: var(--ink-2); }

.sources { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); }
.sources h3 { font-size: 24px; }
.sources__count { display: inline-block; vertical-align: middle; margin-left: 10px; font: 600 13px/1 var(--body); padding: 5px 10px; border-radius: 999px; background: var(--cobalt); color: var(--on-cobalt); }
.sources__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; border-top: 1px solid var(--rule); }
.sources__list li { padding: 14px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.sources__list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-decoration: none; font-weight: 600; }
.sources__list a:hover .stack__name { text-decoration: underline; text-underline-offset: 3px; }
.fmt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fmt span { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink-2); }
@media (max-width: 1000px) { .sources__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sources__list { grid-template-columns: 1fr; } }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .mx { grid-template-columns: 1fr; gap: 36px; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq__list { border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--rule); }
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font: 600 18px/1.35 var(--body);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 28px; } }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact h2 { color: var(--paper); }
.contact .section-lede { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.contact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }
.channels { margin: 0; }
.channels div { padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); }
.channels dt { font-size: 14px; color: color-mix(in srgb, var(--paper) 65%, transparent); }
.channels dd { margin: 4px 0 0; font: 600 20px/1.3 var(--display); }
.channels a { text-decoration: none; }
.channels a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact :focus-visible { outline-color: var(--paper); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact { background: var(--surface); color: var(--ink); }
  :root:not([data-theme="light"]) .contact h2 { color: var(--ink); }
  :root:not([data-theme="light"]) .contact .section-lede, :root:not([data-theme="light"]) .channels dt { color: var(--ink-2); }
  :root:not([data-theme="light"]) .channels div { border-color: var(--rule); }
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; gap: 32px; } }

/* Footer */
.foot { padding: 28px 0; font-size: 14px; color: var(--ink-2); }
.foot__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
