/* 0xdesignvamp · v2 · TRUE 0xwork palette (purple + orange + neon green)
   modals, particles, scroll progress, working filters, gradient borders. */

:root {
  --bg: #0a0015;
  --bg-2: #11051F;
  --bg-3: #160028;
  --surface: #1A0533;
  --surface-2: #1e0030;
  --surface-3: #25103e;

  --border: rgba(168, 85, 247, 0.08);
  --border-strong: rgba(168, 85, 247, 0.18);

  --text: #f0f0f0;
  --text-dim: #c8b3e8;
  --text-muted: rgba(217, 175, 255, 0.5);

  --accent: #a855f7;
  --accent-2: #c084fc;
  --accent-3: #D4A8FF;
  --accent-soft: rgba(168, 85, 247, 0.10);
  --accent-hairline: rgba(168, 85, 247, 0.32);
  --accent-glow: rgba(168, 85, 247, 0.4);

  --orange: #f97316;
  --orange-2: #fb923c;
  --orange-soft: rgba(249, 115, 22, 0.10);
  --orange-glow: rgba(249, 115, 22, 0.3);

  --success: #00ff41;
  --success-2: #4ade80;
  --success-soft: rgba(0, 255, 65, 0.08);
  --success-glow: rgba(0, 255, 65, 0.3);

  --warning: #facc15;
  --warning-soft: rgba(250, 204, 21, 0.10);
  --danger: #FF4D4D;
  --danger-soft: rgba(255, 77, 77, 0.10);

  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Inter', 'SF Pro', system-ui, -apple-system, sans-serif;
  --display: 'Space Grotesk', var(--sans);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --max-w: 1240px;
  --max-w-narrow: 920px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* atmospheric backgrounds · purple glows + grid + drifting orbs */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(168, 85, 247, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(249, 115, 22, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(168, 85, 247, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 35% at 80% 90%, rgba(0, 255, 65, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* drifting orbs · purely decorative */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: drift 24s ease-in-out infinite alternate;
}
.orb.a { width: 320px; height: 320px; background: var(--accent); top: 10%; left: -100px; }
.orb.b { width: 240px; height: 240px; background: var(--orange); top: 50%; right: -80px; animation-delay: -10s; }
.orb.c { width: 180px; height: 180px; background: var(--success); bottom: 10%; left: 30%; animation-delay: -16s; opacity: 0.2; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -20px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* canvas particles */
canvas.particles {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* cursor radial */
.cursor-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--orange));
  z-index: 200;
  width: 0;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.05s linear;
}

main, header, footer, .wrap { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* header */
.nav {
  position: sticky; top: 0;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 0, 21, 0.75);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand .logomark {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  border-radius: 7px;
  position: relative;
  box-shadow: 0 0 20px var(--accent-glow);
}
.brand .logomark::before {
  content: '0x';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800;
  color: white;
  letter-spacing: -0.05em;
}
.brand .ver {
  font-size: 10px;
  color: var(--text-muted);
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  margin-left: 6px;
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  transition: all 0.18s;
  text-transform: uppercase;
  position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.nav-links a.active { color: var(--text); background: var(--accent-soft); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -1px; left: 12px; right: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--orange));
  border-radius: 2px;
}

.nav-cta {
  margin-left: 12px;
  padding: 8px 16px !important;
  background: linear-gradient(135deg, var(--accent), #8b3ddb) !important;
  color: white !important;
  font-weight: 600;
}
.nav-cta:hover { background: linear-gradient(135deg, var(--accent-2), var(--accent)) !important; box-shadow: 0 0 24px var(--accent-glow); }

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  cursor: pointer;
}

/* ticker */
.ticker {
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.06), rgba(168, 85, 247, 0.02));
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 100px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  padding: 10px 0;
}
.ticker-track > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 0 28px;
  border-right: 1px solid var(--border);
}
.ticker-track > span > b { color: var(--orange-2); font-weight: 600; }
.ticker-track > span > i { color: var(--success); font-style: normal; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* containers */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }

/* hero */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-3);
  padding: 8px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-hairline);
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero .eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--success-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 880px;
  margin: 0 auto 24px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--orange) 60%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .grad-2 {
  background: linear-gradient(135deg, var(--success), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b3ddb);
  color: white;
  box-shadow: 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 28px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-orange {
  background: linear-gradient(135deg, var(--orange), #e16111);
  color: white;
  box-shadow: 0 0 0 var(--orange-glow);
}
.btn-orange:hover { box-shadow: 0 6px 28px var(--orange-glow); transform: translateY(-1px); }
.btn-success {
  background: linear-gradient(135deg, var(--success), #00cc34);
  color: #001a0a;
  box-shadow: 0 0 0 var(--success-glow);
}
.btn-success:hover { box-shadow: 0 6px 28px var(--success-glow); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent-hairline); }
.btn-line {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-strong);
}
.btn-line:hover { color: var(--text); border-color: var(--accent-hairline); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* section labels */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-2);
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--orange); }
.section-label .hex { color: var(--text-muted); font-weight: 400; }

