:root {
  --bg: #040605;
  --panel: #0a0f0b;
  --panel2: #0e150f;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --accent: #3ee04a;
  --accent-dim: rgba(62, 224, 74, .14);
  --text: #f3f6f3;
  --mute: #8b968c;
  --r: 18px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body);
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 78% -5%, rgba(62, 224, 74, .10), transparent 60%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: auto, 100% 4px;
}
img { max-width: 100%; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--mute); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px); background: rgba(4, 6, 5, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--mute); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px;
  border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #031004;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(62, 224, 74, .28); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-small { padding: 9px 15px; font-size: 13px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--mute); font: 500 12px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--accent); }

/* hero */
.hero {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px) 26px; max-width: 1320px; margin: 0 auto;
  container-type: inline-size;
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; opacity: .55; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; min-width: 0; animation: rise .8s ease both; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(62,224,74,.6); animation: ping 1.8s infinite; flex: none; }
.title {
  margin: 0; font: 800 clamp(54px, 10.5cqi, 150px)/.86 var(--display); letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff 30%, #b9f5bd); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hook { max-width: 560px; margin: 22px 0 26px; font-size: clamp(17px, 2vw, 21px); line-height: 1.45; color: #d6ded7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--mute); font-size: 14px; }
.hero-facts b { color: var(--text); font-family: var(--mono); margin-right: 4px; }
.hero-art { position: relative; z-index: 1; display: flex; justify-content: center; animation: rise 1s .1s ease both; }
.hero-mascot { width: min(440px, 100%); }

/* ticker */
.ticker { display: flex; align-items: stretch; border-block: 1px solid var(--line); background: rgba(10, 15, 11, .7); overflow: hidden; }
.ticker-label { flex: none; padding: 12px 16px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border-right: 1px solid var(--line); display: flex; align-items: center; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-row { display: flex; width: max-content; animation: slide 70s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker-wait { padding: 12px 16px; color: var(--mute); font-size: 13px; }
.tick { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; background: none; color: var(--text); font: 500 13px var(--body); cursor: pointer; white-space: nowrap; }
.tick:hover { background: var(--accent-dim); }
.tick img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #111; }
.tick .mono { color: var(--mute); }
.up { color: var(--accent) !important; }
.down { color: #ff7a7a !important; }

/* sections */
section { scroll-margin-top: 70px; }
.app, .who, .door { max-width: 1320px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 48px) 0; }
.sec-head { margin-bottom: 22px; }
.sec-num { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sec-head h2, .token h2 { margin: 8px 0 0; font: 800 clamp(28px, 4.4vw, 50px)/1.02 var(--display); letter-spacing: -.03em; }
.sec-sub { max-width: 640px; color: var(--mute); margin: 12px 0 0; }
.sec-sub b { color: var(--text); }
.panel { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.mini-label { margin: 0 0 10px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* app */
.app-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.search { display: flex; gap: 8px; margin-bottom: 18px; }
.search input, .trade input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: #050806; color: var(--text);
  font: 400 13px var(--mono); outline: none;
}
.search input:focus { border-color: var(--accent); }
.coin-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; max-height: 520px; overflow-y: auto; }
.coin-btn {
  width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 12px; border: 1px solid transparent; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit;
}
.coin-btn:hover { background: rgba(255,255,255,.04); }
.coin-btn.on { border-color: rgba(62,224,74,.5); background: var(--accent-dim); }
.coin-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #111; }
.coin-btn b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-btn small { color: var(--mute); font: 400 11px var(--mono); }
.coin-btn .chg { font: 600 12px var(--mono); }

.room-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.coin-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coin-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #111; flex: none; }
.coin-name { font: 800 24px/1.1 var(--display); overflow-wrap: anywhere; }
.coin-sub { color: var(--mute); font-size: 12px; overflow-wrap: anywhere; }
.room-status { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line2); font: 600 12px var(--mono); }
.room-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.stat { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); min-width: 0; }
.stat span { display: block; font: 500 11px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.stat b { font: 600 16px var(--mono); overflow-wrap: anywhere; }

.stage { border-radius: 14px; border: 1px dashed var(--line2); padding: 14px; background: rgba(0,0,0,.25); }
.stage-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.spk {
  --lvl: 0; position: relative; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.spk.talking { border-color: var(--accent); box-shadow: 0 0 0 calc(var(--lvl) * 6px) rgba(62,224,74,.18); }
.spk-top { display: flex; align-items: center; gap: 10px; }
.mic {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255,255,255,.06); border: 1px solid var(--line2);
}
.mic svg { width: 18px; height: 18px; fill: var(--mute); }
.spk.talking .mic { background: var(--accent); border-color: var(--accent); }
.spk.talking .mic svg { fill: #031004; }
.spk.muted .mic svg { fill: #ff7a7a; }
.spk-name { font: 600 14px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spk-name a { text-decoration: none; }
.spk-name a:hover { color: var(--accent); }
.spk-you { font: 600 10px var(--mono); color: #031004; background: var(--accent); padding: 2px 6px; border-radius: 6px; margin-left: 4px; }
.bag { margin-top: 10px; font: 600 15px var(--mono); }
.bag small { display: block; color: var(--mute); font-weight: 400; font-size: 11px; }
.bagbar { height: 4px; margin-top: 8px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bagbar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.tag { font: 500 10.5px var(--mono); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line2); color: #cfd8d0; }
.tag-g { border-color: rgba(62,224,74,.5); color: var(--accent); }
.tag-w { border-color: rgba(255,255,255,.5); color: #fff; }
.hand { position: absolute; top: 10px; right: 10px; font: 700 11px var(--mono); color: #031004; background: #fff; padding: 2px 7px; border-radius: 6px; }

.empty-line { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 6px 4px; }
.empty-line .eq { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.empty-line .eq i { width: 6px; border-radius: 3px; background: var(--accent); opacity: .7; animation: eq 1.1s ease-in-out infinite; }
.empty-line .eq i:nth-child(2) { animation-delay: .15s } .empty-line .eq i:nth-child(3) { animation-delay: .3s } .empty-line .eq i:nth-child(4) { animation-delay: .45s } .empty-line .eq i:nth-child(5) { animation-delay: .6s }
.empty-line b { display: block; font-size: 15px; }
.empty-line p { margin: 2px 0 0; color: var(--mute); font-size: 13px; }

.room-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.btn-join { padding: 15px 26px; font-size: 16px; }
.ctrls { display: flex; flex-wrap: wrap; gap: 8px; }
.ctrl { padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: var(--text); font: 600 14px var(--body); cursor: pointer; }
.ctrl:hover { border-color: var(--accent); }
.ctrl.on { background: #fff; color: #000; }
.ctrl-leave { border-color: rgba(255,122,122,.5); color: #ff9a9a; }
.room-note { flex: 1 1 260px; margin: 0; color: var(--mute); font-size: 13px; }
.room-note.warn { color: #fff; }

.trade { margin-top: 16px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.trade-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.trade-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.trade-k { font: 600 12px var(--mono); color: var(--mute); margin: 0 2px 0 6px; }
.trade-k:first-child { margin-left: 0; }
.chip { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line2); background: none; color: var(--text); font: 600 13px var(--mono); cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--accent); background: var(--accent-dim); }
.chip-warn:hover { border-color: #ff7a7a; background: rgba(255,122,122,.1); }
.trade .small { margin: 10px 0 0; }

.log { margin-top: 16px; }
.log ol { list-style: none; margin: 0; padding: 0; max-height: 150px; overflow-y: auto; font: 400 12px/1.7 var(--mono); color: #c5cec6; }
.log time { color: var(--mute); margin-right: 8px; }

/* who */
.who-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; align-items: start; }
.findings { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.findings li { position: relative; padding: 12px 14px 12px 40px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 15px; }
.findings li::before { content: ""; position: absolute; left: 15px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.findings li.hot::before { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.findings li.muted::before { background: var(--mute); }
.findings b { font-family: var(--mono); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.seat-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.seats { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; margin: 12px 0 8px; }
.seat { aspect-ratio: 1; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.08); cursor: pointer; transition: transform .12s; }
.seat:hover, .seat.on { transform: scale(1.35); outline: 1px solid #fff; }
.s-group { background: var(--accent); }
.s-bundle { background: repeating-linear-gradient(45deg, var(--accent) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--accent); }
.s-fresh { background: #fff; }
.s-kol { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
.s-dev { background: #8f9a90; box-shadow: inset 0 0 0 2px var(--accent); }
.seat-tip { min-height: 40px; margin: 0 0 14px; overflow-wrap: anywhere; }
.seat-tip a { color: var(--accent); }
.groups-label { margin-top: 6px; }
.groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.groups li { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 14px; }
.groups .g-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.groups a { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.groups .gbar { height: 4px; border-radius: 4px; margin-top: 8px; background: rgba(255,255,255,.07); overflow: hidden; }
.groups .gbar i { display: block; height: 100%; background: var(--accent); }
.kols { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.kol { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line2); text-decoration: none; font: 500 13px var(--body); }
.kol img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.kol:hover { border-color: var(--accent); }

/* door */
.flow { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: f; }
.flow li { position: relative; padding: 18px 18px 18px 0; border-top: 2px solid var(--line2); display: grid; gap: 6px; align-content: start; }
.flow li::after { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--accent); animation: fill 6s ease-in-out infinite; }
.flow li:nth-child(2)::after { animation-delay: 1.2s } .flow li:nth-child(3)::after { animation-delay: 2.4s } .flow li:nth-child(4)::after { animation-delay: 3.6s } .flow li:nth-child(5)::after { animation-delay: 4.8s }
.flow-n { font: 600 12px var(--mono); color: var(--accent); }
.flow b { font: 700 20px var(--display); }
.flow span:last-child { color: var(--mute); font-size: 14px; }
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--panel); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-family: var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: #c5cec6; font-size: 15px; }

/* token */
.token {
  max-width: 1320px; margin: 70px auto 0; padding: 0 clamp(16px, 4vw, 48px);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center;
}
.token-art { display: flex; justify-content: center; }
.token-mascot { width: min(360px, 100%); }
.token-copy p { color: #c5cec6; font-size: 18px; max-width: 520px; }
.ca-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; margin: 22px 0 18px; border-radius: 14px; border: 1px dashed rgba(62,224,74,.5); background: rgba(62,224,74,.05); max-width: 620px; }
.ca-k { font: 600 12px var(--mono); color: var(--accent); }
.ca-box code { flex: 1; min-width: 0; font: 500 14px var(--mono); overflow-wrap: anywhere; }
.token-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: 1320px; margin: 70px auto 0; padding: 22px clamp(16px, 4vw, 48px) 36px; border-top: 1px solid var(--line); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 100; padding: 12px 18px; border-radius: 12px; background: #fff; color: #000; font: 600 14px var(--body); transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: #000; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(62,224,74,.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(62,224,74,0); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes eq { 0%, 100% { height: 8px; } 50% { height: 38px; } }
@keyframes fill { 0% { width: 0; } 30%, 70% { width: 100%; } 100% { width: 100%; opacity: 0; } }

@media (max-width: 1000px) {
  .app-grid, .who-grid { grid-template-columns: 1fr; }
  .coin-list { max-height: 260px; }
  .flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; padding-top: 22px; }
  .hero-art { order: -1; }
  .hero-mascot { width: min(230px, 62vw); }
  .title { font-size: clamp(54px, 19cqi, 120px); }
  .room-stats { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .seats { grid-template-columns: repeat(10, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow li { padding-right: 0; }
  .token { grid-template-columns: 1fr; text-align: left; }
  .token-mascot { width: min(240px, 64vw); }
  .ca-box { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
