/* Paired landing. A framed night page: dithered scenes in greys, one lit object in the pair's
   colour, an expanded heavy wordmark. Saira throughout; Martian Mono only for what is stamped on
   the coin. Soft corners, never pills. */
@import url('/fonts.css');

:root {
  --void: #050506;
  --bg: #08090b;
  --panel: #0d0f12;
  --panel-2: #121418;
  --line: rgba(232, 236, 241, 0.08);
  --line-2: rgba(232, 236, 241, 0.14);
  --text: #eef0f2;
  --t2: #9ba1a9;
  --t3: #656b73;
  --gold: #ffc21a;
  --oil: #ff5a1f;
  --c: var(--gold);
  --sans: 'Saira', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --edge: 10px;
  --gap: clamp(72px, 11vh, 120px);
  --r-s: 6px;
  --r: 8px;
  --r-l: 14px;
  --ease: cubic-bezier(0.22, 0.75, 0.25, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--void); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; border-radius: var(--r-s); }
::selection { background: var(--gold); color: var(--bg); }
h1, h2, p, dl, dd { margin: 0; }
.ar { width: 15px; height: 15px; flex: none; }

/* the page sits in a soft frame; what scrolls past its edge disappears under the margin */
.frame { position: fixed; z-index: 40; inset: var(--edge); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 0 0 100vmax var(--void); pointer-events: none; }
.tile { position: fixed; z-index: 45; top: calc(var(--edge) + 12px); left: calc(var(--edge) + 12px); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--gold); color: #0b0803; transition: transform 0.3s var(--ease); }
.tile:hover { transform: scale(1.04); }
.tile svg { width: 28px; height: auto; }
.tile svg path, .cta-ic svg path { fill: currentColor; }
.nav { position: fixed; z-index: 45; top: calc(var(--edge) + 12px); left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(13, 15, 18, 0.88); border: 1px solid var(--line-2); }
.nav a { padding: 7px 14px; border-radius: var(--r); font-size: 14px; color: var(--t2); transition: color 0.25s var(--ease), background 0.25s var(--ease); }
.nav a:hover { color: var(--text); background: rgba(232, 236, 241, 0.06); }

/* shared */
h2 { font: 800 clamp(38px, 4.4vw, 62px)/0.95 var(--sans); font-stretch: 125%; letter-spacing: -0.01em; text-transform: uppercase; }
.more { display: inline-flex; align-items: center; gap: 8px; width: max-content; font-size: 15px; font-weight: 500; color: var(--text); transition: color 0.25s var(--ease); }
.more .ar { color: var(--gold); width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.more:hover .ar { transform: translateX(3px); }
section + section { border-top: 1px solid var(--line); }

.cta { display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 0 20px 0 9px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); font: 600 17px/1 var(--sans); font-stretch: 110%; white-space: nowrap; transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.cta-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r); background: var(--gold); color: #0b0803; }
.cta-ic svg { width: 24px; height: auto; }
.cta:hover { border-color: rgba(255, 194, 26, 0.6); background: var(--panel-2); }
.cta .ar { transition: transform 0.3s var(--ease); }
.cta:hover .ar { transform: translateX(3px); }

/* ---------- hero ---------- */

