@font-face { font-family: "Onest"; src: url("/fonts/onest-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Onest"; src: url("/fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JB Mono"; src: url("/fonts/jbmono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #131722;      /* the chart background of Clustra */
  --panel: #191e2b;
  --line: #2a3142;
  --ink: #e6e9ef;
  --muted: #8c95a8;
  --buy: #26a69a;
  --sell: #ef5350;
  --poc: #f2c230;     /* the POC: where the volume is; used once per screen */
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 "Onest", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--poc); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin-bottom: 40px; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }

/* the top bar */
.top { max-width: var(--wrap); margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; }
.brand img { border-radius: 6px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top nav .lang { color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; font-size: 14px; font-weight: 600; }

main > section, .hero-shot { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* the hero: the name and one candle of the footprint beside it */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(76px, 12vw, 156px); line-height: .9; font-weight: 800; letter-spacing: -0.055em; margin-left: -0.05em; }
.lede { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.45; max-width: 30em; margin-top: 28px; }
.sub { color: var(--muted); margin-top: 14px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.btn { display: inline-block; padding: 14px 24px; border-radius: 8px; font-weight: 600; font-size: 17px; text-decoration: none; line-height: 1.2; }
.btn.primary { background: var(--poc); color: #17140a; }
.btn.primary:hover { background: #ffd24a; }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--muted); }

.ladder { display: flex; align-items: stretch; gap: 10px; }
.wick { position: relative; width: 12px; }
.wick::before { content: ""; position: absolute; left: 5px; top: 4%; bottom: 2%; width: 2px; background: var(--buy); opacity: .8; }
.wick::after { content: ""; position: absolute; left: 0; top: 18%; height: 52%; width: 12px; background: var(--buy); border-radius: 2px; }
.cells { display: grid; gap: 3px; font: 600 17px/1 "JB Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.row { display: grid; grid-template-columns: 76px 76px; gap: 3px; border-radius: 4px; }
.c { padding: 11px 12px; text-align: center; color: #c9cfda; border-radius: 3px; }
.c.sell { background: rgba(239, 83, 80, var(--a)); }
.c.buy { background: rgba(38, 166, 154, var(--a)); }
.c.strong { color: #fff; font-weight: 800; }
.row.poc { outline: 2px solid var(--poc); outline-offset: 1px; }

@media (prefers-reduced-motion: no-preference) {
  .row { animation: print .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
  .row.poc { animation: print .5s cubic-bezier(.2, .7, .2, 1) both, poc .6s ease-out 1.1s both; animation-delay: calc(var(--i) * 70ms + 150ms), 1.1s; }
  .wick::after { animation: body .9s cubic-bezier(.2, .7, .2, 1) .1s both; transform-origin: bottom; }
}
@keyframes print { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes poc { from { outline-color: transparent; } to { outline-color: var(--poc); } }
@keyframes body { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero-shot { margin-top: 0; margin-bottom: 120px; }
.hero-shot img { border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 40px 120px -40px rgba(38, 166, 154, .25); }

/* what it shows: text beside a real screenshot, sides alternate */
.features { margin-bottom: 120px; }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.feat.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat.flip .feat-text { order: 2; }
.feat-text p { color: var(--muted); margin-top: 14px; max-width: 32em; }
.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: 8px; }
.feat:last-child .shot img { max-height: 560px; width: auto; margin: 0 auto; }
.badge { display: inline-block; vertical-align: 3px; margin-left: 8px; padding: 2px 9px; border: 1px solid var(--buy); color: var(--buy);
  border-radius: 99px; font-size: 13px; font-weight: 600; letter-spacing: 0; }

.all { margin-bottom: 120px; }
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.group h3 { font-size: 19px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--line); }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { color: var(--muted); font-size: 16px; line-height: 1.45; padding: 5px 0 5px 16px; position: relative; }
.group li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border-radius: 1px; background: var(--buy); opacity: .7; }
.group:nth-child(even) li::before { background: var(--sell); }

/* get started: three real steps */
.start { margin-bottom: 120px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps .n { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 4px; background: rgba(38, 166, 154, .55);
  font: 800 20px/1 "JB Mono", ui-monospace, monospace; color: #fff; }
.steps p { color: var(--muted); margin-top: 8px; }
.link { display: inline-block; margin-top: 10px; color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--buy); font-weight: 600; }

/* support */
.support { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; padding-top: 56px !important;
  padding-bottom: 56px !important; border-top: 1px solid var(--line); margin-bottom: 40px; }
.support h2 { margin-bottom: 18px; }
.support p { color: var(--muted); max-width: 34em; margin-bottom: 26px; }
.chat p { margin-bottom: 18px; }

.foot { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot a { text-decoration: none; color: var(--ink); }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1100px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .groups { grid-template-columns: 1fr !important; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .ladder { display: none; }
  .hero { padding-bottom: 32px; }
  .feat, .support { grid-template-columns: 1fr; gap: 24px; }
  .feat.flip { grid-template-columns: 1fr; }
  .feat.flip .feat-text { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .all { margin-bottom: 72px; }
  .hero-shot, .features, .start { margin-bottom: 72px; }
}

/* ---------- the shared frame: skip link, active nav ---------- */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--poc); color: #17140a; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.top nav a[aria-current] { color: var(--ink); }

/* ---------- documents: manual, learn, news, download ---------- */
.doc { max-width: var(--wrap); margin: 0 auto; padding: 24px 24px 96px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; }
.doc:has(> .prose:only-child) { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; font-size: 15px; padding-right: 8px; }
.toc-list, .toc-list ol { list-style: none; margin: 0; padding: 0; }
.toc .part > span, .prose .toc-list .part > span { display: block; color: var(--ink); font-weight: 600; margin: 18px 0 6px; }
.toc li a { display: block; padding: 4px 0 4px 12px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.toc li a:hover { color: var(--ink); }
.toc li.cur > a { color: var(--ink); border-left-color: var(--buy); }

.prose { max-width: 760px; min-width: 0; }
.prose.wide { max-width: 920px; }
.prose h1 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -0.025em; margin: 6px 0 22px; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; scroll-margin-top: 16px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li, .prose dd { color: #c8cedb; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration-color: var(--buy); text-underline-offset: 3px; }
.prose .lead { font-size: 20px; color: var(--ink); line-height: 1.5; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 0 !important; }
.crumbs a { color: var(--muted) !important; text-decoration: none; }
.meta { color: var(--muted) !important; font-size: 15px; }
.note { border-left: 3px solid var(--poc); background: var(--panel); padding: 14px 18px; border-radius: 0 6px 6px 0; margin: 0 0 20px; color: #c8cedb; }
.prose pre { background: #0f1219; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; overflow: auto; font: 14px/1.5 "JB Mono", ui-monospace, monospace; }
.tbl { overflow-x: auto; margin: 0 0 20px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; background: var(--panel); }
.prose td { color: #c8cedb; }
.kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.kv dt, .kv dd { margin: 0; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink); font-weight: 600; }
.fig { margin: 8px 0 24px; }
.fig img { border: 1px solid var(--line); border-radius: 6px; background: #0f1219; }
.fig figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.45; }
.side { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; margin: 8px 0 20px; }
.side .fig { margin: 0; }
.grid { display: grid; gap: 16px; margin: 8px 0 20px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid .fig { margin: 0; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 24px; }
.pn a { text-decoration: none; padding: 12px 0; color: var(--ink); font-weight: 600; }
.pn a span { display: block; color: var(--muted); font-weight: 400; font-size: 14px; margin-bottom: 2px; }
.pn .next { text-align: right; grid-column: 2; }

.search { position: relative; margin: 8px 0 28px; }
.search input { width: 100%; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; }
.search input:focus { outline: 2px solid var(--buy); outline-offset: 1px; }
.hits { list-style: none; margin: 8px 0 0 !important; padding: 0 !important; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.hits li { margin: 0 !important; border-bottom: 1px solid var(--line); }
.hits li:last-child { border-bottom: 0; }
.hits a { display: block; padding: 12px 16px; text-decoration: none; }
.hits a:hover, .hits a:focus { background: var(--panel); }
.hits b { display: block; }
.hits span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.nores { color: var(--muted) !important; margin-top: 10px; }

.cards, .news { list-style: none; margin: 32px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.news { grid-template-columns: 1fr; }
.cards li, .news li { margin: 0 !important; border-top: 1px solid var(--line); }
.cards a, .news a { display: block; padding: 20px 0 22px; text-decoration: none; }
.cards h3, .news h3 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.cards a:hover h3, .news a:hover h3 { text-decoration: underline; text-decoration-color: var(--buy); text-underline-offset: 4px; }
.cards p, .news p { margin: 0 !important; color: var(--muted) !important; font-size: 16px; }
.news time { color: var(--muted); font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 28px 0 !important; }
.contacts { list-style: none; padding: 0 !important; }
.contacts span { color: var(--muted); display: inline-block; min-width: 200px; }

@media (max-width: 1000px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .top { flex-wrap: wrap; gap: 12px; }
  .top nav { width: 100%; overflow-x: auto; gap: 20px; padding-bottom: 4px; }
  .top nav a:not(.lang) { display: inline; white-space: nowrap; }
  .top nav .lang { margin-left: auto; }
  .side, .grid.c3, .grid.c4, .cards { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
}

.prose .toc-list a { text-decoration: none; color: #c8cedb; }
.prose .toc-list a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--buy); }
.prose .toc-list .part ol li { margin: 4px 0; }

@media (max-width: 900px) { .top nav { scrollbar-width: none; } .top nav::-webkit-scrollbar { display: none; } }

/* ---------- the cabinet (/account/, made by the AI service in the frame of the site) ---------- */
.acct .card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 18px 0 8px; }
.acct .card p { margin: 0 0 8px; }
.acct .card.err { border-color: var(--sell); }
.acct .nums { display: flex; gap: 32px; flex-wrap: wrap; }
.acct .nums b { display: block; font: 600 30px/1.2 "JB Mono", ui-monospace, monospace; color: var(--ink); }
.acct .nums span { font-size: 14px; }
.acct .code { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.acct .code code { font: 16px "JB Mono", ui-monospace, monospace; background: #0f1219; border: 1px solid var(--poc); border-radius: 6px;
  padding: 10px 12px; word-break: break-all; flex: 1 1 300px; color: var(--ink); }
.acct form { display: inline; }
.acct form.out { display: block; margin-top: 40px; }
.acct button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.acct .muted { color: var(--muted) !important; }
.acct button.btn.primary { border: 0; }
.acct button.btn.ghost { background: none; }
.acct form + span.muted { margin-left: 12px; }
