/* Foldr: ink blue-black, ice blue accent, Geist. Text on the page, hairlines and tables, no card grids. */
:root {
  --bg: #07090d; --s1: #0d1117; --s2: #141a23; --line: rgba(196, 214, 240, .12);
  --text: #eef2f8; --muted: rgba(214, 224, 240, .62); --accent: #9cc3ff; --on-accent: #06101f;
  --up: #3ddc97; --down: #ff6b81;
  --font: "Geist", "Inter", Arial, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --wrap: 1200px; --g: clamp(20px, 4vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0 }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth }
body { background: var(--bg); color: var(--text); font: 16px/1.55 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 }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--g) * 2); margin: 0 auto; padding-inline: var(--g) }
.muted { color: var(--muted) } .up { color: var(--up) } .down { color: var(--down) }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px }
::selection { background: rgba(156, 195, 255, .3) }
::-webkit-scrollbar { width: 8px; height: 8px } ::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-thumb { background: rgba(196, 214, 240, .16); border-radius: 999px } ::-webkit-scrollbar-thumb:hover { background: rgba(156, 195, 255, .5) }
html { scrollbar-color: rgba(196, 214, 240, .2) transparent; scrollbar-width: thin }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 8px; font-weight: 500; font-size: 14px; white-space: nowrap; transition: opacity .15s, background-color .15s }
.btn.solid { background: var(--accent); color: var(--on-accent) } .btn.solid:hover { opacity: .88 }
.btn.line { border: 1px solid rgba(238, 242, 248, .3); color: var(--text) } .btn.line:hover { background: rgba(255, 255, 255, .06) }
.btn.big { height: 50px; padding: 0 24px; font-size: 15px }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(7, 9, 13, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line) }
.bar .wrap { height: 64px; display: flex; align-items: center; gap: 36px }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.02em }
.bar nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); margin-left: auto } .bar nav a:hover, .bar nav a.on { color: var(--text) }

/* hero: text over the graded photo */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 900px); display: flex; align-items: center; overflow: hidden }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2 }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 9, 13, .92) 0%, rgba(7, 9, 13, .7) 42%, rgba(7, 9, 13, .1) 80%), linear-gradient(0deg, var(--bg) 0%, transparent 22%) }
.hero .wrap { padding-block: 120px 96px }
.hero h1 { font-weight: 600; font-size: clamp(42px, 6.2vw, 88px); line-height: 1; letter-spacing: -.045em; max-width: 10.5em; text-wrap: balance }
.hero .lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(238, 242, 248, .78); max-width: 34em }
.ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap }
.ca { margin-top: 22px; display: inline-flex; gap: 12px; align-items: center; height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: rgba(7, 9, 13, .6); font: 13px var(--mono); color: var(--muted); cursor: pointer }
.ca b { color: var(--accent); font-weight: 500 }

/* three figures under a hairline */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px }
.figures > div { padding: 34px 0 30px } .figures > div + div { padding-left: 32px; border-left: 1px solid var(--line) }
.figures b { display: block; font-weight: 500; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -.04em }
.figures span { display: block; margin-top: 12px; color: var(--muted); font-size: 14px }
.figures b.acc { color: var(--accent) }

/* sections: heading column + content column */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; padding-block: 88px; border-bottom: 1px solid var(--line) }
.split .side { position: sticky; top: 104px; align-self: start }
.split h2 { font-weight: 600; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.035em }
.split .side p { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 26em }
.tabs { display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; border-radius: 10px; background: var(--s1); border: 1px solid var(--line) }
.tabs a { padding: 7px 14px; border-radius: 7px; font-size: 13px; color: var(--muted); cursor: pointer } .tabs a.on { background: var(--s2); color: var(--text) }

table.list { width: 100%; border-collapse: collapse; font-size: 15px }
table.list th { text-align: right; font-weight: 400; font-size: 13px; color: var(--muted); padding: 0 0 12px } table.list th:first-child, table.list td:first-child { text-align: left }
table.list td { text-align: right; padding: 15px 0; border-top: 1px solid var(--line); white-space: nowrap }
table.list td + td, table.list th + th { padding-left: 20px }
table.list tr { cursor: pointer } table.list tbody tr:hover td { color: #fff }
.pair { display: flex; align-items: center; gap: 12px } .pair img { width: 28px; height: 28px; border-radius: 50%; background: var(--s2); flex: none }
.pair b { font-weight: 500 } .pair span { color: var(--muted) } .pair small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px }
.rate { color: var(--accent) } .tag { font-size: 13px; color: var(--muted) } .tag.on { color: var(--text) }
.more { display: inline-block; margin-top: 22px; font-size: 14px; color: var(--accent) } .more:hover { text-decoration: underline }

