@font-face { font-family: "Antonio"; src: url(/assets/fonts/antonio.woff2) format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/assets/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --page: #141414; --deep: #0b0b0b; --rule: #2a2a2a; --text: #f3f3f3; --muted: #8c8c8c; --red: #ff3b30;
  --pad: clamp(16px, 2.6vw, 44px);
  --display: "Antonio", "Arial Narrow", sans-serif;
  --ui: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--page); color: var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.55 var(--ui); font-variant-numeric: tabular-nums; overflow-x: hidden; }
a { color: inherit; }
img { display: block; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--page); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.quiet { color: var(--muted); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 24px; padding: 0 var(--pad);
  background: rgba(20, 20, 20, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px var(--ui); letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; background: #000; }
.links { display: flex; gap: 2px; }
.links a { text-decoration: none; padding: 6px 12px; color: var(--muted); font-size: 14px; transition: color .25s, background .25s; }
.links a:hover, .links a[aria-current="true"] { color: var(--text); background: var(--rule); }
.acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pair, .ca { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 1px solid var(--rule); background: none;
  font: 400 13px var(--ui); color: var(--muted); text-decoration: none; cursor: pointer; white-space: nowrap; }
.pair img { width: 18px; height: 18px; object-fit: cover; filter: grayscale(1); }
.pair:hover, .ca:hover { color: var(--text); border-color: #444; }
.ico { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--rule); color: var(--text); transition: background .25s, color .25s; }
.ico:hover { background: var(--text); color: var(--page); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border: 1px solid var(--text); background: var(--text);
  color: var(--page); font: 500 13px var(--ui); text-decoration: none; cursor: pointer; transition: background .3s, color .3s; white-space: nowrap; }
.btn:hover { background: transparent; color: var(--text); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--rule); }
.btn.ghost:hover { background: var(--text); color: var(--page); }
.btn[aria-disabled="true"] { opacity: .55; }
.btn:disabled { opacity: .5; cursor: progress; }
.btn.wide { width: 100%; height: 46px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 96px var(--pad) 48px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--rule); background: #000; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,0) 62%); pointer-events: none; }
.hero-in { position: relative; z-index: 2; width: max(min(640px, 100%), 46vw); }
.hero-lead, .scan, .meter { max-width: 720px; }
.hero-title { margin: 0 0 18px; font: 600 clamp(56px, 6.3vw, 176px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .ln > span { display: inline-block; white-space: nowrap; }
.hero-lead { margin: 0 0 26px; max-width: 520px; color: #c9c9c9; font-size: 16px; }
.scan { display: flex; border: 1px solid #3a3a3a; background: rgba(11, 11, 11, .8); margin-bottom: 14px; }
.scan input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; background: none; font: 400 13px var(--mono); }
.scan input::placeholder { color: #6d6d6d; }
.scan input:focus { outline: none; }
.scan:focus-within { border-color: var(--text); }
.scan .btn { height: 46px; padding: 0 20px; }

.meter { border: 1px solid #3a3a3a; background: rgba(11, 11, 11, .86); backdrop-filter: blur(6px); padding: 16px; }
.m-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.m-pfp { width: 56px; height: 56px; background: #000; border: 1px solid var(--rule); }
.m-id h2 { margin: 0; font: 600 17px/1.2 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-sub { margin: 3px 0 0; font: 400 13px var(--ui); color: var(--muted); }
.m-sub a { color: var(--muted); }
.m-score { text-align: right; }
.m-score b { display: block; font: 600 54px/.9 var(--display); }
.m-score span { font: 400 13px var(--ui); color: var(--muted); }
.m-bar { height: 3px; background: var(--rule); margin: 16px 0 6px; position: relative; overflow: hidden; }
.m-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--text); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.m-rows { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: 14px; }
.m-rows > div { padding: 10px 10px 2px 0; border-right: 1px solid var(--rule); padding-left: 10px; }
.m-rows > div:first-child { padding-left: 0; }
.m-rows > div:last-child { border-right: 0; }
.m-rows dt { font-size: 12px; color: var(--muted); }
.m-rows dd { margin: 2px 0 0; font: 500 15px var(--ui); }
.m-rows dd small { display: block; font: 400 13px var(--ui); color: var(--muted); margin-top: 2px; }
.m-rows dd a { color: var(--muted); }
.m-flags { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.m-flags li { font-size: 13px; padding-left: 14px; position: relative; }
.m-flags li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--text); }
.m-flags a { color: var(--muted); font: 400 13px var(--ui); margin-left: 6px; }
.m-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font: 400 13px var(--ui); color: #6d6d6d; }
.linkish { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: 400 13px var(--ui); }
.meter[data-state="glitching"] .m-bar i { background: repeating-linear-gradient(90deg, var(--text) 0 6px, transparent 6px 9px); }
.meter[data-state="cyberpsycho"] { border-color: var(--red); animation: jolt 2.6s steps(1) infinite; }
.meter[data-state="cyberpsycho"] .m-bar i, .meter[data-state="cyberpsycho"] .m-flags li::before { background: var(--red); }
.meter[data-state="cyberpsycho"] .m-score b, .meter[data-state="cyberpsycho"] #mState { color: var(--red); }
.meter[data-state="reading"] .m-score b { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes jolt { 0%, 92%, 100% { transform: none; } 93% { transform: translateX(-3px); } 95% { transform: translateX(4px); } 97% { transform: translateX(-1px); } }

/* ---------- section titles ---------- */
.sec-title { margin: 0 0 16px; font: 600 clamp(40px, 4.6vw, 84px)/.92 var(--display); text-transform: uppercase; }

/* ---------- how ---------- */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px); padding: clamp(72px, 10vw, 160px) var(--pad); border-bottom: 1px solid var(--rule); }
.how-copy p { max-width: 460px; margin: 0 0 14px; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); align-self: start; }
/* number in its own column beside the title and cost, so the two never meet at any width */
.rule { padding: 22px 22px 24px; min-height: 210px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-content: start; }
.rule > * { grid-column: 1; }
.rule:nth-child(2n) { border-right: 0; }
.rule:nth-child(n+3) { border-bottom: 0; }
.rule h3 { margin: 0 0 8px; font: 600 16px var(--ui); }
.rule p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.rule .cost { margin: 0 0 10px; font: 500 13px var(--ui); color: var(--text); }
.rule .live { grid-column: 2; grid-row: 1 / span 2; justify-self: end; white-space: nowrap; font: 600 34px/1 var(--display); }
.rule p:not(.cost) { grid-column: 1 / -1; }

/* ---------- band ---------- */
.band { background: var(--deep); padding: clamp(90px, 13vw, 220px) var(--pad); text-align: center; border-bottom: 1px solid var(--rule); overflow: hidden; }
.band-line { margin: 0; font: 600 clamp(52px, 9.4vw, 190px)/.92 var(--display); text-transform: uppercase; overflow: hidden; }
.band-line span { display: inline-block; white-space: nowrap; }
.band-sub { margin: 26px auto 0; color: var(--muted); max-width: 520px; }

/* ---------- street / wall ---------- */
.street, .wall { padding: clamp(72px, 9vw, 140px) var(--pad); border-bottom: 1px solid var(--rule); }
.street-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.street-head p { max-width: 460px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 10px; }
.card { min-width: 0; border: 1px solid var(--rule); padding: 8px; background: var(--page); cursor: pointer; transition: border-color .3s, transform .5s cubic-bezier(.2, .8, .2, 1); text-align: left; color: inherit; font: inherit; }
.card:hover { border-color: #555; transform: translateY(-3px); }
.card canvas { width: 100%; aspect-ratio: 1; background: #000; display: block; }
.noimg { aspect-ratio: 1; display: grid; place-items: center; background: #000; color: #555; font: 400 13px var(--ui); }
.c-name { display: flex; justify-content: space-between; gap: 8px; margin: 10px 2px 2px; font-weight: 600; font-size: 14px; }
.c-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-name span:last-child { font: 400 13px var(--ui); color: var(--muted); }
.c-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 6px 2px 8px; font: 400 13px var(--ui); }
.c-stats small { display: block; color: var(--muted); font-size: 11px; }
.c-meter { display: flex; align-items: center; gap: 8px; margin: 0 2px; font: 400 13px var(--ui); color: var(--muted); }
.c-meter i { flex: 1; height: 2px; background: var(--rule); position: relative; overflow: hidden; }
.c-meter i b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--text); transition: width 1s ease; }
.c-meter strong { color: var(--text); font-weight: 500; min-width: 36px; text-align: right; }
.card[data-state="cyberpsycho"] { border-color: rgba(255, 59, 48, .6); }
.card[data-state="cyberpsycho"] .c-meter b { background: var(--red); }
.card[data-state="cyberpsycho"] .c-meter strong { color: var(--red); }
.c-why { margin: 6px 2px 2px; font-size: 12px; color: var(--muted); min-height: 18px; }
.empty { grid-column: 1 / -1; border: 1px dashed var(--rule); padding: 48px 24px; text-align: center; color: var(--muted); margin: 0; }

/* ---------- launch ---------- */
.launch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 96px); padding: clamp(72px, 9vw, 140px) var(--pad); background: var(--deep); border-bottom: 1px solid var(--rule); }
.launch-copy p { max-width: 480px; margin: 0 0 14px; }
.preview { width: min(320px, 100%); aspect-ratio: 1; background: #000; border: 1px solid var(--rule); margin-top: 24px; }
.preview-cap { font: 400 13px var(--ui); color: var(--muted); }
.form { display: grid; gap: 14px; align-content: start; border: 1px solid var(--rule); padding: clamp(16px, 2vw, 28px); background: var(--page); }
.form label, .pairs legend { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input, .form textarea { width: 100%; border: 1px solid var(--rule); background: var(--deep); padding: 10px 12px; color: var(--text); font-size: 14px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.unit { font: 400 13px var(--ui); }
.file { position: relative; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file span { border: 1px dashed #3a3a3a; padding: 12px; color: var(--muted); font: 400 13px var(--ui); }
.file:focus-within span { border-color: var(--text); }
.pairs { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pairs legend { margin-bottom: 6px; }
.pair-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pair-opt { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 4px; border: 1px solid var(--rule); background: none; cursor: pointer; font: 400 13px var(--ui); color: var(--muted); }
.pair-opt img { width: 22px; height: 22px; object-fit: cover; filter: grayscale(1); }
.pair-opt[aria-checked="true"] { background: var(--text); color: var(--page); border-color: var(--text); }
.pair-opt[disabled] { opacity: .4; cursor: not-allowed; }
.pair-results { display: grid; gap: 4px; }
.pair-results button { text-align: left; }
.est { margin: 0; font: 400 13px var(--ui); color: var(--muted); }
.status { margin: 0; min-height: 20px; font-size: 13px; }
.status.bad { color: var(--red); }
.status a { color: var(--text); }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 32px; padding: clamp(60px, 8vw, 120px) var(--pad) 48px; }
.foot-nav { display: grid; gap: 4px; }
.foot-nav a { font: 600 clamp(44px, 6vw, 112px)/.95 var(--display); text-transform: uppercase; text-decoration: none; color: #3d3d3d; transition: color .35s; width: max-content; }
.foot-nav a:hover { color: var(--text); }
.foot-side p { color: #b5b5b5; font-size: 13px; max-width: 420px; }
.foot-logo { width: 120px; height: 120px; background: #000; margin-bottom: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .pair { display: none; }
  .links { display: none; }
}
@media (max-width: 900px) {
  .how, .launch, .foot { grid-template-columns: 1fr; }
  .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.85) 42%, rgba(0,0,0,.95) 100%); }
  .hero { align-items: end; padding-top: 52vh; }
  .street-head { flex-direction: column; align-items: start; }
}
@media (max-width: 620px) {
  .top { gap: 10px; }
  .brand span { display: none; }
  .ca { display: none; }
  .acts { gap: 6px; }
  .btn { padding: 0 10px; }
  #walletBtn .long { display: none; }
  .hero-in { width: 100%; }
  .rule .live { font-size: 30px; }
  .m-rows dd small { word-break: break-word; }
  .hero-title { font-size: clamp(44px, 13vw, 72px); }
  .m-rows { grid-template-columns: 1fr 1fr; }
  .m-rows > div:nth-child(2) { border-right: 0; }
  .m-rows > div:nth-child(3) { padding-left: 0; }
  .m-score b { font-size: 42px; }
  .how-grid { grid-template-columns: 1fr; }
  .rule { border-right: 0 !important; border-bottom: 1px solid var(--rule) !important; }
  .rule:last-child { border-bottom: 0 !important; }
  .row2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .c-stats { grid-template-columns: 1fr 1fr; }
  .c-stats > span:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
