:root {
  color-scheme: dark;
  --bg: #070708;
  --panel: #101012;
  --line: #29292d;
  --muted: #92929a;
  --text: #f3f3f4;
  --red: #ff334d;
  --red-dark: #7a1625;
  --green: #46e39b;
  --amber: #ffb84d;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; background: var(--bg); }
body { margin: 0; min-height: 100dvh; color: var(--text); background: radial-gradient(circle at 50% -20%, #310810 0, transparent 42%), var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
::selection { color: white; background: var(--red-dark); }
.grid { position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: linear-gradient(#19191c 1px, transparent 1px), linear-gradient(90deg, #19191c 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.topbar { position: relative; z-index: 2; min-height: 72px; padding: 0 clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; background: #070708e8; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .12em; font-size: 13px; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border: 1px solid var(--red); color: var(--red); font-size: 10px; transition: transform 180ms ease-out, color 180ms ease-out; }
.brand:hover .mark { transform: rotate(-4deg) scale(1.04); color: white; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.site-nav a, footer a { color: var(--muted); text-decoration: none; font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; transition: color 160ms ease-out, transform 160ms ease-out; }
.site-nav a:hover, footer a:hover { color: var(--text); transform: translateY(-1px); }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.social-nav { display: flex; align-items: center; gap: 7px; }
.social-nav a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); color: var(--muted); transition: color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out; }
.social-nav a:hover { color: var(--text); border-color: #56565e; transform: translateY(-2px); }
.social-nav svg { width: 15px; height: 15px; fill: currentColor; }
.site-nav a:focus-visible, footer a:focus-visible, .social-nav a:focus-visible, .brand:focus-visible, .wallet-link:focus-visible, .tx-link:focus-visible, .token-link:focus-visible, .token-live-link:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
main { position: relative; z-index: 1; width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: clamp(72px, 12vw, 150px) 0 64px; max-width: 920px; }
.eyebrow { margin: 0 0 20px; color: var(--red); font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .2em; }
h1 { margin: 0; max-width: 900px; font-size: clamp(46px, 8.5vw, 104px); line-height: .94; letter-spacing: -.055em; }
h1 em { color: var(--red); font-style: normal; }
.intro { max-width: 650px; margin: 30px 0 38px; color: #b6b6bd; font-size: clamp(15px, 2vw, 18px); line-height: 1.7; }
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: hero-in 520ms ease-out both; }
  .hero > *:nth-child(2) { animation-delay: 70ms; }
  .hero > *:nth-child(3) { animation-delay: 120ms; }
  .hero > *:nth-child(4) { animation-delay: 170ms; }
  .hero > *:nth-child(5) { animation-delay: 210ms; }
  .hero > *:nth-child(6) { animation-delay: 250ms; }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
form { display: flex; width: min(850px, 100%); padding: 6px; border: 1px solid #3a3a40; background: #0a0a0c; box-shadow: 0 24px 80px #0008; transition: transform 180ms ease-out, border-color 180ms ease-out; }
form:focus-within { transform: translateY(-2px); border-color: var(--red-dark); }
input { min-width: 0; flex: 1; padding: 18px 20px; color: var(--text); background: transparent; border: 0; outline: 0; font: 14px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
input:focus-visible { box-shadow: inset 0 0 0 1px var(--red-dark); }
button { min-width: 132px; border: 0; padding: 0 22px; color: white; background: var(--red); font-weight: 900; letter-spacing: .13em; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: transform 160ms ease-out, background 160ms ease-out, opacity 160ms ease-out; }
button:hover { background: #ff5268; }
button:not(:disabled):hover { transform: translateY(-1px); }
button:not(:disabled):active { transform: translateY(1px); }
button:focus-visible { outline: 2px solid white; outline-offset: -4px; }
button b { transition: transform 160ms ease-out; }
button:not(:disabled):hover b { transform: translate(3px, -3px); }
button:disabled { opacity: .55; cursor: wait; }
.form-error { min-height: 20px; margin: 10px 0 0; color: #ff8292; font: 12px/1.4 ui-monospace, monospace; }
.metrics { display: flex; flex-wrap: wrap; gap: 0; margin-top: 42px; border-top: 1px solid var(--line); }
.metrics div { min-width: 180px; padding: 20px 36px 0 0; }
.metrics strong, .metrics span { display: block; }
.metrics strong { min-width: 6ch; font: 700 20px/1.2 ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.metrics span { margin-top: 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.metrics small { display: block; margin-top: 8px; color: var(--green); font: 700 10px/1 ui-monospace, monospace; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(4px); }
.metrics small.metric-delta-visible { animation: metric-delta-in 360ms ease-out both; }
@keyframes metric-delta-in { to { opacity: 1; transform: translateY(0); } }
.hidden { display: none !important; }
.loading { margin: 12px 0 80px; color: var(--muted); font: 12px/1 ui-monospace, monospace; letter-spacing: .08em; }
.loading span { display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--red); animation: blink .8s infinite alternate; }
@keyframes blink { to { opacity: .15; } }
.result { padding-bottom: 100px; }
.result.result-enter { animation: result-in 420ms ease-out both; }
@keyframes result-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.result-head { padding: 32px; border: 1px solid var(--line); background: linear-gradient(135deg, #17171a, #0c0c0e); }
.result-head.alert { border-left: 3px solid var(--red); }
.result-head.clear { border-left: 3px solid var(--green); }
.result-head h2 { margin: 5px 0 14px; font-size: clamp(23px, 4vw, 38px); letter-spacing: -.03em; }
.result-head .status-label { color: var(--red); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .16em; }
.result-head.clear .status-label { color: var(--green); }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); }
.summary div { padding: 18px; background: #0c0c0e; }
.summary strong, .summary span { display: block; }
.summary strong { font: 700 22px/1.1 ui-monospace, monospace; }
.summary span { margin-top: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.coverage-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.balance-note { margin: 18px 0 0; color: #b6b6bd; font-size: 12px; line-height: 1.6; }
.balance-note.warning { color: var(--amber); }
.token-link, .wallet-link, .tx-link { color: inherit; text-decoration-color: #555; text-underline-offset: 3px; }
.wallet-table { margin-top: 28px; border: 1px solid var(--line); }
.wallet-row { border-bottom: 1px solid var(--line); }
.wallet-row:last-child { border-bottom: 0; }
.wallet-summary { width: 100%; padding: 17px 20px; border: 0; background: #0c0c0e; color: var(--text); display: grid; grid-template-columns: minmax(190px, 2fr) 1fr .6fr .6fr; gap: 16px; text-align: left; font: 13px/1.2 ui-monospace, monospace; letter-spacing: 0; cursor: pointer; }
.wallet-summary:hover { background: #151518; }
.wallet-summary .holding { color: var(--green); }
.wallet-summary .historical { color: var(--muted); }
.events { padding: 0 20px 18px; background: #101012; }
.events.events-enter { animation: events-in 180ms ease-out both; }
@keyframes events-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.event { display: grid; grid-template-columns: 100px 1fr 1fr auto; gap: 12px; padding: 13px 0; border-top: 1px solid #26262a; align-items: center; font-size: 12px; }
.event .buy { color: var(--green); }
.event .sell { color: var(--red); }
.event .unknown { color: var(--amber); }
.event small { color: var(--muted); }
.empty-warning { max-width: 720px; color: #b6b6bd; line-height: 1.7; }
.content-section { padding: clamp(84px, 10vw, 132px) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 780px; }
.content-section h2 { margin: 0; max-width: 820px; font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: -.045em; }
.content-section h2 em { color: var(--red); font-style: normal; }
.section-heading > p:last-child, .support-copy > p:last-child { max-width: 680px; margin: 28px 0 0; color: #b6b6bd; font-size: 16px; line-height: 1.75; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 56px; padding: 1px; background: var(--line); }
.process-card { min-height: 260px; padding: 28px; background: var(--panel); transition: transform 180ms ease-out, border-color 180ms ease-out; }
.process-card:hover { transform: translateY(-4px); }
.process-card .step { color: var(--red); font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.process-card h3 { margin: 76px 0 14px; font-size: 21px; }
.process-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.read-only-note { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; max-width: 780px; margin-top: 36px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.read-only-note > span { color: var(--red); font: 700 18px/1 ui-monospace, monospace; }
.read-only-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.read-only-note strong { color: var(--text); }
.support-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(48px, 8vw, 104px); align-items: center; }
.support-copy h2 { font-size: clamp(38px, 4.5vw, 58px); }
.token-card { position: relative; padding: 28px; border: 1px solid #3a3a40; background: #0d0d0f; box-shadow: 0 24px 80px #0007; transition: transform 180ms ease-out, border-color 180ms ease-out; }
.token-card:hover { transform: translateY(-3px); border-color: #56565e; }
.token-card::before { content: ""; position: absolute; inset: 10px; pointer-events: none; border: 1px solid #1e1e22; }
.token-card-head { position: relative; display: flex; align-items: center; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.token-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--red); color: var(--red); font: 800 13px/1 ui-monospace, monospace; }
.token-card-head p { margin: 0 0 7px; font-size: 13px; font-weight: 800; }
.token-card-head div > span { color: var(--red); font: 700 10px/1 ui-monospace, monospace; }
.contract-field { position: relative; margin: 28px 0 16px; padding: 18px; border: 1px solid var(--line); background: #08080a; }
.contract-field span, .contract-field code { display: block; }
.contract-field span { margin-bottom: 12px; color: var(--muted); font: 700 9px/1 ui-monospace, monospace; }
.contract-field code { color: #5d5d65; font: 18px/1.35 ui-monospace, monospace; overflow-wrap: anywhere; }
.token-pending { position: relative; width: 100%; min-height: 54px; justify-content: center; background: #222226; color: #777780; }
.token-pending:disabled { opacity: 1; cursor: not-allowed; }
.token-live-link { position: relative; display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: center; color: #06140e; background: var(--green); text-decoration: none; font-size: 12px; font-weight: 900; letter-spacing: .13em; transition: transform 160ms ease-out, filter 160ms ease-out; }
.token-live-link:hover { transform: translateY(-2px); filter: brightness(1.08); }
.token-card.token-is-live { border-color: #276c50; box-shadow: 0 24px 90px #0c5f3930; }
.token-card.token-is-live .token-mark { border-color: var(--green); color: var(--green); }
.token-card.token-is-live .token-card-head div > span { color: var(--green); }
.token-card.token-is-live .token-card-head div > span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); animation: token-live-pulse 1.8s ease-in-out infinite; }
.token-card.token-is-live .contract-field code { color: var(--text); }
@keyframes token-live-pulse { 50% { opacity: .35; transform: scale(.82); } }
.token-warning { position: relative; margin: 18px 0 0; color: #777780; font-size: 11px; line-height: 1.65; }
.reveal-pending { opacity: 0; transform: translateY(22px); }
.reveal-pending.is-visible { animation: reveal-in 520ms ease-out both; }
.process-card.reveal-pending:nth-child(2) { animation-delay: 70ms; }
.process-card.reveal-pending:nth-child(3) { animation-delay: 140ms; }
@keyframes reveal-in { to { opacity: 1; transform: translateY(0); } }
footer { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 30px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); color: #707078; font: 10px/1.4 ui-monospace, monospace; letter-spacing: .08em; }
footer div > span { display: block; }
footer div > span + span { margin-top: 7px; }
footer nav { display: flex; gap: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  .topbar { min-height: 64px; grid-template-columns: 1fr auto; gap: 12px; }
  .topbar-actions { gap: 0; }
  .index-status { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a:first-child { display: none; }
  .hero { padding-top: 64px; }
  form { display: block; }
  input { width: 100%; padding: 18px 14px; }
  button { width: 100%; min-height: 54px; }
  .summary { grid-template-columns: 1fr 1fr; }
  .wallet-summary { grid-template-columns: 1fr auto; }
  .wallet-summary span:nth-child(3), .wallet-summary span:nth-child(4) { display: none; }
  .event { grid-template-columns: 72px 1fr; }
  .event > *:nth-child(3), .event > *:nth-child(4) { grid-column: 2; }
  .content-section { padding: 76px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 220px; }
  .process-card h3 { margin-top: 54px; }
  .support-section { grid-template-columns: 1fr; }
  .token-card { padding: 22px; }
  footer { display: block; }
  footer nav { margin-top: 22px; }
}
@media (max-width: 520px) {
  .topbar { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
}
@media (max-width: 430px) {
  .brand { font-size: 11px; }
  .site-nav a { font-size: 9px; }
  .metrics div { min-width: 145px; }
  .summary { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