.section { padding: 96px 0; position: relative; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 680px;
}
.section p.lead {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* cards · gradient borders */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--accent-hairline), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.card:hover { transform: translateY(-2px); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card .icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent-soft), var(--orange-soft));
  border: 1px solid var(--accent-hairline);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent-3);
  margin-bottom: 20px;
}
.card h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* terminal */
.terminal {
  background: #03000a;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  position: relative;
}
.terminal-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 11px;
}
.terminal-head .dots { display: flex; gap: 6px; }
.terminal-head .dots span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.terminal-head .dots span:nth-child(2) { background: #febc2e; }
.terminal-head .dots span:nth-child(3) { background: #28c840; }
.terminal-head .label { margin-left: 8px; }
.terminal-body {
  padding: 18px 20px;
  color: #d4c8e8;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .prompt { color: var(--orange-2); }
.terminal-body .cmd { color: var(--accent-3); }
.terminal-body .out { color: var(--success); }
.terminal-body .comment { color: var(--text-muted); }

/* table */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
}
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.t th, table.t td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.t th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-2);
}
table.t tr:last-child td { border-bottom: none; }
table.t tr:hover td { background: var(--accent-soft); }

/* tabs */
.tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 4px;
  gap: 2px;
  font-family: var(--mono);
  font-size: 12px;
}
.tabs button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: inherit;
  font-size: inherit;
  transition: all 0.15s;
}
.tabs button.active {
  background: linear-gradient(135deg, var(--accent), #8b3ddb);
  color: white;
  box-shadow: 0 0 16px var(--accent-glow);
}
.tabs button:hover:not(.active) { color: var(--text); }

/* filters */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px;
  align-items: center;
}
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-dim);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--accent-hairline); }
.chip.active {
  background: linear-gradient(135deg, var(--accent), #8b3ddb);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* search */
.search {
  position: relative;
  flex: 1;
  max-width: 360px;
  margin-left: auto;
}
.search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px 14px 10px 38px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
}
.search input:focus {
  outline: none;
  border-color: var(--accent-hairline);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search::before {
  content: '⌕';
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

/* item */
.item {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all 0.18s;
  cursor: pointer;
  position: relative;
}
.item:hover { border-color: var(--accent-hairline); transform: translateY(-2px); background: var(--surface-2); box-shadow: 0 8px 30px rgba(168, 85, 247, 0.12); }

.item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.item-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.item-payout {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
  white-space: nowrap;
  padding: 4px 10px;
  background: var(--success-soft);
  border: 1px solid rgba(0, 255, 65, 0.24);
  border-radius: var(--r-sm);
  text-shadow: 0 0 12px var(--success-glow);
}
.item-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
}
.item-meta .tag {
  padding: 3px 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-hairline);
  border-radius: var(--r-sm);
  text-transform: uppercase;
  color: var(--accent-3);
}
.item-meta .status-open { color: var(--success); }
.item-meta .status-claimed { color: var(--orange-2); }
.item-meta .status-done { color: var(--text-muted); }

/* agent avatar */
.av {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* leaderboard row */
.lb-row {
  display: grid;
  grid-template-columns: 60px 1fr 140px 140px 140px;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.lb-row:hover { background: var(--accent-soft); }
.lb-row.head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lb-row .agent { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-row .agent-name { font-weight: 600; }
.lb-row .agent-handle { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.lb-row .num { font-family: var(--mono); font-weight: 600; }
.lb-row .num.usd { color: var(--success); text-shadow: 0 0 8px var(--success-glow); }
.lb-row .num.rep { color: var(--accent-3); }
.lb-row .num.rating { color: var(--orange-2); }
@media (max-width: 720px) {
  .lb-row { grid-template-columns: 30px 1fr 90px; }
  .lb-row .rep, .lb-row .rating, .lb-row .head-rep, .lb-row .head-rating { display: none; }
}

/* stats strip */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { background: var(--surface); padding: 24px 22px; }
.stat .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat .v {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat .v.accent { color: var(--accent-3); }
.stat .v.orange { color: var(--orange-2); }
.stat .v.usd { color: var(--success); text-shadow: 0 0 12px var(--success-glow); }
@media (max-width: 880px) { .stats-strip { grid-template-columns: 1fr 1fr; } }

/* feed post */
.feed-post {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 14px;
  transition: all 0.15s;
}
.feed-post:hover { border-color: var(--accent-hairline); }
.feed-post .top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.feed-post .name { font-weight: 600; }
.feed-post .handle { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.feed-post .time { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.feed-post .body { font-size: 14px; line-height: 1.6; }
.feed-post .actions {
  display: flex; gap: 18px;
  margin-top: 14px;
  font-family: var(--mono); font-size: 12px;
  color: var(--text-muted);
}
.feed-post .actions span:hover { color: var(--accent-3); cursor: pointer; }

/* form */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  transition: all 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 100px; }
.field .hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cap-box {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.cap-box:hover { border-color: var(--accent-hairline); }
.cap-box.on { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.cap-box input { margin-top: 2px; accent-color: var(--accent); }
.cap-box .cap-title { font-weight: 600; font-size: 14px; }
.cap-box .cap-desc { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
@media (max-width: 720px) { .checkbox-grid { grid-template-columns: 1fr; } }

/* steps */
.steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  transition: all 0.18s;
}
.step:hover { border-color: var(--accent-hairline); transform: translateX(4px); }
.step .num {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-hairline);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent-3);
}
.step.done .num { background: linear-gradient(135deg, var(--success), #00cc34); color: #001a0a; border-color: var(--success); }
.step.done .num::after { content: '✓'; }
.step.done .num span { display: none; }
.step h4 { font-family: var(--display); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--text-dim); }
.step .status {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.step.done .status { color: var(--success); }

/* code inline */
code, .mono {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 1px 6px;
  background: var(--surface);
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* footer */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 96px;
  padding: 64px 0 32px;
  background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.04));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; padding: 4px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent-3); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer-bottom .study-tag {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--accent-hairline);
  border-radius: var(--r-sm);
  color: var(--accent-3);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}

/* utility */
.center { text-align: center; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.success { color: var(--success); }
.warn { color: var(--warning); }
.danger { color: var(--danger); }
.accent { color: var(--accent-3); }
.orange { color: var(--orange-2); }
.mono { font-family: var(--mono); }
.spacer-32 { height: 32px; }
.spacer-64 { height: 64px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* mobile */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; place-items: center; margin-left: auto; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }
  .nav-links.open a { padding: 12px 16px; text-align: left; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .step { grid-template-columns: 40px 1fr; }
  .step .status { grid-column: 2; }
}

/* study banner */
.study-banner {
  background: linear-gradient(90deg, var(--accent-soft), var(--orange-soft));
  border-bottom: 1px solid var(--accent-hairline);
  padding: 8px 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.study-banner b { color: var(--accent-3); }
.study-banner a { color: var(--text); border-bottom: 1px dashed var(--text-muted); }

/* hero viz */
.hero-viz { margin-top: 64px; position: relative; }
.hero-viz .panel {
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: 0 24px 100px rgba(168, 85, 247, 0.18);
}

/* big number callout */
.big-num {
  font-family: var(--display);
  font-size: 88px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* pill */
.pill {
  display: inline-flex;
  align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-hairline);
  color: var(--accent-3);
}
.pill.success { background: var(--success-soft); border-color: rgba(0, 255, 65, 0.28); color: var(--success); }
.pill.warn    { background: var(--warning-soft); border-color: rgba(250, 204, 21, 0.24); color: var(--warning); }
.pill.danger  { background: var(--danger-soft); border-color: rgba(255, 77, 77, 0.24); color: var(--danger); }
.pill.orange  { background: var(--orange-soft); border-color: rgba(249, 115, 22, 0.24); color: var(--orange-2); }

/* contract row */
.contract {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  padding: 8px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.contract .copy { margin-left: auto; cursor: pointer; color: var(--text-muted); }
.contract .copy:hover { color: var(--accent-3); }

.link-arrow {
  color: var(--accent-3);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.link-arrow:hover { color: var(--orange-2); }

/* MODAL */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 0, 21, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--accent-hairline);
  border-radius: var(--r-xl);
  padding: 36px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 120px rgba(168, 85, 247, 0.32), 0 0 1px var(--accent);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.wide { max-width: 760px; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: grid; place-items: center;
  transition: all 0.15s;
}
.modal-close:hover { color: var(--text); border-color: var(--accent-hairline); }
.modal h3 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.modal .modal-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 8px;
}
.modal p { color: var(--text-dim); margin-bottom: 12px; }
.modal .modal-actions {
  display: flex; gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2);
  border: 1px solid var(--success);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 13px;
  z-index: 600;
  opacity: 0;
  transition: all 0.25s;
  box-shadow: 0 8px 32px rgba(0, 255, 65, 0.18);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ic { color: var(--success); margin-right: 8px; }

/* wallet card in modal */
.wallet-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 10px;
}
.wallet-opt:hover { border-color: var(--accent-hairline); transform: translateX(2px); background: var(--surface-2); }
.wallet-opt .ic {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-weight: 700;
  font-family: var(--mono);
  color: white;
}
.wallet-opt .info { flex: 1; }
.wallet-opt .info b { display: block; font-size: 14px; }
.wallet-opt .info span { font-size: 12px; color: var(--text-muted); }
.wallet-opt .arrow { color: var(--text-muted); }
