/* ============================================================
   $iPEPE — Inscribed Pepes
   "Arcade cabinet" design system
   CRT green · acid-lime · player-2 sparks · hard pixel edges
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Base — CRT black-green */
  --bg:    #06120A;
  --bg-2:  #0B1D11;   /* panel */
  --bg-3:  #102A18;   /* raised */
  --bg-4:  #16361F;   /* raised-2 / hover */
  --bg-glass: rgba(11, 29, 17, .72);

  --ink:   #EAFBE6;
  --muted: #8FB089;
  --faint: #5C7656;
  --line:   rgba(120, 220, 120, .13);
  --line-2: rgba(120, 220, 120, .28);

  /* Pepe greens + arcade accents */
  --pepe:    #4CC93A;   /* primary frog green */
  --pepe-d:  #267A1A;   /* button base-shadow green */
  --lime:    #B6FF3A;   /* acid — CTA & highlight */
  --lime-d:  #6E9E00;   /* lime button base-shadow */
  --magenta: #FF4DCB;   /* player-2 spark */
  --cyan:    #3AE0FF;   /* player-2 spark */
  --mouth:   #B5612F;   /* pepe-mouth brown */
  --gold:    #FFC53D;   /* mythic */

  /* Type */
  --pixel: "Press Start 2P", monospace;
  --term:  "VT323", ui-monospace, monospace;
  --sans:  "Space Grotesk", system-ui, -apple-system, sans-serif;

  --wrap: 1140px;
  --r: 4px;          /* arcade hard-ish corners */
  --r-lg: 8px;

  --shadow: 0 22px 50px -22px rgba(0,0,0,.85);
  --glow-pepe: 0 0 0 1px rgba(76,201,58,.5), 0 0 26px -6px rgba(76,201,58,.7);
  --glow-lime: 0 0 24px -4px rgba(182,255,58,.65);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; image-rendering: pixelated; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--lime); color: #0a1500; }

/* ---------- Ambient CRT background ---------- */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(76,201,58,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(76,201,58,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 92% 75% at 50% 0%, #000 30%, transparent 88%);
}
.bg-glow {
  background:
    radial-gradient(44% 38% at 14% 6%,  rgba(76,201,58,.22), transparent 70%),
    radial-gradient(40% 36% at 86% 2%,  rgba(58,224,255,.10), transparent 70%),
    radial-gradient(60% 55% at 50% 104%, rgba(182,255,58,.10), transparent 70%);
  animation: glowDrift 20s ease-in-out infinite alternate;
}
@keyframes glowDrift { 100% { transform: translate3d(0,-2%,0) scale(1.07); } }
.bg-scan {
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.20) 2px 4px);
  mix-blend-mode: multiply; opacity: .55;
}
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.sec { position: relative; z-index: 1; padding: 92px 0; }
.eyebrow {
  font-family: var(--pixel); font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--lime);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 18px; height: 8px; background: var(--lime); box-shadow: 12px 0 0 var(--pepe); display: inline-block; }
.h-title {
  font-family: var(--pixel); font-weight: 400; line-height: 1.32;
  font-size: clamp(1.15rem, 3.2vw, 2rem); letter-spacing: 0; margin: 18px 0 14px;
  text-shadow: 3px 3px 0 rgba(0,0,0,.5);
}
.h-title .hl { color: var(--lime); }
.h-sub { color: var(--muted); max-width: 58ch; font-size: 1.06rem; }

