/* Haltercard — brushed titanium + one anodized blue. Syne (display) + Albert Sans (text) + Sometype Mono (numbers). */
:root {
  --bg: #0c0d0f;
  --bg-2: #111316;
  --panel: #15171b;
  --panel-2: #1a1d22;
  --line: rgba(231, 229, 224, 0.09);
  --line-2: rgba(231, 229, 224, 0.17);
  --ink: #e7e5e0;
  --muted: #9a9ea5;
  --dim: #666a71;
  --accent: #5b7bff;
  --accent-soft: rgba(91, 123, 255, 0.14);
  --err: #ef6a6e;
  --ok: #c9ccd2;
  --r: 14px;
  --gut: 16px;
  --max: 1180px;
  --display: "Syne", "Albert Sans", system-ui, sans-serif;
  --text: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Sometype Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--text); overflow-x: hidden;
  background-image: radial-gradient(1200px 600px at 75% -10%, rgba(91, 123, 255, 0.07), transparent 60%);
}
a { color: inherit; }
img, svg, canvas { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 720px) { :root { --gut: 28px; } }
.num, .mono, code, pre { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.k { font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, .brand, .cv-id, .foot-brand { font-family: var(--display); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header / footer */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: rgba(12, 13, 15, 0.78); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 17px; }
.mark { width: 28px; height: 28px; color: var(--ink); flex: none; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a:not(.btn) { text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 8px; font-size: 15px; }
.top nav a:not(.btn):hover, .top nav a[aria-current] { color: var(--ink); }
@media (max-width: 560px) {
  .top nav a[href="index.html"], .top nav .nav-x, .top nav a[href="token.html"] { display: none; }
  .top nav a:not(.btn) { padding: 8px 7px; }
  .brand span { font-size: 15px; }
  .brand { gap: 8px; }
  .mark { width: 24px; height: 24px; }
}
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.foot-in { display: grid; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.foot-note { margin: 0; max-width: 640px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* buttons */
.btn {
  --b: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--b); background: var(--b); color: #0b0c10;
  font: 600 15px/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled, .btn.is-off { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { height: 36px; padding: 0 13px; font-size: 14px; border-radius: 9px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--err); border-color: rgba(239, 106, 110, .45); }

/* hero */
.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; } .hero { padding-top: 64px; } }
.hero h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 700; margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--muted); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 30em; margin: 0 0 26px; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.ca { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.ca-chip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); max-width: 100%; }
.ca-chip.is-empty { padding-right: 14px; }
.ca-k { font: 700 11px/1 var(--mono); letter-spacing: .12em; color: var(--accent); }
.ca-v { font: 500 14px/1 var(--mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-chip.is-empty .ca-v { font-family: var(--text); color: var(--muted); font-size: 14px; }
.ca-copy { height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font: 600 13px/1 var(--text); cursor: pointer; }
.ca-links { display: flex; gap: 8px; flex-wrap: wrap; }

.lookup { display: grid; gap: 8px; max-width: 440px; }
.lookup-row { display: flex; gap: 8px; }
.lookup input { flex: 1; min-width: 0; }

/* asset slots (files from the lead; hidden until they exist) */
.hero.has-bg { background: linear-gradient(180deg, rgba(12,13,15,.55), var(--bg) 92%), var(--bg-img) center / cover no-repeat; }
.step-img { display: block; width: calc(100% + 44px); max-width: none; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: -22px -22px 18px; border-radius: var(--r) var(--r) 0 0; border-bottom: 1px solid var(--line); }
.step-img[hidden] { display: none; }
.step { overflow: hidden; }
.how-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.model-slot { width: 180px; height: 180px; flex: none; position: relative; }
.model-slot canvas { width: 100% !important; height: 100% !important; display: block; }
.model-slot-lg { width: 100%; height: 260px; margin-bottom: 16px; }
.model-slot[hidden] { display: none; }
@media (max-width: 640px) { .how-head .model-slot { width: 120px; height: 120px; } }

@media (max-width: 979px) {
  .hero { padding-top: 28px; }
  .hero-grid { gap: 0; }
  .hero-copy, .hero-right { display: contents; }
  .hero-copy .eyebrow { order: 1; }
  .hero h1 { order: 2; margin: 14px 0 10px; }
  .lede { order: 3; margin-bottom: 16px; }
  .lede-more { display: none; }
  .ca { order: 4; margin-bottom: 0; }
  .stage { order: 5; aspect-ratio: 16 / 9.2; margin: 4px 0 4px; }
  #live { order: 6; }
  .cta { order: 7; margin: 22px 0 18px; }
  .lookup { order: 8; max-width: none; }
}
/* stage + card */
.stage { position: relative; aspect-ratio: 16 / 10.5; width: 100%; margin: -8px 0 0; }
.hero-gl { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.fallback {
  position: absolute; left: 50%; top: 47%; width: min(82%, 460px); aspect-ratio: 85.6 / 54; transform: translate(-50%, -50%) rotate(-4deg);
  border-radius: 5.2% / 8.2%; padding: 5.5% 6%; display: flex; flex-direction: column; justify-content: space-between;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #3a3d42 0%, #24262a 45%, #303338 70%, #1f2124 100%);
  box-shadow: 0 40px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.4);
  color: #a3a7ae; font-family: var(--display); container-type: inline-size;
}
.stage.is-3d .fallback { display: none; }
.fb-word { font-weight: 800; letter-spacing: .09em; font-size: 7.6cqw; text-shadow: 0 1px 0 rgba(255,255,255,.18); }
.fb-mid { display: flex; justify-content: space-between; align-items: center; }
.fb-chip { width: 17%; aspect-ratio: 1.27; border-radius: 12%; background: linear-gradient(135deg, #c4c7cc, #8f9399); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.fb-ring { width: 34%; height: 2.3cqw; position: relative; margin-right: -6%; }
.fb-ring::before { content: ""; position: absolute; left: 0; top: 50%; width: 8cqw; height: 8cqw; transform: translateY(-50%); border: 1.4cqw solid var(--accent); border-radius: 50%; box-sizing: border-box; }
.fb-ring::after { content: ""; position: absolute; left: 7.6cqw; right: 0; top: 50%; height: 1.4cqw; transform: translateY(-50%); background: var(--accent); }
.fb-num { font: 500 5.3cqw/1 var(--mono); letter-spacing: .04em; text-shadow: 0 1px 0 rgba(255,255,255,.16); }
.fb-meta { display: flex; justify-content: space-between; font: 600 2.1cqw/1 var(--mono); letter-spacing: .12em; }

/* live card panel */
.panel { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
@media (min-width: 720px) { .panel { padding: 22px; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.live-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.live-tag .dot { margin-top: 0; }
.dot-off { background: var(--dim); }
.dot-err { background: var(--err); }
.dot-pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.cv-state { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.cv-state strong { font-weight: 700; }
.cv-state p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.cv-state.is-err strong { color: var(--err); }

.cv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cv-id { font-weight: 800; font-size: 18px; }
.cv-label { color: var(--muted); font-size: 14px; margin-top: 2px; word-break: break-word; }
.pill { font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 7px 9px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.pill-active { color: var(--ink); }
.pill-active::before { content: "● "; color: var(--accent); }
.pill-frozen { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.pill-closed { color: var(--dim); }
.cv-bal { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 14px; gap: 10px; flex-wrap: wrap; }
.cv-bal .v { font-size: clamp(26px, 4vw, 34px); font-weight: 500; letter-spacing: -0.02em; }
.cv-bal small { font-size: 14px; color: var(--muted); }
.cv-meter { padding: 12px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cv-meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; flex-wrap: wrap; align-items: baseline; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); margin: 10px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.cv-sub { font-size: 13px; color: var(--muted); }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 14px 0 0; }
.cv-grid dt { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.cv-grid dd { margin: 0; font-size: 15px; word-break: break-word; }
.cv-grid a { color: var(--ink); text-decoration-color: var(--line-2); }

.st { margin-top: 18px; }
.st-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; gap: 8px; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.st-when { color: var(--muted); font: 500 12px/1.4 var(--mono); }
.st-amt { font-family: var(--mono); text-align: right; grid-row: span 2; align-self: center; }
.st-to { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.st-memo { grid-column: 1; color: var(--ink); word-break: break-word; }
.st-empty { color: var(--muted); display: block !important; }
@media (min-width: 640px) {
  .st-list li { grid-template-columns: 150px 110px 1fr auto; align-items: center; }
  .st-amt { grid-row: auto; }
  .st-memo { grid-column: auto; }
}

/* sections */
section.block { padding: 72px 0 0; }
.block h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -0.02em; margin: 14px 0 12px; font-weight: 700; }
.block .sub { color: var(--muted); max-width: 40em; margin: 0 0 28px; font-size: 17px; }
.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--bg-2); }
.step-n { font: 500 13px/1 var(--mono); color: var(--accent); }
.step h3 { margin: 14px 0 8px; font-size: 21px; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--muted); }
.step code { font-size: 13px; color: var(--ink); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .checks { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.checks li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checks li span:first-child { font: 500 13px/1.6 var(--mono); color: var(--accent); min-width: 22px; }

.split { display: grid; gap: 18px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* forms */
label.f { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
label.f .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input, textarea, select {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg);
  color: var(--ink); font: 500 15px/1 var(--mono); min-width: 0;
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
.ferr { color: var(--err); font-size: 13px; font-weight: 500; min-height: 0; }
.ferr:empty { display: none; }
.form { display: grid; gap: 16px; }
.row2 { display: grid; gap: 16px; }
@media (min-width: 620px) { .row2 { grid-template-columns: 1fr 1fr; } }
.radio { display: flex; gap: 8px; flex-wrap: wrap; }
.radio label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; height: 40px; cursor: pointer; font-weight: 500; }
.radio input { width: auto; height: auto; accent-color: var(--accent); }
.radio label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.notice { border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px 18px; background: var(--bg-2); color: var(--muted); }
.notice strong { color: var(--ink); }
.tx { border-radius: 10px; padding: 12px 14px; font-size: 14px; border: 1px solid var(--line-2); background: var(--bg); display: flex; gap: 10px; align-items: flex-start; }
.tx:empty { display: none; }
.tx.is-err { border-color: rgba(239, 106, 110, .5); color: var(--err); }
.tx.is-ok { border-color: var(--accent); }
.tx a { color: var(--ink); }

.mycards { display: grid; gap: 16px; }
@media (min-width: 900px) { .mycards { grid-template-columns: 1fr 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.act-form { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.act-form[hidden] { display: none; }
.act-row { display: flex; gap: 8px; flex-wrap: wrap; }
.act-row > * { flex: 1 1 140px; }

/* docs */
.doc { max-width: 820px; }
.doc h1 { font-weight: 700; font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.035em; line-height: 1; margin: 18px 0 16px; }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin: 56px 0 12px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: #c9c7c2; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc code { font-size: .9em; background: var(--panel-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); word-break: break-word; }
pre { background: #090a0c; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; color: #d6d4cf; margin: 0; }
pre code { background: none; padding: 0; word-break: normal; }
.code-wrap { position: relative; }
.code-wrap .ca-copy { position: absolute; top: 10px; right: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 600 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-family: var(--mono); white-space: nowrap; color: var(--ink); }
.not { list-style: none; padding: 0; }
.not li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.not li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 2px; background: var(--accent); }
.addr { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.addr code { word-break: break-all; }
.wallets { display: grid; gap: 10px; }
.wallets .row { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.wallets .row code { word-break: break-all; background: none; padding: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
