@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/brand/archivo-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/brand/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/brand/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@property --sweep-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  color-scheme: light;
  --background: #f6f8fb;
  --paper: #edf1f7;
  --surface: #ffffff;
  --field: #f3f6fa;
  --text: #18273c;
  --muted: #42536a;
  --quiet: #51637b;
  --accent: #234da8;
  --accent-hover: #183b88;
  --accent-ink: #ffffff;
  --positive: #116645;
  --negative: #a13639;
  --line: #223e6020;
  --rule: #223e603f;
  --field-rule: #728198;
  --fill: #234da80c;
  --raised: #e2ebf8;
  --glass: #f8fafff2;
  --scene-ink: #52709b;
  --pixel-from: #173e8f;
  --pixel-center: #366cc2;
  --pixel-to: #48708f;
  --shadow: 0 1px 2px #172f4d0b, 0 22px 60px -30px #172f4d32;
  --font: "Archivo Variable", Archivo, system-ui, sans-serif;
  --number: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(16px, 3.4vw, 56px);
  --wrap: 1360px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--background); scroll-padding-top: 85px; }
body {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow-x: clip;
  color: var(--text);
  background: radial-gradient(ellipse at 72% 10%, #e8eef8, transparent 70%) center top / 100% 680px no-repeat, var(--background);
  font: 400 1rem/1.55 var(--font);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[data-menu="open"] { overflow: hidden; }
body[data-page="markets"] {
  background-image: radial-gradient(ellipse at 76% 48%, #e1ebfc, #eff4fb 40%, transparent 74%);
  background-size: 100% min(100svh, 960px);
}
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.75rem, 6.4vw, 7.25rem); font-stretch: 118%; font-weight: 580; letter-spacing: -.048em; line-height: .96; }
h2 { font-size: 1.375rem; font-stretch: 112%; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
img, canvas, svg { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.topbar { position: fixed; z-index: 20; inset: 0 0 auto; padding: 22px var(--gut); transition: padding .45s var(--ease), background .25s; }
.topbar.is-scrolled, body[data-menu="open"] .topbar { background: var(--glass); backdrop-filter: blur(14px); }
.topbar.is-scrolled { padding-block: 14px; }
.top-inner, main, .footer-inner, .overview-inner { width: min(var(--wrap), 100%); margin-inline: auto; }
.top-inner { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.brand { display: inline-flex; gap: 10px; align-items: center; margin-right: auto; font-size: 1.125rem; font-weight: 700; font-stretch: 118%; line-height: 1; letter-spacing: -.035em; }
.brand-mark {
  width: 30px;
  height: 30px;
  mask-image: conic-gradient(from var(--sweep-angle), #000, #00000038 46deg, #000 130deg);
  animation: brand-sweep 3.4s linear infinite;
}
@keyframes brand-sweep { to { --sweep-angle: 360deg; } }
#main-navigation { display: flex; gap: clamp(17px, 2vw, 26px); align-items: center; }
#main-navigation a { position: relative; font-size: .875rem; font-weight: 500; font-stretch: 106%; color: var(--muted); white-space: nowrap; transition: color .2s; }
#main-navigation a:hover, #main-navigation a[aria-current] { color: var(--accent); }
#main-navigation a[aria-current]::before { content: ""; position: absolute; top: 50%; left: -10px; translate: 0 -50%; width: 5px; height: 5px; background: currentColor; }
.menu-toggle { display: none; align-content: center; justify-items: center; gap: 6px; flex: none; width: 40px; height: 40px; border: 0; background: none; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .906rem;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -.005em;
  transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.button:active:enabled, a.button:active { transform: translateY(1px); }
.button:disabled { opacity: .46; cursor: default; }
.primary { color: var(--accent-ink); background: var(--accent); }
.primary:hover:enabled, a.primary:hover { background: var(--accent-hover); }
.secondary { background: var(--surface); border-color: var(--field-rule); }
.secondary:hover:enabled { border-color: var(--accent); background: var(--raised); }
.wallet-key { flex: none; min-height: 36px; border-radius: 3px; padding: 5px 15px; font-size: .844rem; font-stretch: 108%; }
.full { width: 100%; }

main { position: relative; width: min(var(--wrap), calc(100% - 2 * var(--gut))); flex: 1; padding-bottom: clamp(100px, 11vw, 170px); }
body[data-page="markets"] main { padding-bottom: 0; }
.page-ground { position: absolute; inset: 0 0 auto; width: 100%; height: min(81svh, 820px); pointer-events: none; mask-image: linear-gradient(#000 58%, transparent); }
body[data-page="markets"] .page-ground { height: min(100svh, 960px); mask-image: linear-gradient(90deg, #000, #000c 32%, transparent 65%); }
.hero { position: relative; display: flex; align-items: center; min-width: 0; padding: clamp(130px, 11.6vw, 178px) 0 42px; }
.hero p { max-width: 60ch; margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.19rem); line-height: 1.6; text-wrap: pretty; }
.market-hero { min-height: min(96svh, 960px); padding: 118px 0 29px; }
.hero-copy { position: relative; z-index: 2; width: min(53%, 620px); min-width: 0; }
.market-title { line-height: .9; }
.market-title > span:last-child { color: var(--accent); }
.market-title > span:not(.sr-only), .decode-line { display: block; }
.decode-line { position: relative; white-space: nowrap; }
.decode-ghost { visibility: hidden; }
.decode-ink { position: absolute; left: 0; top: 0; max-width: 100%; overflow: hidden; }
.market-hero p { margin-top: clamp(20px, 3.6vh, 42px); max-width: 34em; }
.market-figure {
  position: absolute;
  top: 50%;
  right: max(0px, 1vw);
  width: min(78svh, 46vw, 685px);
  aspect-ratio: 1;
  translate: 0 -43%;
  pointer-events: none;
}
.hero .search { margin: 24px 0 12px; }
#hero-search input:focus { outline: none; }
#hero-search:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.hero-link { display: inline-block; color: var(--accent); font-size: .9rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--field-rule); text-underline-offset: 4px; }
.hero-link:hover { text-decoration-color: currentColor; }
.section-rail { position: fixed; z-index: 8; right: 14px; top: 50%; display: flex; align-items: center; translate: 0 -50%; }
.rail-mark { width: 38px; height: 38px; fill: var(--accent); transform: rotate(var(--rail-rotation, 0deg)); transition: transform .45s var(--ease); }
.rail-links { display: grid; justify-items: end; padding: 8px; background: var(--glass); opacity: 0; pointer-events: none; transition: opacity .3s; }
.section-rail:hover .rail-links, .section-rail:focus-within .rail-links { opacity: 1; pointer-events: auto; }
.rail-links a { padding: 3px 6px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.rail-links a:hover, .rail-links a[aria-current] { color: var(--text); text-decoration: underline; }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(44px, 7vw, 104px) 0 32px; border-block: 1px solid var(--rule); }
.metric { display: grid; gap: 6px; padding: 16px 21px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric span { font-size: .875rem; font-weight: 600; }
.metric small { color: var(--muted); font-size: .8125rem; }
.metric strong { color: var(--accent); font-size: clamp(1.45rem, 4vw, 3.75rem); font-weight: 300; font-stretch: 125%; font-variant-numeric: tabular-nums; letter-spacing: -.045em; line-height: 1.15; overflow-wrap: anywhere; }
.card { min-width: 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
.panel, .trade, .ledger { box-shadow: var(--shadow); }
.panel, .trade { padding: clamp(16px, 2.2vw, 28px); }
.panel p { color: var(--muted); line-height: 1.6; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; }
.panel-head p { margin-top: 5px; color: var(--muted); font-size: .875rem; }
.tabs { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 4px; padding: 3px; gap: 3px; flex: none; }
.tabs button, .icon-button { min-height: 34px; padding: 4px 10px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: .875rem; }
.tabs button.selected, .tabs button:hover, .icon-button:hover { color: var(--accent); background: var(--raised); }
.icon-button.saved { color: var(--accent); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 22px; border-top: 1px solid var(--line); }
th { background: var(--field); color: var(--muted); font-size: .875rem; font-weight: 550; white-space: nowrap; }
td { font-size: .9375rem; }
tbody tr { transition: background .25s; }
tbody tr:hover { background: var(--fill); }
td.data, .details dd, .route dd { font-family: var(--number); font-size: .875rem; }
.token-line { display: flex; align-items: center; gap: 10px; }
.token-icon { display: inline-grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 24%; background: var(--raised); color: var(--accent); font-size: .75rem; font-weight: 700; font-stretch: 112%; }
.token-line small { display: block; margin-top: 2px; color: var(--muted); font-size: .8125rem; }
.row-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.subtle-link, .text-button { color: var(--accent); text-decoration: underline; text-decoration-color: var(--field-rule); text-underline-offset: 3px; }
.text-button { border: 0; padding: 0; background: none; text-align: left; font-family: var(--number); }
.text-button:hover, .subtle-link:hover { text-decoration-color: currentColor; }
#chart { margin-top: 16px; }
#chart p { margin-top: 6px; }
#chart-canvas { display: block; width: 100%; height: 180px; margin-top: 12px; }
.empty { padding: 17px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.empty.error, .message.error { color: var(--negative); font-weight: 600; }

.search {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 62px;
  padding: 6px 7px 6px 20px;
  margin-bottom: 22px;
  border-color: var(--field-rule);
  border-radius: 6px;
  transition: border-color .25s;
}
.search:focus-within { border-color: var(--accent); }
.search input, .asset-row input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: transparent; }
.search input { font-weight: 500; }
.search input::placeholder, .asset-row input::placeholder, textarea::placeholder { color: var(--quiet); }
.search input:focus-visible { outline-offset: 0; }
.search .button { min-height: 48px; }
#search-result { margin-bottom: 22px; }
details { overflow: auto; margin-top: 16px; }
details summary { cursor: pointer; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: .8125rem var(--number); }
dl { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 12px 15px; margin: 16px 0 0; font-size: .9rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.trade-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1060px; }
.trade-head, .asset-row, .slippage { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.trade-head { margin-bottom: 18px; }
.network-pill { display: inline-flex; min-height: 30px; align-items: center; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 4px; color: var(--accent); font-size: .813rem; white-space: nowrap; }
.asset-box { padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); }
.asset-box label, .slippage { font-size: .875rem; color: var(--muted); }
.asset-row { margin-top: 5px; }
.balance-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#pay-max { flex: none; min-height: 32px; padding: 3px 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--raised); color: var(--accent); font-weight: 600; }
#pay-max:hover:enabled { color: var(--accent-ink); background: var(--accent); }
#pay-max:disabled { opacity: .55; cursor: default; }
.asset-row input, .asset-row output { font-size: clamp(1.2rem, 3vw, 1.75rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.asset-row output { min-width: 0; }
.asset-row select, .slippage input, .flip { padding: 6px 10px; border: 1px solid var(--field-rule); border-radius: 4px; background: var(--surface); }
select {
  appearance: none;
  padding-right: 30px !important;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%) !important;
  background-position: right 15px center, right 10px center !important;
  background-repeat: no-repeat !important;
  background-size: 5px 5px !important;
}
.flip-line { display: flex; justify-content: center; padding: 6px 0; }
.flip { min-height: 37px; font-size: 1.2rem; line-height: 1; transition: background .25s, border-color .25s; }
.flip:hover { background: var(--paper); border-color: var(--muted); }
.slippage { margin: 17px 0; }
.slippage input { max-width: 74px; text-align: right; }
.trade .button + .button { margin-top: 7px; }
.route p { margin-top: 10px; }
.route dl { row-gap: 0; }
.route dd { color: var(--accent); }
.route dt, .route dd { padding-block: 10px; border-top: 1px solid var(--line); }
.message { margin-top: 11px; padding: 9px 11px; border: 1px solid var(--rule); border-radius: 5px; color: var(--muted); font-size: .875rem; line-height: 1.45; }
#wallet-status { position: fixed; z-index: 15; top: 72px; right: var(--gut); max-width: min(360px, calc(100% - 2 * var(--gut))); margin: 0; background: var(--surface); box-shadow: var(--shadow); }
#trade-links a { display: block; margin-top: 7px; font-size: .875rem; overflow-wrap: anywhere; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 15px; margin-bottom: 18px; }
.filters label, .assistant-form > label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: .875rem; font-weight: 500; }
.filters input, .filters select, .assistant-form textarea, .page-controls input {
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--field-rule);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--field);
}
.filters label { flex: 0 1 152px; }
.filters .filter-wide { flex: 1 1 235px; }
.inline-filters { padding: 0; margin: 14px 0 0; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 13px 15px; border-top: 1px solid var(--line); }
.pagination > span { color: var(--muted); font-size: .875rem; }
.page-controls, .page-controls form, .page-controls label { display: flex; align-items: center; gap: 7px; }
.page-controls label { font-size: .84rem; color: var(--muted); }
.page-controls input { width: 78px; }
.page-controls .button { padding-inline: 9px; }
.discovery-value { min-width: 84px; }
.discovery-value small { display: block; max-width: 185px; margin-top: 4px; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.gain { color: var(--positive); }
.loss { color: var(--negative); }
.discovery-detail { margin-top: 16px; }
#nft-lookup { margin: 0 0 18px; }
.discovery-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; }
.discovery-actions .text-button { font-family: inherit; }
.nft-item { display: flex; flex-wrap: wrap; align-items: start; gap: 16px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.nft-item img { width: min(100%, 150px); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: var(--paper); }
.nft-item > div { min-width: 0; flex: 1 1 250px; }
.nft-item p { margin-top: 6px; overflow-wrap: anywhere; }
.details .text-button { max-width: 100%; overflow-wrap: anywhere; }
.assistant-form, #assistant-result { max-width: 850px; }
.assistant-form textarea { width: 100%; resize: vertical; }
.terminal { overflow: hidden; box-shadow: var(--shadow); }
.terminal-bar { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--rule); background: var(--field); }
.terminal-bar span { width: 7px; height: 7px; background: var(--positive); }
.terminal-bar h2 { font-size: .875rem; }
.terminal-body { padding: 22px; font: .875rem/1.65 var(--number); }
#assistant-answer { white-space: pre-wrap; overflow-wrap: anywhere; }

.market-overview, .footer { position: relative; background: var(--paper); }
.market-overview { margin: clamp(120px, 12vw, 180px) calc(50% - 50vw) 0; padding: clamp(52px, 7vw, 100px) var(--gut); }
.pixel-edge { position: absolute; bottom: calc(100% - 1px); width: 100%; left: 0; color: var(--paper); pointer-events: none; }
.pixel-edge svg { width: 100%; aspect-ratio: 120 / 7; }
.overview-track { --overview-step: clamp(125px, 23svh, 205px); overflow-anchor: none; }
.overview-track::after { content: ""; display: block; block-size: calc(var(--overview-step) * var(--overview-steps, 0)); }
.overview-inner {
  position: sticky;
  top: 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: center;
}
.dial { position: relative; min-width: 0; width: 100%; max-width: min(580px, 72svh); margin-inline: auto; aspect-ratio: 1; }
.dial-scale { position: absolute; inset: 12%; border: 1px solid var(--rule); border-radius: 50%; background: radial-gradient(circle, var(--line) 1px, transparent 1px) 0 0 / 22px 22px; }
.dial-scale::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(from 64deg, transparent, var(--accent) 26deg, transparent 52deg);
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  transform: rotate(var(--dial-offset, 0deg));
}
@media (prefers-reduced-motion: no-preference) {
  .dial-scale::before, #dial-figure { transition: transform .24s ease-out; }
}
.dial-scale::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: repeating-conic-gradient(var(--rule) 0deg 0.3deg, transparent .3deg 5deg); mask-image: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 0); }
#dial-figure { transform: rotate(calc(45deg + var(--dial-offset, 0deg))); position: absolute; inset: 16%; width: 68%; height: 68%; pointer-events: none; }
.dial-controls { position: absolute; inset: 0; }
.dial-controls button { position: absolute; translate: -50% -50%; min-height: 36px; padding: 3px 8px; white-space: nowrap; border: 0; border-radius: 3px; background: var(--paper); color: var(--muted); font-size: .875rem; font-weight: 550; font-stretch: 108%; }
.dial-controls button:hover, .dial-controls button[aria-pressed="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.dial-controls button:nth-child(1) { left: 90%; top: 50%; }
.dial-controls button:nth-child(2) { left: 80%; top: 83%; }
.dial-controls button:nth-child(3) { left: 50%; top: 95%; }
.dial-controls button:nth-child(4) { left: 18%; top: 82%; }
.dial-controls button:nth-child(5) { left: 10%; top: 50%; }
.dial-controls button:nth-child(6) { left: 18%; top: 17%; }
.dial-controls button:nth-child(7) { left: 50%; top: 4%; }
.overview-copy { min-width: 0; }
.overview-label { color: var(--muted); font-size: 1.1rem; }
.overview-copy h2 { margin: 10px 0 16px; color: var(--accent); font-size: clamp(2.5rem, 6vw, 6rem); font-stretch: 118%; letter-spacing: -.048em; line-height: .98; }
#feature-description { max-width: 40ch; margin-bottom: 24px; line-height: 1.6; }
.overview-copy .hero-link { padding-top: 18px; border-top: 1px solid var(--rule); }

.overview-hint { margin-top: 20px; color: var(--quiet); font-size: .8125rem; }

.footer { padding: clamp(74px, 10vw, 150px) var(--gut) 36px; }
body[data-page="markets"] .footer { padding-top: clamp(42px, 7vw, 110px); }
body[data-page="markets"] .footer .pixel-edge { display: none; }
.footer-word { margin: 0 0 clamp(45px, 6vw, 96px); color: var(--accent); font-size: clamp(60px, 15.4vw, 265px); font-weight: 650; font-stretch: 125%; line-height: .8; letter-spacing: -.068em; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.footer-grid p { max-width: 35ch; color: var(--muted); font-size: .9375rem; }
.footer-column { display: grid; align-content: start; gap: 8px; font-size: .9rem; }
.footer-column strong { font-stretch: 108%; }
.footer-column a { width: fit-content; color: var(--muted); }
.footer-column a:hover { color: var(--text); text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .footer-grid { animation: section-reveal linear both; animation-timeline: view(); animation-range: entry 0px entry 180px; }
  }
}
@keyframes section-reveal { from { opacity: 0; translate: 0 40px; filter: blur(6px); } }

@media (max-width: 1100px) { .section-rail { display: none; } }
@media (max-width: 980px) {
  .topbar { padding-block: 13px; }
  .top-inner { gap: 10px; }
  .menu-toggle { display: grid; }
  #main-navigation {
    position: fixed;
    inset: 65px 0 0;
    height: calc(100dvh - 65px);
    display: grid;
    align-content: center;
    align-content: safe center;
    align-items: start;
    justify-items: start;
    overflow: auto;
    gap: 0;
    padding: 32px var(--gut);
    background: var(--surface);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  body[data-menu="open"] #main-navigation { opacity: 1; visibility: visible; }
  #main-navigation a { font-size: clamp(1.9rem, 8.4vw, 2.9rem); font-stretch: 118%; font-weight: 600; letter-spacing: -.045em; line-height: 1.25; }
  #main-navigation a[aria-current]::before { left: -11px; }
}
@media (max-width: 760px) {
  h1 { font-size: clamp(2.5rem, 9.8vw, 3.9rem); text-wrap: balance; }
  .hero { padding: 115px 0 26px; }
  .market-hero { flex-direction: column; min-height: auto; align-items: stretch; padding: calc(74px + min(61vw, 290px)) 0 24px; }
  .hero-copy { width: 100%; }
  .market-title { font-size: clamp(2.35rem, 10.1vw, 4rem); }
  .market-figure { top: 61px; right: 50%; width: min(58vw, 275px); translate: 50% 0; }
  body[data-page="markets"] .page-ground { mask-image: linear-gradient(#000 30%, transparent 98%); }
  .metric { padding: 11px 8px; }
  .metric strong { font-size: clamp(1.05rem, 4.5vw, 1.6rem); }
  .metric small { font-size: .75rem; }
  .trade-layout { grid-template-columns: minmax(0, 1fr); }
  th, td { padding-inline: 13px; }
  .panel-head { padding-inline: 15px; }
  .pagination { align-items: flex-start; flex-direction: column; }
  .overview-inner { top: 78px; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dial { max-width: min(370px, 46svh); }
  .dial-controls button { font-size: .8125rem; }
  .overview-copy { text-align: center; }
  .overview-copy h2 { margin: 4px 0 8px; }
  #feature-description { min-height: 3.2em; margin: 0 auto 8px; }
  .overview-copy .hero-link { padding-top: 6px; }
  .overview-hint { margin-top: 6px; }
  .footer-grid { gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid p { grid-column: 1 / -1; }
}
@media (max-width: 390px) {
  .search { padding-left: 9px; }
  .search .button { padding-inline: 10px; }
  .wallet-key { padding-inline: 10px; }
  .filters label { flex: 1 1 130px; }
  .route dt, .route dd { font-size: .78rem; }
  .page-controls input { width: 50px; padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