/* ---------- Chunky arcade buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--pixel); font-size: 11px; letter-spacing: .5px;
  padding: 15px 22px; border-radius: var(--r); color: #0a1500;
  background: var(--lime); position: relative; isolation: isolate;
  border: 2px solid #0a1500;
  box-shadow: 0 7px 0 0 var(--lime-d), 0 8px 0 2px #0a1500, var(--glow-lime);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
  text-transform: uppercase;
}
.btn:hover { filter: brightness(1.06) saturate(1.1); }
.btn:active { transform: translateY(6px); box-shadow: 0 1px 0 0 var(--lime-d), 0 2px 0 2px #0a1500; }
.btn.green { background: var(--pepe); color: #04130a; box-shadow: 0 7px 0 0 var(--pepe-d), 0 8px 0 2px #0a1500, var(--glow-pepe); }
.btn.green:active { box-shadow: 0 1px 0 0 var(--pepe-d), 0 2px 0 2px #0a1500; }
.btn.ghost {
  background: transparent; color: var(--ink); border-color: var(--line-2);
  box-shadow: 0 7px 0 0 rgba(0,0,0,.4), 0 8px 0 2px var(--line-2);
}
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn.ghost:active { transform: translateY(6px); box-shadow: 0 1px 0 0 rgba(0,0,0,.4), 0 2px 0 2px var(--line-2); }
.btn:disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.5); }
.btn:disabled:active { transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 13px 22px;
  background: linear-gradient(to bottom, rgba(6,18,10,.95), rgba(6,18,10,.6));
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: var(--r); overflow: hidden;
  border: 2px solid var(--pepe); background: var(--bg-3); flex: none;
  box-shadow: var(--glow-pepe); animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-3px); } }
.brand-name { font-family: var(--pixel); font-size: 14px; letter-spacing: .5px; }
.brand-name i { color: var(--lime); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) {
  font-family: var(--pixel); font-size: 9px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); padding: 10px 11px; border-radius: var(--r); transition: color .14s, background .14s;
}
.nav-links a:not(.btn):hover { color: var(--lime); background: rgba(182,255,58,.07); }
.nav .btn { padding: 11px 15px; box-shadow: 0 5px 0 0 var(--lime-d), 0 6px 0 2px #0a1500; }
.nav .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 0 var(--lime-d), 0 2px 0 2px #0a1500; }
.nav-toggle { display: none; font-size: 1.4rem; color: var(--lime); padding: 6px; }

#connectBtn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 8px var(--pepe); display: none; }
#connectBtn.connected { background: var(--bg-3); color: var(--pepe); border-color: var(--pepe); box-shadow: 0 5px 0 0 #04130a, 0 6px 0 2px var(--pepe); }
#connectBtn.connected .dot { display: inline-block; background: var(--pepe); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding: 64px 0 54px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 46px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px;
  border-radius: 999px; background: var(--bg-2); border: 2px solid var(--line-2);
  font-family: var(--pixel); font-size: 8px; letter-spacing: .5px; color: var(--muted); text-transform: uppercase;
}
.badge .live { width: 8px; height: 8px; border-radius: 50%; background: var(--pepe); animation: pulse 1.7s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(76,201,58,.6)} 70%{box-shadow:0 0 0 9px rgba(76,201,58,0)} 100%{box-shadow:0 0 0 0 rgba(76,201,58,0)} }
.hero h1 {
  font-family: var(--pixel); line-height: 1.22; margin: 22px 0 0;
  font-size: clamp(1.7rem, 5.4vw, 3.2rem); letter-spacing: 0;
  text-shadow: 4px 4px 0 rgba(0,0,0,.5);
}
.hero h1 .l1 { color: var(--ink); display: block; }
.hero h1 .l2 { color: var(--pepe); display: block; margin-top: 12px; }
.hero h1 .tok { color: var(--lime); }
.hero .sub { margin-top: 24px; font-size: 1.16rem; color: var(--muted); max-width: 44ch; }
.hero .sub b { color: var(--ink); }
.hero .sub .tk { color: var(--lime); font-weight: 700; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--term);
  font-size: 1.12rem; padding: 5px 11px; border-radius: var(--r);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
  letter-spacing: .5px;
}
.chip b { color: var(--ink); font-weight: 400; }
.chip .copy { cursor: pointer; color: var(--cyan); border-left: 1px solid var(--line); padding-left: 8px; font-family: var(--pixel); font-size: 8px; }
.chip .copy:hover { color: var(--lime); }

/* ---------- SIGNATURE: Arcade cabinet ---------- */
.cabinet {
  position: relative; max-width: 400px; margin-inline: auto; width: 100%;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 3px solid #04130a; border-radius: 14px 14px 8px 8px;
  padding: 14px 16px 18px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(76,201,58,.16);
}
.cabinet::before, .cabinet::after {
  /* side art stripes */
  content: ""; position: absolute; top: 64px; bottom: 70px; width: 6px;
  background: repeating-linear-gradient(180deg, var(--pepe) 0 10px, var(--lime) 10px 20px, var(--magenta) 20px 30px, var(--cyan) 30px 40px);
  opacity: .5; border-radius: 4px;
}
.cabinet::before { left: -3px; }
.cabinet::after  { right: -3px; }
.cab-marquee {
  text-align: center; font-family: var(--pixel); font-size: 13px; color: #0a1500;
  background: linear-gradient(180deg, var(--lime), var(--pepe));
  border: 2px solid #04130a; border-radius: 6px; padding: 11px 8px; letter-spacing: 1px;
  box-shadow: var(--glow-lime); position: relative; overflow: hidden;
}
.cab-marquee i { font-style: normal; }
.cab-marquee::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transform: translateX(-120%); animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep { 0%,60%{transform:translateX(-120%)} 100%{transform:translateX(120%)} }

