/* Made by Grok — black, white, one green (Robinhood green). Doto for the loud parts, Share Tech Mono for everything else. */
:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --fg: #f2f2f2;
  --fg-80: rgba(242, 242, 242, .8);
  --fg-60: rgba(242, 242, 242, .6);
  --fg-40: rgba(242, 242, 242, .4);
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .3);
  --red: #00c805;
  --red-dim: rgba(0, 200, 5, .16);
  --mono: "Share Tech Mono", "Azeret Mono", ui-monospace, Menlo, monospace;
  --display: "Doto", "Share Tech Mono", ui-monospace, monospace;
  --maxw: 1180px;
  --pad: clamp(18px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--mono); font-size: 15.5px; line-height: 1.6; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #000; }
.red { color: var(--red); }
.muted { color: var(--fg-40); }
b { font-weight: 400; color: #fff; }

/* ---------- glitch v2: random offsets per burst, red/white slices, scramble handled in JS ---------- */
.g { position: relative; display: inline-block; --gx1: -6px; --gx2: 6px; --gy: 1px; }
.g::before, .g::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; opacity: 0; pointer-events: none; white-space: nowrap; }
.g.on { animation: g-shake .52s steps(1) both; }
.g.on::before { opacity: 1; color: var(--red); transform: translate(var(--gx1), var(--gy)); animation: g-a .52s steps(1) both; }
.g.on::after { opacity: 1; color: #fff; transform: translate(var(--gx2), calc(var(--gy) * -1)); animation: g-b .52s steps(1) both; }
@keyframes g-a {
  0% { clip-path: inset(5% 0 82% 0); } 12% { clip-path: inset(48% 0 30% 0); } 25% { clip-path: inset(20% 0 65% 0); }
  37% { clip-path: inset(70% 0 8% 0); } 50% { clip-path: inset(35% 0 45% 0); } 62% { clip-path: inset(85% 0 2% 0); }
  75% { clip-path: inset(10% 0 78% 0); } 87% { clip-path: inset(55% 0 20% 0); } 100% { clip-path: inset(0 0 100% 0); }
}
@keyframes g-b {
  0% { clip-path: inset(60% 0 22% 0); } 12% { clip-path: inset(12% 0 74% 0); } 25% { clip-path: inset(80% 0 6% 0); }
  37% { clip-path: inset(30% 0 52% 0); } 50% { clip-path: inset(2% 0 90% 0); } 62% { clip-path: inset(45% 0 38% 0); }
  75% { clip-path: inset(72% 0 12% 0); } 87% { clip-path: inset(25% 0 60% 0); } 100% { clip-path: inset(0 0 100% 0); }
}
@keyframes g-shake {
  0%, 100% { transform: none; } 15% { transform: translate(1px, -1px) skewX(-.6deg); } 30% { transform: translate(-2px, 1px); }
  45% { transform: translate(1px, 0) skewX(.7deg); } 60% { transform: translate(-1px, -1px); } 75% { transform: translate(2px, 1px); }
}
.tear { position: absolute; left: -2%; width: 104%; height: 4px; top: 42%; background: var(--fg); mix-blend-mode: difference; opacity: 0; pointer-events: none; }
.tear.on { animation: tear .52s steps(1) both; }
@keyframes tear { 0% { opacity: 1; transform: translateY(0); } 25% { transform: translateY(22px); height: 9px; } 50% { transform: translateY(-34px); } 75% { transform: translateY(48px); height: 3px; } 100% { opacity: 0; } }

/* ---------- boot ---------- */
#boot { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; cursor: pointer; }
#boot-out { margin: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; color: var(--fg-80); min-width: min(360px, 88vw); }
#boot-out span { display: block; white-space: pre; }
#boot-out span:last-child::after { content: "▮"; color: var(--red); margin-left: 2px; animation: blink .7s steps(2) infinite; }
#boot.out { animation: wipe .45s steps(14) forwards; }
@keyframes wipe { to { clip-path: inset(0 0 100% 0); } }
body:not(.ready) .hero > * { opacity: 0; }
body.ready .hero > * { animation: rise .6s ease both; animation-delay: calc(var(--i, 0) * 90ms); }
.hero > :nth-child(2) { --i: 0; } .hero > :nth-child(3) { --i: 1; } .hero > :nth-child(4) { --i: 2; } .hero > :nth-child(5) { --i: 3; } .hero > :nth-child(6) { --i: 4; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- reveals ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
.flash { animation: flash .7s steps(2); }
@keyframes flash { 0%, 50% { color: var(--red); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 11px var(--pad); background: rgba(5, 5, 5, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.brand { font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: .1em; text-decoration: none; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-60); }
.status .dot { width: 6px; height: 6px; background: var(--fg-40); }
.status.live .dot { background: var(--red); animation: blink 1.1s steps(2) infinite; }
.status.sample .dot { background: var(--fg); }
.nav { margin-left: auto; display: flex; gap: 18px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--fg-60); transition: color .15s; }
.nav a:hover { color: var(--fg); }
.nav a::before { content: "/"; color: var(--red); margin-right: 4px; }

/* ---------- layout ---------- */
.sec, .hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--pad); }
.sec { border-top: 1px solid var(--line); }
.sec--term { padding-top: 0; border-top: 0; }
.h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: .02em; line-height: 1.05; }
.h2 .idx { color: var(--red); margin-right: 8px; font-family: var(--mono); font-size: .7em; vertical-align: .15em; }
.lead { margin: 0 0 30px; max-width: 66ch; color: var(--fg-80); font-size: 15.5px; }
.note { margin: 14px 0 0; font-size: 12px; color: var(--fg-60); line-height: 1.6; }

