/* FXlegal V4. Dark control-desk language: near-black ground, hairlines,
   one accent (#11CA80) used as a signal lamp. */

:root {
  --bg: #090b0a;
  --bg-2: #0c0f0e;
  --core: #101312;
  --core-2: #0b0d0c;
  --shell: rgba(236, 240, 233, 0.035);
  --line: rgba(236, 240, 233, 0.09);
  --line-2: rgba(236, 240, 233, 0.16);
  --ink: #eceFe8;
  --ink-2: #a9afa8;
  --ink-3: #7f867f;
  --brand: #11ca80;
  --brand-soft: rgba(17, 202, 128, 0.07);
  --brand-line: rgba(17, 202, 128, 0.24);
  --on-brand: #03140c;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --r-shell: 30px;
  --r-core: 23px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
th { font-weight: inherit; text-align: left; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 96px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.nw { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); font-weight: 500;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- type ---------- */

h1, h2 { font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.7vw, 3.25rem); line-height: 1.06; letter-spacing: -0.03em; }
.giant { font-size: clamp(2.7rem, 8.4vw, 7.25rem); line-height: 0.98; letter-spacing: -0.045em; }
.lead { color: var(--ink-2); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; max-width: 54ch; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.note { margin-top: 20px; max-width: 78ch; color: var(--ink-3); font-size: 0.8125rem; line-height: 1.55; }
.tag {
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 500 0.6875rem/1.2 var(--mono); letter-spacing: 0.06em; color: var(--ink-3);
}

/* ---------- shared parts ---------- */

.lamp { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #3a403c; transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.lamp.is-on { background: var(--brand); box-shadow: 0 0 0 3px rgba(17, 202, 128, 0.16); }

/* Nested enclosure: a tray (.shell) holding a plate (.core). */
.shell {
  padding: 7px; border-radius: var(--r-shell);
  background: var(--shell); border: 1px solid var(--line);
  box-shadow: 0 50px 90px -60px rgba(0, 0, 0, 0.9);
}
.core {
  border-radius: var(--r-core);
  background: var(--core); border: 1px solid rgba(236, 240, 233, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 500; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn:has(.btn-ic) { padding-right: 9px; }
.btn:active { transform: scale(0.98); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: #2bd891; }
.btn-ghost { background: rgba(236, 240, 233, 0.05); border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: rgba(236, 240, 233, 0.1); border-color: rgba(236, 240, 233, 0.26); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 0.9063rem; }
.btn-ic {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(3, 20, 12, 0.14);
  transition: transform 0.5s var(--ease);
}
.btn-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-ic { transform: translate(2px, -1px) scale(1.05); }

.sw {
  position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px;
  background: #242925; border: 1px solid var(--line-2);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.sw::after { content: ''; position: absolute; inset: -9px -6px; }
.sw-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #c3c9c2;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease);
}
.sw[aria-checked='true'] { background: var(--brand); border-color: transparent; }
.sw[aria-checked='true'] .sw-knob { transform: translateX(18px); background: var(--on-brand); }
.sw-lg { width: 58px; height: 34px; }
.sw-lg .sw-knob { width: 26px; height: 26px; }
.sw-lg[aria-checked='true'] .sw-knob { transform: translateX(24px); }

/* ---------- nav ---------- */

.nav { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; }
.nav-bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  width: min(var(--wrap), 100% - 28px); height: 62px; margin-inline: auto;
  padding: 0 10px 0 24px; border-radius: 999px;
  background: rgba(13, 16, 15, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 44px -28px rgba(0, 0, 0, 0.9);
}
.nav-logo { display: inline-flex; color: var(--ink); }
.logo { width: auto; height: 25px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a, .nav-signin { font-size: 0.9063rem; color: var(--ink-2); transition: color 0.4s var(--ease); }
.nav-links a:hover, .nav-signin:hover { color: var(--ink); }
.nav-side { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.lang a {
  padding: 6px 10px; border-radius: 999px;
  font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-3);
  transition: color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: rgba(236, 240, 233, 0.12); color: var(--ink); }
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(236, 240, 233, 0.06); }
.burger span {
  position: absolute; left: 13px; width: 18px; height: 1.5px; border-radius: 2px; background: var(--ink);
  transition: transform 0.6s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 112px var(--gut) 32px;
  background: rgba(9, 11, 10, 0.9);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.menu[hidden] { display: none; }
.menu.open { opacity: 1; }
.menu-links { display: grid; }
.menu-links a {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 1.75rem; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.menu.open .menu-links a { opacity: 1; transform: none; }
.menu.open .menu-links a:nth-child(1) { transition-delay: 60ms; }
.menu.open .menu-links a:nth-child(2) { transition-delay: 110ms; }
.menu.open .menu-links a:nth-child(3) { transition-delay: 160ms; }
.menu.open .menu-links a:nth-child(4) { transition-delay: 210ms; }
.menu.open .menu-links a:nth-child(5) { transition-delay: 260ms; }
.menu.open .menu-links a:nth-child(6) { transition-delay: 310ms; }
.menu-foot { display: grid; gap: 12px; }
.menu-open body { overflow: hidden; }

/* ---------- hero ---------- */

.hero { position: relative; padding: clamp(7.25rem, 13.5vh, 10rem) 0 clamp(4.5rem, 8vw, 7.5rem); isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(236, 240, 233, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 240, 233, 0.045) 1px, transparent 1px);
  background-size: 76px 76px; background-position: center top;
  -webkit-mask-image: radial-gradient(120% 78% at 50% 0%, #000 22%, transparent 76%);
  mask-image: radial-gradient(120% 78% at 50% 0%, #000 22%, transparent 76%);
}
.hero::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  right: -10%; bottom: 0; width: 70%; height: 70%;
  background: radial-gradient(closest-side, rgba(17, 202, 128, 0.085), transparent);
}
.hero-h {
  margin-top: 26px;
  font-size: clamp(2.55rem, 6.6vw, 6rem); line-height: 0.99; letter-spacing: -0.045em;
}
.hero-h em { display: block; font-style: normal; color: var(--brand); }
:lang(ru) .hero-h { font-size: clamp(2.3rem, 5.9vw, 5.35rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
}
.hero-sub { color: var(--ink-2); font-size: clamp(1.0625rem, 1.45vw, 1.25rem); line-height: 1.5; max-width: 50ch; text-wrap: pretty; }
.hero-trust { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; max-width: 46ch; font-weight: 500; }
.hero-trust svg { flex: none; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--brand); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.facts > div { padding-top: 16px; border-top: 1px solid var(--line-2); }
.facts dt { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -0.025em; white-space: nowrap; }
.facts dd { margin-top: 6px; color: var(--ink-3); font-size: 0.8438rem; line-height: 1.45; }

.console { font-size: 0.9375rem; }
.con-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.con-title { font: 500 0.6875rem/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.con-master { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: rgba(236, 240, 233, 0.025); border-bottom: 1px solid var(--line); }
.con-master-label { font-weight: 500; font-size: 1rem; }
.acc { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.acc-no { font: 400 0.875rem/1 var(--mono); transition: color 0.5s var(--ease); }
.chip { padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line-2); font: 500 0.625rem/1 var(--mono); letter-spacing: 0.06em; color: var(--ink-2); white-space: nowrap; }
.acc-ea { color: var(--ink-3); font-size: 0.8438rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc.is-off .acc-no { color: var(--ink-3); }
.log { height: 84px; padding: 12px 22px 0; background: var(--core-2); border-bottom: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.log li { display: flex; flex-wrap: nowrap; gap: 12px; padding-bottom: 6px; font: 400 0.75rem/1.5 var(--mono); color: var(--ink-2); white-space: nowrap; }
.log li.new { animation: log-in 0.6s var(--ease); }
.log-t { color: var(--ink-3); }
.log-m { overflow: hidden; text-overflow: ellipsis; }
.log-a { margin-left: auto; color: var(--brand); }
.con-hint { padding: 12px 22px 16px; color: var(--ink-3); font-size: 0.7813rem; }
@keyframes log-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- sections ---------- */

.sec { padding: clamp(5.5rem, 11vw, 10rem) 0; }
.sec-head { display: grid; justify-items: start; gap: 22px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head h2 { max-width: 21ch; }

/* comparison */
.pick { display: none; }
.cmp-scroll { overflow-x: auto; }
.cmp { min-width: 1010px; table-layout: fixed; }
.cmp .cap { width: 23%; }
.cmp .fx { width: 16%; }
.cmp thead th { padding: 26px 16px 20px; vertical-align: bottom; border-bottom: 1px solid var(--line-2); font-size: 0.8438rem; line-height: 1.3; font-weight: 500; color: var(--ink-2); }
.cmp thead .cap { padding-left: 26px; font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.cmp tbody th { padding: 19px 16px 19px 26px; font-size: 0.9688rem; line-height: 1.4; color: var(--ink); border-top: 1px solid var(--line); }
.cmp tbody tr:first-child > * { border-top: 0; }
.cmp td { position: relative; padding: 19px 14px 19px 42px; vertical-align: top; border-top: 1px solid var(--line); font-size: 0.8438rem; line-height: 1.4; color: var(--ink-2); }
.cmp tbody tr { transition: background-color 0.4s var(--ease); }
.cmp tbody tr:hover { background: rgba(236, 240, 233, 0.022); }
.mk { position: absolute; left: 16px; top: 21px; display: block; }
.is-yes .mk { width: 16px; height: 16px; border-radius: 50%; background: rgba(17, 202, 128, 0.17); }
.is-yes .mk::after { content: ''; position: absolute; left: 4.5px; top: 4.5px; width: 7px; height: 4px; border-left: 1.5px solid var(--brand); border-bottom: 1.5px solid var(--brand); transform: rotate(-45deg); }
.is-no .mk { left: 19px; top: 28px; width: 10px; height: 1.5px; background: #4d544f; }
.is-part .mk { left: 19px; top: 24px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #878e88; }
.is-yes > span { color: var(--ink); }
.is-no > span { color: var(--ink-3); }
.cmp .fx { background: var(--brand-soft); border-left: 1px solid var(--brand-line); border-right: 1px solid var(--brand-line); }
.cmp td.fx > span { color: var(--ink); font-weight: 500; }
.fx-name { display: inline-flex; align-items: center; gap: 9px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.fx-name::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(17, 202, 128, 0.16); }
.cmp .is-price > * { border-top-color: var(--line-2); }
.cmp .is-price td { padding-left: 16px; }
.cmp .is-price td.fx > span { color: var(--brand); font-weight: 600; font-size: 0.9375rem; }

/* monitoring */
.mon thead th { padding: 16px 16px 14px; border-bottom: 1px solid var(--line); font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.mon thead th:first-child, .mon tbody th { padding-left: 22px; }
.mon .num { text-align: right; }
.mon tbody th, .mon td { padding: 15px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.mon tbody tr:first-child > * { border-top: 0; }
.mon td:last-child, .mon thead th:last-child { padding-right: 22px; }
.mon tbody tr { cursor: pointer; transition: background-color 0.4s var(--ease); }
.mon tbody tr:hover { background: rgba(236, 240, 233, 0.025); }
.mon tbody tr.is-sel { background: var(--brand-soft); box-shadow: inset 2px 0 0 var(--brand); }
.mon-pick { display: grid; gap: 5px; text-align: left; }
.mon-no { font: 500 0.9375rem/1 var(--mono); color: var(--ink); }
.mon-type { font: 400 0.6875rem/1 var(--mono); letter-spacing: 0.04em; color: var(--ink-2); }
.mon-sub { display: inline-flex; align-items: center; gap: 7px; font: 400 0.6875rem/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.mon-sub i { font-style: normal; }
.mon td.broker { color: var(--ink-2); font-size: 0.875rem; }
.mon td.num { font: 400 0.875rem/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.mon td.pos { color: var(--brand); }
.mon td.neg { color: #e09a6c; }
.charts { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--core-2); }
.charts-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 14px; }
.charts-acc { font: 500 0.8125rem/1 var(--mono); color: var(--brand); }
.chart-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.chart-list li { padding: 14px 16px 15px; border-radius: 14px; border: 1px solid var(--line); background: rgba(236, 240, 233, 0.025); animation: log-in 0.6s var(--ease) backwards; }
.chart-list li:nth-child(2) { animation-delay: 60ms; }
.chart-list li:nth-child(3) { animation-delay: 120ms; }
.chart-list li:nth-child(4) { animation-delay: 180ms; }
.ch-pair { display: block; margin-bottom: 4px; font: 500 0.9375rem/1.2 var(--mono); letter-spacing: 0.03em; }
.ch-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; font-size: 0.8125rem; line-height: 1.3; color: var(--ink-3); }
.ch-row b { font-weight: 400; color: var(--ink-2); text-align: right; }
.ch-row em { font-style: normal; color: var(--ink-3); }

/* principle */
.sec-principle { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-principle .giant { margin-top: 26px; }
.sec-principle .lead { margin-top: 26px; }
.duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(3rem, 6vw, 5.5rem); }
.duo h3, .fn-group h3, .lock h3 { font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.duo ul { margin-top: 18px; }
.duo li { position: relative; padding: 17px 0 17px 38px; border-top: 1px solid var(--line); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.35; }
.duo li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 24px; width: 11px; height: 6px; border-left: 1.5px solid var(--brand); border-bottom: 1.5px solid var(--brand); transform: rotate(-45deg); }
.crosses li::before, .crosses li::after { content: ''; position: absolute; left: 3px; top: 29px; width: 14px; height: 1.5px; background: var(--ink-2); }
.crosses li::before { transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }

/* pulse */
.race-box { --c1: 190px; --c3: 262px; padding: clamp(22px, 4vw, 48px); }
.race-row { display: grid; grid-template-columns: var(--c1) minmax(0, 1fr) var(--c3); align-items: center; gap: 20px; padding: 16px 0; }
.race-name { font: 500 0.6875rem/1.35 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.is-pulse .race-name { color: var(--brand); }
.race-track { position: relative; height: 12px; border-radius: 999px; background: #1a1e1c; overflow: hidden; }
.race-fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: #646b65; transform-origin: left center; }
.is-pulse .race-fill { width: 3px; border-radius: 0; background: var(--brand); box-shadow: 0 0 14px 2px rgba(17, 202, 128, 0.6); }
.race-val { display: flex; align-items: baseline; gap: 6px; font: 400 0.8125rem/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.race-val b { min-width: 3.1em; text-align: right; font: 500 1.375rem/1 var(--sans); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.race-state { margin-left: 8px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.625rem; letter-spacing: 0.06em; color: var(--ink-3); }
.is-pulse .race-state { border-color: var(--brand-line); color: var(--brand); }
.race-plus { margin-left: 4px; color: var(--ink-2); }
.race-axis { display: flex; justify-content: space-between; margin: 6px calc(var(--c3) + 20px) 0 calc(var(--c1) + 20px); padding-top: 10px; border-top: 1px solid var(--line); font: 400 0.6875rem/1 var(--mono); color: var(--ink-3); }
.race-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: clamp(1.75rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line); }
.ratio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.ratio b { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.ratio span { color: var(--ink-3); font-size: 0.875rem; }

/* functions */
.fns { columns: 3; column-gap: clamp(1.75rem, 3.6vw, 3.5rem); }
.fn-group { break-inside: avoid; padding-bottom: clamp(2rem, 4vw, 3.25rem); }
.fn-group:nth-child(3), .fn-group:nth-child(4) { break-before: column; }
.fn-group h3 { padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.fn-group li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); line-height: 1.4; transition: transform 0.5s var(--ease); }
.fn-n { font: 400 0.75rem/1 var(--mono); color: var(--ink-3); transition: color 0.5s var(--ease); }
.fn-group li:hover { transform: translateX(6px); }
.fn-group li:hover .fn-n { color: var(--brand); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { padding: clamp(24px, 3.2vw, 40px); }
.steps li + li { border-left: 1px solid var(--line); }
.step-n { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.1em; color: var(--brand); }
.steps h3 { margin-top: clamp(2.5rem, 7vw, 6rem); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.025em; }
.steps p { margin-top: 12px; max-width: 34ch; color: var(--ink-2); }
.steps-cta { margin-top: 28px; }

/* security */
.locks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.lock { grid-column: span 6; display: flex; }
.lock .core { flex: 1; display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 40px); }
.lock-main { grid-row: span 2; }
.lock-spec { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.lock-main .lock-spec { font-size: clamp(3rem, 7.6vw, 6.25rem); letter-spacing: -0.05em; color: var(--brand); }
.lock h3 { margin-top: auto; padding-top: clamp(2rem, 5vw, 3.5rem); }
.lock p:last-child { margin-top: 12px; max-width: 46ch; color: var(--ink-2); }

/* api */
.api { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.api h2 { margin-top: 22px; }
.api .lead { margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.875rem; color: var(--ink-2); }
.api-plan { margin-top: 26px; font: 400 0.75rem/1.4 var(--mono); letter-spacing: 0.04em; color: var(--ink-3); }
.api-fig { display: block; }
.code-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); font: 400 0.6875rem/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-3); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #2c312e; }
.code pre { margin: 0; padding: clamp(20px, 3vw, 32px); overflow-x: auto; font: 400 0.875rem/1.75 var(--mono); color: var(--ink); tab-size: 2; }
.code code { font: inherit; }
.c-dim { color: var(--ink-3); }
.c-brand { color: var(--brand); }
.api-fig figcaption { padding: 14px 16px 8px; color: var(--ink-3); font-size: 0.8125rem; }

/* plans */
.plans { table-layout: fixed; }
.plans .cap { width: 28%; }
.plans thead th { padding: 30px 22px 24px; vertical-align: bottom; border-bottom: 1px solid var(--line-2); }
.plans thead th + th, .plans td + td, .plans .cap + td { border-left: 1px solid var(--line); }
.plans thead .cap { padding-left: 28px; font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.plan-name { display: block; font: 500 0.75rem/1 var(--mono); letter-spacing: 0.14em; color: var(--ink-2); }
.plan-price { display: block; margin-top: 18px; font-size: clamp(1.75rem, 3.3vw, 2.875rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.plan-per { display: block; margin-top: 8px; font-size: 0.8125rem; color: var(--ink-3); }
.plans tbody th { padding: 16px 16px 16px 28px; font-size: 0.9688rem; border-top: 1px solid var(--line); }
.plans tbody td { position: relative; height: 54px; border-top: 1px solid var(--line); }
.plans tbody tr:first-child > * { border-top: 0; }
.plans .mk { left: 22px; top: 19px; }
.plans .is-no .mk { left: 25px; top: 26px; }
.plans tfoot td { padding: 22px 22px 26px; border-top: 1px solid var(--line-2); }
.plans tfoot .btn { width: 100%; }
.plans-cta { display: none; margin-top: 20px; }

/* end + footer */
.sec-end { padding-top: 0; }
.end { position: relative; padding: clamp(2.5rem, 7vw, 6.5rem); isolation: isolate; }
.end::after { content: ''; position: absolute; z-index: -1; right: -12%; bottom: -55%; width: 70%; height: 150%; background: radial-gradient(closest-side, rgba(17, 202, 128, 0.13), transparent); pointer-events: none; }
.end h2 { font-size: clamp(2.2rem, 5.6vw, 4.75rem); letter-spacing: -0.04em; line-height: 1; max-width: 14ch; }
.end .lead { margin-top: 24px; }
.foot { padding: clamp(3rem, 6vw, 5rem) 0 28px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 18px; max-width: 26ch; color: var(--ink-3); font-size: 0.9375rem; }
.foot h2 { margin-bottom: 14px; font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); text-wrap: initial; }
.foot-grid a:not(.nav-logo) { display: block; width: fit-content; padding: 5px 0; color: var(--ink-2); font-size: 0.9375rem; transition: color 0.4s var(--ease); }
.foot-grid a:not(.nav-logo):hover { color: var(--ink); }
.foot-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 22px; border-top: 1px solid var(--line); font: 400 0.75rem/1.4 var(--mono); color: var(--ink-3); }

/* ---------- entry motion ---------- */

.js [data-r] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-r].in { opacity: 1; transform: none; }
/* The first screen must not wait for a script: it rises on a plain CSS animation. */
.js .hero [data-r] { opacity: 1; transform: none; transition: none; animation: rise 0.9s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ---------- responsive ---------- */

@media (max-width: 1060px) {
  .nav-links, .nav-signin { display: none; }
  .burger { display: block; }
  .nav-bar { gap: 12px; padding-left: 20px; }
  .nav-side { gap: 10px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-console { max-width: 640px; }
  .api { grid-template-columns: minmax(0, 1fr); }
  .fns { columns: 2; }
  .fn-group:nth-child(3) { break-before: auto; }
}

@media (max-width: 900px) {
  .js .pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
  .pick-label { flex-basis: 100%; margin-bottom: 4px; font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
  .pick button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.8438rem; color: var(--ink-2); transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
  .pick button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
  .js .cmp, .js .cmp thead, .js .cmp tbody { display: block; min-width: 0; }
  .js .cmp tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .js .cmp[data-show='1'] :is(.k2, .k3, .k4, .k5),
  .js .cmp[data-show='2'] :is(.k1, .k3, .k4, .k5),
  .js .cmp[data-show='3'] :is(.k1, .k2, .k4, .k5),
  .js .cmp[data-show='4'] :is(.k1, .k2, .k3, .k5),
  .js .cmp[data-show='5'] :is(.k1, .k2, .k3, .k4),
  .js .cmp thead .cap { display: none; }
  .js .cmp :is(th, td) { width: auto; }
  .js .cmp thead th { display: flex; align-items: flex-end; padding: 18px 12px 14px 18px; }
  .js .cmp tbody th { grid-column: 1 / -1; padding: 18px 18px 2px; font-size: 0.9375rem; }
  .js .cmp td { padding: 8px 12px 18px 42px; border-top: 0; font-size: 0.8438rem; }
  .js .cmp .mk { left: 18px; top: 10px; }
  .js .cmp .is-no .mk { left: 21px; top: 17px; }
  .js .cmp .is-part .mk { left: 21px; top: 13px; }
  .js .cmp tbody .fx { background: none; border: 0; }
  .js .cmp thead .fx { border-right: 0; }
  .js .cmp .is-price td { padding-left: 18px; }
  .fx-name { font-size: 0.9375rem; }

  .mon thead { display: none; }
  .mon, .mon tbody { display: block; }
  .mon tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; padding: 16px 16px 18px; border-top: 1px solid var(--line); }
  .mon tbody tr:first-child { border-top: 0; }
  .mon tbody th, .mon td, .mon td:last-child, .mon td.num { padding: 0; border: 0; text-align: left; }
  .mon tbody th, .mon td.broker { grid-column: 1 / -1; }
  .mon td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 6px; font: 500 0.625rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
  .mon td.broker::before { display: none; }
  .charts { padding-inline: 16px; }
  .race-plus { margin-left: 2px; }

  .duo { grid-template-columns: minmax(0, 1fr); }
  .fns { columns: 1; }
  .fn-group:nth-child(4) { break-before: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps h3 { margin-top: 1.25rem; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .lock, .lock-main { grid-column: 1 / -1; grid-row: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }

  .race-box { --c1: 0px; --c3: 0px; }
  .race-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .race-track { grid-column: 1 / -1; grid-row: 2; }
  .race-axis { margin-inline: 0; }
}

@media (max-width: 720px) {
  .plans .cap { width: 36%; }
  .plans thead th { padding: 18px 6px 16px; text-align: center; }
  .plans thead .cap { padding-left: 14px; text-align: left; }
  .plan-name { font-size: 0.625rem; letter-spacing: 0.08em; }
  .plan-price { margin-top: 10px; font-size: 1rem; letter-spacing: -0.02em; }
  .plan-per { font-size: 0.625rem; line-height: 1.2; }
  .plans tbody th { padding: 14px 6px 14px 14px; font-size: 0.8125rem; line-height: 1.3; }
  .plans tbody td { height: 50px; }
  .plans .mk { left: calc(50% - 8px); top: 17px; }
  .plans .is-no .mk { left: calc(50% - 5px); top: 24px; }
  .plans tfoot { display: none; }
  .plans-cta { display: flex; }
}

@media (max-width: 560px) {
  :root { --r-shell: 24px; --r-core: 18px; }
  .shell { padding: 5px; }
  .nav-cta { display: none; }
  .hero .eyebrow { font-size: 0.5938rem; letter-spacing: 0.08em; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 14px 0 0; margin-top: 14px; }
  .facts > div:first-child { margin-top: 0; }
  .facts dd { margin-top: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .con-head, .con-master, .acc, .con-hint { padding-inline: 16px; }
  .log { padding-inline: 16px; }
  .acc { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .acc-ea { display: none; }
  .acc .chip { justify-self: start; }
  .log-t { display: none; }
  .race-foot { flex-direction: column; align-items: flex-start; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-r] { opacity: 1; transform: none; }
}