.cab-screen {
  position: relative; margin-top: 12px; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 12%, rgba(76,201,58,.30), rgba(6,18,10,.4) 60%),
    radial-gradient(80% 80% at 50% 120%, rgba(182,255,58,.18), transparent 70%),
    #04100a;
  border: 2px solid #04130a;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.55), inset 0 22px 50px -18px rgba(0,0,0,.8);
}
.cab-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.28) 2px 4px);
  opacity: .7;
}
.cab-screen .scr-glow {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 70px -10px rgba(0,0,0,.9);
  border-radius: 10px;
}
.cab-pepe {
  position: absolute; left: 50%; bottom: -3%; width: 86%;
  transform: translateX(-50%); z-index: 2;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.6));
  animation: pepeFloat 5s ease-in-out infinite;
}
@keyframes pepeFloat { 50% { transform: translateX(-50%) translateY(-9px); } }
.cab-ring {
  position: absolute; top: 46%; left: 50%; width: 78%; aspect-ratio: 1/1; z-index: 1;
  transform: translate(-50%,-50%); border: 2px dashed rgba(182,255,58,.22); border-radius: 50%;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.cab-insert {
  position: absolute; top: 10px; left: 0; right: 0; z-index: 3; text-align: center;
  font-family: var(--pixel); font-size: 9px; color: var(--lime); letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(182,255,58,.7); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.cab-score {
  position: absolute; bottom: 8px; left: 10px; z-index: 3;
  font-family: var(--term); font-size: 1rem; color: var(--cyan); letter-spacing: 1px;
}
.cab-score b { color: var(--magenta); font-weight: 400; }

.cab-panel {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: linear-gradient(180deg, var(--bg-4), var(--bg-3));
  border: 2px solid #04130a; border-radius: 7px; padding: 12px 14px;
}
.coinslot {
  width: 46px; height: 12px; border-radius: 3px; background: #04130a;
  box-shadow: inset 0 0 0 2px rgba(182,255,58,.25), inset 0 4px 6px rgba(0,0,0,.7);
}
.cab-credit { font-family: var(--term); font-size: 1.15rem; color: var(--muted); letter-spacing: .5px; }
.cab-credit b { color: var(--lime); font-weight: 400; }
.cab-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #ff9a6e, var(--magenta) 62%, #b2156f);
  border: 3px solid #04130a; box-shadow: 0 5px 0 0 #7d0f4d, 0 0 16px -2px var(--magenta);
  transition: transform .08s, box-shadow .08s;
}
.cab-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 0 #7d0f4d; }

/* ---------- Marquee ticker ---------- */
.ticker {
  position: relative; z-index: 1; overflow: hidden; border-block: 2px solid var(--line);
  background: linear-gradient(90deg, rgba(76,201,58,.08), rgba(58,224,255,.06));
  padding: 12px 0;
}
.ticker-track { display: flex; white-space: nowrap; width: max-content; animation: marquee 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-family: var(--pixel); font-size: 11px; color: var(--ink); padding: 0 24px; display: inline-flex; align-items: center; gap: 24px; }
.ticker-item::after { content: "◆"; color: var(--lime); font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Score stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--r);
  padding: 22px 18px; position: relative; overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--line-2); }