/* ---------- hero ---------- */
.hero { padding-bottom: 32px; overflow: hidden; }
.scan { position: absolute; left: 0; right: 0; top: -160px; height: 160px; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .055), transparent); pointer-events: none; animation: scan 9s linear infinite; }
@keyframes scan { to { transform: translateY(140vh); } }
.eyebrow { margin: 0 0 22px; font-size: 11.5px; letter-spacing: .22em; color: var(--fg-60); }
.title { position: relative; margin: 0 0 22px; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 9.5vw, 150px); line-height: .92; letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere; }
.title .g::before, .title .g::after { white-space: inherit; }
.title .tick { display: block; font-size: .3em; letter-spacing: .06em; color: var(--red); margin-top: .18em; }
.sub { max-width: 64ch; margin: 0 0 36px; font-size: clamp(15.5px, 1.5vw, 18px); color: var(--fg-80); }
.sub em { font-style: normal; color: var(--fg); border-bottom: 1px solid var(--red); }
.counter { display: grid; grid-template-columns: repeat(4, max-content); gap: 12px clamp(28px, 5vw, 72px); }
.counter .num { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(34px, 4.4vw, 60px); line-height: 1; }
.counter .lbl { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-60); }

/* ---------- live strip ---------- */
#live { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 18px 24px; align-items: center; margin: 36px 0 0; padding: 16px 20px; border: 1px solid var(--line-2); background: var(--bg-2); }
#live .v { display: block; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; }
#live .l { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-60); }
.bar { position: relative; height: 5px; margin-top: 8px; background: var(--line); }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); transition: width .8s ease; }
#live .src { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-60); text-align: right; }
#live .src.on::before { content: "●"; color: var(--red); margin-right: 6px; animation: blink 1.1s steps(2) infinite; }

