/* Сайт Swarme (10.11.2026, третья версия): одна полноценная страница, тема «Чёрный», много свободного места.
   Карточки собраны разметкой, цифры живые (/pub/home). Движение — по замерам источников владельца (brief/07_MOTION.md):
   слова заголовка — из размытия (affectUI, 700 мс, шаг 40 мс); блоки — Blur Fade (Magic UI); линии графиков — шторка bklit;
   столбики — волна bklit; свет за курсором — Magic Card; строка цен — Marquee; стрелка шкалы — пружина. */
/* Моноширинный убран везде 27.11.2026 (решение владельца): --mono = «Medeo Sans Tab» — наш Medeo, только цифры одной
   ширины (файл терминала /fonts/…-sw-tab.woff2, собирает swarm_terminal/site/tools/medeo_tab.py) */
@font-face { font-family: 'Medeo Sans Tab'; src: url('/fonts/medeo-1.1.0/MedeoSansVariable-sw-tab.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #000; --card: #0C0C0E; --card-2: #111114; --well: #08080A;
  --line: rgba(255,255,255,.08); --line-hi: rgba(255,255,255,.15);
  --ink: #F4F4F5; --ink-2: #B4B4BB; --ink-3: #85858D; --ink-4: #4A4A51;
  --accent: #86A4FF; --up: #3CCB8F; --down: #FF6A6E; --warn: #F5B984;
  --btn: #F4F4F5; --btn-ink: #09090B;
  --mono: 'Medeo Sans Tab', 'Medeo Sans', Geist, sans-serif;
  --ease-out: cubic-bezier(.25,1,.5,1); --ease-strong: cubic-bezier(.22,1,.36,1); --ease-reveal: cubic-bezier(.2,.7,.2,1);
  --spring: linear(0, 0.043, 0.139, 0.254, 0.372, 0.481, 0.577, 0.661, 0.73, 0.786, 0.833, 0.869, 0.898, 0.922, 0.94, 0.954, 0.965, 0.973, 0.979, 0.984, 0.988, 0.991, 0.993, 0.995, 1);
  --r: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 16px/1.5 'Medeo Sans', Geist, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; /* Medeo в крупном кегле уже плотнее Geist — разрядка мягче (21.11.2026) */ line-height: 1.02; }
h1 { font-size: clamp(44px, 6.2vw, 84px); max-width: 14em; }
h2 { font-size: clamp(32px, 3.6vw, 46px); }
h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.lights { position: absolute; left: 0; right: 0; top: 0; height: 1100px; pointer-events: none; z-index: 0;
  background: radial-gradient(56vw 520px at 0% -80px, rgba(134,164,255,.16), transparent 70%), radial-gradient(44vw 420px at 100% 520px, rgba(160,120,255,.08), transparent 70%); }
.wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.lbl { font-size: 13px; color: var(--ink-3); }
.up { color: var(--up); } .down { color: var(--down); }

/* ---------- шапка: прозрачная, при прокрутке — стекло ---------- */
.nav { position: sticky; top: 0; z-index: 20; transition: background-color 240ms, box-shadow 240ms, backdrop-filter 240ms; }
.nav.scrolled { background: rgba(0,0,0,.62); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.01em; }
.brand b { font-weight: 600; }
.mark { width: 22px; height: 22px; flex: none; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 14.5px; transition: color 140ms; }
.nav-links a:hover { color: var(--ink); }
/* «API» — кабинет платного API: отдельной ссылкой, чтобы на телефоне (меню разделов там скрыто) она оставалась в шапке */
.nav-api { color: var(--ink-2); font-size: 14.5px; transition: color 140ms; }
.nav-api:hover { color: var(--ink); }
.lang { font: 500 12px var(--mono); letter-spacing: .06em; color: var(--ink-3); padding: 6px 2px; transition: color 140ms; }
.lang:hover { color: var(--ink); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 16px 'Medeo Sans', Geist, sans-serif; white-space: nowrap; transition: background-color 160ms, box-shadow 200ms, transform 140ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--btn); color: var(--btn-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.btn-main:hover { background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 5px rgba(255,255,255,.09); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-hi); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- первый экран ---------- */
.hero { position: relative; z-index: 1; padding: 92px 0 0; }
.hero h1 .w { display: inline-block; }
.sub { margin: 26px 0 36px; font-size: 19px; color: var(--ink-2); max-width: 30em; }
.board { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 10px; margin: 84px 0 0; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 196px; padding: 20px 20px 0; border-radius: var(--r); background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.04); overflow: hidden; }
.num { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.num b { font: 500 30px/1.05 'Medeo Sans', Geist, sans-serif; letter-spacing: -.02em; white-space: nowrap; transition: color 400ms; }
.num i { font: 500 13.5px var(--mono); font-style: normal; color: var(--ink-3); white-space: nowrap; }
.tile .spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 86px; }
.tile .dial { width: 150px; margin: auto auto 14px; }
.tile .bars { margin-top: auto; }
.tape { position: relative; overflow: hidden; height: 44px; margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tape-run { display: flex; width: max-content; height: 100%; align-items: center; font: 500 12.5px var(--mono); color: var(--ink-2); white-space: nowrap; animation: tape 90s linear infinite; }
.tape-run > span { padding: 0 18px; }
.tape-run b { color: var(--ink); font-weight: 500; margin-right: 8px; }
.tape:hover .tape-run { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- графики (общие) ---------- */
.spark { display: block; overflow: visible; }
.spark .line { fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark .fill { fill: url(#none); fill: rgba(134,164,255,.10); }
.spark.is-up .line { stroke: var(--up); } .spark.is-up .fill { fill: rgba(60,203,143,.09); }
.spark.is-down .line { stroke: var(--down); } .spark.is-down .fill { fill: rgba(255,106,110,.08); }
.spark.drawn { animation: wipe 1100ms cubic-bezier(.85,0,.15,1) both; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade { from { opacity: 0; } }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.bars i { flex: 1; min-width: 2px; height: var(--h, 10%); border-radius: 3px 3px 1px 1px; background: rgba(255,255,255,.18); transform-origin: 50% 100%; transition: height 500ms var(--ease-out); }
.bars i.hot { background: var(--accent); }
.bars.grow i { animation: grow 640ms var(--ease-strong) both; animation-delay: calc(var(--k, 0) * 18ms); }
@keyframes grow { from { transform: scaleY(0); } }
.bars.mini { height: 54px; margin: auto -2px 18px; }
.bars.rise { height: 54px; margin: auto 0 18px; gap: 6px; }
.bars.rise i { background: rgba(60,203,143,.55); }
.dial { display: block; overflow: visible; }
.dial .track, .dial .arc { fill: none; stroke-width: 9; stroke-linecap: round; }
.dial .track { stroke: rgba(255,255,255,.08); }
.dial .arc { stroke: url(#none); stroke: var(--warn); stroke-dasharray: 0 100; transition: stroke-dasharray 1200ms var(--ease-strong), stroke 400ms; }
.dial .needle { transform-origin: 60px 62px; transform: rotate(-90deg); transition: transform 1300ms var(--spring); }
.dial .needle line { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.dial .needle circle { fill: var(--ink); }

/* ---------- разделы ---------- */
.sec { position: relative; z-index: 1; padding: 168px 0 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.sec-head p { color: var(--ink-3); font-size: 16px; max-width: 26em; text-align: right; }
.card, .stat, .movers, .ex { position: relative; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.04); overflow: hidden; }
/* свет за курсором (Magic Card): координаты ставит скрипт, только мышь */
[data-spot]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 260ms;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(134,164,255,.09), transparent 70%); }
[data-spot]:hover::after { opacity: 1; }

/* возможности: мозаика из шести карточек */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.card { display: flex; flex-direction: column; gap: 22px; padding: 26px; min-height: 380px; }
.card-txt p { margin-top: 6px; color: var(--ink-3); font-size: 15px; }
.c-markets { grid-column: span 4; } .c-trench { grid-column: span 2; }
.c-events, .c-levels, .c-ai, .c-alerts { grid-column: span 3; }
.table { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 76px 1fr 120px 86px; align-items: center; gap: 12px; height: 46px; border-top: 1px solid var(--line); font-size: 15px; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row b { font: 500 14px var(--mono); }
.row .p { font: 500 14.5px var(--mono); text-align: right; border-radius: 6px; padding: 2px 6px; transition: background-color 600ms; }
.row .ch { font: 500 13px var(--mono); text-align: right; }
.spark.tiny { width: 120px; height: 24px; }
.flash-up { background: rgba(60,203,143,.16) !important; transition: none !important; }
.flash-down { background: rgba(255,106,110,.16) !important; transition: none !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chips i { font-style: normal; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-hi); }
.big { display: flex; flex-direction: column; gap: 2px; }
.big b { font: 600 46px/1 'Medeo Sans', Geist, sans-serif; letter-spacing: -.025em; }
.big span { color: var(--ink-3); font-size: 14px; }
.foot-line { color: var(--ink-3); font-size: 14px; } .foot-line b { color: var(--ink); font-weight: 500; }
.c-trench .bars { height: 92px; }
.feed { display: flex; flex-direction: column; flex: 1; }
.feed li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.feed li i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.feed li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li span b { color: var(--ink); font-weight: 500; }
.feed li time { font: 500 12px var(--mono); color: var(--ink-3); }
.feed li.new { animation: slide-in 520ms var(--ease-strong) both; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-10px); filter: blur(3px); } }
.t-whale i, i.t-whale { background: var(--accent) !important; } .t-oi i, i.t-oi { background: #C0AAF3 !important; } .t-liq i, i.t-liq { background: var(--down) !important; }
.t-volume i, i.t-volume { background: var(--warn) !important; } .t-funding i, i.t-funding { background: var(--up) !important; } .t-twap i, i.t-twap { background: #7DD3FC !important; }
.chart { position: relative; flex: 1; min-height: 200px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.chart .spark.wide { position: absolute; left: 0; right: 0; top: 28px; bottom: 28px; width: 100%; height: calc(100% - 56px); }
.chart .spark .fill { fill: rgba(134,164,255,.07); }
.chart .spark .line { stroke: var(--ink); }
.lv { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 12px; border-top: 1px dashed rgba(134,164,255,.55); font-size: 12px; color: var(--accent); z-index: 2; transition: top 600ms var(--ease-out); }
.lv i { font-style: normal; transform: translateY(-120%); } .lv b { font: 500 12px var(--mono); transform: translateY(-120%); color: var(--ink); }
.lv.hi { top: 28px; } .lv.lo { top: calc(100% - 28px); }
.lv.lo i, .lv.lo b { transform: translateY(20%); }
.chat { position: relative; flex: 1; display: flex; flex-direction: column; padding: 16px; border-radius: 16px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.chat em { position: absolute; left: 16px; top: 14px; font: 500 11px var(--mono); font-style: normal; color: var(--ink-3); }
.chat .q { align-self: flex-end; max-width: 86%; min-height: 36px; padding: 7px 14px; border-radius: 15px; background: var(--btn); color: var(--btn-ink); font-size: 15px; }
.chat .q.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: currentColor; animation: caret 900ms steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat .a { display: flex; gap: 10px; margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.chat .a > .mark { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.chat .a p { min-height: 3em; }
.chat .a p span { display: inline-block; animation: word 300ms var(--ease-reveal) both; }
@keyframes word { from { opacity: 0; filter: blur(4px); transform: translateY(.25em); } }
.levels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; min-height: 30px; }
.levels i { font-style: normal; padding: 4px 11px; border-radius: 999px; font-size: 13px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-hi); animation: pop 380ms var(--spring) both; }
.levels i + i { animation-delay: 120ms; }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(4px); } }
.chat.wipe .q, .chat.wipe .a { opacity: 0; filter: blur(3px); transition: opacity 240ms, filter 240ms; }
/* стопка уведомлений: верхнее — целиком, нижние выглядывают (affectUI) */
.stack { position: relative; flex: 1; min-height: 236px; }
.toast { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px;
  border-radius: 16px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-hi), 0 18px 40px -18px #000; transition: transform 520ms var(--ease-strong), opacity 420ms; }
.toast:nth-child(1) { z-index: 3; }
.toast:nth-child(2) { z-index: 2; transform: translateY(80px) scale(.97); opacity: .62; }
.toast:nth-child(3) { z-index: 1; transform: translateY(158px) scale(.94); opacity: .3; }
.toast.ghost { height: 68px; }
.toast .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.toast .ico i { width: 9px; height: 9px; border-radius: 50%; }
.toast b { display: block; font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast span { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast time { font: 500 12px var(--mono); color: var(--ink-3); }
.toast.leave { transform: translateY(-14px) scale(1.02); opacity: 0; }

/* рынок сейчас */
.stats { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.35fr; grid-template-rows: auto auto; gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 12px; padding: 22px; min-height: 170px; }
.s-fear { grid-column: 1; grid-row: 1 / span 2; }
.s-fear .dial { width: 100%; max-width: 250px; margin: auto auto 0; }
.s-fear .num b { font-size: 46px; }
.was { color: var(--ink-3); font-size: 13.5px; text-align: center; }
.meter { margin-top: auto; height: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #F7931A, #FFC56E); transition: width 1200ms var(--ease-strong); }
.movers { grid-column: 4; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.seg { display: inline-flex; align-self: flex-start; padding: 3px; border-radius: 999px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; padding: 6px 14px; border-radius: 999px; background: transparent; color: var(--ink-3); font: 500 13px var(--mono); cursor: pointer; transition: color 160ms, background-color 200ms; }
.seg button[aria-selected="true"] { background: #1C1C20; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-hi); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols ol { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.cols li { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 9px; font: 500 13.5px var(--mono); overflow: hidden; }
.cols li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); border-radius: inherit; background: currentColor; opacity: .1; transition: width 700ms var(--ease-strong); }
.cols li b { position: relative; color: var(--ink); font-weight: 500; } .cols li span { position: relative; }

/* примеры */
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ex { display: flex; flex-direction: column; gap: 14px; min-height: 210px; padding: 22px; }
.ex.ghost { background: linear-gradient(100deg, var(--card) 40%, #141417 50%, var(--card) 60%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -100% 0; } }
.ex .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ex .type { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); }
.ex .type i { width: 7px; height: 7px; border-radius: 50%; }
.ex time { font: 500 12px var(--mono); color: var(--ink-3); }
.ex .sym { font: 600 22px 'Medeo Sans', Geist, sans-serif; letter-spacing: -.02em; }
.ex .txt { color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ex .after { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.ex .after b { font: 600 30px 'Medeo Sans', Geist, sans-serif; letter-spacing: -.02em; }
.ex .after span { color: var(--ink-3); font-size: 13px; }
.note { margin-top: 18px; color: var(--ink-4); font-size: 13px; }

/* как начать и вопросы */
.start { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 36px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 28px 20px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.steps li span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font: 500 14px var(--mono); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-hi); }
.start .cta { justify-content: center; }
.help { color: var(--ink-3); font-size: 14px; margin-top: -16px; }
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 22px 'Medeo Sans', Geist, sans-serif; color: var(--ink-3); transition: transform 240ms var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); padding: 0 40px 22px 0; }
details[open] p { animation: in-soft 300ms var(--ease-strong) both 60ms; }
.foot { position: relative; z-index: 1; margin-top: 168px; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding-top: 28px; padding-bottom: 44px; color: var(--ink-3); font-size: 13.5px; }
.foot-in nav { display: flex; gap: 22px; margin-left: auto; }
.foot-in nav a:hover { color: var(--ink); }

/* ---------- появление ---------- */
@keyframes in { from { opacity: 0; filter: blur(8px); transform: translateY(.35em); } }
@keyframes in-soft { from { opacity: 0; filter: blur(6px); transform: translateY(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.hero h1 .w, .hero [data-in] { animation: in 760ms var(--ease-reveal) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
.hero .tile[data-in] { animation: rise 900ms var(--spring) both; animation-delay: calc(var(--i, 0) * 70ms); }
.hero .tape { animation: wipe 1100ms cubic-bezier(.85,0,.15,1) both 700ms; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.nav { animation: fade 600ms var(--ease-out) both 100ms; }
/* разделы проявляются один раз, когда до них долистали: заголовок, потом карточки лесенкой */
.js [data-reveal] > * { opacity: 0; }
.js [data-reveal].seen > * { opacity: 1; animation: in-soft 620ms var(--ease-strong) both; animation-delay: calc(var(--k, 0) * 70ms); }

/* ---------- телефон и планшет ---------- */
@media (max-width: 1080px) {
  .board { grid-template-columns: 1fr 1fr; }
  .bento > * { grid-column: span 6 !important; }
  .stats { grid-template-columns: 1fr 1fr; }
  .s-fear { grid-row: auto; grid-column: span 2; }
  .movers { grid-column: span 2; grid-row: auto; }
  .examples { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-in { height: 60px; gap: 14px; }
  .nav-links { display: none; } .nav-api { margin-left: auto; }
  .hero { padding-top: 40px; }
  .sub { font-size: 17px; margin: 18px 0 26px; }
  .cta .btn { flex: 1 1 100%; height: 54px; }
  .board { margin-top: 44px; gap: 8px; }
  .tile { min-height: 158px; padding: 16px 16px 0; }
  .num b { font-size: 23px; } .tile .dial { width: 118px; }
  .tile .num { flex-direction: column; align-items: flex-start; gap: 2px; }
  .sec { padding-top: 112px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 26px; }
  .sec-head p { text-align: left; }
  .card { min-height: 0; padding: 20px; }
  .row { grid-template-columns: 62px 1fr 92px; } .row .mini-spark { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 16px; min-height: 130px; } .stat .num b { font-size: 22px; } .s-fear .num b { font-size: 36px; }
  .examples { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 20px; }
  .foot { margin-top: 112px; } .foot-in nav { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] > * { opacity: 1; }
}

/* ═════════ четвёртая версия (10.11.2026): упор на терминал — снимки экранов и живые карточки рядом ═════════ */
.hero { padding-top: 96px; }
.hero-txt { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-txt h1 { max-width: 15em; }
.hero-txt .sub { margin: 24px auto 34px; max-width: 34em; }
.hero-txt .cta { justify-content: center; }
/* сцена: большое окно терминала наклонено и выпрямляется при прокрутке (--tilt ставит скрипт), телефон — поверх справа */
.stage { position: relative; margin-top: 72px; perspective: 1800px; }
.frame { position: relative; margin: 0; border-radius: 18px; padding: 6px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px var(--line-hi), 0 40px 120px -40px rgba(0,0,0,.9), 0 -20px 120px -50px rgba(134,164,255,.35); }
.frame img { display: block; width: 100%; height: auto; border-radius: 13px; background: #050506; }
.frame.big { transform: rotateX(var(--tilt, 16deg)) scale(var(--zoom, .96)); transform-origin: 50% 0; transition: transform 120ms linear; will-change: transform; }
.phone { position: absolute; margin: 0; right: 2%; bottom: -8%; width: 21%; padding: 7px; border-radius: 34px; background: #0a0a0c;
  box-shadow: inset 0 0 0 1px var(--line-hi), inset 0 0 0 5px #000, 0 40px 80px -24px #000, 0 0 0 1px rgba(255,255,255,.04); }
.phone img { display: block; width: 100%; height: auto; border-radius: 28px; }
.stage .phone { transform: translateY(var(--lift, 30px)); transition: transform 160ms linear; }
.hero .tape { margin-top: 120px; }

/* разделы-показы: текст и снимок рядом, сторона чередуется */
.show { position: relative; z-index: 1; padding: 180px 0 0; }
.show-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: center; }
.show.right .show-txt { order: 2; }
.show.right .show-in { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.show-txt h2 { font-size: clamp(32px, 3.4vw, 46px); }
.show-txt p { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 22em; }
.points { display: flex; flex-direction: column; gap: 0; margin-top: 30px; }
.points li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); flex: none; }
.show-media { position: relative; }
.show-media .frame { transform: perspective(1800px) rotateY(var(--ry, 0deg)); }
.show.left .show-media .frame { --ry: -4deg; } .show.right .show-media .frame { --ry: 4deg; }
/* живые карточки — стекло поверх угла снимка */
.live { position: absolute; z-index: 3; padding: 16px; border-radius: 20px; background: rgba(14,14,17,.78); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--line-hi), inset 0 1px 0 rgba(255,255,255,.06), 0 30px 70px -20px #000; }
.live-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.live-top b { font-weight: 600; } .live-top span { font: 500 12px var(--mono); color: var(--ink-3); }
.l-bubbles { left: -56px; bottom: -64px; width: 430px; }
.l-btc { right: -36px; top: -40px; width: 260px; overflow: hidden; padding-bottom: 0; }
.l-btc .num b { font-size: 28px; } .l-btc .spark { width: calc(100% + 32px); height: 70px; margin: 8px -16px 0; }
.l-tokens { right: -40px; bottom: -70px; width: 300px; }
.l-feed { left: -56px; bottom: -64px; width: 430px; }
.l-chat { right: -36px; bottom: -60px; width: 400px; min-height: 0; }
.l-chat.chat { padding: 16px; }
.l-chat em { position: static; display: block; margin-bottom: 8px; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(60,203,143,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(60,203,143,0); } 100% { box-shadow: 0 0 0 0 rgba(60,203,143,0); } }
.tokens { display: flex; flex-direction: column; margin-bottom: 12px; }
.tokens li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; height: 38px; border-top: 1px solid var(--line); font: 500 13.5px var(--mono); }
.tokens li i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 11px 'Medeo Sans', Geist, sans-serif; font-style: normal; color: #000; }
.tokens li time { font-size: 12px; color: var(--ink-3); }
.tokens li.new { animation: slide-in 520ms var(--ease-strong) both; }
.l-tokens .bars { height: 40px; margin-top: 10px; }
.l-feed .feed li { min-height: 40px; font-size: 13.5px; }
/* пузыри рынка */
.bubbles { display: block; width: 100%; height: auto; overflow: visible; }
.bubbles g { transform-box: fill-box; transform-origin: center; animation: bub-in 700ms var(--spring) both; animation-delay: calc(var(--k, 0) * 22ms); }
@keyframes bub-in { from { transform: scale(0); opacity: 0; } }
.bubbles circle { stroke-width: 1; transition: fill 600ms, stroke 600ms; }
.bubbles text { fill: var(--ink); font-family: 'Medeo Sans', Geist, sans-serif; font-weight: 600; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.bubbles text.pc { font-family: var(--mono); font-weight: 500; fill: var(--ink-2); }
/* телефоны */
.sec-head.center { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.sec-head.center p { text-align: center; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 36px; padding-top: 20px; }
.phones .phone { position: relative; right: auto; bottom: auto; width: min(300px, 28%); }
.phones .phone:nth-child(2) { transform: translateY(-40px); }
/* появление снимков при прокрутке: поднимаются из глубины */
.js [data-rise] { opacity: 0; transform: translateY(70px) scale(.97); }
.js [data-rise].seen { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out), transform 1100ms var(--spring); }
.hero .stage .frame.big { animation: rise 1100ms var(--spring) both 360ms; }
.hero .stage .phone { animation: rise 1100ms var(--spring) both 620ms; }
/* всплеск на кнопке входа: кнопка лопается, частицы разлетаются, экран темнеет — дальше страница входа собирает знак */
/* шторка темнеет чуть позже нажатия: сначала видно, как кнопка тает от места нажатия (burst.js) */
.burst-veil { position: fixed; inset: 0; z-index: 99; opacity: 0; pointer-events: none; transition: opacity 380ms var(--ease-out) 90ms;
  /* фон страницы входа (auth/login_page.py, тема «Чёрный»): два пятна света и зерно — на стыке страниц фон не меняется */
  background: radial-gradient(circle 75vmax at 8% -5%, rgba(134, 164, 255, .065), rgba(134, 164, 255, 0)),
    radial-gradient(circle 75vmax at 95% 102%, rgba(190, 150, 255, .045), rgba(190, 150, 255, 0)),
    url(/bg/grain-black.png) 0 0 / 256px 256px, #000; }
@media (min-resolution: 2dppx) { .burst-veil { background-size: auto, auto, 128px 128px, auto; } }
.burst-veil.on { opacity: 1; }
.burst-cv { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.btn.popped { animation: pop-out 320ms var(--ease-strong) both; }
@keyframes pop-out { 40% { transform: scale(1.08); } to { transform: scale(.2); opacity: 0; filter: blur(4px); } }

@media (max-width: 1080px) {
  .show-in, .show.right .show-in { grid-template-columns: 1fr; gap: 36px; }
  .show.right .show-txt { order: 0; }
  .live { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; margin-top: -40px; margin-left: 16px; margin-right: 16px; }
  .l-btc { margin-top: -40px; }
  .show { padding-top: 120px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 34px; }
  .hero-txt { align-items: stretch; text-align: left; }
  .hero-txt .sub { margin: 16px 0 24px; }
  .stage { margin-top: 44px; }
  .frame.big { width: 900px; max-width: none; }
  .stage { overflow: hidden; padding-bottom: 30px; }
  .phone { width: 44%; right: 24px; bottom: 0; }
  .hero .tape { margin-top: 56px; }
  .show { padding-top: 96px; }
  .show-txt p { font-size: 16.5px; }
  .live { margin-left: 8px; margin-right: 8px; }
  .phones { gap: 10px; } .phones .phone { width: 32%; border-radius: 22px; padding: 4px; } .phones .phone img { border-radius: 18px; }
  .phones .phone:nth-child(2) { transform: translateY(-20px); }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; }
  .frame.big { transform: none; }
}
