/* Perpy: dark glass. Near-black stage, silver type, crystal edges. Bricolage Grotesque for statements, Geist for reading, Geist Mono for numbers.
   Colour is reserved for data (long = mint, short = coral). Everything else is black, graphite and white. */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/bricolage-grotesque-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/geist-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/geist-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/geist-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/geist-mono-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #060607;
  --bg-2: #0c0d0f;
  --bg-3: #131417;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --text: #eceef1;
  --text-2: #c3c6cc;
  --mute: #858a93;
  --long: #66e8b0;
  --short: #ff7468;
  --r: 14px;
  --r-lg: 24px;
  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav: 88px;
}
body.docs-body {
  --bg: #f4f5f6; --bg-2: #ffffff; --bg-3: #ebedef;
  --glass: rgba(0, 0, 0, .03); --glass-2: rgba(0, 0, 0, .06);
  --line: rgba(10, 12, 16, .1); --line-2: rgba(10, 12, 16, .2);
  --text: #0e1013; --text-2: #343840; --mute: #626872;
  --long: #0d8a5a; --short: #d23b2f;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; font-synthesis: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }
.mono { font-family: var(--f-mono); }
.tc { font-family: var(--f-mono); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.up { color: var(--long); } .dn { color: var(--short); }

/* ---------- type */
.h-xl { font-family: var(--f-display); font-weight: 700; font-size: clamp(54px, 9.4vw, 148px); line-height: .88; letter-spacing: -.045em; margin: 0; text-transform: uppercase; }
.h-lg { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 4.6vw, 68px); line-height: .96; letter-spacing: -.035em; margin: 0; }
.h-md { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--mute); max-width: 54ch; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.eyebrow .tc { color: var(--text); font-size: 12px; }
.eyebrow .tc::after { content: '/'; margin-left: 12px; color: var(--mute); }
.mute { color: var(--mute); }
.silver { background: linear-gradient(180deg, #fff 10%, #9aa0aa 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- sections */
.sec { position: relative; padding: clamp(80px, 11vw, 160px) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ---------- glass */
.glass { position: relative; background: var(--glass); border-radius: var(--r-lg); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.glass::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(150deg, rgba(255,255,255,.36), rgba(255,255,255,.06) 32%, rgba(255,255,255,.03) 68%, rgba(255,255,255,.22)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card { padding: 28px; }

/* ---------- buttons: glass capsules, white primary */
.btn {
  --bg-b: var(--glass); --fg: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 16px; overflow: hidden;
  background: var(--bg-b); color: var(--fg); text-decoration: none; white-space: nowrap;
  font-family: var(--f-body); font-weight: 600; font-size: 15px; letter-spacing: .005em;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255,255,255,.18);
  transition: background .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg); transition: left .7s var(--ease); pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), inset 0 1px 0 rgba(255,255,255,.3); }
.btn:active { transform: translateY(1px); }
.btn--primary { --bg-b: #f3f4f6; --fg: #08090a; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 12px 40px -14px rgba(255,255,255,.35); }
.btn--primary:hover { --bg-b: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 18px 50px -12px rgba(255,255,255,.5); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn[disabled], .btn.is-off { opacity: .45; pointer-events: none; }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(4px); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.chip--long { color: var(--long); } .chip--short { color: var(--short); } .chip--ok { color: var(--text); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dot--live { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.ul { text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.ul:hover { text-decoration-color: var(--text); }

/* the nav, the menu sheet and the footer stay dark even on the light docs pages */
.nav, .sheet, .foot { --bg: #060607; --text: #eceef1; --text-2: #c3c6cc; --mute: #858a93; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.18); --glass: rgba(255,255,255,.045); --glass-2: rgba(255,255,255,.08); color: #eceef1; }

/* ---------- navigation: a floating glass pill */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; border-radius: 22px; background: rgba(10, 11, 13, .84); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.2), 0 24px 60px -24px rgba(0,0,0,.9); max-width: calc(100vw - 20px); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: -.03em; padding-right: 8px; }
.nav-brand svg { width: 30px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--mute); transition: color .2s, background .2s; }
.nav-link:hover { color: var(--text); }
.nav-link.on { color: var(--text); background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.nav-end { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
.nav-ca { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; font-family: var(--f-mono); font-size: 11.5px; color: var(--text-2); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.nav-ca:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.nav-ca b { color: #fff; font-weight: 600; }
.nav-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--mute); transition: color .2s; }
.nav-ico:hover { color: #fff; }
.nav-ico svg { width: 16px; height: 16px; }
.nav-menu { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); place-items: center; }
.nav-menu svg { width: 20px; height: 20px; }
.sheet { position: fixed; inset: 0; z-index: 89; background: rgba(6, 6, 7, .96); backdrop-filter: blur(20px); padding: 104px clamp(20px, 5vw, 36px) 40px; display: none; flex-direction: column; overflow: auto; }
.sheet.open { display: flex; }
.sheet a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -.03em; }
.sheet a .tc { font-size: 12px; color: var(--mute); }
@media (max-width: 1100px) { .nav-ca { display: none; } }
@media (max-width: 900px) { .nav-links, .nav-end .nav-ico { display: none; } .nav-menu { display: grid; } .nav { left: 12px; right: 12px; transform: none; max-width: none; justify-content: space-between; padding: 8px; } .nav-brand { padding-left: 6px; } .nav-end { margin-left: 0; } .nav-end .btn { padding: 0 14px; } .nav-end .btn--primary { display: none; } }

/* ---------- wallet: nav button, menu, connect modal */
.nav-wallet { gap: 8px; }
.nav-wallet .dot { color: var(--long); }
.nav-wallet.on { background: var(--glass-2); }
.wmenu { position: fixed; z-index: 95; width: 220px; padding: 8px; border-radius: 18px; background: rgba(10,11,13,.92); display: grid; gap: 2px; }
.wmenu[hidden] { display: none; }
.wmenu-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.wmenu img { border-radius: 6px; }
.wmenu button, .wmenu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-decoration: none; }
.wmenu button:hover, .wmenu a:hover { background: var(--glass-2); }
.wm { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wm-card { width: min(440px, 100%); padding: 28px; display: grid; gap: 16px; background: rgba(12,13,15,.9); }
.wm-x { position: absolute; right: 14px; top: 10px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 26px; color: var(--mute); line-height: 1; }
.wm-x:hover { color: #fff; }
.wm-sub { margin: 0; color: var(--mute); font-size: 14.5px; }
.wm-list { display: grid; gap: 8px; }
.wm-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); text-align: left; font-weight: 600; font-size: 16px; color: var(--text); transition: background .2s, box-shadow .2s; }
.wm-row:hover, .wm-row:focus-visible { background: rgba(255,255,255,.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.wm-row.busy { opacity: .6; pointer-events: none; }
.wm-row img, .wm-ph { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.wm-ph { background: linear-gradient(135deg, #fff, #7d838d); }
.wm-row span { flex: 1; }
.wm-row em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--long); }
.wm-none { margin: 0; padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 14.5px; }
.wm-get { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13.5px; }
.wm-get span { width: 100%; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.wm-get a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.wm-get a:hover { color: #fff; }
.wm-err { margin: 0; color: var(--short); font-size: 14px; }

/* ---------- the contract address, shown on the home hero, in the footer and on the token page */
.ca-chip { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 8px 8px 8px 12px; border: 0; border-radius: 16px; color: var(--text); cursor: pointer; }
.ca-chip[hidden] { display: none; }
.ca-chip b { font-family: var(--f-mono); font-weight: 600; font-size: 11px; letter-spacing: .1em; padding: 4px 8px; border-radius: 8px; background: #f1f3f5; color: #08090a; }
.ca-chip code { background: none; padding: 0; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-chip span, .foot-ca span { flex: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.ca-chip:hover span, .foot-ca:hover span { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.foot-ca { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 40px; padding: 14px 16px; border: 0; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); color: #eceef1; cursor: pointer; text-align: left; font: inherit; }
.foot-ca b { font-family: var(--f-mono); font-weight: 600; font-size: 12px; letter-spacing: .08em; }
.foot-ca code { background: none; padding: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #cbd0d8; }
@media (max-width: 600px) { .ca-chip code { max-width: 52vw; } }

/* ---------- code, tables */
pre, code { font-family: var(--f-mono); }
code { font-size: .86em; padding: .14em .42em; border-radius: 6px; background: var(--glass-2); }
pre { margin: 0; padding: 22px 24px; background: var(--bg-2); color: var(--text-2); border-radius: var(--r); overflow-x: auto; font-size: 13.5px; line-height: 1.65; box-shadow: inset 0 0 0 1px var(--line); tab-size: 2; }
pre code { padding: 0; background: none; font-size: inherit; color: inherit; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); background: var(--glass); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------- footer */
.foot { position: relative; padding: 88px 0 0; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg); color: #eceef1; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.foot h4 { margin: 0 0 16px; font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #858a93; }
.foot a { display: block; padding: 5px 0; text-decoration: none; color: #c3c6cc; font-size: 15px; transition: color .15s; }
.foot a:hover { color: #fff; }
.foot-brand a.nav-brand { display: inline-flex; padding: 0; color: #fff; }
.foot-brand p { color: #858a93; max-width: 36ch; margin: 16px 0 0; font-size: 15px; }
.foot-legal { margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; color: #6d727b; font-size: 13px; max-width: 80ch; }
.foot-word { font-family: var(--f-display); font-weight: 700; font-size: clamp(120px, 30vw, 500px); line-height: .76; letter-spacing: -.06em; text-transform: uppercase; text-align: center; margin: 24px 0 -.07em; user-select: none; white-space: nowrap; background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 82%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .rv { opacity: 1; transform: none; }
}