.stat::before { content:""; position: absolute; left:0; top:0; height: 4px; width: 100%; background: var(--pepe); }
.stat:nth-child(2)::before { background: var(--lime); }
.stat:nth-child(3)::before { background: var(--cyan); }
.stat:nth-child(4)::before { background: var(--magenta); }
.stat .num { font-family: var(--term); font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1; color: var(--ink); letter-spacing: 1px; }
.stat .num.a { color: var(--pepe); } .stat .num.b { color: var(--lime); }
.stat .num.c { color: var(--cyan); } .stat .num.d { color: var(--magenta); }
.stat .lbl { margin-top: 10px; font-family: var(--pixel); font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }
.stat .tip { color: var(--faint); font-size: .8rem; margin-top: 6px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 34px; }
.step {
  background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--r); padding: 24px 22px;
  position: relative; transition: transform .15s, border-color .15s;
}
.step:hover { transform: translateY(-5px); border-color: var(--pepe); }
.step:nth-child(2):hover { border-color: var(--lime); }
.step:nth-child(3):hover { border-color: var(--magenta); }
.step .n {
  font-family: var(--pixel); font-size: 12px; color: #04130a; background: var(--pepe);
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r);
  border: 2px solid #04130a; box-shadow: 0 4px 0 0 var(--pepe-d);
}
.step:nth-child(2) .n { background: var(--lime); box-shadow: 0 4px 0 0 var(--lime-d); }
.step:nth-child(3) .n { background: var(--magenta); color: #fff; box-shadow: 0 4px 0 0 #7d0f4d; }
.step h3 { font-family: var(--pixel); font-size: 13px; margin: 18px 0 10px; color: var(--ink); }
.step p { color: var(--muted); font-size: .97rem; }
.step p b { color: var(--lime); }

/* ---------- THE MACHINE (mint, signature interactive) ---------- */
.machine {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; margin-top: 36px;
  border: 3px solid #04130a; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(76,201,58,.14);
}
.machine-left { padding: 30px; border-right: 2px solid var(--line); }
.machine-left .mh { font-family: var(--pixel); font-size: 13px; color: var(--lime); letter-spacing: .5px; }
.machine-left p { color: var(--muted); margin-top: 14px; font-size: .98rem; }
.machine-left p b { color: var(--ink); }
.mx-steps { display: grid; gap: 10px; margin-top: 20px; }
.mx-step { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.mx-step .k { font-family: var(--pixel); font-size: 9px; color: var(--cyan); flex: none; margin-top: 2px; }
.mx-note {
  margin-top: 20px; font-family: var(--term); font-size: 1.05rem; color: var(--muted);
  border-left: 3px solid var(--pepe); padding: 8px 0 8px 14px; letter-spacing: .3px;
}
.mx-note b { color: var(--lime); font-weight: 400; }

/* mint console (right) */
.console {
  padding: 26px; display: flex; flex-direction: column; gap: 16px;
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(76,201,58,.12), transparent 65%),
    var(--bg);
}
.console-screen {
  background: #04100a; border: 2px solid #04130a; border-radius: 8px;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.5), inset 0 18px 40px -16px rgba(0,0,0,.8);
  position: relative; overflow: hidden; aspect-ratio: 1/1; display: grid; place-items: center;
}
.console-screen::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.26) 2px 4px); opacity:.7;
}
.console-idle { text-align: center; padding: 18px; }
.console-idle .blip { font-family: var(--pixel); font-size: 10px; color: var(--lime); animation: blink 1.1s steps(1) infinite; }
.console-idle p { color: var(--faint); font-family: var(--term); font-size: 1.1rem; margin-top: 12px; letter-spacing: .5px; }
.console-pepe { width: 76%; image-rendering: pixelated; animation: dispense .5s cubic-bezier(.2,1.3,.4,1); }
@keyframes dispense { from { transform: translateY(40px) scale(.7); opacity: 0; } }
.console-line { font-family: var(--term); font-size: 1.15rem; color: var(--cyan); letter-spacing: .5px; min-height: 1.2em; text-align: center; }
.console-line b { color: var(--lime); font-weight: 400; }
.console-line .err { color: var(--magenta); }
.mint-meta { display: flex; align-items: center; justify-content: space-between; font-family: var(--term); font-size: 1.1rem; color: var(--muted); }
.mint-meta .insc { color: var(--lime); }
.mint-meta .rar { font-family: var(--pixel); font-size: 8px; padding: 4px 7px; border-radius: 4px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 13px; }
.pcard {
  background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--r);
  overflow: hidden; position: relative; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pcard:hover { transform: translateY(-6px); border-color: var(--pepe); box-shadow: var(--glow-pepe); }
