:root {
  color-scheme: dark;
  --ink: #f0f6ff;
  --muted: #a4b3cb;
  --blue: #80c8ff;
  --line: #243853;
  --mono: "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #060911; color: var(--ink); font: 16px/1.65 system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(1240px, calc(100% - 88px)); margin-inline: auto; }
header, footer, nav, .brand, .trade-head { display: flex; align-items: center; }
header, footer, .trade-head { justify-content: space-between; }
header { min-height: 78px; position: relative; z-index: 2; border-bottom: 1px solid var(--line); gap: 1rem; }
nav { gap: clamp(1rem,4vw,2.5rem); }
nav a { color: var(--muted); }
nav a:hover, .explorer:hover { color: white; }
nav a:last-child { border: 1px solid #385577; padding: .42rem .85rem; border-radius: .3rem; color: var(--ink); }
.brand { gap: .8rem; font: 700 .95rem var(--mono); letter-spacing: .11em; white-space: nowrap; }
.mark { display: inline-grid; place-items: center; width: 29px; height: 29px; color: #d9efff; background: #132c47; border: 1px solid #5982ac; transform: rotate(45deg); border-radius: 5px; }
.mark span { transform: rotate(-45deg); }
.hero { position: relative; isolation: isolate; min-height: 580px; display: grid; align-items: center; }
.scene { position: absolute; z-index: -1; inset: 0 calc((min(1240px, 100% - 88px) - 100vw)/2) 0 18%; width: 82%; width: max(82%, 64vw); max-width: calc(100vw - 18%); height: 100%; pointer-events: none; }
.intro { padding: 3.9rem 0 5.8rem; max-width: 690px; }
.label { font: 650 .875rem/1.5 var(--mono); letter-spacing: .13em; color: var(--blue); margin: 0 0 1rem; }
h1,h2,p { margin-top: 0; }
h1 { margin: 0 0 1.4rem; font-size: clamp(3.7rem, 9vw, 8.65rem); line-height: .83; letter-spacing: -.092em; }
h1 span { display: block; width: fit-content; margin-top: .12em; font-size: 1.45em; background: linear-gradient(169deg,#fff 9%,#aac5e4 35%,#fcffff 49%,#5981a9 74%,#c4f2ff); color: transparent; background-clip: text; }
.lead { color: #bfcee2; font-size: clamp(1.05rem,2.1vw,1.35rem); max-width: 31ch; margin: 0; text-wrap: balance; }
.trade { position: relative; border: 1px solid #304b6b; border-top-color: #6385ad; padding: clamp(1.25rem, 4vw, 2.65rem); background: linear-gradient(110deg,#0d1a2c,#0a101d 72%); border-radius: .7rem; box-shadow: 0 18px 60px #020408; scroll-margin-top: 1rem; }
.trade-head { flex-wrap: wrap; gap: .6rem; margin-bottom: 1.1rem; }
h2 { margin: 0 0 .85rem; font-size: clamp(2rem,4.7vw,4rem); letter-spacing: -.065em; line-height: 1.03; }
.trade h2 { margin: 0; font-size: clamp(1.85rem,4vw,2.65rem); }
.explorer { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.contract,.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.contract input { flex: 1 1 18rem; width: 100%; min-width: 0; border: 1px solid #2d425d; border-radius: .35rem; background: #060b15; color: var(--ink); padding: .9rem; font: .95rem var(--mono); }
.contract button,.actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1rem; border: 1px solid #476b91; border-radius: .35rem; background: #102038; color: var(--ink); font: 650 1rem system-ui; cursor: pointer; }
.actions .primary { border-color: #a7d7ff; background: #a7d7ff; color: #061322; }
.contract button:hover,.actions a:hover { filter: brightness(1.2); }
.status { color: var(--blue); margin: .35rem 0 .6rem; min-height: 1.4em; }
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 2rem; padding: clamp(3.5rem,9vw,7rem) 0; }
.about p:not(.label) { color: var(--muted); max-width: 56ch; margin: .3rem 0 0; font-size: 1.08rem; }
footer { min-height: 74px; border-top: 1px solid var(--line); color: var(--muted); font: .875rem var(--mono); gap: .5rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .hero { min-height: 505px; }
  .scene { inset: 0 -16px 0 0; width: calc(100% + 16px); max-width: none; }
  .intro { padding: 7rem 0 3rem; }
  .about { grid-template-columns: 1fr; gap: .35rem; }
}
@media (max-width: 460px) {
  nav { gap: .65rem; font-size: .875rem; }
  .brand { font-size: .78rem; }
  .mark { width: 22px; height: 22px; }
  .contract button,.actions a { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

main { overflow: clip; }