/* ---------- terminal ---------- */
.term { border: 1px solid var(--line-2); background: var(--bg-2); }
.term-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-60); }
.term-ctl { display: flex; gap: 6px; }
.term-ctl button, .btn { cursor: pointer; background: transparent; border: 1px solid var(--line-2); padding: 5px 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; transition: background .12s, color .12s; }
.term-ctl button:hover, .btn:hover { background: var(--fg); color: #000; border-color: var(--fg); }
.term-body { position: relative; padding: 18px 16px; min-height: 260px; max-height: 62vh; overflow: auto; font-size: 13.5px; line-height: 1.7; }
.term-body::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px); }
.tl { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl.sys { color: var(--fg-40); }
.tl.call { color: var(--fg); margin-top: 10px; }
.tl.call .who, .tl.call .fn { color: #fff; }
.tl.call .fn { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.tl.call .arg { color: var(--fg-60); }
.tl.resp { color: var(--fg-80); padding-left: 2ch; }
.tl.err, .tl .err { color: var(--red); }
.tl .ts { color: var(--fg-40); }
.tl .ok { color: #fff; }
.tl a { color: var(--fg); text-decoration: underline dotted; text-underline-offset: 3px; }
.tl a:hover { text-decoration-style: solid; }
.tl.wait { color: var(--fg); margin-top: 12px; }
.tl.help { color: var(--fg-60); }
.tl.new { animation: flash .9s steps(2); }
.cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--red); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
.vbtn { cursor: pointer; background: transparent; border: 1px solid var(--line-2); padding: 0 6px; margin-left: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--fg); transition: background .12s; }
.vbtn:hover { background: var(--red); border-color: var(--red); color: #000; }
.vbtn:disabled { opacity: .5; cursor: wait; }
.vres { display: block; padding-left: 2ch; color: var(--fg-60); }
.vres .ok { color: var(--fg); }
.vres .ok::before, .chk .ok::before { content: "✔ "; color: var(--red); }
.vres .err::before, .chk .err::before { content: "✖ "; }
.vres .hx { display: block; color: var(--fg-60); }

.who { padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-60); overflow-wrap: anywhere; }
.who b { color: var(--fg); font-weight: 400; }
.who .red { color: var(--red); }
.tl .via { color: var(--fg-40); }
.tl.note { color: var(--fg-80); padding-left: 2ch; font-style: italic; }
.tl.note::before { content: "grok: "; font-style: normal; color: var(--red); }

.chain { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: ch; }
.chain li { position: relative; padding: 12px 0 12px 44px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--fg-80); counter-increment: ch; }
.chain li:last-child { border-bottom: 1px solid var(--line); }
.chain li::before { content: counter(ch, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-size: 11px; letter-spacing: .1em; color: var(--red); }
.chain b { color: var(--fg); }
.chain .st { display: inline-block; margin-left: 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-60); }
.chain .st.ok { color: var(--fg); } .chain .st.ok::before { content: "✔ "; color: var(--red); } .chain .st.bad { color: var(--red); } .chain .st.bad::before { content: "✖ "; }

/* ---------- recon ---------- */
.recon-sum { margin: 0 0 14px; font-size: 12px; letter-spacing: .06em; color: var(--fg-60); }
.recon-sum b { color: var(--fg); }
.rc { display: grid; grid-template-columns: 84px minmax(0, 1fr) 150px 210px; gap: 14px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.rc:last-child { border-bottom: 1px solid var(--line); }
.rc .t { font-size: 11.5px; color: var(--fg-40); padding-top: 2px; }
.rc .d { color: var(--fg-80); overflow-wrap: anywhere; }
.rc .d a { font-size: 11.5px; color: var(--fg-60); text-decoration: underline dotted; text-underline-offset: 3px; margin-left: 8px; }
.rc .k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-60); padding-top: 3px; }
.rc .st.airdrop { color: var(--fg-40); }
.rc .st { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.rc .st.match::before { content: "✔ "; color: var(--red); }
.rc .st.funding { color: var(--fg-60); }
.rc .st.unmatched { color: var(--red); }
.rc .st.unmatched::before { content: "✖ "; }

/* ---------- drawing ---------- */
.draw-grid { display: grid; grid-template-columns: minmax(280px, 440px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.art { position: relative; margin: 0; aspect-ratio: 1 / 1; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; display: grid; place-items: center; }
.art-empty { display: flex; align-items: center; gap: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-60); }
.art-svg, .art-img { width: 100%; height: 100%; display: block; }
.art-svg svg { width: 100%; height: 100%; display: block; }
.art-svg svg * { transition: filter .12s ease; }
.art-svg svg .hl { filter: drop-shadow(0 0 6px var(--red)) drop-shadow(0 0 1px #fff); }
.art-img { object-fit: contain; }
.gclone { position: absolute; inset: 0; pointer-events: none; }
.gclone svg, .gclone img { width: 100%; height: 100%; display: block; }
.gclone.a { filter: grayscale(1) contrast(1.6) brightness(1.5); animation: g-a .9s steps(1) both; }
.gclone.b { filter: sepia(1) saturate(12) hue-rotate(-45deg) contrast(1.4); animation: g-b .9s steps(1) both; }
.codebox { border: 1px solid var(--line-2); background: var(--bg-2); min-width: 0; display: flex; flex-direction: column; min-height: 300px; }
.code-head { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-60); }
.codebox pre { margin: 0; min-width: 0; padding: 14px; flex: 1; max-height: 560px; overflow: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre; }
.codebox pre:empty::after { content: "—"; color: var(--fg-40); }
.ln { display: block; padding: 0 6px; margin: 0 -6px; cursor: default; }
.ln.hl { background: var(--red-dim); box-shadow: inset 2px 0 0 var(--red); }
.ln .t { color: #fff; }
.ln .a { color: var(--fg-60); }
.ln .v { color: var(--fg-80); }
.fp { margin: 16px 0 0; font-size: 12px; color: var(--fg-60); overflow-wrap: anywhere; }
.fp b, .fp a { color: var(--fg); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { border-top: 1px solid var(--line-2); padding-top: 16px; transition: border-color .2s; }
.steps li:hover { border-color: var(--red); }
.steps .k { display: block; font-size: 11px; letter-spacing: .16em; color: var(--red); margin-bottom: 14px; }
.steps h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; }
.steps p { margin: 0; font-size: 14.5px; color: var(--fg-80); }

/* ---------- verify ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 28px; }
.facts dt { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-60); padding-top: 4px; }
.facts dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.facts dd a { text-decoration: underline dotted; text-underline-offset: 3px; }
.facts dd a:hover { text-decoration-style: solid; color: #fff; }
.copy { cursor: pointer; background: transparent; border: 1px solid var(--line); padding: 1px 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-60); transition: border-color .12s, color .12s; }
.copy:hover { border-color: var(--fg); color: var(--fg); }
.copy.done { border-color: var(--red); color: var(--red); }
.checks { margin: 0 0 40px; }
.btn { padding: 10px 16px; font-size: 12.5px; }
.check-out { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--line); background: var(--bg-2); min-height: 72px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg-80); }
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.honest > div { border: 1px solid var(--line); padding: 20px 22px; transition: border-color .2s; }
.honest > div:hover { border-color: var(--line-2); }
.honest h3 { margin: 0 0 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 400; }
.honest ul { margin: 0; padding-left: 18px; }
.honest li { margin: 6px 0; font-size: 14.5px; color: var(--fg-80); }

/* ---------- words ---------- */
.quotes blockquote { margin: 0 0 26px; padding: 4px 0 4px 20px; border-left: 2px solid var(--red); font-size: clamp(16px, 1.8vw, 20px); line-height: 1.5; max-width: 62ch; }
.quotes cite { display: block; margin-top: 10px; font-style: normal; font-size: 11.5px; letter-spacing: .1em; color: var(--fg-60); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 20px; }
.shots figure { margin: 0; border: 1px solid var(--line); background: var(--bg-2); }
.shots img { width: 100%; height: auto; display: block; }
.shots figcaption { padding: 10px 12px; font-size: 12px; color: var(--fg-60); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: var(--maxw); margin: 0 auto; padding: 26px var(--pad) 40px; border-top: 1px solid var(--line); font-size: 11.5px; letter-spacing: .06em; color: var(--fg-60); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .g.on::before, .g.on::after, .tear { opacity: 0 !important; }
  .rv { opacity: 1; transform: none; }
  body:not(.ready) .hero > * { opacity: 1; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .draw-grid { grid-template-columns: 1fr; }
  .art { max-width: 440px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .honest { grid-template-columns: 1fr; }
  .counter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .counter .lbl { white-space: normal; }
  #live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #live .src { text-align: left; grid-column: 1 / -1; }
  .rc { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 4px 0; }
  .facts dd { margin-bottom: 12px; }
  .term-body { max-height: none; font-size: 12.5px; }
  .codebox pre { max-height: 360px; }
}
