:root {
  --bg: #0A0307;
  --bg-2: #14060F;
  --panel: #1D0A17;
  --border: #3D1530;
  --border-btn: #5C2A4B;
  --green: #FF3EA5;
  --mint: #FF8FD0;
  --emerald: #D6187F;
  --on-green: #1A0211;
  --text: #F8F1F5;
  --text-2: #A8939F;
  --text-3: #6E5464;

  --pixel: "Silkscreen", "JetBrains Mono", monospace;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--green); color: var(--on-green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 22px; border: 1px solid transparent; border-radius: 2px;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--mint); box-shadow: 0 0 24px rgba(255, 62, 165,.35); }
.btn-ghost { border-color: var(--border-btn); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--mint); }
.btn-sm { padding: 9px 14px; font-size: 10.5px; }
.btn-xs { padding: 7px 10px; font-size: 10px; }
.btn:active { transform: translateY(1px); }
.arrow { font-size: 1.1em; line-height: 1; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 6, 15, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1440px; margin: 0 auto; height: 64px; padding: 0 clamp(16px, 4vw, 140px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--pixel); font-weight: 700; font-size: 17px; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--border); }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2);
  transition: color .2s;
}
.nav-links a:hover { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 36px; height: 36px; border: 1px solid var(--border-btn); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 16px; height: 1.5px; background: var(--text); }

