/* Haggle: graphite desk, cold gold, Instrument Serif headlines over Inter Tight, DM Mono for every number. */
:root { --bg: #0b0c0e; --s1: #121417; --s2: #1a1d21; --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14); --text: #eef0f3; --muted: rgba(238, 240, 243, .6); --gold: #f2c14e; --on-gold: #1a1404; --up: #3ce3ab; --down: #f23674; --serif: "Instrument Serif", Georgia, serif; --font: "Inter Tight", Inter, Arial, sans-serif; --mono: "DM Mono", ui-monospace, monospace; --wrap: 1200px; --g: clamp(16px, 4vw, 40px); --r: 14px }
* { box-sizing: border-box; margin: 0; padding: 0 }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(242, 193, 78, .3) transparent }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; min-height: 100vh; display: flex; flex-direction: column }
main { flex: 1 } a { color: inherit; text-decoration: none } img { display: block; max-width: 100% } button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer } em, i { font-style: normal }
::-webkit-scrollbar { width: 8px } ::-webkit-scrollbar-thumb { background: rgba(242, 193, 78, .25); border-radius: 999px }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--g) * 2); margin: 0 auto; padding-inline: var(--g) }
.muted { color: var(--muted) } .mono { font-family: var(--mono) } .up { color: var(--up) } .down { color: var(--down) }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .2s, opacity .2s, border-color .2s }
.btn.gold { background: var(--gold); color: var(--on-gold) } .btn.gold:hover { opacity: .88 }
.btn.line { border: 1px solid var(--line2); background: rgba(11, 12, 14, .35); backdrop-filter: blur(8px) } .btn.line:hover { border-color: rgba(255, 255, 255, .32) }
.btn.big { height: 54px; padding: 0 30px; font-size: 16px }

.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 20 }
.bar .wrap { height: 76px; display: flex; align-items: center; gap: 36px }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 21px var(--font); letter-spacing: -.02em } .brand img { width: 26px; height: 26px; object-fit: contain } .brand span { transform: translateY(-1px) }
.bar nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: rgba(238, 240, 243, .72) } .bar nav a:hover { color: #fff }

/* hero: the handshake, the words at the bottom left over a dark floor */
.hero { position: relative; isolation: isolate; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2 }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 12, 14, .9) 30%, rgba(11, 12, 14, .45) 62%, rgba(11, 12, 14, .55) 100%) }
.hero .wrap { padding-block: 160px 72px }
.hero h1 { font: 400 clamp(52px, 7.6vw, 116px)/.96 var(--serif); letter-spacing: -.02em; max-width: 9.5em }
.hero .sub { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); color: rgba(238, 240, 243, .78) }
.ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap }
.ca { margin-top: 18px; display: inline-flex; gap: 12px; align-items: center; height: 38px; padding: 0 16px; border-radius: 10px; background: rgba(11, 12, 14, .6); border: 1px solid var(--line2); font: 13px var(--mono); color: var(--muted); cursor: pointer; max-width: 100%; overflow: hidden } .ca b { color: var(--gold); font-weight: 500 } .ca span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

.tape { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.tape .wrap { display: grid; grid-template-columns: repeat(4, 1fr) }
.tape div div { padding: 30px 0 30px 24px; border-left: 1px solid var(--line) } .tape div div:first-child { border-left: 0; padding-left: 0 }
.tape b { display: block; font: 400 clamp(28px, 3vw, 40px)/1 var(--mono); letter-spacing: -.03em } .tape span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px }

section.s { padding-block: clamp(80px, 9vw, 130px); border-bottom: 1px solid var(--line) }
.head { display: flex; justify-content: space-between; align-items: start; gap: 24px; flex-wrap: wrap }
.s h2, .end h2 { font: 400 clamp(38px, 4.6vw, 64px)/1 var(--serif); letter-spacing: -.015em; max-width: 13em }
.s .lead { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 44em }

/* the board: open offers as a trading tape */
.board { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--s1) }
.board table { width: 100%; border-collapse: collapse }
.board th { text-align: left; font: 500 12px var(--font); color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--s2) }
.board td { padding: 16px 18px; border-bottom: 1px solid var(--line); font: 14px var(--mono); white-space: nowrap } .board tr:last-child td { border-bottom: 0 }
.board tr.row { cursor: pointer; transition: background .15s } .board tr.row:hover { background: rgba(255, 255, 255, .03) }
.board th:not(:nth-child(-n+2)), .board td:not(:nth-child(-n+2)) { text-align: right }
.side { display: inline-block; padding: 3px 9px; border-radius: 6px; font: 600 11px var(--font) } .side.sell { background: rgba(242, 54, 116, .12); color: var(--down) } .side.buy { background: rgba(60, 227, 171, .12); color: var(--up) }
.coin { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--font) } .coin img { width: 26px; height: 26px; border-radius: 50%; background: var(--s2); object-fit: cover }
.empty { padding: 64px 20px; text-align: center; color: var(--muted) } .empty b { display: block; color: var(--text); font: 400 30px var(--serif); margin-bottom: 8px }
.empty .btn { margin-top: 20px }