.pcard .imgwrap { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-3); }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.pcard:hover img { transform: scale(1.07); }
.pcard .meta { padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; }
.pcard .id { font-family: var(--term); font-size: 1.05rem; color: var(--muted); letter-spacing: .5px; }
.pcard .rar { font-family: var(--pixel); font-size: 6px; padding: 4px 6px; border-radius: 3px; text-transform: uppercase; }
.r-common  { background: rgba(143,176,137,.16); color: var(--muted); }
.r-rare    { background: rgba(58,224,255,.16);  color: var(--cyan); }
.r-epic    { background: rgba(255,77,203,.16);  color: var(--magenta); }
.r-legend  { background: rgba(182,255,58,.16);  color: var(--lime); }
.r-mythic  { background: rgba(255,197,61,.18);  color: var(--gold); }

/* ---------- Verify ---------- */
.verify { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; margin-top: 32px; }
.verify-panel {
  background: radial-gradient(70% 90% at 90% 8%, rgba(58,224,255,.10), transparent 60%), var(--bg-2);
  border: 2px solid var(--line-2); border-radius: var(--r-lg); padding: 28px;
}
.kv { display: grid; gap: 12px; margin-top: 18px; }
.kv-row { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; }
.kv-row .k { font-family: var(--pixel); font-size: 8px; color: var(--faint); text-transform: uppercase; letter-spacing: .5px; }
.kv-row .v { font-family: var(--term); font-size: 1.1rem; color: var(--ink); margin-top: 8px; display: flex; align-items: center; gap: 10px; word-break: break-all; letter-spacing: .5px; }
.kv-row .v .copy { color: var(--cyan); cursor: pointer; flex: none; font-family: var(--pixel); font-size: 8px; }
.kv-row .v .copy:hover { color: var(--lime); }
.verify-side { display: grid; gap: 12px; align-content: start; }
.vlink {
  display: flex; align-items: center; gap: 14px; background: var(--bg-2);
  border: 2px solid var(--line); border-radius: var(--r); padding: 16px;
  transition: transform .14s, border-color .14s;
}
.vlink:hover { transform: translateX(4px); border-color: var(--cyan); }
.vlink .ico { width: 42px; height: 42px; border-radius: var(--r); display: grid; place-items: center; font-family: var(--pixel); font-size: 9px; background: var(--bg-3); color: var(--lime); flex: none; border: 1px solid var(--line); }
.vlink b { font-family: var(--pixel); font-size: 11px; }
.vlink span { color: var(--muted); font-size: .84rem; display: block; margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 11px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--r); padding: 2px 20px; transition: border-color .14s; }
.faq details[open] { border-color: var(--pepe); }
.faq summary {
  list-style: none; cursor: pointer; padding: 17px 0; font-family: var(--pixel); font-size: 11px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--pixel); font-size: 14px; color: var(--lime); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding: 0 0 18px; font-size: .97rem; }
