/* UNITS — BNB-yellow terminal: near-black, 2px lines, hard shadows, pixel display type, mono everything else. */
@font-face { font-family: "Silkscreen"; src: url("../fonts/silkscreen.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --bg: #0b0e11; --s1: #11151a; --s2: #161a20; --s3: #1e2329;
  --line: #22272e; --line2: #2b3139;
  --text: #eaecef; --text2: #9aa3af; --text3: #5e6673;
  --y: #fcd535; --y2: #f0b90b; --g: #0ecb81; --r: #f6465d;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --px: "Silkscreen", "Geist Mono", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { background: var(--bg); color: var(--text); overflow-x: hidden; }
body { font: 13px/20px var(--mono); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum"; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--y); }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--y); outline-offset: 2px; }
::selection { background: var(--y); color: #000; }
code { font-family: var(--mono); }
.px { font-family: var(--px); font-weight: 400; letter-spacing: 0; -webkit-font-smoothing: none; }
.y { color: var(--y); } .dim { color: var(--text3); } .num { font-variant-numeric: tabular-nums; }
.label { display: block; font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sq { display: inline-block; width: 8px; height: 8px; background: var(--y); flex: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 10; height: 56px; border-bottom: 2px solid var(--line); background: rgba(11, 14, 17, .94); backdrop-filter: blur(6px); }
.bar .wrap { display: flex; align-items: center; gap: 26px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--y); }
.logo b { font-size: 22px; line-height: 1; }
.nav { display: flex; gap: 22px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.spacer { flex: 1; }
.search { position: relative; width: 280px; }
.search input { width: 100%; height: 32px; padding: 0 10px 0 26px; border: 2px solid var(--line2); background: var(--s1); font-size: 12px; }
.search input::placeholder { color: var(--text3); }
.search input:focus { outline: 0; border-color: var(--text2); }
.search::before { content: "/"; position: absolute; left: 10px; top: 6px; color: var(--text3); }
.chain { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 2px solid var(--line2); font-size: 11px; letter-spacing: .08em; color: var(--text2); white-space: nowrap; }
.chain i { width: 8px; height: 8px; background: var(--y2); }
.chain.live i { background: var(--g); box-shadow: 0 0 8px var(--g); }
.burger { display: none; width: 36px; height: 32px; border: 2px solid var(--line2); font-size: 18px; }
.notice { background: repeating-linear-gradient(-45deg, #2a2205 0 10px, #1e1903 10px 20px); border-bottom: 2px solid #3d3108; color: var(--y); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 7px 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border: 2px solid var(--line2); background: var(--s2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; box-shadow: 4px 4px 0 #000; transition: transform .08s, box-shadow .08s; }
.btn:hover { color: var(--text); border-color: var(--text2); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.btn.y { background: var(--y); border-color: var(--y); color: #0b0e11; font-weight: 700; }
.btn.y:hover { background: #ffe066; color: #0b0e11; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); border: 2px solid var(--line2); padding: 6px 10px; }
.hero h1 { font-size: 56px; line-height: 1.02; margin: 22px 0 20px; }
.lede { max-width: 520px; color: var(--text2); font-size: 14px; line-height: 23px; }
.lede b { color: var(--text); font-weight: 500; }
.cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.show { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px; border: 2px solid var(--line2); background: var(--s1); box-shadow: 6px 6px 0 #000; }
.show img { width: 100%; aspect-ratio: 1; display: block; image-rendering: auto; transition: opacity .35s; }
.show img.swap { opacity: 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 2px solid var(--line2); background: var(--s1); margin-bottom: 28px; }
.stats > div { padding: 14px 16px; border-right: 2px solid var(--line); min-width: 0; }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: 24px; line-height: 32px; margin-top: 4px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats small { color: var(--text3); font-size: 11px; }

/* ---------- windows ---------- */
.win { border: 2px solid var(--line2); background: var(--s1); box-shadow: 4px 4px 0 #000; min-width: 0; }
.win > .t { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-bottom: 2px solid var(--line2); background: var(--s2); }
.win > .t .name { font-family: var(--px); font-size: 12px; text-transform: uppercase; }
.win > .t .r { margin-left: auto; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--y); }
.win > .t .r.dim { color: var(--text3); }
.win .body { padding: 18px; }
.duo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-bottom: 28px; }
.note { color: var(--text2); font-size: 12px; line-height: 19px; margin-top: 14px; }
.note.pad { padding: 0 18px 18px; margin: 0; }

.prog { height: 18px; border: 2px solid var(--line2); background: var(--bg); position: relative; overflow: hidden; }
.prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(90deg, var(--y) 0 6px, var(--y2) 6px 8px); transition: width .6s; }
.prog-l, .chart-l { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--text2); margin-top: 8px; flex-wrap: wrap; }
.prog-l b, .chart-l b { color: var(--text); font-weight: 500; }
.chart { width: 100%; height: 200px; display: block; margin-top: 18px; border: 2px solid var(--line); background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%, var(--bg); }

/* mint */
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; border: 2px solid var(--line2); }
.stepper button { font-size: 22px; background: var(--s2); }
.stepper button:hover { color: var(--y); }
.stepper div { text-align: center; padding: 8px 0; border-left: 2px solid var(--line2); border-right: 2px solid var(--line2); }
.stepper b { display: block; font: 400 34px/40px var(--px); }
.presets { display: flex; gap: 6px; margin: 10px 0 14px; flex-wrap: wrap; }
.presets button { height: 26px; padding: 0 9px; border: 2px solid var(--line2); font-size: 11px; color: var(--text2); }
.presets button:hover, .presets button.on { color: var(--y); border-color: var(--y2); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv span { color: var(--text2); } .kv b { font-weight: 500; }
.say { margin-top: 16px; }
.say .label { margin: 10px 0 6px; }
.cmd { display: flex; align-items: stretch; border: 2px solid var(--line2); background: var(--bg); margin-top: 6px; }
.cmd code { flex: 1; padding: 8px 10px; color: var(--y); white-space: nowrap; overflow-x: auto; }
.cmd .copy { padding: 0 12px; border-left: 2px solid var(--line2); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.cmd .copy:hover { color: var(--y); }
.closed { text-align: center; padding: 18px 6px; }
.closed h3 { font: 400 22px/1.2 var(--px); color: var(--y); margin-bottom: 10px; }
.closed p { color: var(--text2); margin-bottom: 18px; }

/* feed */
.feed { margin-bottom: 56px; }
.rows { max-height: 268px; overflow-y: auto; }
.row { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 14px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.row:last-child { border-bottom: 0; }
.row .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.row .k.buy { color: var(--g); } .row .k.sell { color: var(--r); } .row .k.grad { color: var(--y); }
.row .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .who b { color: var(--y); font-weight: 500; }
.row .amt { text-align: right; white-space: nowrap; } .row .when { color: var(--text3); white-space: nowrap; }
.empty { padding: 22px; text-align: center; color: var(--text3); }

/* robots */
.sec { margin-bottom: 56px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.sec-h h2 { font-size: 40px; line-height: 1; }
.sub { color: var(--text2); max-width: 720px; margin-bottom: 18px; }
.filters { display: flex; gap: 6px; }
.filters button { height: 30px; padding: 0 12px; border: 2px solid var(--line2); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.filters button.on { background: var(--y); border-color: var(--y); color: #0b0e11; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { border: 2px solid var(--line2); background: var(--s1); text-align: left; transition: transform .1s, border-color .1s; min-width: 0; }
.tile:hover { transform: translate(-2px, -2px); border-color: var(--y2); box-shadow: 4px 4px 0 #000; }
.tile img { width: 100%; aspect-ratio: 1; display: block; }
.tile .m { display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px; font-size: 11px; border-top: 2px solid var(--line2); }
.tile .m b { color: var(--y); font-weight: 500; } .tile .m span { color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { text-align: center; margin-top: 22px; }

/* rules + agents */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 !important; }
.rules > div { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules > div:nth-child(3n) { border-right: 0; }
.rules b { display: block; font-weight: 500; margin-top: 4px; }
.rules small { display: block; color: var(--text3); font-size: 11px; line-height: 16px; margin-top: 2px; }
#rules { margin-bottom: 56px; }
#faq { margin-bottom: 56px; }
.faq { padding: 0 !important; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 500; display: flex; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--y); font-family: var(--px); width: 12px; }
.faq details[open] summary::before { content: "−"; }
.faq p { margin: 0; padding: 0 18px 16px 40px; color: var(--text3); font-size: 13px; line-height: 20px; }
.faq code { color: var(--y); }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 36px; color: var(--text2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; background: var(--y); color: #0b0e11; font: 400 12px/1 var(--px); }
.steps li b { color: var(--text); font-weight: 500; }
.steps code { color: var(--y); }
.cmds > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cmds code { color: var(--y); } .cmds span { color: var(--text2); }

/* footer */
.foot { border-top: 2px solid var(--line); padding: 26px 0 40px; display: grid; gap: 16px; font-size: 12px; }
.contracts { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.contracts a { color: var(--text2); } .contracts a:hover { color: var(--y); } .contracts span { color: var(--text3); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .72); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .win { width: min(820px, 100%); max-height: 92vh; overflow: auto; }
.modal .x { margin-left: auto; font-size: 18px; width: 28px; height: 28px; }
.detail { display: grid; grid-template-columns: 340px 1fr; gap: 22px; padding: 18px; }
.detail img { width: 100%; aspect-ratio: 1; display: block; border: 2px solid var(--line2); }
.detail h3 { font: 400 30px/1 var(--px); margin-bottom: 8px; }
.detail .owner { color: var(--text2); margin-bottom: 14px; word-break: break-all; }
.detail .owner b { color: var(--y); font-weight: 500; }
.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.traits div { border: 2px solid var(--line2); padding: 7px 9px; background: var(--s2); }
.traits b { display: block; font-weight: 500; } .traits small { color: var(--text3); font-size: 11px; }
.detail .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; background: var(--y); color: #0b0e11; padding: 8px 14px; font-size: 12px; font-weight: 700; box-shadow: 4px 4px 0 #000; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .hero h1 { font-size: 44px; }
  .duo { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats > div:nth-child(3) { border-right: 0; }
  .stats > div:nth-child(-n+3) { border-bottom: 2px solid var(--line); }
  .rules { grid-template-columns: 1fr 1fr; }
  .rules > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .rules > div:nth-child(2n) { border-right: 0; }
  .search { width: 200px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .bar .wrap { gap: 10px; }
  .nav, .search { display: none; }
  .burger { display: block; }
  .bar.open { height: auto; }
  .bar.open .wrap { flex-wrap: wrap; padding-bottom: 12px; }
  .bar.open .nav { display: flex; order: 5; width: 100%; justify-content: space-between; }
  .bar.open .search { display: block; order: 6; width: 100%; }
  .bar .wrap { min-height: 52px; }
  .chain span { display: none; }
  .hero h1 { font-size: 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { border-right: 0 !important; border-bottom: 2px solid var(--line); }
  .stats > div:nth-child(odd) { border-right: 2px solid var(--line) !important; }
  .stats > div:last-child { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 0; }
  .stats b { font-size: 19px; }
  .row { grid-template-columns: 52px 1fr auto; }
  .row .when { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: 1fr; }
  .rules > div { border-right: 0 !important; }
  .detail { grid-template-columns: 1fr; }
  .sec-h h2 { font-size: 30px; }
}

.xlink { display:grid; place-items:center; width:32px; height:32px; border:2px solid var(--line2); color:var(--text2); margin-right:8px; }
.xlink:hover { color:var(--y); border-color:var(--y); }