ol.steps { list-style: none; counter-reset: s }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; padding: 22px 0; border-top: 1px solid var(--line) } ol.steps li:first-child { border-top: 0; padding-top: 0 }
ol.steps li::before { content: counter(s); grid-row: span 2; font: 500 15px var(--mono); color: var(--accent); padding-top: 3px }
ol.steps b { font-weight: 500; font-size: 19px; letter-spacing: -.01em } ol.steps span { color: var(--muted); margin-top: 6px; max-width: 38em }

figure.bars { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line) }
figure.bars figcaption { color: var(--muted); font-size: 14px }
.chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-items: end; height: 220px; margin-top: 24px }
.chart .m { display: flex; gap: 3px; align-items: end; height: 100%; position: relative }
.chart .m i { flex: 1; border-radius: 3px 3px 0 0; min-height: 2px } .chart .m i.a { background: var(--accent) } .chart .m i.b { background: rgba(196, 214, 240, .22) }
.chart .m em { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font: 12px var(--mono); color: var(--muted); font-style: normal }
.chart .m strong { position: absolute; left: 0; right: 0; text-align: center; font: 500 12px var(--mono); color: var(--text); white-space: nowrap }
.legend { display: flex; gap: 22px; margin-top: 40px; font-size: 13px; color: var(--muted) } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: -1px } .legend i.a { background: var(--accent) } .legend i.b { background: rgba(196, 214, 240, .22) }

table.spec { width: 100%; border-collapse: collapse; font-size: 15px }
table.spec th { text-align: left; font-weight: 500; padding: 0 16px 14px 0; font-size: 15px }
table.spec td { padding: 16px 16px 16px 0; border-top: 1px solid var(--line); vertical-align: top } table.spec td:first-child { color: var(--muted); width: 28% }
table.spec.two td:last-child { color: var(--text) }
.note { margin-top: 20px; color: var(--muted); font-size: 14px }

.faq details { border-top: 1px solid var(--line) } .faq details:last-child { border-bottom: 1px solid var(--line) }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 500; font-size: 18px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; color: var(--accent); font: 400 22px/1 var(--mono); transition: transform .25s }
.faq details[open] summary::after { transform: rotate(45deg) }
.faq p { color: var(--muted); padding-bottom: 22px; max-width: 42em }

.closing { position: relative; isolation: isolate; overflow: hidden }
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55 }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg), rgba(7, 9, 13, .3) 40%, var(--bg)) }
.closing .wrap { padding-block: clamp(100px, 13vw, 180px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap }
.closing h2 { font-weight: 600; font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -.045em; line-height: 1 }

.foot { background: #000; padding: 64px 0 72px }
.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: 500 } .foot .cols a { color: rgba(255, 255, 255, .62) } .foot .cols a:hover { color: #fff }

/* docs and token pages */
.page-top { padding-block: 96px 56px; border-bottom: 1px solid var(--line) }
.page-top h1 { font-weight: 600; font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -.045em; line-height: 1.02; max-width: 12em }
.page-top p { margin-top: 20px; color: var(--muted); font-size: 18px; max-width: 38em }
.prose p, .prose li { color: var(--muted); max-width: 42em } .prose p + p, .prose h3 + p { margin-top: 12px }
.prose h3 { font-weight: 500; font-size: 18px; margin-top: 26px } .prose h3:first-child { margin-top: 0 }
.prose b { color: var(--text); font-weight: 500 } .prose ul { padding-left: 20px } .prose li + li { margin-top: 8px }
.prose code { font: 13px var(--mono); background: var(--s2); padding: 2px 6px; border-radius: 5px; color: var(--text) }
.prose a { color: var(--accent) }
td a.addr, .addr { font: 13px var(--mono); color: var(--accent) }

@media (max-width: 900px) {
  .bar nav { display: none } .bar .wrap { justify-content: space-between }
  .split { grid-template-columns: 1fr; gap: 28px; padding-block: 64px } .split .side { position: static }
  .figures { grid-template-columns: 1fr } .figures > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line) }
  .hs { display: none }
  .chart { gap: 5px; height: 180px } .chart .m strong { display: none }
}
@media (max-width: 640px) {
  .hero .wrap { padding-block: 88px 64px } .ctas .btn { flex: 1 }
  table.spec { font-size: 14px } table.spec td:first-child { width: 34% }
  .foot .cols { gap: 36px; flex-wrap: wrap }
  .chart .m em { font-size: 10px }
}
