/* =====================================================================
   PRISM: design system
   ===================================================================== */
:root {
  --bg: #050507;
  --bg-2: #09090e;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f7;
  --muted: #a0a0ad;
  --dim: #6c6c7a;
  --up: #7cffb2;
  --down: #ff6b81;
  --warn: #ffc371;
  --violet: #b892ff;
  --spectrum: linear-gradient(90deg, #ff5f6d 0%, #ffc371 20%, #7cffb2 42%, #5cc8ff 64%, #b892ff 84%, #ff7ad9 100%);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
code { font-family: var(--mono); font-size: 0.86em; padding: 0.1em 0.38em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: #e3dcff; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1, 'zero' 1; letter-spacing: -0.01em; }
.label { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
::selection { background: rgba(184, 146, 255, 0.35); }

/* ---------- ambient ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(110px); opacity: 0.16; animation: drift 38s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { background: #6d3dff; left: -18vmax; top: -22vmax; }
.aurora i:nth-child(2) { background: #00b3ff; right: -24vmax; top: 30vh; animation-duration: 46s; opacity: 0.1; }
.aurora i:nth-child(3) { background: #ff3d7f; left: 20vw; bottom: -40vmax; animation-duration: 52s; opacity: 0.08; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

.spectral {
  font-style: normal;
  background: var(--spectrum);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: 220% 0; } }

/* ---------- ribbon + nav ---------- */
.ribbon {
  position: relative; z-index: 60; text-align: center; font-size: 13px; padding: 9px var(--gutter);
  background: linear-gradient(90deg, rgba(255, 195, 113, 0.14), rgba(184, 146, 255, 0.14));
  border-bottom: 1px solid var(--border); color: #ffe6c2;
}
.ribbon b { color: #fff; }
.ribbon.prelaunch { background: linear-gradient(90deg, rgba(124, 255, 178, 0.1), rgba(184, 146, 255, 0.16)); color: #e6dcff; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.ribbon.prelaunch .live-dot { display: inline-block; vertical-align: middle; }
.ribbon .ca { font-size: 11.5px; padding: 3px 8px; color: #fff; background: rgba(0, 0, 0, 0.3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ribbon.demo { background: linear-gradient(90deg, rgba(92, 200, 255, 0.16), rgba(255, 122, 217, 0.16)); color: #dff3ff; }
.ribbon code { background: rgba(0, 0, 0, 0.3); }

.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  background: rgba(5, 5, 7, 0.55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(5, 5, 7, 0.78); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(184, 146, 255, 0.35)); }
.brand-name { font-weight: 650; letter-spacing: 0.22em; font-size: 15px; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: var(--surface-2); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--dim); pointer-events: none; }
.search input {
  width: 210px; height: 38px; padding: 0 12px 0 34px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); outline: none; font-size: 13px; transition: border-color 0.2s, width 0.3s var(--ease);
}
.search input:focus { border-color: var(--border-2); width: 280px; }
.quote-pill {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); font-size: 13px; transition: border-color 0.2s, background 0.2s;
}
.quote-pill:hover { border-color: var(--border-2); background: var(--surface-2); }
.quote-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spectrum); box-shadow: 0 0 10px rgba(124, 255, 178, 0.6); }
.quote-pill b { font-family: var(--mono); font-weight: 500; color: var(--muted); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease); }
.menu-btn span:first-child { top: 15px; } .menu-btn span:last-child { top: 23px; }
.nav.open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 550; font-size: 14px; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.2s, border-color 0.2s, opacity 0.2s;
  will-change: transform;
}
.btn-lg { height: 52px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: #fff; color: #07070a; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset; }
.btn-primary::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; background: var(--spectrum); background-size: 200% 100%;
  filter: blur(14px); opacity: 0; transition: opacity 0.35s; animation: shimmer 6s linear infinite;
}
.btn-primary:hover::after { opacity: 0.75; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-glass { background: var(--surface-2); border: 1px solid var(--border-2); }
.btn-glass:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.24); }
.btn-buy { background: var(--up); color: #04140b; }
.btn-sell { background: var(--down); color: #1a0509; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-wallet { background: var(--surface-2); border: 1px solid var(--border-2); height: 38px; padding: 0 14px; border-radius: 11px; font-size: 13px; }
.btn-wallet.connected { background: rgba(124, 255, 178, 0.08); border-color: rgba(124, 255, 178, 0.25); }
.btn-wallet.connected .wl::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); margin-right: 8px; box-shadow: 0 0 8px var(--up); }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::before {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.2); border-top-color: #000;
  animation: spin 0.7s linear infinite;
}
.btn-glass.loading::before { border-color: rgba(255, 255, 255, 0.2); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- glass ---------- */
.glass {
  position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}
.glow-edge::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), #ff5f6d, #ffc371, #7cffb2, #5cc8ff, #b892ff, #ff7ad9, #ff5f6d);
  -webkit-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.4s;
}
.glow-edge:hover::before { opacity: 0.9; animation: rotate-a 4s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes rotate-a { to { --a: 360deg; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; padding: 40px 0 90px; }
.spectrum-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; z-index: 1; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: end; }
.hero-copy { max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 99px;
  border: 1px solid var(--border-2); background: rgba(10, 10, 16, 0.6); backdrop-filter: blur(10px); font-size: 13px; color: var(--muted);
}
.eyebrow b { color: var(--text); font-weight: 550; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(124, 255, 178, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124, 255, 178, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(124, 255, 178, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 255, 178, 0); } }
.hero-title { margin: 26px 0 22px; font-size: clamp(44px, 6.4vw, 96px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 640; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > * , .hero-title .line { animation: rise 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) { animation-delay: 0.08s; } .hero-title .line:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(40%); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hero-sub { max-width: 560px; font-size: clamp(16px, 1.5vw, 18.5px); color: #c9c9d4; margin: 0 0 30px; animation: rise 1.1s 0.25s var(--ease) both; }
.hero-sub b { color: var(--text); font-weight: 550; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; animation: rise 1.1s 0.33s var(--ease) both; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 13px; color: var(--muted); animation: rise 1.1s 0.4s var(--ease) both; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.ok { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(124, 255, 178, 0.12); border: 1px solid rgba(124, 255, 178, 0.35); }
.ok::after { content: ''; width: 6px; height: 3.5px; border-left: 1.5px solid var(--up); border-bottom: 1.5px solid var(--up); transform: rotate(-45deg) translate(1px, -1px); }
.hero-beam { padding: 20px; animation: rise 1.1s 0.5s var(--ease) both; background: linear-gradient(180deg, rgba(14, 14, 22, 0.75), rgba(10, 10, 16, 0.6)); }
.hb-top { display: flex; justify-content: space-between; align-items: center; }
.epoch-id { font-size: 12px; color: var(--dim); }
.hb-clock { font-size: 46px; font-weight: 500; letter-spacing: -0.04em; margin: 4px 0 10px; }
.hb-bar { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hb-bar i { display: block; height: 100%; width: 0; background: var(--spectrum); border-radius: inherit; transition: width 1s linear; }
.hb-rows { margin-top: 16px; display: grid; gap: 10px; }
.hb-rows div { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.hb-rows b { color: var(--text); font-weight: 500; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 22px; height: 34px; border: 1.5px solid var(--border-2); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--muted); transform: translateX(-50%); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, -2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- stats + ticker ---------- */
.stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: -40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--border); }
.stat { background: rgba(9, 9, 14, 0.92); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(10px); }
.stat b { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.03em; }
.stat small { font-size: 12px; color: var(--dim); font-family: var(--mono); min-height: 1em; }
.ticker { position: relative; margin: 34px 0 0; padding: 14px 0; border-block: 1px solid var(--border); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 38px; width: max-content; animation: marquee 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tick b { color: var(--text); font-weight: 550; }
.tick .sw { width: 9px; height: 9px; border-radius: 3px; background: hsl(var(--h) 95% 66%); box-shadow: 0 0 12px hsl(var(--h) 95% 60% / 0.7); }
.tick .k { font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) var(--gutter) 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); }
.section-head h2, .page-head h1 { margin: 12px 0 14px; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 620; }
.section-head p, .page-head p { color: var(--muted); font-size: 17px; margin: 0; }
.empty { color: var(--muted); text-align: center; padding: 28px; font-size: 15px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* spectrum */
.spectrum-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; }
.ring-card { padding: 28px; display: flex; flex-direction: column; align-items: center; }
.ring { width: 100%; max-width: 280px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 6; }
.ring-fg { fill: none; stroke: url(#ring-grad); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 553; stroke-dashoffset: 553; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 8px rgba(184, 146, 255, 0.5)); }
.ring-center { margin-top: -224px; height: 224px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; pointer-events: none; }
.ring-clock { font-size: 44px; font-weight: 500; letter-spacing: -0.04em; }
.ring-budget { font-size: 17px; margin-top: 8px; }
.ring-actions { display: flex; gap: 10px; margin-top: 30px; }
.alloc-card { padding: 26px; min-width: 0; }
.alloc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.alloc-head h3 { margin: 0; font-size: 19px; font-weight: 600; }
.alloc-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: var(--surface-2); margin-bottom: 18px; gap: 2px; }
.alloc-bar i { height: 100%; background: hsl(var(--h) 95% 64%); box-shadow: 0 0 18px hsl(var(--h) 95% 60% / 0.6); transition: flex-grow 0.8s var(--ease); }
.alloc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 430px; overflow: auto; }
.alloc-row { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: background 0.2s; }
.alloc-row:hover { background: var(--surface-2); }
.alloc-row .rank { font-family: var(--mono); font-size: 12px; color: var(--dim); text-align: center; }
.alloc-row .nm { min-width: 0; }
.alloc-row .nm b { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alloc-row .nm span { font-size: 12px; color: var(--muted); }
.alloc-row .pct { font-family: var(--mono); font-size: 16px; text-align: right; }
.alloc-row .proj { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; min-width: 92px; }
.meter { height: 3px; border-radius: 3px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: hsl(var(--h) 95% 64%); border-radius: inherit; }

/* avatars */
.av { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; overflow: hidden; position: relative; background: radial-gradient(circle at 30% 25%, hsl(var(--h) 95% 75%), hsl(var(--h) 80% 38%)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 6px 20px -6px hsl(var(--h) 90% 50% / 0.6); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 72px; height: 72px; border-radius: 20px; }
.av.sm { width: 26px; height: 26px; border-radius: 8px; }
.av span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: rgba(0, 0, 0, 0.6); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 24px; min-height: 340px; display: flex; flex-direction: column; overflow: hidden; }
.step-n { font-size: 12px; color: var(--dim); }
.step h3 { margin: 18px 0 10px; font-size: 19px; letter-spacing: -0.01em; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step p b { color: var(--text); font-weight: 550; }
.step-art { height: 96px; margin-top: 18px; position: relative; }
.art-launch i { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; border-radius: 16px; transform: translate(-50%, -50%); border: 1px solid var(--border-2); background: radial-gradient(circle at 30% 25%, #b892ff, #3b1f7a); animation: bob 4s var(--ease) infinite; }
.art-launch i:nth-child(2) { width: 84px; height: 84px; background: none; border-color: rgba(184, 146, 255, 0.25); animation-delay: 0.2s; border-radius: 24px; }
.art-launch i:nth-child(3) { width: 118px; height: 118px; background: none; border-color: rgba(184, 146, 255, 0.1); animation-delay: 0.4s; border-radius: 32px; }
@keyframes bob { 50% { transform: translate(-50%, -56%); } }
.art-route { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--mono); font-size: 11px; }
.art-route span { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface-2); }
.art-route i { width: 26px; height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); background-size: 200% 100%; animation: flow 1.4s linear infinite; }
@keyframes flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.art-split { display: flex; align-items: center; gap: 4px; padding: 0 6px; }
.art-split i { height: 14px; flex: 0 0 var(--w); border-radius: 7px; background: #5cc8ff; box-shadow: 0 0 22px rgba(92, 200, 255, 0.5); }
.art-split i:last-child { background: var(--spectrum); flex-basis: calc(var(--w) - 4px); }
.art-beam i { position: absolute; left: 10%; top: 50%; height: 2px; width: 80%; transform-origin: left center; border-radius: 2px; background: linear-gradient(90deg, #fff, hsl(var(--h) 95% 65%)); box-shadow: 0 0 14px hsl(var(--h) 95% 60%); animation: fan 3.4s var(--ease) infinite; }
.art-beam i:nth-child(1) { --h: 350; --r: -18deg; } .art-beam i:nth-child(2) { --h: 45; --r: -6deg; } .art-beam i:nth-child(3) { --h: 150; --r: 6deg; } .art-beam i:nth-child(4) { --h: 260; --r: 18deg; }
@keyframes fan { 0%, 100% { transform: rotate(0); opacity: 0.4; } 50% { transform: rotate(var(--r)); opacity: 1; } }

/* board */
.board-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); gap: 2px; }
.seg button { white-space: nowrap; padding: 7px 12px; border-radius: 9px; font-size: 13px; color: var(--muted); transition: background 0.2s, color 0.2s; }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset; }
.seg-wide { display: flex; width: 100%; }
.seg-wide button { flex: 1; }
.filter { height: 40px; width: 170px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); outline: none; font-size: 13px; }
.filter:focus { border-color: var(--border-2); }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.coin-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.3s; }
.coin-card:hover { transform: translateY(-3px); }
.coin-card .cc-glow { position: absolute; width: 180px; height: 180px; right: -60px; top: -80px; border-radius: 50%; background: hsl(var(--h) 95% 60%); filter: blur(60px); opacity: 0.16; transition: opacity 0.4s; pointer-events: none; }
.coin-card:hover .cc-glow { opacity: 0.32; }
.cc-top { display: flex; gap: 12px; align-items: center; position: relative; }
.cc-top .nm { min-width: 0; flex: 1; }
.cc-top b { display: block; font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-top span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.badge { font-family: var(--mono); font-size: 10.5px; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--border-2); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.badge.vote { color: #04140b; background: hsl(var(--h) 95% 66%); border-color: transparent; font-weight: 600; }
.badge.up { color: var(--up); border-color: rgba(124, 255, 178, 0.3); }
.badge.warn { color: var(--warn); border-color: rgba(255, 195, 113, 0.3); }
.cc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; }
.cc-stats div { display: flex; flex-direction: column; gap: 2px; }
.cc-stats b { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.cc-progress { position: relative; }
.cc-progress .bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.cc-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, hsl(var(--h) 90% 55%), hsl(calc(var(--h) + 40) 95% 70%)); border-radius: inherit; }
.cc-progress .lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin-top: 6px; font-family: var(--mono); }
.cc-actions { display: flex; gap: 8px; position: relative; }
.cc-actions .btn { height: 36px; flex: 1; font-size: 13px; border-radius: 10px; }
.board-empty { text-align: center; padding: 56px 24px; }
.board-empty h3 { font-size: 22px; margin: 22px 0 8px; }
.board-empty p { color: var(--muted); margin: 0 0 22px; }
.be-art { display: flex; justify-content: center; gap: 6px; }
.be-art i { width: 10px; height: 46px; border-radius: 6px; background: var(--surface-2); border: 1px dashed var(--border-2); animation: wait 2.4s var(--ease) infinite; }
.be-art i:nth-child(2) { animation-delay: 0.15s; } .be-art i:nth-child(3) { animation-delay: 0.3s; } .be-art i:nth-child(4) { animation-delay: 0.45s; } .be-art i:nth-child(5) { animation-delay: 0.6s; } .be-art i:nth-child(6) { animation-delay: 0.75s; }
@keyframes wait { 50% { transform: scaleY(0.6); opacity: 0.5; } }

/* pillars + trade */
.pillars { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.pillar-stack { display: grid; gap: 16px; }
.pillar { padding: 22px 24px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.pillar h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.pillar p { margin: 0; color: var(--muted); font-size: 14px; }
.p-num { text-align: right; display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.p-num b { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.trade-card { padding: 22px; }
.p-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border-2); font-size: 18px; }
.trade-card { gap: 0; }
.qt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.qt-head h3 { margin: 0; }
.ca { font-size: 11.5px; color: var(--muted); padding: 6px 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); transition: border-color 0.2s, color 0.2s; }
.ca:hover { color: var(--text); border-color: var(--border-2); }

.trade { display: flex; flex-direction: column; gap: 12px; }
.trade .seg { width: 100%; }
.trade .seg button { flex: 1; }
.trade .seg button.on[data-side='buy'] { background: rgba(124, 255, 178, 0.14); color: var(--up); }
.trade .seg button.on[data-side='sell'] { background: rgba(255, 107, 129, 0.14); color: var(--down); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field small { color: var(--dim); }
.field input, .field textarea, .field select {
  width: 100%; border-radius: 12px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.35); outline: none;
  padding: 12px 14px; color: var(--text); font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { border-color: rgba(184, 146, 255, 0.5); box-shadow: 0 0 0 4px rgba(184, 146, 255, 0.12); }
.field.amount { position: relative; flex-direction: row; align-items: center; }
.field.amount input { font-family: var(--mono); font-size: 20px; padding-right: 74px; height: 56px; }
.field.amount .unit { position: absolute; right: 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); pointer-events: none; }
.upper { text-transform: uppercase; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { padding: 6px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); font-family: var(--mono); font-size: 12px; color: var(--muted); transition: all 0.2s; }
.chips button:hover, .chips button.on { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.quote-box { border-radius: 12px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border); padding: 12px 14px; display: grid; gap: 7px; font-size: 13px; }
.quote-box div { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.quote-box b { color: var(--text); font-family: var(--mono); font-weight: 500; text-align: right; }
.quote-box .route { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.balance-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
.balance-line button { color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; }
.slip { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.slip input { width: 54px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: transparent; text-align: center; font-family: var(--mono); font-size: 12px; outline: none; }

/* epochs */
.epochs { display: grid; gap: 12px; }
.epoch { padding: 18px 20px; display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center; }
.epoch .e-id b { display: block; font-family: var(--mono); font-weight: 500; font-size: 15px; }
.epoch .e-id span { font-size: 12px; color: var(--dim); }
.epoch .e-beams { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.beam-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; }
.beam-chip:hover { border-color: hsl(var(--h) 90% 60% / 0.6); }
.beam-chip .mono { color: var(--muted); }
.epoch .e-sum { text-align: right; font-family: var(--mono); font-size: 13px; }
.epoch .e-sum span { display: block; color: var(--dim); font-size: 11.5px; }
.epoch.rolled { opacity: 0.7; }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 550; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--muted); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--muted); font-size: 14.5px; }

/* cta + footer */
.cta { padding-top: clamp(80px, 11vw, 140px); }
.cta-inner { text-align: center; padding: clamp(40px, 7vw, 80px) 24px; overflow: hidden; }
.cta-inner::before { content: ''; position: absolute; inset: auto 10% -60% 10%; height: 120%; background: var(--spectrum); filter: blur(90px); opacity: 0.18; pointer-events: none; }
.cta-inner h2 { position: relative; margin: 0 0 12px; font-size: clamp(32px, 5vw, 64px); letter-spacing: -0.04em; font-weight: 620; }
.cta-inner p { position: relative; color: var(--muted); margin: 0 0 28px; font-size: 17px; }
.footer { margin-top: 100px; padding-top: 44px; padding-bottom: 44px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.footer .brand-name { font-size: 14px; }
.f-brand p { color: var(--muted); font-size: 14px; max-width: 300px; }
.f-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.f-cols div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.f-cols a { color: var(--muted); transition: color 0.2s; cursor: pointer; }
.f-cols a:hover { color: var(--text); }
.disclaimer { grid-column: 1 / -1; color: var(--dim); font-size: 12.5px; margin: 10px 0 0; }

/* ---------- pages ---------- */
.page { min-height: calc(100vh - var(--nav-h)); padding: 34px 0 40px; animation: page-in 0.6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
.back { display: inline-flex; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.back:hover { color: var(--text); }
.page-head { margin-bottom: 30px; max-width: 760px; }
.page-head h1 { font-size: clamp(34px, 5vw, 60px); }
.page-head b { color: var(--text); }

.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.launch-form { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.lf-media { display: grid; grid-template-columns: 148px 1fr; gap: 16px; }
.lf-names { display: grid; gap: 12px; }
.drop {
  width: 148px; height: 148px; border-radius: 20px; border: 1.5px dashed var(--border-2); background: rgba(0, 0, 0, 0.3);
  display: grid; place-items: center; cursor: pointer; overflow: hidden; position: relative; transition: border-color 0.2s, background 0.2s;
}
.drop:hover, .drop.over { border-color: rgba(184, 146, 255, 0.6); background: rgba(184, 146, 255, 0.06); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-hint { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px; }
.drop-hint b { font-size: 13px; font-weight: 550; }
.drop-hint small { font-size: 11px; color: var(--dim); }
.lf-socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lf-socials input { font-size: 13px; padding: 10px 12px; }
.lf-block { padding: 18px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--border); display: grid; gap: 12px; }
.lf-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 550; }
.lf-label b { font-weight: 500; font-size: 13px; color: var(--muted); }
.hint { margin: 0; font-size: 12.5px; color: var(--dim); }
.fine { margin: 0; font-size: 12px; color: var(--dim); text-align: center; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: var(--surface-2); outline: none; }
.spectral-range { background: linear-gradient(90deg, #5cc8ff var(--p, 50%), rgba(255, 255, 255, 0.08) var(--p, 50%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(184, 146, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.5); cursor: grab; }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(184, 146, 255, 0.25); cursor: grab; }
.split-viz, .pc-split { display: flex; gap: 4px; height: 10px; }
.split-viz i, .pc-split i { height: 100%; border-radius: 6px; transition: flex-basis 0.4s var(--ease); }
.split-viz i:first-child, .pc-split i:first-child { background: #5cc8ff; }
.split-viz i:last-child, .pc-split i:last-child { background: var(--spectrum); }
.buy-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.launch-side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }
.preview-card { padding: 22px; overflow: hidden; display: grid; gap: 16px; }
.pc-glow { position: absolute; width: 260px; height: 260px; right: -80px; top: -120px; border-radius: 50%; background: hsl(var(--h, 265) 95% 60%); filter: blur(70px); opacity: 0.3; transition: background 0.6s; }
.pc-top { display: flex; gap: 14px; align-items: center; position: relative; }
.pc-img { width: 64px; height: 64px; border-radius: 18px; background: radial-gradient(circle at 30% 25%, hsl(var(--h, 265) 95% 75%), hsl(var(--h, 265) 80% 35%)); background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset; }
.pc-top b { display: block; font-size: 20px; font-weight: 620; }
.pc-top span { color: var(--muted); font-size: 13px; }
.pc-route { position: relative; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.pc-route span { color: var(--text); padding: 4px 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); }
.pc-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.pc-meta b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.onchain { margin: 0; padding: 20px 20px 20px 40px; display: grid; gap: 12px; font-size: 13px; color: var(--muted); }
.onchain b { color: var(--text); font-family: var(--mono); font-weight: 500; font-size: 12px; }

/* coin page */
.coin-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.coin-head .ttl { flex: 1; min-width: 240px; }
.coin-head h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; font-weight: 640; line-height: 1.05; }
.coin-head .sub { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.coin-head .links { display: flex; gap: 8px; flex-wrap: wrap; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.coin-main { display: grid; gap: 20px; min-width: 0; }
.coin-side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.kpis div { background: rgba(9, 9, 14, 0.9); padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.kpis b { font-family: var(--mono); font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.kpis small { font-family: var(--mono); color: var(--dim); font-size: 11.5px; }
.chart-card { padding: 18px; }
.chart-card .ch-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.chart-card canvas { width: 100%; height: 280px; display: block; }
.chart-empty { height: 280px; display: grid; place-items: center; color: var(--dim); font-size: 14px; text-align: center; padding: 0 20px; }
.split-card { padding: 20px; display: grid; gap: 12px; }
.split-card h3, .side-card h3 { margin: 0; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.sh-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); }
.sh-row span { color: var(--muted); }
.sh-row a { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sh-row b { font-family: var(--mono); font-weight: 500; }
.verify-ok { color: var(--up); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.verify-bad { color: var(--warn); font-size: 13px; }
.side-card { padding: 20px; display: grid; gap: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--dim); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 12.5px; }
.table td a { color: var(--muted); }
.table td a:hover { color: var(--text); }
.table .buy { color: var(--up); } .table .sell { color: var(--down); }
.table-wrap { overflow-x: auto; }
.desc { color: var(--muted); margin: 0; font-size: 14.5px; white-space: pre-wrap; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- modals ---------- */
.modal { padding: 0; border: 0; background: transparent; color: var(--text); max-width: min(560px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 40px); overflow: visible; }
.modal::backdrop { background: rgba(3, 3, 6, 0.7); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.4s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal-box { padding: 24px; background: linear-gradient(180deg, rgba(20, 20, 30, 0.96), rgba(12, 12, 18, 0.96)); max-height: calc(100vh - 40px); overflow: auto; }
.modal-box.wide { min-width: min(640px, calc(100vw - 32px)); }
.modal:has(.wide) { max-width: min(680px, calc(100vw - 32px)); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h3 { margin: 0; font-size: 19px; }
.x { width: 34px; height: 34px; border-radius: 10px; font-size: 22px; line-height: 1; color: var(--muted); border: 1px solid var(--border); }
.x:hover { color: var(--text); background: var(--surface-2); }
.wallet-list { display: grid; gap: 8px; margin-bottom: 16px; }
.wallet-opt { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-align: left; transition: border-color 0.2s, background 0.2s; }
.wallet-opt:hover { border-color: var(--border-2); background: var(--surface-2); }
.wallet-opt .wi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); }
.wallet-opt b { display: block; font-weight: 550; }
.wallet-opt span { font-size: 12px; color: var(--muted); }
.wallet-opt .tag { margin-left: auto; font-size: 11px; font-family: var(--mono); color: var(--up); }
.progress-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.progress-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--dim); font-size: 14px; transition: color 0.3s, background 0.3s; }
.progress-steps li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-2); flex-shrink: 0; }
.progress-steps li.active { color: var(--text); background: var(--surface); }
.progress-steps li.active::before { border-color: rgba(255, 255, 255, 0.2); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.progress-steps li.done { color: var(--muted); }
.progress-steps li.done::before { border-color: var(--up); background: radial-gradient(circle, var(--up) 34%, transparent 38%); }
.progress-steps li.fail { color: var(--down); }
.progress-steps li.fail::before { border-color: var(--down); background: radial-gradient(circle, var(--down) 34%, transparent 38%); }
.progress-steps li small { margin-left: auto; font-size: 12px; color: var(--dim); font-family: var(--mono); }
.pm-result { margin-top: 14px; font-size: 14px; }
.pm-result .err { color: var(--down); background: rgba(255, 107, 129, 0.08); border: 1px solid rgba(255, 107, 129, 0.25); padding: 12px 14px; border-radius: 12px; }
.pm-result .win { text-align: center; padding: 10px 0 0; }
.pm-result .win h4 { font-size: 22px; margin: 12px 0 6px; }
.pm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

.vote-weight { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); margin-bottom: 14px; }
.vote-weight b { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.vote-rows { display: grid; gap: 8px; margin-bottom: 12px; }
.vote-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 140px 64px 28px; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.vote-row .nm b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-row .nm span { font-size: 11.5px; color: var(--dim); font-family: var(--mono); }
.vote-row input[type='number'] { width: 64px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.3); text-align: center; font-family: var(--mono); outline: none; }
.vote-row .rm { color: var(--dim); font-size: 18px; }
.vote-row .rm:hover { color: var(--down); }
.vote-add { position: relative; }
.vote-add input { width: 100%; height: 42px; border-radius: 12px; border: 1px dashed var(--border-2); background: transparent; padding: 0 14px; outline: none; font-size: 14px; }
.vote-sugg { position: absolute; left: 0; right: 0; top: 46px; z-index: 5; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: #12121a; border: 1px solid var(--border-2); max-height: 240px; overflow: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.vote-sugg button { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; text-align: left; font-size: 13px; }
.vote-sugg button:hover { background: var(--surface-2); }
.vote-total { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; font-size: 13px; color: var(--muted); }
.vote-total b.bad { color: var(--down); }

/* toasts */
.toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { padding: 13px 16px; border-radius: 14px; background: rgba(18, 18, 26, 0.96); border: 1px solid var(--border-2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); font-size: 14px; animation: toast-in 0.4s var(--ease); }
.toast.good { border-color: rgba(124, 255, 178, 0.35); }
.toast.bad { border-color: rgba(255, 107, 129, 0.4); }
.toast a { text-decoration: underline; text-underline-offset: 3px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-links a:nth-child(6) { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .search input { width: 160px; } .search input:focus { width: 200px; }
}
@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; padding: 12px var(--gutter) 18px; background: rgba(5, 5, 7, 0.96); border-bottom: 1px solid var(--border); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav-links a:nth-child(6) { display: block; }
  .menu-btn { display: block; }
  .search { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-beam { max-width: 420px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .spectrum-grid, .launch-grid, .coin-grid { grid-template-columns: 1fr; }
  .launch-side, .coin-side { position: static; }
  .faq { grid-template-columns: 1fr; }
  .epoch { grid-template-columns: 1fr; }
  .epoch .e-sum { text-align: left; }
  .footer { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .quote-pill b { display: none; }
  .hero { padding-top: 24px; }
  .hero-title { font-size: clamp(40px, 12vw, 60px); }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -20px; }
  .stat:last-child { grid-column: 1 / -1; }
  .steps, .pillars { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 34px minmax(0, 1fr); }
  .p-num { grid-column: 2; text-align: left; }
  .step { min-height: 0; }
  .lf-media { grid-template-columns: 1fr; }
  .drop { width: 100%; height: 180px; }
  .lf-socials { grid-template-columns: 1fr; }
  .alloc-row { grid-template-columns: 22px 34px minmax(0, 1fr) auto; }
  .alloc-row .proj { display: none; }
  .vote-row { grid-template-columns: 30px minmax(0, 1fr) 60px 24px; }
  .vote-row input[type='range'] { display: none; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .board-tools { width: 100%; }
  .seg#sort { overflow-x: auto; max-width: 100%; }
  .filter { flex: 1; }
  .buy-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