/* pool or desk */
table.impact { width: 100%; border-collapse: collapse; margin-top: 40px }
table.impact th { text-align: left; font: 500 12px var(--font); color: var(--muted); padding: 0 0 14px; border-bottom: 1px solid var(--line) }
table.impact td { padding: 18px 0; border-bottom: 1px solid var(--line); font: 15px var(--mono) }
table.impact th:not(:first-child), table.impact td:not(:first-child) { text-align: right; padding-left: 16px }
table.impact td.loss { color: var(--down) } table.impact td.ours { color: var(--gold) }
.fine { margin-top: 18px; color: var(--muted); font-size: 13px; max-width: 60em }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px } .cards.three { grid-template-columns: repeat(3, 1fr) }
.cards article { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px 30px; min-height: 230px }
.cards h3 { font: 400 30px/1.05 var(--serif); letter-spacing: -.01em } .cards p { margin-top: 14px; color: var(--muted); font-size: 15px }

.faq { margin-top: 40px; display: grid; gap: 10px }
.faq details { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r) }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 26px; font-weight: 500; font-size: 18px } .faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; color: var(--gold); font: 400 24px/1 var(--mono); transition: transform .25s } .faq details[open] summary::after { transform: rotate(45deg) }
.faq p { color: var(--muted); padding: 0 26px 24px; max-width: 52em }

.end .wrap { padding-block: clamp(100px, 12vw, 170px); display: flex; justify-content: space-between; align-items: start; gap: 30px; flex-wrap: wrap } .end .ctas { margin-top: 0 }
.end h2 { font-size: clamp(48px, 6.4vw, 96px) }

.foot { background: #000; padding: 72px 0 80px }
.foot .wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap } .foot p { color: rgba(255, 255, 255, .5); font-size: 13px; margin-top: 12px }
.foot .cols { display: flex; gap: 64px; font-size: 14px } .foot .cols div { display: grid; gap: 10px; align-content: start } .foot .cols b { font-weight: 600 } .foot .cols a { color: rgba(255, 255, 255, .62) } .foot .cols a:hover { color: #fff }

/* docs */
.page-top { padding-block: 150px 60px; border-bottom: 1px solid var(--line) } .page-top h1 { font: 400 clamp(52px, 7vw, 100px)/.96 var(--serif); letter-spacing: -.02em } .page-top p { margin-top: 20px; color: var(--muted); font-size: 19px; max-width: 40em }
.doc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding-block: 60px; border-bottom: 1px solid var(--line) }
.doc h2 { font: 400 36px/1.05 var(--serif); position: sticky; top: 100px; align-self: start }
.doc p, .doc li { color: var(--muted); max-width: 46em } .doc p + p { margin-top: 12px } .doc b { color: var(--text); font-weight: 600 } .doc ul { padding-left: 20px } .doc li + li { margin-top: 8px }
.doc code { font: 13px var(--mono); background: var(--s2); padding: 2px 7px; border-radius: 6px; color: var(--text) }
.doc table { width: 100%; border-collapse: collapse } .doc td { padding: 14px 0; border-top: 1px solid var(--line); vertical-align: top } .doc td:first-child { color: var(--muted); width: 36%; padding-right: 16px } .doc td a { font: 13px var(--mono); color: var(--gold); word-break: break-all }

@media (max-width: 960px) {
  .bar nav { display: none } .bar .wrap { justify-content: space-between }
  .tape .wrap { grid-template-columns: 1fr 1fr } .tape div div:nth-child(3) { border-left: 0; padding-left: 0 } .tape div div { border-top: 1px solid var(--line) } .tape div div:nth-child(-n+2) { border-top: 0 }
  .cards, .cards.three { grid-template-columns: 1fr 1fr } .doc { grid-template-columns: 1fr; gap: 20px } .doc h2 { position: static }
  .board { overflow-x: auto } table.impact .hs { display: none }
}
@media (max-width: 600px) { .cards, .cards.three { grid-template-columns: 1fr } .cards article { min-height: 0 } .ctas .btn { flex: 1 } .foot .cols { gap: 36px; flex-wrap: wrap } .bar .btn { display: none } }