.hero { position: relative; height: max(640px, 100svh); overflow: hidden; }
.world { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.og .hero { height: 100svh; }
.og .nav { display: none; }

/* the coin: a dithered object, its text stamped on its face, its light behind it */
.coin { --w: clamp(204px, 19vw, 284px); position: absolute; left: 50%; top: max(92px, 12svh); width: var(--w); aspect-ratio: 2 / 3; transform: translateX(-50%); color: #0b0803; }
.coin .art { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.halo { position: absolute; inset: 6%; border-radius: 30%; background: var(--c); opacity: 0.45; filter: blur(52px); transition: background 0.8s var(--ease); }
.face { position: absolute; inset: 0; display: block; font-family: var(--mono); }
.face-sym { position: absolute; left: 11%; right: 6%; top: 9%; font: 800 calc(var(--w) * 0.15)/1 var(--sans); font-stretch: 125%; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; }
.face-sub { position: absolute; left: 11%; top: 21%; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.face-bot { position: absolute; left: 11%; right: 11%; bottom: 8%; display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.coin.oil .face-bot { bottom: 9.5%; }
.coin .face > * { transition: opacity 0.4s var(--ease); }
.coin.swap .face > * { opacity: 0; }

.hero-foot { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: calc(var(--edge) + clamp(20px, 3.5vh, 36px)); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.word { font: 800 min(14vw, 30svh)/0.74 var(--sans); font-stretch: 125%; letter-spacing: -0.035em; margin-left: -0.04em; white-space: nowrap; }
.word i, .foot-word i { font-style: normal; color: var(--gold); }
.hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.hero-cta p { max-width: 20em; text-align: right; color: var(--t2); font-size: 15px; line-height: 1.5; }

/* ---------- pairs ---------- */

.pairs { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: var(--gap) var(--pad); }
.pairs-copy { display: flex; flex-direction: column; gap: 24px; }
.pairs h2 { font-size: clamp(48px, 5.6vw, 80px); }
.stats { display: flex; gap: clamp(24px, 3vw, 44px); flex-wrap: wrap; }
.stats dt, .calc-h label { display: block; font-size: 13px; color: var(--t3); }
.stats dd { margin-top: 4px; font: 600 20px/1.1 var(--sans); font-stretch: 110%; white-space: nowrap; }
.pairs-text { color: var(--t2); font-size: 15.5px; max-width: 32em; min-height: 4.65em; }
.ladder { display: flex; flex-direction: column; gap: 4px; }
.ladder button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: var(--r); background: transparent; text-align: left; cursor: pointer; font-size: 15px; color: var(--t2); transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.ladder button b { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: inherit; }
.ladder button b img { flex: none; opacity: 0.55; transition: opacity 0.25s var(--ease); }
.ladder button span { color: var(--t3); font-size: 14px; }
.ladder button:hover { color: var(--text); background: rgba(232, 236, 241, 0.03); }
.ladder button.on { color: var(--text); background: rgba(232, 236, 241, 0.06); }
.ladder button.on b img, .ladder button:hover b img { opacity: 1; }
.stage { position: relative; aspect-ratio: 5 / 4; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--bg); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.stage-tag { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px 7px 8px; border-radius: var(--r); background: rgba(8, 9, 11, 0.88); border: 1px solid var(--line-2); font-size: 13px; color: var(--t2); }
.stage-tag b { font-weight: 600; color: var(--c); }

/* ---------- board ---------- */

.board { padding: var(--gap) var(--pad); }
.board-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.filters { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(232, 236, 241, 0.04); }
.filters button { padding: 7px 12px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-size: 14px; color: var(--t2); white-space: nowrap; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.filters button:hover { color: var(--text); }
.filters button.on { color: var(--text); background: rgba(232, 236, 241, 0.09); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; min-height: 120px; margin-bottom: 36px; }
.card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card .pic { position: relative; aspect-ratio: 1; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--panel); transition: border-color 0.3s var(--ease), transform 0.4s var(--ease); }
.card .pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.card .pic span { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 6px; border-radius: var(--r-s); background: rgba(8, 9, 11, 0.85); font-size: 12px; font-weight: 600; color: var(--c); }
.card:hover .pic { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-3px); }
.card .id { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card .id b { font: 700 16px/1.2 var(--sans); font-stretch: 112%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .id span, .card .meta { font-size: 13px; color: var(--t3); white-space: nowrap; }
.card .nm { color: var(--t3); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .mc { margin-top: 4px; font: 700 24px/1.1 var(--sans); font-stretch: 118%; }
.card .bar { height: 4px; margin: 6px 0 2px; border-radius: 2px; overflow: hidden; background: rgba(232, 236, 241, 0.08); }
.card .bar i { display: block; height: 100%; border-radius: 2px; background: var(--c); }
.card .meta { display: flex; justify-content: space-between; }
.grid .empty { grid-column: 1 / -1; padding: 40px 0; color: var(--t3); font-size: 15px; }

/* ---------- fees ---------- */

.fees { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; padding: var(--gap) var(--pad); }
.fees-copy { display: flex; flex-direction: column; gap: 24px; }
.fees-copy p { color: var(--t2); font-size: 15.5px; max-width: 30em; }
.calc { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.calc-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.calc-h b { font: 800 clamp(30px, 3vw, 42px)/1 var(--sans); font-stretch: 125%; letter-spacing: -0.01em; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: linear-gradient(var(--gold), var(--gold)) 0 50% / var(--p, 50%) 3px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 50% / 100% 3px no-repeat; cursor: pointer; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 0; box-shadow: 0 0 0 4px rgba(255, 194, 26, 0.25); transition: box-shadow 0.25s var(--ease); }
.calc input[type=range]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(255, 194, 26, 0.3); }
.calc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 0; }
.split { display: flex; flex-direction: column; gap: 4px; }
.split > div { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 0.7fr); gap: 16px; align-items: center; padding: 13px 14px; border-radius: var(--r); background: rgba(232, 236, 241, 0.03); }
.split .who { font-size: 15px; white-space: nowrap; }
.split .who em { font-style: normal; margin-left: 8px; color: var(--t3); }
.split .track { height: 6px; border-radius: 3px; overflow: hidden; }
.split .track i { display: block; height: 100%; min-width: 3px; border-radius: 3px; background: var(--line-2); transition: width 0.4s var(--ease); }
.split .you .track i { background: var(--gold); }
.split .amt { text-align: right; font: 600 19px/1 var(--sans); font-stretch: 110%; }
.split .you .amt { color: var(--gold); }

/* ---------- foot ---------- */

.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding: 34px var(--pad) calc(var(--edge) + 34px); border-top: 1px solid var(--line); }
.foot-word { font: 800 24px/1 var(--sans); font-stretch: 125%; letter-spacing: -0.02em; }
.foot-l p { margin-top: 14px; max-width: 42em; font-size: 13.5px; line-height: 1.6; color: var(--t3); }
.foot-r { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.foot-r nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--t2); }
.foot-r nav a { transition: color 0.25s var(--ease); }
.foot-r nav a:hover { color: var(--text); }
.foot-r small { font-size: 13px; color: var(--t3); }

/* ---------- smaller screens ---------- */

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid .card:nth-child(n + 4) { display: none; }
}
@media (max-width: 900px) {
  .pairs, .fees { grid-template-columns: 1fr; }
  .stage { order: -1; }
}
@media (max-width: 720px) {
  :root { --edge: 6px; --gap: 64px; }
  .frame { border-radius: 14px; }
  .nav { top: calc(var(--edge) + 10px); left: auto; right: calc(var(--edge) + 10px); transform: none; }
  .nav a { padding: 7px 9px; font-size: 13px; }
  .nav a:nth-child(n + 4) { display: none; }
  .tile { top: calc(var(--edge) + 10px); left: calc(var(--edge) + 10px); width: 42px; height: 42px; }
  .coin { --w: min(56vw, 230px); top: 92px; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 18px; }
  .word { font-size: 21.5vw; }
  .hero-cta { align-items: stretch; }
  .hero-cta p { text-align: left; }
  .cta .ar { margin-left: auto; }
  .board-h { flex-direction: column; align-items: flex-start; gap: 14px; }
  .filters { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .grid .card:nth-child(n + 4) { display: flex; }
  .card .mc { font-size: 20px; }
  .split > div { grid-template-columns: minmax(0, 1fr) auto; }
  .split .track { grid-column: 1 / -1; grid-row: 2; }
  .foot-r { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
