:root {
  --ink: #05060a;
  --panel: rgba(12, 14, 22, .78);
  --panel-solid: #0b0d15;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e8ecf4;
  --muted: #8a93a6;
  --cyan: #5ef2ff;
  --violet: #8b7bff;
  --ok: #7cffb2;
  --err: #ff7a95;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; display: block; }
a { color: var(--cyan); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
.muted { color: var(--muted); }
code { font-family: var(--mono); font-size: .88em; color: var(--cyan); }
[hidden] { display: none !important; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2rem;
  padding: .85rem clamp(1rem, 4vw, 3rem); background: rgba(5, 6, 10, .72);
  backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text); font: 700 .95rem/1 var(--mono); letter-spacing: .14em; }
.brand i { color: var(--cyan); font-style: normal; margin: 0 .1em; }
.brand.small { font-size: .8rem; }
.nav nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav nav a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.btn-connect {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  padding: .6rem 1rem; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  color: var(--text); font: 500 .85rem/1 var(--mono); letter-spacing: .02em; transition: border-color .2s, background .2s;
}
.btn-connect:hover { border-color: var(--cyan); background: rgba(94,242,255,.06); }
.btn-connect .dot { width: 7px; height: 7px; border-radius: 50%; background: #3a4152; }
.btn-connect.connected .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* ---------- ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); background: rgba(5,6,10,.55); backdrop-filter: blur(8px); overflow-x: auto; scrollbar-width: none; }
.ticker::-webkit-scrollbar { display: none; }
.ticker-in { display: flex; gap: 2.2rem; padding: .55rem clamp(1rem, 4vw, 3rem); font: 500 .72rem/1 var(--mono); letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.ticker b { color: var(--text); font-weight: 700; margin-left: .45em; }
.ticker .live { color: var(--ok); display: inline-flex; align-items: center; gap: .5em; }
.ticker .live b { width: 6px; height: 6px; margin: 0; border-radius: 50%; background: var(--ok); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }

main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: clamp(3rem, 8vh, 6rem) 0 4rem; }
.kicker { font: 500 .75rem/1 var(--mono); letter-spacing: .18em; color: var(--cyan); margin: 0 0 1.4rem; }
h1 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
h1 em {
  font-style: normal; background: linear-gradient(100deg, var(--cyan), var(--violet) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: #aab2c3; font-size: 1.12rem; max-width: 33rem; margin: 1.8rem 0 0; }

.supply { margin-top: 2.6rem; max-width: 33rem; }
.supply-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; }
.supply-top b { font: 700 2.4rem/1 var(--mono); letter-spacing: -.03em; }
.supply-top span { color: var(--muted); font: 500 .85rem var(--mono); margin-left: .5rem; }
.supply-top span i { font-style: normal; color: var(--text); }
.supply-top .right { text-align: right; }
.supply-top .right b { font-size: 1.3rem; color: var(--muted); }
.bands { display: flex; gap: 3px; height: 14px; }
.band { flex: 1; position: relative; border-radius: 2px; background: rgba(255,255,255,.05); overflow: hidden; }
.band > div { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.band.cur { outline: 1px solid rgba(94,242,255,.5); }
.bands-legend { display: flex; gap: 3px; margin-top: .45rem; }
.bands-legend span { flex: 1; font: 500 .66rem/1.2 var(--mono); color: var(--muted); letter-spacing: .06em; }
.bands-legend span.cur { color: var(--cyan); }

/* ---------- console ---------- */
.console {
  position: relative; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel);
  backdrop-filter: blur(18px); box-shadow: 0 40px 120px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden;
}
.console::before {
  content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(94,242,255,.55), transparent 35%, transparent 65%, rgba(139,123,255,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.c-head { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.c-title { font: 700 .72rem/1 var(--mono); letter-spacing: .2em; color: var(--muted); }
.pill { font: 700 .66rem/1 var(--mono); letter-spacing: .16em; padding: .38rem .6rem; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.pill.mining { color: var(--cyan); border-color: rgba(94,242,255,.5); animation: blink 1.2s infinite; }
.pill.found { color: var(--ok); border-color: rgba(124,255,178,.5); }
.c-art { position: relative; }
.art { aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.art svg { display: block; width: 100%; height: 100%; }
.art-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem .6rem; font: 500 .68rem/1.3 var(--mono); letter-spacing: .06em; color: rgba(232,236,244,.75); background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.rail { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rail li { padding: .8rem 1rem; font-size: .86rem; color: var(--muted); border-right: 1px solid var(--line); position: relative; }
.rail li:last-child { border-right: 0; }
.rail li i { display: block; font: 700 .66rem/1 var(--mono); letter-spacing: .14em; margin-bottom: .3rem; font-style: normal; }
.rail li.on { color: var(--text); background: rgba(94,242,255,.05); }
.rail li.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.rail li.on i { color: var(--cyan); }
.rail li.ok i { color: var(--ok); }
.rail li.ok i::after { content: " ✓"; }
.c-body { padding: 1.2rem 1.1rem 1.1rem; }
.panel { display: flex; flex-direction: column; gap: .8rem; }
.hint { color: var(--muted); font-size: .92rem; margin: 0; }
.hint b { color: var(--text); }

.btn-main {
  width: 100%; padding: 1rem; border: 0; border-radius: 12px; cursor: pointer; color: #041016;
  font: 700 1rem/1 var(--sans); letter-spacing: .01em; background: linear-gradient(100deg, var(--cyan), #a0f7ff 40%, var(--violet));
  background-size: 160% 100%; transition: background-position .4s, transform .1s, opacity .2s; box-shadow: 0 10px 40px rgba(94,242,255,.18);
}
.btn-main:hover { background-position: 100% 0; }
.btn-main:active { transform: scale(.985); }
.btn-main:disabled { opacity: .45; cursor: not-allowed; }
.btn-main.stop { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn-sec { padding: 0 1.1rem; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font: 600 .9rem var(--sans); cursor: pointer; }
.btn-sec:hover { border-color: var(--cyan); }
.btn-sec:disabled { opacity: .5; }

.mstats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; }
.mstats div { padding: .55rem .65rem; border-right: 1px solid var(--line); }
.mstats div:last-child { border-right: 0; }
.mstats span { display: block; font: 500 .62rem/1.2 var(--mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.mstats b { font: 700 .98rem/1.5 var(--mono); }
.prob { height: 4px; border-radius: 2px; background: rgba(255,255,255,.06); margin-top: .7rem; overflow: hidden; }
.prob div { height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--violet)); transition: width .3s; }
.mini { font: 500 .72rem/1.4 var(--mono); color: var(--muted); margin: .45rem 0 0; }
.log { margin-top: .6rem; height: 5.6em; overflow: hidden; font: 400 .7rem/1.4 var(--mono); color: #6f7a90; mask-image: linear-gradient(transparent, #000 45%); }
.log div:last-child { color: #b9c3d6; }
.hashline { display: block; margin-top: .55rem; font: 500 .74rem/1.45 var(--mono); color: #c4cbe0; word-break: break-all; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .65rem; }
.hashline .z { color: var(--ok); font-weight: 700; }
.miner.found .hashline { border-color: rgba(124,255,178,.45); }

.lbl { font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.row { display: flex; gap: .5rem; }
.field { flex: 1; min-width: 0; height: 46px; padding: 0 .9rem; font: 500 .95rem var(--mono); color: var(--text); background: rgba(0,0,0,.4); border: 1px solid var(--line-2); border-radius: 10px; }
.field:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(94,242,255,.12); }
#codeBox { display: flex; flex-direction: column; gap: .8rem; border-top: 1px dashed var(--line-2); padding-top: 1rem; }
.codecard { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-radius: 10px; background: rgba(94,242,255,.05); border: 1px dashed rgba(94,242,255,.35); }
.codecard span { font: 700 .66rem var(--mono); letter-spacing: .2em; color: var(--muted); }
.codecard b { font: 700 1.25rem/1 var(--mono); letter-spacing: .08em; color: var(--cyan); }
.btn-x { align-self: flex-start; display: inline-flex; align-items: center; padding: .85rem 1.35rem; border-radius: 14px; background: linear-gradient(180deg, #b8731d, #8a5212); color: #1a1204; font: 700 1rem var(--sans); }
.btn-x:hover { filter: brightness(1.12); }
.note { color: #7f8799; font-size: .9rem; margin: 0; }
.price { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 10px; }
.price div { display: flex; justify-content: space-between; align-items: center; }
.price b { font: 700 1.8rem/1 var(--mono); }
.price small { color: var(--muted); font: 500 .74rem/1.4 var(--mono); }
.status { min-height: 1.3em; margin: .9rem 0 0; font-size: .88rem; color: var(--muted); word-break: break-word; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* ---------- stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(5,6,10,.5); backdrop-filter: blur(6px); }
.stats > div { padding: 1.6rem 1.4rem; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats span { display: block; font: 500 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stats b { display: block; font: 700 2rem/1.2 var(--mono); letter-spacing: -.03em; margin: .55rem 0 .2rem; }
.stats small { color: var(--muted); font-size: .82rem; }

/* ---------- sections ---------- */
.sec { padding: 6rem 0 1rem; }
.sec-head { max-width: 46rem; margin-bottom: 2.2rem; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; margin-bottom: 1rem; }
.sec-head p.muted { font-size: 1.02rem; margin: 0; }
.row-head { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.frame { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); backdrop-filter: blur(10px); padding: 1.2rem; }
#curve { width: 100%; height: auto; display: block; }
#curve text { font: 500 12px var(--mono); fill: #6f7a90; }
#curve .val { fill: var(--text); font-weight: 700; }
#curve .now { fill: var(--ok); font-weight: 700; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; transition: transform .3s, border-color .3s; }
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tile svg { display: block; width: 100%; aspect-ratio: 1; }
.tile .meta { display: flex; justify-content: space-between; gap: .5rem; padding: .65rem .8rem; font: 500 .72rem/1.3 var(--mono); color: var(--muted); background: var(--panel-solid); border-top: 1px solid var(--line); }
.tile .meta b { color: var(--text); }

.recent { margin-top: 2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); backdrop-filter: blur(10px); padding: 1.2rem 1.3rem; }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9rem; }
.recent-head h3 { font-size: 1.05rem; }
.recent-list { display: grid; gap: .1rem; }
.recent-list p { margin: 0; }
.rm { display: grid; grid-template-columns: 44px 70px 1fr 90px auto; gap: 1rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--line); font: 500 .82rem var(--mono); color: var(--muted); }
.rm:first-child { border-top: 0; }
.rm .th { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; }
.rm .th svg { width: 100%; height: 100%; display: block; }
.rm b { color: var(--text); }

.proto { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.proto li { padding: 1.6rem 1.4rem 1.6rem 0; position: relative; }
.proto li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.proto i { font: 700 .72rem var(--mono); letter-spacing: .16em; color: var(--cyan); font-style: normal; }
.proto h3 { font-size: 1.3rem; margin: .5rem 0 .5rem; }
.proto p { color: var(--muted); margin: 0; font-size: .95rem; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.3rem/1 var(--mono); color: var(--cyan); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: .7rem 0 0; }

footer { max-width: 1240px; margin: 6rem auto 0; padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- wallet modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(2,3,6,.72); backdrop-filter: blur(6px); }
.modal-box.wm { position: relative; width: min(92vw, 460px); background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 18px; padding: 1.8rem 1.6rem 1.6rem; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.wm h3 { text-align: center; font-size: 1.4rem; margin: 0 0 .4rem; }
.wm .sub { text-align: center; color: var(--muted); margin: 0 0 1.3rem; font-size: .92rem; }
.wm .x { position: absolute; top: 1rem; right: 1.1rem; background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.wm .tabs { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.wm .tab { background: none; border: 0; color: var(--muted); font: 600 .9rem var(--sans); padding: 0 0 .7rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.wm .tab.on { color: var(--cyan); border-bottom-color: var(--cyan); }
.wm .opt { display: flex; align-items: center; gap: 1rem; width: 100%; margin: 0 0 .7rem; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text); font: 500 1rem var(--sans); cursor: pointer; text-align: left; }
.wm .opt:hover { border-color: var(--cyan); }
.wm .opt small { margin-left: auto; color: var(--ok); font: 500 .72rem var(--mono); }
.wm .ico { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #000; }
.wm .none { color: var(--muted); text-align: center; padding: 1.2rem 0 .6rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .proto { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav nav { display: none; }
  .nav .btn-connect { margin-left: auto; }
  .faq { grid-template-columns: 1fr; }
  .proto { grid-template-columns: 1fr; }
  .mstats { grid-template-columns: 1fr 1fr; }
  .mstats div:nth-child(2) { border-right: 0; }
  .mstats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rm { grid-template-columns: 44px 60px 1fr; }
  .rm span:nth-child(4), .rm span:nth-child(5) { display: none; }
}
.btn-connect { white-space: nowrap; }
@media (max-width: 720px) {
  .btn-connect { padding: .5rem .75rem; font-size: .78rem; }
  .brand { font-size: .82rem; letter-spacing: .1em; }
  .stats > div { padding: 1.1rem .9rem; }
  .stats b { font-size: 1.45rem; }
  .sec { padding-top: 4rem; }
}