/* ---------- hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: 26px 16px 40px;
  overflow: hidden;
}
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 21, 48,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 21, 48,.28) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 55% 50% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 30%, #000 0%, transparent 75%);
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > *:not(.grid-bg):not(#stars) { position: relative; }

.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--mint);
}

.stage {
  position: relative; margin: 26px auto 0;
  width: min(760px, 100%); height: 500px;
  display: flex; align-items: center; justify-content: center;
}
.glow {
  position: absolute; left: 50%; top: 46%; width: 520px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 62, 165,.20) 0%, rgba(255, 62, 165,.06) 38%, transparent 68%);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .65; transform: translate(-50%, -50%) scale(1.06); } }

.character {
  position: relative; z-index: 2;
  width: 380px; height: 380px;
  cursor: grab; touch-action: none; user-select: none;
  perspective: 900px;
  animation: float 5s ease-in-out infinite;
}
.character:active { cursor: grabbing; }
.character img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 71%);
  mask-image: radial-gradient(circle, #000 60%, transparent 71%);
  transform: rotateY(var(--ry, 0deg));
  transition: transform .08s linear;
  pointer-events: none;
}
@keyframes float { 50% { transform: translateY(-10px); } }

.platform { position: absolute; left: 50%; bottom: 34px; width: 460px; height: 70px; transform: translateX(-50%); pointer-events: none; }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.r1 { width: 100%; height: 100%; border: 1px solid rgba(255, 62, 165,.22); }
.r2 { width: 66%; height: 62%; border: 1px dashed rgba(255, 62, 165,.28); animation: spin 28s linear infinite; }
.r3 { width: 34%; height: 30%; background: radial-gradient(ellipse, rgba(255, 62, 165,.28), transparent 70%); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.stat {
  position: absolute; display: flex; flex-direction: column; gap: 4px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; z-index: 3;
}
.stat-k { color: var(--text); }
.stat-v { color: var(--mint); display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; }
.stat .line { position: absolute; top: 8px; width: 150px; height: 1px; }
.stat-tl, .stat-bl { left: 0; text-align: right; align-items: flex-end; }
.stat-tr, .stat-br { right: 0; align-items: flex-start; }
.stat-tl, .stat-tr { top: 16px; }
.stat-bl, .stat-br { bottom: 50px; }
.stat-tl .line, .stat-bl .line { left: calc(100% + 16px); background: linear-gradient(90deg, var(--border), transparent); }
.stat-tr .line, .stat-br .line { right: calc(100% + 16px); background: linear-gradient(-90deg, var(--border), transparent); }

.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot.live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.hint { font-family: var(--mono); font-size: 11px; color: var(--text-2); margin-top: -8px; }
.micro { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); margin-top: 8px; }

.headline {
  font-family: var(--pixel); font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 5.4vw, 60px); line-height: 1.12; letter-spacing: .01em;
  margin-top: 20px; display: flex; flex-direction: column;
}
.headline .accent { color: var(--green); text-shadow: 0 0 22px rgba(255, 62, 165,.35); }

.lede { color: var(--text-2); font-size: 15.5px; line-height: 1.6; margin: 22px auto 0; max-width: 560px; }
.cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

.pipeline {
  list-style: none; display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 24px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2);
}
.pipeline li { display: inline-flex; align-items: center; gap: 7px; }
.pipeline .sep { color: var(--text-3); }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 56px 16px 40px; border-top: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.section h2 { font-family: var(--pixel); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 3vw, 30px); margin-top: 12px; }
.sub { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.section-tools { display: flex; align-items: center; gap: 10px; }
.polling { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-right: 6px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--bg-2); border: 1px solid var(--border); padding: 14px;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  animation: rise .5s ease both;
}
.card:hover { border-color: rgba(255, 62, 165,.45); transform: translateY(-3px); box-shadow: 0 10px 40px -18px rgba(255, 62, 165,.35); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; }
.card-status { color: var(--mint); display: inline-flex; align-items: center; gap: 6px; }
.card-num { color: var(--text-3); }
.card-media {
  margin-top: 12px; height: 168px; border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 50%, var(--panel), var(--bg) 75%);
  display: grid; place-items: center; overflow: hidden;
}
.avatar {
  width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--pixel); font-size: 34px; color: var(--green);
  background: radial-gradient(circle at 50% 40%, rgba(255, 62, 165,.18), var(--panel) 65%);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 30px rgba(10, 3, 7,.8);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.card h3 { font-family: var(--pixel); font-weight: 700; font-size: 17px; margin-top: 16px; }
.ticker { font-family: var(--mono); font-size: 12px; color: var(--green); margin-top: 3px; letter-spacing: .06em; }
.label { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin-top: 12px; }
.val { font-size: 13px; line-height: 1.5; margin-top: 4px; color: var(--text); }
.val.mono { font-family: var(--mono); font-size: 12px; }
.val.green { color: var(--green); font-family: var(--mono); font-size: 12px; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.card .btn-talk { margin-top: 18px; justify-content: space-between; padding: 12px 14px; font-size: 11px; }
.view-link {
  display: block; text-align: center; margin-top: 12px; padding: 4px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2);
  transition: color .2s;
}
.view-link:hover { color: var(--green); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--bg-2); border: 1px solid var(--border); padding: 22px 18px; transition: border-color .25s; }
.step:hover { border-color: rgba(255, 62, 165,.45); }
.step-n { font-family: var(--mono); font-size: 11px; color: var(--mint); letter-spacing: .2em; }
.step h3 { font-family: var(--pixel); font-size: 15px; margin-top: 14px; text-transform: uppercase; }
.step p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin-top: 10px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 60px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 28px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .micro { margin: 0; }
.footer-links { display: flex; gap: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.footer-links a:hover { color: var(--green); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 12px 18px;
  transition: opacity .25s, transform .25s; pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 20px; }
}
@media (max-width: 820px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px; border-top: 1px solid var(--border); }
  .menu-toggle { display: flex; }
  [data-wallet-btn]:not(.is-connected) span { display: none; }
  .stat .line { display: none; }
  .stage { height: 420px; }
  .character { width: 300px; height: 300px; }
  .platform { width: 340px; }
}
@media (max-width: 600px) {
  .nav-actions .btn-primary { display: none; }
  .cards, .steps { grid-template-columns: 1fr; }
  .stage { height: 380px; }
  .character { width: 250px; height: 250px; }
  .glow { width: 360px; height: 360px; }
  .platform { width: 280px; bottom: 40px; }
  .stat { font-size: 9.5px; letter-spacing: .14em; }
  .stat-tl, .stat-tr { top: 0; }
  .stat-bl, .stat-br { bottom: 10px; }
  .lede br { display: none; }
  .pipeline { gap: 8px; font-size: 9.5px; letter-spacing: .12em; }
  .section-tools .polling { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
