
  :root {
    --bg: #080808; --ink: #f4f4f2; --g1: #a3a3a0; --g2: #6b6b68; --g3: #2b2b2a; --line: #1e1e1d; --panel: #0d0d0d;
    --hot: #f4f4f2;
    --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, Consolas, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.3, 1.4, .5, 1);
  }
  * { box-sizing: border-box; margin: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 72px; }
  body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  a { color: inherit; text-decoration: none; } button { font: inherit; color: inherit; cursor: pointer; }
  ::selection { background: var(--hot); color: #000; }
  :focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
  .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
  .cap { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--g2); }
  .wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
  .hot { color: var(--hot); }

  /* nav */
  nav { position: fixed; inset: 0 0 auto 0; z-index: 30; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
  nav.stuck { background: rgba(8, 8, 8, .86); backdrop-filter: blur(12px); border-color: var(--line); }
  nav .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
  .mark { font: 700 18px var(--sans); letter-spacing: -.04em; display: flex; align-items: center; gap: 8px; }
  .mark i { width: 9px; height: 9px; background: var(--hot); display: block; }
  nav .links { display: flex; gap: 28px; font-size: 14px; color: var(--g1); }
  nav .links a { transition: color .2s; } nav .links a:hover { color: var(--ink); }
  nav .px { margin-left: auto; font: 13px var(--mono); color: var(--g1); }
  nav .px b { color: var(--ink); font-weight: 500; margin-left: 8px; }
  .btn { display: inline-flex; align-items: center; gap: 10px; font: 600 14px var(--sans); letter-spacing: -.01em; background: var(--ink); color: #000; border: 0; padding: 11px 18px; border-radius: 4px; transition: background .2s, color .2s, transform .15s; }
  .btn:hover { background: #c9c9c5; } .btn:active { transform: scale(.97); }
  .btn span { transition: transform .25s var(--ease); } .btn:hover span { transform: translateX(4px); }
  .btn.line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--g3); }
  .btn.line:hover { background: var(--ink); color: #000; }

  /* hero */
  .hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); overflow: hidden; }
  #gl { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero .wrap { position: relative; width: 100%; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
  h1 { font: 700 clamp(44px, 7.4vw, 128px)/.92 var(--sans); letter-spacing: -.06em; }
  h1 span { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
  h1 span b { display: block; font-weight: 700; transform: translateY(105%); animation: up 1s var(--ease) forwards; }
  h1 span:nth-child(2) b { animation-delay: .1s; color: var(--g2); }
  @keyframes up { to { transform: none; } }
  .hero p { max-width: 420px; color: var(--g1); font-size: 17px; margin: 28px 0 28px; opacity: 0; animation: in .8s .45s forwards; }
  .hero .btn { opacity: 0; animation: in .8s .6s forwards; }
  @keyframes in { to { opacity: 1; } }
  .readout { text-align: right; opacity: 0; animation: in .8s .75s forwards; }
  .readout b { display: block; font: 700 clamp(56px, 7vw, 112px)/1 var(--sans); letter-spacing: -.06em; color: var(--hot); }
  .readout b small { font-size: .4em; color: var(--g2); letter-spacing: -.02em; }

  /* live strip */
  .strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .strip div { padding: 22px 32px; border-left: 1px solid var(--line); }
  .strip div:first-child { border-left: 0; }
  .strip b { display: block; font: 500 22px var(--mono); margin-top: 4px; letter-spacing: -.02em; }

  section { padding: 140px 0; }
  .sech { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; margin-bottom: 72px; }
  h2 { font: 700 clamp(34px, 5vw, 76px)/.98 var(--sans); letter-spacing: -.05em; max-width: 980px; }
  h2 em { font-style: normal; color: var(--g2); }
  .rule { height: 1px; background: var(--line); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
  .rule.on { transform: none; }
  .fade { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .fade.on { opacity: 1; transform: none; }

  /* explainer: drag the leverage, watch margin and liquidation respond */
  .lab { display: grid; grid-template-columns: minmax(0, 1fr) 420px; border: 1px solid var(--line); }
  .lab .viz { position: relative; height: 420px; border-right: 1px solid var(--line); overflow: hidden; }
  .lab .viz .pxl, .lab .viz .lql { position: absolute; left: 0; right: 0; height: 1px; }
  .lab .viz .pxl { top: 64px; background: var(--ink); }
  .lab .viz .lql { top: 64px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); transition: transform .5s var(--ease); }
  .lab .viz .gap { position: absolute; left: 0; right: 0; top: 64px; background: #101010; transform-origin: top; height: 320px; transition: transform .5s var(--ease); }
  .lab .viz .dim { position: absolute; left: 50%; top: 64px; width: 1px; background: var(--g2); transition: height .5s var(--ease); }
  .lab .viz .dim::before, .lab .viz .dim::after { content: ""; position: absolute; left: -5px; width: 11px; height: 1px; background: var(--g1); } .lab .viz .dim::before { top: 0; } .lab .viz .dim::after { bottom: 0; }
  .lab .viz .pct { position: absolute; left: 50%; top: 64px; margin-left: 20px; font: 700 56px/1 var(--sans); letter-spacing: -.05em; transition: transform .5s var(--ease); }
  .lab .viz span { position: absolute; left: 24px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .lab .viz .t1 { top: 40px; color: var(--g1); } .lab .viz .t2 { top: 72px; color: var(--hot); transition: transform .5s var(--ease); }
  .lab .ctl { padding: 32px; display: flex; flex-direction: column; gap: 28px; }
  .big { font: 700 96px/1 var(--sans); letter-spacing: -.06em; }
  .big small { font-size: .4em; color: var(--g2); }
  .kv { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); color: var(--g1); font-size: 14px; }
  .kv b { font: 500 16px var(--mono); color: var(--ink); }
  input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: linear-gradient(to right, var(--ink) var(--f, 44%), var(--g3) var(--f, 44%)); margin: 12px 0; }
  input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--hot); border-radius: 0; cursor: grab; transition: transform .2s var(--spring); }
  input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2) rotate(45deg); }
  input[type=range]::-moz-range-thumb { width: 20px; height: 20px; background: var(--hot); border: 0; border-radius: 0; }

  /* rules list: rows invert on hover */
  .rows { border-top: 1px solid var(--line); margin-top: 96px; }
  .r { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; position: relative; transition: color .35s, padding .35s var(--ease); }
  .r::before { content: ""; position: absolute; inset: 0 -32px; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); z-index: -1; }
  .r:hover { color: #000; padding-left: 12px; } .r:hover::before { transform: none; }
  .r:hover .cap, .r:hover p { color: #333; }
  .r h3 { font: 600 28px/1.1 var(--sans); letter-spacing: -.035em; }
  .r p { color: var(--g1); transition: color .35s; }

  /* terminal: flat panels divided by hairlines */
  #terminal { padding: 128px 0 120px; }
  .tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .tgrid > * { background: var(--bg); min-width: 0; }
  .span { grid-column: 1 / -1; }
  .ph { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
  .pb { padding: 20px; }
  .bar { display: flex; align-items: stretch; }
  .sel { position: relative; border-right: 1px solid var(--line); }
  .selb { display: flex; align-items: center; gap: 14px; height: 100%; padding: 0 24px; background: none; border: 0; font: 700 26px var(--sans); letter-spacing: -.04em; transition: background .2s; }
  .selb:hover { background: var(--panel); }
  .selb svg { transition: transform .3s var(--ease); } .sel.open .selb svg { transform: rotate(180deg); }
  .menu { position: absolute; top: 100%; left: -1px; width: 260px; background: var(--bg); border: 1px solid var(--g3); z-index: 10; clip-path: inset(0 0 100% 0); transition: clip-path .35s var(--ease); }
  .sel.open .menu { clip-path: inset(0); }
  .menu button { display: flex; justify-content: space-between; width: 100%; padding: 13px 16px; background: none; border: 0; border-top: 1px solid var(--line); font: 500 14px var(--sans); transition: background .15s, color .15s; }
  .menu button:first-child { border-top: 0; }
  .menu button:hover { background: var(--ink); color: #000; }
  .menu button span { font: 13px var(--mono); opacity: .6; }
  .stats { display: flex; flex: 1; overflow-x: auto; }
  .stats, .feed { scrollbar-width: none; } .stats::-webkit-scrollbar, .feed::-webkit-scrollbar { display: none; }
  .stat { padding: 14px 24px; border-right: 1px solid var(--line); white-space: nowrap; }
  .stat b { display: block; font: 500 16px var(--mono); margin-top: 2px; }
  .stat.main b { font-size: 22px; }
  .tag { margin-left: auto; align-self: center; padding: 0 24px; white-space: nowrap; }
  canvas#chart { width: 100%; height: 420px; display: block; }
  .lg { display: flex; gap: 18px; } .lg i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; }

  .seg { display: grid; grid-template-columns: 1fr 1fr; position: relative; box-shadow: inset 0 0 0 1px var(--g3); border-radius: 4px; }
  .seg button { position: relative; z-index: 1; background: none; border: 0; padding: 13px; font: 600 14px var(--sans); color: var(--g1); transition: color .3s; }
  .seg button.on { color: #000; }
  .seg .th { position: absolute; inset: 0 50% 0 0; background: var(--ink); border-radius: 4px; transition: transform .4s var(--spring); }
  .seg.short .th { transform: translateX(100%); }
  .fld { margin-top: 22px; }
  .fld label { display: flex; justify-content: space-between; margin-bottom: 10px; }
  .fld label b { font: 500 12px var(--mono); color: var(--ink); }
  .inp { display: flex; align-items: baseline; border-bottom: 1px solid var(--g3); transition: border-color .2s; margin-bottom: 10px; }
  .inp:focus-within { border-color: var(--ink); }
  .inp input { flex: 1; min-width: 0; font: 600 34px var(--sans); letter-spacing: -.04em; border: 0; background: none; color: var(--ink); padding: 4px 0 8px; outline: 0; -moz-appearance: textfield; }
  .inp input::-webkit-outer-spin-button, .inp input::-webkit-inner-spin-button { -webkit-appearance: none; }
  .picks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
  .pick { font: 500 12px var(--mono); background: none; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 4px; padding: 9px 0; color: var(--g1); transition: all .2s; }
  .pick:hover { box-shadow: inset 0 0 0 1px var(--g1); color: var(--ink); }
  .pick.on { background: var(--ink); color: #000; box-shadow: none; }
  .go { width: 100%; justify-content: center; padding: 16px; font-size: 15px; margin-top: 20px; }
  .err { color: var(--ink); font-weight: 500; font-size: 12px; min-height: 18px; margin-top: 8px; }
  .btn.arm { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); animation: arm 1s ease-in-out infinite; }
  @keyframes arm { 50% { box-shadow: inset 0 0 0 2px var(--g2); } }
  .btn[disabled] { opacity: .35; pointer-events: none; }
  .net { color: var(--hot); font-weight: 500; }
  .disc { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; margin: 0 4px; padding: 0; }
  .disc:hover { color: var(--ink); }
  .ch { font: 700 34px/1 var(--sans); letter-spacing: -.04em; margin-bottom: 12px; }
  .cm { color: var(--g1); margin-bottom: 20px; }
  .steps { padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--line); }
  .steps li { counter-increment: s; padding: 16px 0 16px 44px; border-bottom: 1px solid var(--line); position: relative; color: var(--g1); font-size: 14px; }
  .steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 17px; font: 500 11px var(--mono); color: var(--hot); }
  code { font: 500 12px var(--mono); color: var(--ink); background: #161616; padding: 2px 6px; }
  .call.ERROR { background: var(--hot); color: #000; box-shadow: none; }

  .lev { font: 700 120px/.9 var(--sans); letter-spacing: -.07em; transition: color .4s; }
  .lev small { font-size: .36em; color: var(--g2); letter-spacing: -.02em; }
  .lev.flash { color: var(--g2); }
  .rail { position: relative; height: 44px; margin: 24px 0 8px; }
  .rail .trk { position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: var(--g3); }
  .rail .fill { position: absolute; left: 0; top: 14px; height: 2px; background: var(--ink); width: 0; transition: width .8s var(--spring); }
  .rail .knob { position: absolute; top: 5px; width: 20px; height: 20px; margin-left: -10px; background: var(--hot); left: 0; transition: left .8s var(--spring); }
  .rail .tgt { position: absolute; top: 2px; width: 2px; height: 26px; margin-left: -1px; background: var(--ink); left: 0; transition: left .8s var(--ease); }
  .rail .tk { position: absolute; top: 32px; font: 10px var(--mono); color: var(--g2); transform: translateX(-50%); }
  .cd { height: 1px; background: var(--line); } .cd i { display: block; height: 1px; width: 0; background: var(--hot); }
  .sw { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 14px; }
  .sw input { position: absolute; opacity: 0; }
  .sw i { width: 42px; height: 22px; box-shadow: inset 0 0 0 1px var(--g3); position: relative; transition: background .3s; }
  .sw i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; background: var(--g1); transition: transform .35s var(--spring), background .3s; }
  .sw input:checked + i { background: var(--ink); } .sw input:checked + i::after { transform: translateX(20px); background: #000; }
  .sw input:focus-visible + i { outline: 2px solid var(--hot); outline-offset: 3px; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
  .two .btn, .full { justify-content: center; } .full { width: 100%; }

  .feed { max-height: 320px; overflow-y: auto; }
  .row { display: grid; grid-template-columns: 84px 76px 130px minmax(0, 1fr) auto; gap: 16px; padding: 13px 20px; border-top: 1px solid var(--line); align-items: center; font-size: 13px; }
  .row.th { border-top: 0; }
  .row time, .row .lv, .row .by { font: 12px var(--mono); color: var(--g2); }
  .row .lv b { color: var(--ink); font-weight: 500; }
  .row.new { animation: rowin .7s var(--ease); }
  @keyframes rowin { from { opacity: 0; transform: translateX(-16px); background: var(--g3); } }
  .call { font: 500 11px var(--mono); padding: 4px 8px; justify-self: start; box-shadow: inset 0 0 0 1px var(--g3); color: var(--g1); }
  .call.UP { background: var(--ink); color: #000; box-shadow: none; }
  .empty { color: var(--g2); font-size: 13px; padding: 40px 0; text-align: center; }
  .hide { display: none !important; }
  .swap { animation: swap .5s var(--ease); } @keyframes swap { from { opacity: 0; transform: translateY(12px); } }
  footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--g2); font-size: 12px; }
  footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

  @media (max-width: 1000px) {
    .wrap { padding: 0 18px; } nav .links, nav .px { display: none; } nav .btn { margin-left: auto; }
    .hero .wrap, .sech, .lab, .tgrid, .r { grid-template-columns: 1fr; } .readout { text-align: left; }
    .strip { grid-template-columns: 1fr 1fr; } .strip div { padding: 16px 18px; } .strip div:nth-child(3) { border-left: 0; } .strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
    section { padding: 88px 0; } .sech { gap: 12px; margin-bottom: 44px; }
    .lab .viz { border-right: 0; border-bottom: 1px solid var(--line); height: 320px; } .big { font-size: 72px; }
    .r { gap: 8px; } .r::before { inset: 0 -18px; }
    .bar { flex-direction: column; } .sel { border-right: 0; border-bottom: 1px solid var(--line); } .selb { padding: 16px 20px; width: 100%; } .tag { display: none; }
    #c-chart { order: 1; } #ticket, #livep, #connect { order: 2; } #c-dec { order: 3; }
    .row { grid-template-columns: 70px 66px 1fr; } .row .why, .row .by { grid-column: 1 / -1; } .row.th .why, .row.th .by { display: none; }
    canvas#chart { height: 280px; } .lev { font-size: 96px; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; } }

  .cta2 { border-top: 1px solid var(--line); padding: 140px 0 160px; }
  .cta2 .btn { margin-top: 36px; padding: 16px 26px; font-size: 16px; }
  .who { margin-left: auto; align-self: center; padding: 0 24px; white-space: nowrap; }

  /* ---- tonal scale: twelve steps from black to white, used as surfaces as well as text ---- */
  :root {
    --k0: #040404; --bg: #0a0a0a; --s1: #101010; --s2: #171716; --s3: #1f1f1e; --line: #272726;
    --g3: #3b3b39; --g2: #6f6f6b; --g1: #a6a6a2; --w2: #cdcdc8; --ink: #f1f1ee; --w0: #ffffff; --hot: #f1f1ee;
  }
  .hero { background: radial-gradient(120% 90% at 85% 10%, #1a1a19 0%, var(--bg) 55%, var(--k0) 100%); }
  h1 span:nth-child(1) b { color: var(--w0); } h1 span:nth-child(2) b { color: var(--g2); }
  .hero p { color: var(--g1); } .readout b { color: var(--w2); } .readout b small { color: var(--g3); }
  .strip { background: var(--s1); }
  .strip div:nth-child(even) { background: var(--s2); }
  .strip b { color: var(--w2); }
  #how { background: linear-gradient(180deg, var(--bg), var(--k0)); }
  h2 { color: var(--w0); } h2 em { color: var(--g2); }
  .lab { background: var(--s1); border-color: var(--line); }
  .lab .viz { background: var(--k0); } .lab .viz .gap { background: linear-gradient(180deg, var(--s3), var(--s1)); }
  .lab .viz .pxl { background: var(--w0); } .lab .viz .pct { color: var(--w2); }
  .lab .ctl { background: var(--s2); } .big { color: var(--w0); }
  .kv b { color: var(--w2); }
  .r h3 { color: var(--ink); } .r:nth-child(2) h3 { color: var(--w2); } .r:nth-child(3) h3 { color: var(--g1); }
  .r:hover h3 { color: #000; }
  .r::before { background: linear-gradient(90deg, var(--w0), var(--w2)); }

  /* closing band flips to the light end of the scale */
  .cta2 { background: #e9e9e5; color: #0a0a0a; border-top: 0; }
  .cta2 .cap { color: #6f6f6b; } .cta2 h2 { color: #0a0a0a; } .cta2 h2 em { color: #9a9a95; }
  .cta2 .btn { background: #0a0a0a; color: #f1f1ee; } .cta2 .btn:hover { background: #3b3b39; }
  footer { background: var(--k0); color: var(--g3); }

  /* terminal surfaces: each panel sits on its own step */
  .tgrid { background: var(--line); border-color: var(--line); }
  .tgrid > .bar { background: var(--s2); } .stat b { color: var(--w2); } .stat.main b { color: var(--w0); }
  .stat:nth-child(even) { background: var(--s1); }
  #c-chart { background: var(--k0); } #ticket, #livep, #connect { background: var(--s1); } #c-dec { background: var(--bg); }
  .ph { background: var(--s2); }
  .seg { background: var(--k0); } .seg.short .th { background: var(--g1); }
  .inp input { color: var(--w0); }
  .pick { background: var(--s2); } .pick:hover { background: var(--s3); } .pick.on { background: var(--w2); color: #000; }
  .lev { color: var(--w0); } .lev small { color: var(--g3); }
  .rail .trk { background: var(--s3); } .rail .fill { background: linear-gradient(90deg, var(--g3), var(--w0)); }
  .rail .knob { background: var(--w0); box-shadow: 0 0 0 4px var(--s1); } .rail .tgt { background: var(--g1); }
  .btn { background: var(--ink); } .btn:hover { background: var(--w2); }
  .btn.line { background: var(--s2); box-shadow: inset 0 0 0 1px var(--g3); } .btn.line:hover { background: var(--w2); color: #000; }
  .row:nth-child(even) { background: var(--s1); }
  .call { background: var(--s2); color: var(--g1); box-shadow: none; }
  .call.UP { background: var(--w0); color: #000; } .call.DOWN { background: var(--g3); color: var(--w0); } .call.ERROR { background: var(--w2); color: #000; }
  .steps li::before { color: var(--g2); } code { background: var(--s3); color: var(--w2); }
  nav.stuck { background: rgba(16, 16, 16, .86); }
  .cta2 .fade.on { opacity: 1; }

  /* ---- terminal app: one screen, no page scroll ---- */
  body.app { height: 100vh; overflow: hidden; display: flex; flex-direction: column; background: var(--k0); font-size: 13px; }
  .tb { display: flex; align-items: stretch; height: 52px; flex: none; border-bottom: 1px solid var(--line); background: var(--s1); }
  .tb .mark { padding: 0 20px; border-right: 1px solid var(--line); font-size: 16px; }
  .tb .sel { border-right: 1px solid var(--line); }
  .tb .selb { padding: 0 18px; gap: 10px; font: 700 18px var(--sans); letter-spacing: -.03em; height: 100%; }
  .tb .selb small { font: 500 9px var(--mono); letter-spacing: .1em; color: var(--g2); box-shadow: inset 0 0 0 1px var(--g3); padding: 3px 5px; }
  .tb .menu { z-index: 20; }
  .tstats { display: flex; flex: 1; overflow-x: auto; scrollbar-width: none; } .tstats::-webkit-scrollbar { display: none; }
  .ts { display: flex; flex-direction: column; justify-content: center; padding: 0 18px; border-right: 1px solid var(--line); white-space: nowrap; }
  .ts span { font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--g2); }
  .ts b { font: 500 13px var(--mono); color: var(--w2); }
  .ts.big b { font: 600 20px var(--sans); letter-spacing: -.03em; color: var(--w0); }
  .pos { color: var(--w0) !important; } .neg { color: var(--g1) !important; }
  .conn { display: flex; align-items: center; gap: 10px; padding: 0 20px; border-left: 1px solid var(--line); font: 500 11px var(--mono); color: var(--g1); white-space: nowrap; }
  .conn b { color: var(--w0); letter-spacing: .08em; }
  .pulse { width: 7px; height: 7px; background: var(--g3); } .pulse.on { background: var(--w0); animation: blink 2s infinite; }
  @keyframes blink { 50% { opacity: .35; } }
  .lnk { background: none; border: 0; padding: 0; font: inherit; color: var(--g1); text-decoration: underline; text-underline-offset: 3px; } .lnk:hover { color: var(--w0); }

  .ws { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 372px; grid-template-rows: minmax(0, 1fr) 236px; }
  .chartp { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--k0); }
  .ctb { display: flex; align-items: center; gap: 18px; height: 40px; flex: none; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .tfs { display: flex; gap: 2px; }
  .tfs button { background: none; border: 0; font: 500 11px var(--mono); color: var(--g2); padding: 6px 9px; transition: color .15s, background .15s; }
  .tfs button:hover { color: var(--w0); } .tfs button.on { background: var(--s3); color: var(--w0); }
  .ohlc { font: 11px var(--mono); color: var(--w2); white-space: nowrap; overflow: hidden; } .ohlc span { color: var(--g2); margin: 0 3px 0 8px; } .ohlc b { margin-left: 10px; font-weight: 500; color: var(--w0); }
  .key { margin-left: auto; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--g2); white-space: nowrap; }
  .key i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin: 0 6px 0 12px; }
  .key .k1 { background: #f0b90b; } .key .k2 { background: repeating-linear-gradient(90deg, #f23645 0 4px, transparent 4px 7px); }
  #tv { flex: 1; min-height: 0; }
  #tv a[href*="tradingview"] { opacity: .35; }

  .side { grid-row: 1 / 3; grid-column: 2; overflow-y: auto; background: var(--s1); scrollbar-width: none; } .side::-webkit-scrollbar { display: none; }
  .side .ph { position: sticky; top: 0; z-index: 2; }
  .side .pb { padding: 18px; }
  .side .inp input { font-size: 28px; }
  .side .lev { font-size: 104px; }
  .side .go { margin-top: 16px; }
  .kvs { margin-top: 18px; }
  .dim { color: var(--g2); }

  .bot { border-top: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
  .tabs { display: flex; flex: none; height: 38px; border-bottom: 1px solid var(--line); background: var(--s1); }
  .tabs button { background: none; border: 0; border-right: 1px solid var(--line); padding: 0 18px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--g2); position: relative; transition: color .15s; }
  .tabs button:hover { color: var(--w0); }
  .tabs button.on { color: var(--w0); background: var(--bg); }
  .tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--bg); }
  .tabs button span { color: var(--g1); margin-left: 6px; }
  .pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .pane .feed { flex: 1; max-height: none; min-height: 0; }
  .pane .row { padding: 9px 16px; font-size: 12px; } .pane .row.th { padding: 8px 16px; flex: none; }
  .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; padding: 6px 18px; }
  .cols .kv:nth-child(-n+3) { border-top: 0; }
  .hint { padding: 4px 18px; color: var(--g2); font-size: 12px; }

  @media (max-width: 1000px) {
    body.app { height: auto; overflow: auto; }
    .tb { flex-wrap: wrap; height: auto; } .tb .mark, .tb .selb { height: 48px; } .tstats { flex-basis: 100%; height: 46px; border-top: 1px solid var(--line); } .conn { margin-left: auto; border-left: 0; }
    .ws { display: flex; flex-direction: column; } .chartp { height: 420px; border-right: 0; } .side { overflow: visible; border-top: 1px solid var(--line); } .bot { height: 320px; border-right: 0; }
    .cols { grid-template-columns: 1fr; } .cols .kv:nth-child(-n+3) { border-top: 1px solid var(--line); } .key { display: none; }
  }

  body.app section { padding: 0; }
  .confirm { margin-top: 16px; padding: 14px; background: var(--k0); box-shadow: inset 0 0 0 1px var(--w0); animation: swap .25s var(--ease); }
  .ctext { font: 600 17px/1.3 var(--sans); letter-spacing: -.02em; color: var(--w0); margin-top: 6px; }
  .ostat { font: 12px var(--mono); color: var(--g1); min-height: 16px; margin-top: 8px; }
  .fprompt { margin-top: 16px; padding: 12px 14px; background: var(--s2); box-shadow: inset 2px 0 0 var(--w0); color: var(--w2); font-size: 13px; }
  .fprompt + .go { margin-top: 10px; }
  .views { display: flex; border-right: 1px solid var(--line); }
  .views button { background: none; border: 0; padding: 0 16px; font: 500 13px var(--sans); color: var(--g2); position: relative; transition: color .15s; }
  .views button:hover { color: var(--w0); } .views button.on { color: var(--w0); }
  .views .vlink { display: flex; align-items: center; padding: 0 16px; font: 500 13px var(--sans); color: var(--g2); transition: color .15s; } .views .vlink:hover { color: var(--w0); }
  .views button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--w0); }
  body.v-portfolio .ws, body.v-portfolio .sel, body.v-portfolio .tstats { display: none; }
  body.v-portfolio .conn { margin-left: auto; }
  .pf { flex: 1; min-height: 0; overflow-y: auto; background: var(--bg); }
  .pfwrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
  .pfhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
  .pfv { font: 700 clamp(48px, 7vw, 88px)/1 var(--sans); letter-spacing: -.06em; color: var(--w0); margin: 8px 0; }
  .pfact, .pfbtns { display: flex; gap: 8px; } .pfbtns { margin-top: 16px; }
  .pfgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .pfc { background: var(--s1); padding: 18px 20px; } .pfc:nth-child(even) { background: var(--s2); }
  .pfc b { display: block; font: 500 22px var(--mono); color: var(--w2); margin-top: 6px; letter-spacing: -.02em; }
  .pfsec { border: 1px solid var(--line); background: var(--s1); margin-top: 16px; }
  .prow { display: grid; grid-template-columns: 1.1fr .8fr 1fr .9fr 1fr 1fr 1fr; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--line); align-items: center; font: 13px var(--mono); color: var(--w2); }
  .prow.th { border-top: 0; font: 500 11px var(--mono); color: var(--g2); }
  .prow b { font: 600 14px var(--sans); color: var(--w0); }
  .prow button { justify-self: start; }
  #pf-log .row { grid-template-columns: 84px 78px 130px minmax(0, 1fr) auto; }
  @media (max-width: 1000px) { .pfgrid { grid-template-columns: 1fr 1fr; } .prow { grid-template-columns: 1fr 1fr 1fr; } .prow.th { display: none; } .pfwrap { padding: 24px 16px 60px; }
    #pf-log .row { grid-template-columns: 66px 70px 1fr; } }
  .conn { border-left: 1px solid var(--line); padding: 0 12px; } .conn .btn { padding: 7px 16px; font-size: 13px; }
  .scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(400px, 100vw); background: var(--s1); border-left: 1px solid var(--line2, #333);
    transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; }
  body.funds .scrim { opacity: 1; pointer-events: auto; } body.funds .drawer { transform: none; }
  .drawer .pb { padding: 18px; } .drawer .inp input { font-size: 24px; } .drawer .btn { justify-content: center; }
  .dh { font: 600 15px var(--sans); letter-spacing: -.02em; margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--w0); }
  .dp { color: var(--g1); font-size: 13px; margin-bottom: 12px; }
  .seg.mode.short .th { background: var(--ink); }
  .agent { margin-top: 18px; padding: 14px; background: var(--k0); box-shadow: inset 0 0 0 1px var(--line); }
  .arow { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--w2); } .arow span:last-child { min-width: 0; }
  .arow.sm { justify-content: space-between; font: 11px var(--mono); color: var(--g2); margin-top: 8px; }
  .meter { height: 4px; background: var(--s3); margin-top: 12px; position: relative; } .meter::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--g2); }
  .meter i { display: block; height: 100%; width: 0; background: var(--w0); transition: width .6s var(--ease); }
  .tape { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 12px; min-height: 22px; }
  .tape span { font: 500 11px var(--mono); padding: 3px 7px; background: var(--s2); color: var(--g1); animation: rowin .5s var(--ease); }
  .tape span.UP { color: #22ab94; } .tape span.DOWN { color: #f23645; }
  .call.HOLD, .call.WAIT { background: var(--s2); color: var(--g1); }

  .call { white-space: nowrap; flex: none; }

  /* ---- landing: math and Jev sections ---- */
  section.alt { background: var(--s1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .mgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 16px; align-items: stretch; }
  .msteps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .mstep { background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
  .mstep h3 { font: 600 19px/1.2 var(--sans); letter-spacing: -.03em; color: var(--w0); }
  .mstep p { color: var(--g1); font-size: 13px; }
  .fx { display: block; font: 500 13px var(--mono); color: var(--w2); background: var(--s2); padding: 10px 12px; margin: 4px 0; }
  .mval { font: 600 30px/1 var(--sans); letter-spacing: -.04em; color: var(--w0); margin-top: auto; padding-top: 10px; }
  .mval small { font: 500 12px var(--mono); color: var(--g2); letter-spacing: 0; margin-left: 8px; }
  .mplot { border: 1px solid var(--line); background: var(--bg); padding: 22px; display: flex; flex-direction: column; }
  .mplot svg { width: 100%; height: auto; flex: 1; }
  .jgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px; align-items: start; }
  .jlead { font: 400 20px/1.45 var(--sans); letter-spacing: -.015em; color: var(--w2); margin-bottom: 28px; }
  .jpt { padding: 18px 0; border-top: 1px solid var(--line); }
  .jpt b { font: 600 16px var(--sans); letter-spacing: -.02em; color: var(--w0); }
  .jpt p { color: var(--g1); font-size: 14px; margin-top: 6px; }
  .jtab { border: 1px solid var(--line); background: var(--s1); }
  .jrow { display: grid; grid-template-columns: minmax(0, 1fr) 64px 84px; gap: 14px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--w2); }
  .jrow.th { border-top: 0; }
  .jrow .mono { color: var(--w0); font-size: 14px; }
  @media (max-width: 1000px) { .mgrid, .jgrid { grid-template-columns: 1fr; } .msteps { grid-template-columns: 1fr; } .jgrid { gap: 24px; } }

  /* ---- docs and legal pages ---- */
  body.docs { background: var(--bg); }
  .dwrap { max-width: 1240px; margin: 0 auto; padding: 104px 32px 120px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
  .dwrap.legal { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; max-height: calc(100vh - 120px); overflow-y: auto; }
  .toc .cap { margin-bottom: 10px; }
  .toc a { font-size: 13px; color: var(--g2); padding: 6px 12px; border-left: 1px solid var(--line); transition: color .15s, border-color .15s; }
  .toc a:hover { color: var(--w2); } .toc a.on { color: var(--w0); border-left-color: var(--w0); }
  .doc { max-width: 820px; min-width: 0; }
  .doc h1 { font: 700 clamp(40px, 6vw, 72px)/1 var(--sans); letter-spacing: -.055em; color: var(--w0); margin: 10px 0 22px; animation: none; }
  .doc h2 { font: 700 30px/1.1 var(--sans); letter-spacing: -.04em; color: var(--w0); margin: 64px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); max-width: none; scroll-margin-top: 84px; }
  .dwrap.legal .doc h2 { font-size: 22px; margin-top: 44px; padding-top: 22px; }
  .doc h3 { font: 600 18px/1.3 var(--sans); letter-spacing: -.02em; color: var(--w0); margin: 34px 0 10px; }
  .doc p, .doc li { color: var(--g1); font-size: 15px; line-height: 1.65; }
  .doc p { margin: 12px 0; } .doc ul, .doc ol { margin: 12px 0; padding-left: 22px; } .doc li { margin: 6px 0; }
  .doc b { color: var(--w2); font-weight: 600; }
  .doc a { color: var(--w0); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--g3); } .doc a:hover { text-decoration-color: var(--w0); }
  .doc .lead { font-size: 19px; line-height: 1.5; color: var(--w2); letter-spacing: -.01em; }
  .doc pre { font: 13px/1.6 var(--mono); color: var(--w2); background: var(--s1); border: 1px solid var(--line); padding: 16px 18px; overflow-x: auto; margin: 14px 0; white-space: pre; }
  .doc code { font: 500 13px var(--mono); color: var(--w2); background: var(--s2); padding: 1px 5px; }
  .doc pre code { background: none; padding: 0; }
  .doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
  .doc th { text-align: left; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--g2); padding: 10px 12px; border-bottom: 1px solid var(--g3); }
  .doc td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--w2); vertical-align: top; line-height: 1.5; }
  .doc td code { font-size: 12px; }
  .ok { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #000; background: var(--w0); padding: 3px 7px; margin-left: 8px; vertical-align: middle; }
  .arch { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: stretch; margin: 18px 0 22px; }
  .abox { border: 1px solid var(--g3); background: var(--s1); padding: 16px; } .abox b { display: block; color: var(--w0); font: 600 15px var(--sans); margin-bottom: 6px; } .abox span { font-size: 13px; color: var(--g1); line-height: 1.5; }
  .aarr { display: grid; place-items: center; padding: 0 12px; font: 10px var(--mono); color: var(--g2); text-transform: uppercase; letter-spacing: .06em; text-align: center; border-top: 1px solid var(--g3); height: 1px; align-self: center; white-space: nowrap; padding-top: 8px; }
  .legalnav { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 56px !important; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px !important; }
  .flinks { display: flex; gap: 18px; flex-wrap: wrap; } .flinks a { color: var(--g2); transition: color .15s; } .flinks a:hover { color: var(--w0); }
  footer .wrap { align-items: center; }
  @media (max-width: 1000px) { .dwrap { grid-template-columns: 1fr; padding: 88px 18px 80px; gap: 24px; } .toc { position: static; max-height: none; grid-template-columns: 1fr 1fr; } .arch { grid-template-columns: 1fr; } .aarr { border-top: 0; height: auto; padding: 8px 0; } .doc h2 { font-size: 24px; } }
