@font-face { font-family: Tobias; src: url('./fonts/Tobias-Thin.woff2') format('woff2'); font-weight: 100; font-display: swap; }
@font-face { font-family: Tobias; src: url('./fonts/Tobias-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Diatype; src: url('./fonts/ABCDiatype-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Diatype; src: url('./fonts/ABCDiatype-Medium.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Diatype Mono'; src: url('./fonts/ABCDiatypeMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f7f7f7;
  --surface: #fcfcfc;
  --ink: #0f0a07;
  --muted: #605e5c;
  --line: #dedddb;
  --accent: #28466a;
  --accent-soft: #eff3f7;
  --spectrum: linear-gradient(90deg, #391228 0%, #a42529 9%, #ec5829 23%, #f5bb7c 33%, #d7dd94 42%, #6f935c 54%, #184d38 64%, #091d39 76%, #347cd2 90%, #a8ccff 100%);
  --gutter: clamp(22px, 5.42vw, 104px);
  --header: clamp(58px, 4.54vw, 78px);
  --serif: Tobias, Georgia, serif;
  --sans: Diatype, Arial, sans-serif;
  --mono: 'Diatype Mono', Consolas, monospace;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; min-width: 280px; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #47749e; outline-offset: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 10px; background: var(--surface); }
main:focus { outline: 0; }
.wrap { width: min(100% - var(--gutter) * 2, 1536px); margin-inline: auto; }

.masthead { position: sticky; inset: 0 0 auto; z-index: 5; border-top: 3px solid transparent; border-bottom: 1px solid var(--line); background: linear-gradient(#fcfcfc, #fcfcfc) padding-box, var(--spectrum) border-box; }
.masthead-inner { width: min(100% - clamp(34px, 6.5vw, 126px), 1680px); min-height: calc(var(--header) - 4px); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wordmark { display: flex; width: fit-content; gap: 8px; align-items: center; font-size: clamp(1.02rem, 1.48vw, 1.48rem); font-weight: 500; letter-spacing: -.055em; }
.mark { width: 19px; height: 19px; display: inline-block; flex: 0 0 19px; background: #101010; clip-path: polygon(16% 18%, 72% 5%, 96% 28%, 84% 78%, 31% 96%, 5% 72%); position: relative; }
.mark::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(169deg, transparent 0 4px, #ffffffa6 4px 5px, transparent 5px 6px); }

h1, h2, .features h3 { margin: 0; font-family: var(--serif); font-weight: 100; letter-spacing: -.035em; }
h1 { line-height: 1.01; }
h2 { font-size: clamp(2.75rem, 5.15vw, 5.35rem); line-height: 1.02; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 44px; padding: 0 17px; border: 1px solid transparent; border-radius: 999px; font: clamp(.69rem, .9vw, .86rem) var(--mono); text-transform: uppercase; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .44; cursor: default; transform: none; }
.primary { background: #292929; color: #fafafa; border-color: #292929; box-shadow: inset 0 1px #ffffff38; }
.primary:hover { background: #151515; border-color: #151515; }
.secondary { background: #f9f9f9; border-color: #dedede; color: #242424; box-shadow: inset 0 1px #fff; }
.secondary:hover { background: #fff; border-color: #bfbfbf; }
.spectrum-button { border-color: transparent; background: linear-gradient(#fafafa, #fafafa) padding-box, var(--spectrum) border-box; color: #262626; }
.masthead .spectrum-button { min-height: clamp(32px, 2.8vw, 42px); padding-inline: clamp(9px, 1.25vw, 20px); }
.search-mark { display: inline-block; position: relative; width: 13px; height: 13px; flex: 0 0 13px; border: 1.5px solid currentColor; border-radius: 50%; }
.search-mark::after { content: ''; width: 5px; height: 1.5px; position: absolute; bottom: -2px; right: -4px; rotate: 45deg; background: currentColor; }
.kicker { font: .78rem var(--mono); letter-spacing: .05em; }
.beacon { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #4a7156; }
.tag { display: inline-block; color: #414346; border: 1px solid #dedede; background: #f9f9f9; border-radius: 3px; padding: .18em .35em; font: .69rem var(--mono); }

.hero { overflow: clip; }
.hero-stage {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(24px, 2.48vw, 44px);
  min-height: max(580px, calc(100svh - var(--header)));
  padding-block: clamp(92px, 6.4vw + 31px, 147px) clamp(25px, 2.75vw, 50px);
}
.hero-headline { z-index: 1; display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; gap: clamp(145px, 15vw, 320px); font-size: clamp(3rem, 6.59vw, 7.55rem); animation: enter .6s both; }
.hero-headline span { display: block; }
.hero-headline span:last-child { align-self: end; text-align: right; }
.hero-orbit { position: absolute; inset: 11% 1.5% 8% 2%; pointer-events: none; }
.hero-orbit canvas, .showcase-orbit canvas { display: block; width: 100%; height: 100%; }
.hero-bottom { z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 20px; animation: enter .6s .12s both; }
.hero-bottom p { margin: 0; color: #696969; font-size: clamp(.93rem, 1.24vw, 1.13rem); line-height: 1.65; }
.hero-actions, .detail-links { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }

.features-section { padding-block: clamp(35px, 6vw, 103px) clamp(85px, 9.5vw, 145px); }
.guide-frame { position: relative; border-inline: 1px solid var(--line); }
.guide-frame::before, .guide-frame::after { content: ''; position: absolute; z-index: 1; width: 7px; height: 7px; bottom: -4px; border: 1px solid var(--line); background: var(--paper); }
.guide-frame::before { left: -4px; }
.guide-frame::after { right: -4px; }
.section-intro { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 36px; border-bottom: 1px solid var(--line); padding: clamp(32px, 5.8vw, 88px) clamp(20px, 3vw, 52px) clamp(38px, 6.2vw, 92px); }
.section-intro h2 { margin-top: 13px; }
.section-intro > p { justify-self: end; max-width: 37ch; margin: 0 0 5px; color: var(--muted); line-height: 1.65; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.features article { display: flex; flex-direction: column; align-items: start; padding: clamp(17px, 3vw, 42px); }
.features article + article { border-left: 1px solid var(--line); --reveal-delay: 80ms; }
.features h3 { margin: 23px 0 10px; font-size: clamp(1.95rem, 3.05vw, 3.55rem); line-height: 1.04; }
.features p { margin: 0 0 15px; color: var(--muted); line-height: 1.55; }
.feature-link { margin-top: auto; font: .79rem var(--mono); text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.feature-link:hover { color: var(--accent); }
.feature-art { isolation: isolate; position: relative; width: 100%; aspect-ratio: 1.55; min-height: 175px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: radial-gradient(ellipse at 56% 55%, #ececec, #f8f8f8 65%); }
.feature-window { position: absolute; width: 62%; left: 9%; top: 12%; padding: 0 8px 7px; border: 1px solid #e6e5e3; border-radius: 7px; color: #343c45; background: #fcfcfced; box-shadow: 0 7px 22px #3434341f; font: clamp(.47rem, .85vw, .79rem) var(--mono); transition: transform .42s cubic-bezier(.2,.6,.35,1); }
.feature-window p { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin: 0; padding: .55em .5em; border-bottom: 1px solid #eaeaea; color: #4a5056; }
.feature-window p:last-child { border-bottom: 0; }
.feature-window strong { color: #244960; font-weight: 400; }
.feature-window .search-mark { width: .85em; height: .85em; flex-basis: .85em; }
.feature-window .window-input { justify-content: start; margin: .5em; border: 1px solid #e4e9ec; border-radius: 4px; }
.window-head { display: flex; justify-content: space-between; gap: 6px; align-items: center; padding: .9em .5em .7em; color: #4a4b4c; border-bottom: 1px solid #e4e4e4; white-space: nowrap; }
.window-head span { font-size: .8em; color: #676767; }
.window-back { opacity: .61; }
.window-front { left: 29%; top: 34%; }
.feature-art-details .window-back { top: 37%; left: 8%; }
.feature-art-details .window-front { top: 17%; left: 29%; }
.feature:hover .window-front, .feature:focus-within .window-front { transform: translate(4%, -5%); }
.feature:hover .window-back, .feature:focus-within .window-back { transform: translate(-2%, 4%); }

.showcase { isolation: isolate; position: relative; overflow: clip; background: #000; color: #fafafa; padding-block: clamp(58px, 8.6vw, 138px); }
.showcase-grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 9vw, 150px); }
.showcase-orbit { position: absolute; width: min(54vw, 740px); height: min(47vw, 575px); left: -22vw; bottom: -16vw; opacity: .57; pointer-events: none; }
.showcase .tag { color: #dadada; background: #252525; border-color: #393939; }
.showcase-intro h2 { margin: 14px 0 18px; font-size: clamp(2.65rem, 4.6vw, 5.25rem); }
.showcase-intro p { margin: 0; color: #c5c5c5; }
.showcase-list details { border-bottom: 1px solid #292929; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.showcase-list summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 11px 0; font: clamp(.74rem, .97vw, .94rem) var(--mono); text-transform: uppercase; color: #e7e7e7; }
.showcase-list summary:hover { color: #fff; }
.showcase-number { font-size: 1.06em; color: #a0a0a0; }
.showcase-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 50%; border: 1px solid #353535; background: #202020; font-size: 1.08rem; }
.showcase-content { padding: 14px 0 27px 37px; animation: enter .28s both; }
.showcase-content p { max-width: 45ch; margin: 14px 0; color: #d3d3d3; line-height: 1.65; }
.showcase-content .button { min-height: 34px; background: #303030; border-color: #414141; color: #f7f7f7; }
.showcase-content .button:hover { background: #4a4a4a; }
.faq { display: grid; grid-template-columns: 1fr 1.15fr; align-items: start; gap: 34px; padding-block: clamp(70px, 10vw, 140px); }
.faq h2 { font-size: clamp(2.45rem, 4.68vw, 5rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 10px; padding: 18px 0; font-weight: 500; }
.faq summary::after { content: '+'; color: #535353; font-family: var(--mono); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; animation: enter .24s both; }
.last-section { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: clamp(36px, 7vw, 112px) clamp(20px, 3vw, 55px); border-block: 1px solid var(--line); }


.explorer { padding-block: clamp(24px, 4.5vh, 56px) 67px; min-height: calc(100svh - var(--header)); }
.explorer-heading { animation: enter .43s both; }
.explorer-heading h1 { font-size: clamp(3.15rem, 7vw, 6.5rem); }
.explorer-heading > p:last-child { margin: 16px 0 29px; max-width: 55ch; }
.search-form { display: flex; align-items: center; gap: 17px; max-width: 760px; padding: 6px 6px 6px 17px; border: 1px solid #aeb4c2; border-radius: 6px; background: var(--surface); }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #3543a321; }
.search-form input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); padding: 11px 0; outline: 0; }
.search-form input::placeholder { color: var(--muted); }
.examples { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: var(--muted); font-size: .86rem; }
.examples button { color: var(--accent); border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 6px 9px; font: .8rem var(--mono); }
.examples button:hover { border-color: var(--accent); background: var(--accent-soft); }
.results { margin-top: 37px; }
.status-panel { min-height: 215px; display: grid; gap: 10px; align-content: center; justify-items: center; text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 24px; color: var(--muted); background: var(--surface); }
.status-panel h2 { font-size: 2.05rem; color: var(--ink); }
.status-panel p { margin: 0; }
.feature-mark { display: inline-block; }
.blocks-mark { display: block; width: 25px; height: 25px; position: relative; color: var(--accent); }
.blocks-mark::before, .blocks-mark::after { content: ""; width: 13px; height: 13px; border: 1px solid currentColor; position: absolute; inset: 4px auto auto 2px; rotate: 45deg; border-radius: 2px; }
.blocks-mark::after { left: 8px; background: #3543a327; }
.spinner { width: 30px; height: 25px; position: relative; overflow: hidden; background: repeating-linear-gradient(0deg, #dce1f9 0 2px, transparent 2px 6px); }
.spinner::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--accent); box-shadow: 0 0 6px #5265ce; animation: scan 1s ease-in-out alternate infinite; }
.status-panel .button { margin-top: 7px; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 5px; overflow: hidden; }
.summary > div { background: var(--surface); min-width: 0; padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.summary span, .metric span, .created, .detail-row dt, .market-status { color: var(--muted); font-size: .87rem; }
.summary strong { font-family: var(--serif); font-size: clamp(1.15rem, 2.7vw, 1.95rem); font-weight: 400; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.results-toolbar h2 { font-size: 1.85rem; }
.results-toolbar label { color: var(--muted); font-size: .86rem; }
.results-toolbar select { margin-left: 6px; padding: 7px 27px 7px 9px; border: 1px solid #bfc2c0; border-radius: 4px; background: var(--surface); color: var(--ink); }
.market-status { margin: 0 0 13px; }
.market-status:empty { display: none; }
.market-status button { color: var(--accent); border: 0; background: none; padding: 0; text-decoration: underline; }
.token-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.token { min-width: 0; padding: clamp(14px, 2vw, 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; display: flex; flex-direction: column; gap: 13px; }
.token:hover { border-color: #9aabd2; }
.token-head, .token-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.token-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.token-avatar { width: 36px; height: 36px; border: 1px solid #cdd4f0; border-radius: 5px; display: grid; place-items: center; flex: 0 0 36px; background: var(--accent-soft); color: var(--accent); font: .82rem var(--mono); }
.token h3 { font-size: 1.1rem; margin: 0 0 2px; overflow-wrap: anywhere; }
.token-name { color: var(--muted); font-size: .87rem; margin: 0; overflow-wrap: anywhere; }
.rank { color: var(--accent); font: .75rem var(--mono); white-space: nowrap; }
.contract { display: flex; gap: 8px; align-items: center; min-width: 0; }
.contract code, .detail-row code { color: var(--ink); font: .82rem var(--mono); overflow-wrap: anywhere; }
.copy { background: var(--surface); border: 1px solid #bfc2c0; color: var(--muted); border-radius: 4px; flex: 0 0 auto; padding: 5px 8px; font-size: .78rem; }
.copy:hover { color: var(--ink); background: var(--accent-soft); }
.created { margin: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badges:empty { display: none; }
.badge { border: 1px solid #cdd4f0; border-radius: 4px; color: #35438c; background: #eef0fc; padding: 3px 6px; font-size: .75rem; }
.badge.warn { border-color: #efc197; color: #7d461c; background: #fff3e8; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.metric { display: grid; align-content: start; gap: 5px; padding: 9px 10px; background: #f5f6f1; }
.metric strong { font-weight: 650; overflow-wrap: anywhere; }
.token-footer { margin-top: auto; }
.token-footer .button { min-height: 35px; padding-inline: 11px; font-size: .83rem; }
.external { color: var(--accent); font-size: .87rem; }
.external:hover { text-decoration: underline; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 23px; color: var(--muted); font-size: .88rem; }
dialog { padding: 0; border: 1px solid #9fa6bc; border-radius: 8px; color: var(--ink); background: var(--surface); width: min(600px, 100% - 28px); max-height: calc(100% - 30px); box-shadow: 0 35px 100px #191f38a0; }
dialog[open] { animation: enter .23s both; }
dialog::backdrop { background: #171b3296; backdrop-filter: blur(4px); }
.detail-shell { padding: clamp(19px, 4vw, 33px); }
.detail-top, .detail-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.detail-top .kicker { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.close { width: 36px; aspect-ratio: 1; border-radius: 4px; border: 1px solid #bfc2c0; background: var(--surface); color: var(--ink); font-size: 1.5rem; line-height: 1; }
.close:hover { background: var(--accent-soft); }
.detail-shell h2 { font-size: 2.8rem; margin: 10px 0 4px; overflow-wrap: anywhere; }
.detail-shell p { color: var(--muted); margin: 0 0 16px; }
.detail-row { border-top: 1px solid var(--line); padding: 10px 0; }
.detail-row dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.detail-row dt { flex: 0 0 34%; }
.toast { position: fixed; inset: auto 20px 20px auto; z-index: 10; padding: 12px 16px; max-width: calc(100% - 40px); border: 1px solid #bfc2c0; border-radius: 5px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 40px #191f3824; }
.toast:empty { display: none; }
.reveal-ready:not(.revealed) { opacity: 0; transform: translateY(20px); }
.reveal-ready { transition: opacity .55s ease, transform .55s ease; transition-delay: var(--reveal-delay, 0ms); }
@keyframes enter { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scan { to { transform: translateY(23px); } }


.explorer-heading h1 em { font-style: normal; }
.search-form, .status-panel, .token, .metrics, .summary { border-color: var(--line); }
.token, dialog, .status-panel, .summary > div, .copy, .examples button { background: #fcfcfc; }
.metric { background: #f6f6f6; }
.rank, .external { color: var(--accent); }
.token-avatar { background: var(--accent-soft); border-color: #d7e0e8; }
.badge:not(.warn) { color: #3b4e60; border-color: #d2dbe4; background: #f3f5f7; }
.search-form:focus-within { border-color: #7698b6; box-shadow: 0 0 0 2px #7698b625; }
.spinner { background: repeating-linear-gradient(0deg, #e1e3e5 0 2px, transparent 2px 6px); }
.spinner::after { background: #535a62; box-shadow: 0 0 6px #32323638; }

@media (max-width: 920px) {
  .token-list { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  :root { --header: 54px; --gutter: 19px; }
  .hero-stage { min-height: max(540px, calc(100svh - var(--header))); gap: 23px; padding-block: 85px 24px; }
  .hero-headline { gap: clamp(118px, 35vw, 210px); font-size: clamp(2.4rem, 8.95vw, 4.3rem); }
  .hero-headline span { max-width: 96%; }
  .hero-orbit { inset: 14% -11% 13%; }
  .hero-bottom p { font-size: .91rem; }
  .hero-bottom { align-items: start; flex-direction: column; gap: 17px; }
  .hero-actions .button { min-height: 36px; }
  .section-intro, .showcase-grid, .faq { grid-template-columns: 1fr; gap: 24px; }
  .section-intro > p { justify-self: start; }
  .features { grid-template-columns: 1fr; }
  .features article + article { border-left: 0; border-top: 1px solid var(--line); --reveal-delay: 0ms; }
  .showcase-orbit { width: 92vw; height: 66vw; left: -40vw; bottom: -24vw; }
  .last-section { align-items: flex-start; flex-direction: column; }
  .summary > div { padding: 12px 9px; }
}
@media (max-width: 430px) {
  .explorer-heading h1 { font-size: clamp(2.7rem, 11vw, 3.65rem); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form { gap: 10px; padding-left: 11px; }
  .search-form .search-mark { display: none; }
  .button { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal-ready:not(.revealed) { opacity: 1; transform: none; }
}