.faq p b { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background: radial-gradient(60% 120% at 50% 0%, rgba(182,255,58,.16), transparent 65%), var(--bg-2);
  border: 3px solid #04130a; border-radius: var(--r-lg); padding: 54px 26px;
  box-shadow: inset 0 0 0 2px rgba(182,255,58,.14);
}
.cta-band h2 { font-family: var(--pixel); font-size: clamp(1.2rem,3.6vw,1.9rem); line-height: 1.5; }
.cta-band h2 .hl { color: var(--lime); }
.cta-band p { color: var(--muted); margin: 18px auto 28px; max-width: 50ch; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; border-top: 2px solid var(--line); padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-family: var(--pixel); font-size: 14px; }
.footer-brand i { color: var(--lime); font-style: normal; }
.footer .tag { color: var(--muted); margin-top: 14px; max-width: 34ch; font-size: .92rem; }
.footer .ca { font-family: var(--term); font-size: 1rem; color: var(--faint); margin-top: 14px; word-break: break-all; letter-spacing: .5px; }
.footer .ca-links { font-family: var(--term); font-size: 1.05rem; margin-top: 8px; letter-spacing: .5px; }
.footer .ca-links a { color: var(--cyan); text-decoration: none; }
.footer .ca-links a:hover { color: var(--lime); }
.footer-col h4 { font-family: var(--pixel); font-size: 9px; color: var(--lime); text-transform: uppercase; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col a { display: block; color: var(--muted); font-size: .92rem; padding: 5px 0; transition: color .14s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem; font-family: var(--term); letter-spacing: .5px; }

/* ---------- Wallet modal ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(2,8,4,.78); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 20px; }
.modal-scrim.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 420px; background: var(--bg-2); border: 3px solid #04130a; border-radius: var(--r-lg); box-shadow: var(--shadow), inset 0 0 0 2px rgba(76,201,58,.16); overflow: hidden; animation: pop .22s cubic-bezier(.2,1,.3,1); }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 2px solid var(--line); }
.modal-head h3 { font-family: var(--pixel); font-size: 12px; }
.modal-head .x { color: var(--muted); font-size: 1.4rem; line-height: 1; padding: 4px 8px; border-radius: var(--r); }
.modal-head .x:hover { color: var(--lime); background: rgba(255,255,255,.05); }
.modal-body { padding: 14px; display: grid; gap: 10px; }
.wallet-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 13px 15px; border-radius: var(--r); background: var(--bg-3); border: 2px solid var(--line); transition: transform .1s, border-color .1s; }
.wallet-opt:hover { transform: translateX(3px); border-color: var(--pepe); }
.wallet-opt .wlogo { width: 36px; height: 36px; border-radius: var(--r); flex: none; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.wallet-opt b { font-family: var(--pixel); font-size: 10px; }
.wallet-opt span { display: block; color: var(--faint); font-size: .78rem; margin-top: 4px; }
.wallet-opt .state { margin-left: auto; font-family: var(--pixel); font-size: 7px; color: var(--pepe); }
.wallet-opt .state.install { color: var(--faint); }
.modal-foot { padding: 14px 22px 20px; color: var(--faint); font-size: .78rem; text-align: center; font-family: var(--term); letter-spacing: .5px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--bg-3); border: 2px solid var(--line-2); color: var(--ink); padding: 13px 20px; border-radius: var(--r); font-family: var(--term); font-size: 1.1rem; letter-spacing: .5px; box-shadow: var(--shadow); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast b { color: var(--pepe); font-weight: 400; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Docs ---------- */
.docs-shell { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; max-width: 1180px; }
.docs-side { position: sticky; top: 84px; align-self: start; }
.docs-side .group { margin-bottom: 22px; }
.docs-side .group-h { font-family: var(--pixel); font-size: 8px; color: var(--faint); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.docs-side a { display: block; padding: 8px 12px; border-radius: var(--r); color: var(--muted); font-size: .92rem; font-weight: 600; border-left: 2px solid transparent; transition: all .14s; }
.docs-side a:hover { color: var(--ink); background: rgba(76,201,58,.05); }
.docs-side a.active { color: var(--lime); border-left-color: var(--lime); background: rgba(182,255,58,.07); }
.doc { max-width: 760px; }
.doc .crumb { font-family: var(--term); font-size: 1rem; color: var(--faint); letter-spacing: .5px; }
.doc h1 { font-family: var(--pixel); font-size: clamp(1.3rem,4vw,1.9rem); line-height: 1.4; margin: 12px 0 14px; }
.doc h1 em { font-style: normal; color: var(--lime); }
.doc .lede { color: var(--muted); font-size: 1.14rem; padding-bottom: 22px; border-bottom: 2px solid var(--line); margin-bottom: 10px; }
.doc h2 { font-family: var(--pixel); font-size: 1.1rem; margin: 40px 0 14px; scroll-margin-top: 88px; line-height: 1.5; }
.doc h2::before { content: ">"; color: var(--pepe); font-family: var(--term); margin-right: 10px; }
.doc h3 { font-family: var(--pixel); font-size: .82rem; margin: 26px 0 10px; color: var(--ink); line-height: 1.6; }
.doc p { color: #cfe6c8; margin: 12px 0; }
.doc ul, .doc ol { color: #cfe6c8; margin: 12px 0; padding-left: 26px; }
.doc li { margin: 7px 0; }
.doc a:not(.btn) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(58,224,255,.4); }
.doc a:not(.btn):hover { color: var(--lime); }
.doc code { font-family: var(--term); font-size: 1.05em; background: var(--bg-3); border: 1px solid var(--line); padding: 1px 7px; border-radius: var(--r); color: var(--cyan); word-break: break-all; letter-spacing: .5px; }
.doc pre { background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--r); padding: 18px; overflow-x: auto; margin: 16px 0; }
.doc pre code { background: none; border: none; padding: 0; color: #dff5d6; line-height: 1.7; }
.doc strong { color: var(--ink); }
.callout { background: linear-gradient(135deg, rgba(76,201,58,.10), rgba(58,224,255,.06)); border: 2px solid var(--line-2); border-left: 4px solid var(--pepe); border-radius: var(--r); padding: 16px 20px; margin: 22px 0; }
.callout.warn { border-left-color: var(--lime); background: linear-gradient(135deg, rgba(182,255,58,.10), transparent); }
.callout p { margin: 6px 0; color: #d9f2d2; }
.doc-meta { margin-top: 46px; padding-top: 22px; border-top: 2px solid var(--line); color: var(--faint); font-size: .85rem; font-family: var(--term); letter-spacing: .5px; }
.doc-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; }
.doc-nav a { flex: 1; background: var(--bg-2); border: 2px solid var(--line); border-radius: var(--r); padding: 16px; transition: border-color .14s; }
.doc-nav a:hover { border-color: var(--pepe); }
.doc-nav .dir { font-family: var(--pixel); font-size: 7px; color: var(--faint); }
.doc-nav b { display: block; margin-top: 6px; color: var(--ink); font-family: var(--pixel); font-size: 10px; }
.doc-nav a.next { text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cabinet { max-width: 360px; margin-top: 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .verify { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .machine { grid-template-columns: 1fr; }
  .machine-left { border-right: none; border-bottom: 2px solid var(--line); }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side { position: static; display: flex; flex-wrap: wrap; gap: 6px; border: 2px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--bg-2); }
  .docs-side .group { margin: 0; }
  .docs-side .group-h { display: none; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 64px 14px auto 14px; flex-direction: column; align-items: stretch; background: var(--bg-2); border: 2px solid var(--line-2); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-links .btn { justify-content: center; }
  .sec { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 460px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .cab-insert, .console-idle .blip { opacity: 1; }
}
