/* =========================================================
   GmOs — shared styles (home + app shell + pages)
   ========================================================= */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #030303;
  --bg2: #0a0908;
  --panel: rgba(15, 13, 12, .84);
  --panel-solid: #0f0d0c;
  --panel2: #161412;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .13);
  --line3: rgba(255, 255, 255, .22);
  --text: #f4f0ec;
  --muted: #a89f97;
  --dim: #6e6760;
  --accent: #ff6a2b;
  --accent2: #ff8c42;
  --accent-soft: rgba(255, 106, 43, .1);
  --accent-line: rgba(255, 138, 66, .45);
  --ink: #1a0802;
  --copper: #d8956a;
  --up: #3ddc84;
  --down: #ff5c5c;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --f-display: "Archivo", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font: 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: #120600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--ink); border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

.display { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: .95; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.up { color: var(--up); }
.down { color: var(--down); }
.accent { color: var(--accent); }
.copper { color: var(--copper); }
i[data-icon] { display: inline-flex; font-style: normal; }
i[data-icon] svg, .ic { width: 16px; height: 16px; flex: none; }

/* ---------- animated background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; }
.bg-blob {
  position: absolute; width: 72vmax; height: 72vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(160, 84, 36, .5), rgba(96, 44, 16, .22) 55%, transparent 74%);
  will-change: transform;
}
.bg-blob.b1 { left: -22vmax; top: -26vmax; animation: drift1 28s var(--ease) infinite alternate; }
.bg-blob.b2 { right: -26vmax; bottom: -34vmax; animation: drift2 34s var(--ease) infinite alternate; background: radial-gradient(closest-side, rgba(140, 66, 28, .45), rgba(70, 30, 12, .2) 58%, transparent 74%); }
.bg-blob.b3 { left: 30%; top: 20%; width: 46vmax; height: 46vmax; animation: drift3 40s var(--ease) infinite alternate; background: radial-gradient(closest-side, rgba(110, 58, 30, .32), transparent 72%); }
.bg-ribbon {
  position: absolute; left: -30%; top: 18%; width: 160%; height: 26vmax;
  background: linear-gradient(90deg, transparent, rgba(54, 30, 18, .55) 30%, rgba(90, 50, 28, .35) 50%, rgba(40, 22, 14, .5) 70%, transparent);
  transform: rotate(-18deg); border-radius: 50%;
  animation: ribbon 22s ease-in-out infinite alternate; will-change: transform;
}
.bg-ribbon.r2 { top: 58%; height: 18vmax; transform: rotate(-24deg); opacity: .7; animation-duration: 30s; animation-direction: alternate-reverse; }
.bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, .78) 1.25px, transparent 1.6px);
  background-size: 4px 4px;
}
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(0, 0, 0, .78) 100%); }
.bg.calm .bg-blob { opacity: .55; }
.bg.calm .bg-ribbon { opacity: .35; }

@keyframes drift1 { to { transform: translate3d(18vmax, 12vmax, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-16vmax, -10vmax, 0) scale(1.08); } }
@keyframes drift3 { to { transform: translate3d(-18vmax, 14vmax, 0) scale(.9); } }
@keyframes ribbon { to { transform: rotate(-12deg) translate3d(6%, 4vmax, 0); } }

/* ---------- mascot (sun) ---------- */
.sun { width: 36px; height: 36px; overflow: visible; flex: none; }
.sun .sun-rays { transform-origin: 32px 32px; animation: sunspin 18s linear infinite; }
.sun .sun-eyes { transform-origin: 32px 29px; animation: blink 5.2s infinite; }
.sun .sun-face { transition: transform .4s var(--ease-out); transform-origin: 32px 32px; }
a:hover .sun .sun-face, button:hover .sun .sun-face { transform: rotate(-8deg) scale(1.06); }
@keyframes sunspin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .03);
  font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .25s var(--ease-out), box-shadow .25s;
}
.btn:hover { border-color: var(--line3); background: rgba(255, 255, 255, .065); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .16) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary {
  background: linear-gradient(180deg, #ff8f55, #f2611f); border-color: #ff9d62; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 106, 43, .18), 0 10px 30px -10px rgba(255, 106, 43, .7);
}
.btn-primary:hover { background: linear-gradient(180deg, #ffa06c, #ff6a2b); border-color: #ffb07e; box-shadow: 0 0 0 1px rgba(255, 106, 43, .3), 0 14px 38px -10px rgba(255, 106, 43, .9); }
.btn-ghost-accent { border-color: var(--accent-line); color: #ffb994; background: rgba(255, 106, 43, .07); }
.btn-ghost-accent:hover { border-color: #ff9d62; background: rgba(255, 106, 43, .14); color: #ffd2b8; }
.btn-dark { background: #0c0b0a; }
.btn-link { border: 0; background: none; padding: 0 4px; color: var(--copper); }
.btn-link:hover { background: none; color: #ffc29a; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 7px; }
.btn-sm.btn-icon { width: 32px; padding: 0; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 14.5px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn .wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(61, 220, 132, .18); }

/* ---------- home nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 28px; border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, .7); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  animation: navIn .8s var(--ease-out) both;
}
@keyframes navIn { from { transform: translateY(-100%); opacity: 0; } }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -.015em; justify-self: start; }
.brand .sun { width: 40px; height: 40px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative; padding: 26px 0; color: var(--muted);
  font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 17px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.nav-menu { display: none; }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 49; display: grid; gap: 4px; padding: 14px 20px 20px;
  background: rgba(6, 6, 6, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease-out);
}
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 12px 6px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; border-bottom: 1px solid var(--line); }

.announce {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px;
  font-size: 13px; color: #ffd2b8; background: linear-gradient(90deg, rgba(255, 106, 43, .05), rgba(255, 106, 43, .16), rgba(255, 106, 43, .05));
  border-bottom: 1px solid rgba(255, 138, 66, .2);
}
.announce[hidden] { display: none; }

/* ---------- home ---------- */
.home {
  max-width: 1240px; margin: 0 auto; padding: 34px 28px 34px;
  min-height: calc(100vh - var(--nav-h) - 46px);
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.token-strip { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }
.home-grid { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }

/* entrance */
.rise { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.985); } }
.slide-r { animation: slideR .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 160ms); }
@keyframes slideR { from { opacity: 0; transform: translate3d(-34px, 0, 0); } }

/* ---------- token card + CA box ---------- */
.panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.token-card { padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.token-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(600px 120px at var(--mx, 20%) -20%, rgba(255, 106, 43, .14), transparent 70%);
}
.tc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ticker-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: rgba(255, 106, 43, .12); border: 1px solid rgba(255, 138, 66, .35);
  color: #ffbf9b; font: 700 12px var(--f-mono); letter-spacing: .04em;
}
.tc-title { font-size: 13px; color: var(--muted); }
.status-pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px;
  border-radius: 999px; font: 600 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: #ffb994; background: rgba(255, 106, 43, .08); border: 1px solid rgba(255, 138, 66, .25);
}
.status-pill.live { color: #8ff0b8; background: rgba(61, 220, 132, .08); border-color: rgba(61, 220, 132, .3); }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.ca-box {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 8px; border-radius: 12px; background: #0a0908;
  box-shadow: inset 0 0 0 1px var(--line);
}
.ca-box::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--ang), transparent 0deg, rgba(255, 138, 66, .95) 60deg, rgba(255, 214, 170, .5) 90deg, transparent 150deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spinAng 3.6s linear infinite;
}
@keyframes spinAng { to { --ang: 360deg; } }
.ca-tag {
  flex: none; display: grid; place-items: center; height: 34px; padding: 0 12px; border-radius: 8px;
  background: linear-gradient(180deg, #ff8f55, #f2611f); color: var(--ink); font: 800 12px var(--f-mono); letter-spacing: .08em;
}
.ca-value {
  flex: 1; min-width: 0; font: 500 14.5px var(--f-mono); letter-spacing: .02em; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: all;
}
.ca-value.scrambling { color: #8c6a55; user-select: none; }
.ca-value .hot { color: var(--accent2); }
.ca-copy { flex: none; }
.ca-copy.copied { background: linear-gradient(180deg, #57e39a, #2fbf73); border-color: #74f0ad; color: #03170b; }
.tc-bottom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 32px; }
.tc-hint { font-size: 12.5px; color: var(--dim); }
.tc-links { display: flex; gap: 6px; flex-wrap: wrap; }
.market-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.market-row[hidden] { display: none; }
.mstat { padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.mstat b { display: block; font: 600 14px var(--f-mono); }
.mstat span { font: 500 10.5px var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }

.x-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 16px 18px;
  overflow: hidden; transition: border-color .3s, transform .5s var(--ease-out);
}
.x-card:hover { border-color: rgba(255, 255, 255, .2); }
.x-card .x-row { display: flex; align-items: center; gap: 14px; }
.x-logo {
  position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: #f4f0ec; color: #050505;
}
.x-logo svg { width: 24px; height: 24px; }
.x-logo::before, .x-logo::after {
  content: ""; position: absolute; inset: -1px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, .5);
  animation: ring 2.6s var(--ease-out) infinite;
}
.x-logo::after { animation-delay: 1.3s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.55); opacity: 0; } }
.x-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.x-card p { font-size: 13px; color: var(--muted); }
.x-card .btn { align-self: flex-start; }
.x-card .x-bg {
  position: absolute; right: -30px; bottom: -40px; width: 170px; height: 170px; opacity: .05; color: #fff; pointer-events: none;
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-4deg); } }

/* ---------- accordion cards ---------- */
.acc { display: flex; flex-direction: column; gap: 10px; }
.acc-item {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r);
  border: 1px solid var(--line); background: #0c0a09;
  transition: border-color .35s, box-shadow .45s var(--ease-out), transform .45s var(--ease-out);
}
.acc-item:hover { border-color: var(--line2); }
.acc-item.open { border-color: rgba(255, 138, 66, .32); box-shadow: 0 24px 60px -34px rgba(255, 106, 43, .7); }
.acc-scene { position: absolute; inset: 0; z-index: -2; opacity: .62; transform: scale(1.04); transition: opacity .7s, transform 1.2s var(--ease-out); }
.acc-item.open .acc-scene, .acc-item:hover .acc-scene { opacity: 1; transform: scale(1); }
.acc-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 7, 6, .94) 0%, rgba(8, 7, 6, .72) 38%, rgba(8, 7, 6, .12) 78%); }
.acc-head { display: flex; align-items: center; gap: 16px; width: 100%; height: 62px; padding: 0 18px; text-align: left; }
.acc-num { font: 500 11px var(--f-mono); color: var(--dim); transition: color .3s; }
.acc-item.open .acc-num { color: var(--accent2); }
.acc-title { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 27px; text-transform: uppercase; letter-spacing: .005em; line-height: 1; }
.acc-chev { margin-left: auto; color: var(--muted); transition: transform .45s var(--ease-out), color .3s; }
.acc-item.open .acc-chev { transform: rotate(180deg); color: var(--text); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; min-height: 0; }
.acc-inner { padding: 2px 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.acc-inner p { font-size: 14px; color: #d6cdc5; max-width: 34ch; opacity: 0; transform: translateY(10px); transition: opacity .5s .12s, transform .6s .12s var(--ease-out); }
.acc-inner .btn { opacity: 0; transform: translateY(10px); transition: opacity .5s .2s, transform .6s .2s var(--ease-out), background .2s, border-color .2s; background: rgba(10, 9, 8, .72); }
.acc-item.open .acc-inner p, .acc-item.open .acc-inner .btn { opacity: 1; transform: none; }
.acc-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), #ffc08f); transform: scaleX(0); transform-origin: left; opacity: 0; }
.acc-item.open.cycling .acc-progress { opacity: 1; animation: prog var(--cycle, 6s) linear forwards; }
@keyframes prog { to { transform: scaleX(1); } }

/* scene: OTC (sealed deal) */
.scene-otc { background: radial-gradient(ellipse 60% 120% at 78% 50%, #3c2617 0%, #1a110c 55%, #0c0908 100%); }
.scene-otc .paper { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 220, 180, .035) 0 1px, transparent 1px 9px); mask: linear-gradient(90deg, transparent 30%, #000 70%); }
.scene-otc .seal { position: absolute; right: 9%; top: 50%; width: 132px; height: 132px; margin-top: -66px; }
.scene-otc .seal-core { position: absolute; inset: 26px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #a3412b, #6a1c12 55%, #3a0b07); box-shadow: 0 0 0 4px rgba(120, 30, 18, .55), 0 0 40px rgba(255, 90, 40, .35), inset 0 -6px 14px rgba(0, 0, 0, .5); animation: sealPulse 4s ease-in-out infinite; }
.scene-otc .seal-core::after { content: ""; position: absolute; inset: 16px; border-radius: 50%; border: 1.5px dashed rgba(255, 200, 170, .35); }
.scene-otc .seal-ring { position: absolute; inset: 0; animation: sunspin 22s linear infinite; }
.scene-otc .seal-ring text { font: 600 9px var(--f-mono); letter-spacing: .32em; fill: rgba(255, 200, 160, .55); }
.scene-otc .glint { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 210, 170, .1) 50%, transparent 60%); background-size: 300% 100%; animation: glint 6s ease-in-out infinite; }
@keyframes sealPulse { 50% { box-shadow: 0 0 0 4px rgba(120, 30, 18, .55), 0 0 64px rgba(255, 110, 50, .55), inset 0 -6px 14px rgba(0, 0, 0, .5); } }
@keyframes glint { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }

/* scene: Launchpad (tower + beam + sparks) */
.scene-launch { background: linear-gradient(180deg, #1d140e, #0b0807 70%); }
.scene-launch .tower { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 210, 170, .06) 0 1px, transparent 1px 26px), repeating-linear-gradient(0deg, rgba(255, 210, 170, .05) 0 1px, transparent 1px 30px); mask: linear-gradient(90deg, transparent 25%, #000 60%, #000 85%, transparent); }
.scene-launch .beam { position: absolute; left: 58%; top: -10%; bottom: -10%; width: 54px; margin-left: -27px; background: linear-gradient(0deg, rgba(255, 140, 70, 0) 0%, rgba(255, 170, 110, .55) 45%, rgba(255, 236, 214, .95) 100%); filter: blur(10px); animation: beam 2.8s ease-in-out infinite; transform-origin: bottom; }
.scene-launch .beam-core { position: absolute; left: 58%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: linear-gradient(0deg, transparent, #fff2e4 70%); opacity: .8; animation: beam 1.9s ease-in-out infinite; }
.scene-launch .smoke { position: absolute; left: 30%; right: -10%; bottom: -40%; height: 90%; background: radial-gradient(ellipse at 50% 70%, rgba(200, 150, 120, .3), transparent 60%); animation: smoke 7s ease-in-out infinite alternate; }
.scene-launch .spark { position: absolute; bottom: -6px; width: 3px; height: 3px; border-radius: 50%; background: #ffd9b0; box-shadow: 0 0 8px 2px rgba(255, 150, 80, .8); animation: spark linear infinite; opacity: 0; }
@keyframes beam { 50% { opacity: .65; transform: scaleX(.85); } }
@keyframes smoke { to { transform: translateX(-8%) scale(1.15); opacity: .7; } }
@keyframes spark { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(var(--dx, 10px), -260px); opacity: 0; } }

/* scene: DEX (light streaks) */
.scene-dex { background: radial-gradient(ellipse 70% 140% at 80% 60%, #3a1d0d, #140b07 55%, #0a0706); }
.scene-dex svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-dex .streak { fill: none; stroke-linecap: round; animation: dash linear infinite; }
.scene-dex .streak.glow { opacity: .35; }
@keyframes dash { to { stroke-dashoffset: var(--to, -900); } }

/* scene: Terminal (candles) */
.scene-term { background: linear-gradient(180deg, #170d09, #0a0706); }
.scene-term .grid { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 24px); }
.scene-term svg { position: absolute; top: 0; bottom: 0; left: 0; height: 100%; width: 200%; animation: candles 26s linear infinite; }
@keyframes candles { to { transform: translateX(-50%); } }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; min-height: 496px; overflow: hidden; border-radius: var(--r-lg); }
.home-grid .chat { height: 520px; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); flex: none; }
.chat-head .sun { width: 32px; height: 32px; }
.chat-head b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.chat-head .online { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--f-mono); color: var(--up); margin-left: 4px; }
.chat-head .online .pulse { width: 6px; height: 6px; }
.chat-head .btn-icon { margin-left: auto; color: var(--muted); border-color: transparent; background: none; }
.chat-head .btn-icon:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.chat-head .btn-icon:hover svg { transform: rotate(-200deg); }
.chat-head .btn-icon svg { transition: transform .6s var(--ease-out); }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: #2a2522 transparent; }
.chat-intro { margin: auto; width: 100%; max-width: 360px; }
.chat-intro small { display: block; font-size: 13px; color: var(--muted); animation: rise .7s var(--ease-out) both .5s; }
.chat-intro h2 { font-size: 30px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin: 6px 0 18px; animation: rise .7s var(--ease-out) both .6s; }
.chat-intro h2 .type-caret { display: inline-block; width: 2px; height: .9em; margin-left: 3px; vertical-align: -2px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat-sugs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sug {
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025); font-size: 13.5px; color: #e2d9d1; text-align: left;
  transition: border-color .25s, background .25s, transform .35s var(--ease-out);
  animation: rise .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 700ms);
}
.sug:hover { border-color: rgba(255, 138, 66, .5); background: rgba(255, 106, 43, .08); transform: translateY(-2px); }
.sug svg { color: var(--accent2); }
.chat-form { flex: none; padding: 12px; border-top: 1px solid var(--line); }
.chat-field {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 11px;
  border: 1px solid var(--line2); background: #0b0a09; transition: border-color .25s, box-shadow .25s;
}
.chat-field:focus-within { border-color: rgba(255, 138, 66, .6); box-shadow: 0 0 0 4px rgba(255, 106, 43, .12); }
.chat-input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: none; font-size: 15px; }
.chat-input::placeholder { color: var(--dim); }
.chat-send { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--dim); transition: background .25s, color .25s, transform .3s var(--ease-out); }
.chat-send.ready { background: var(--accent); color: var(--ink); }
.chat-send.ready:hover { transform: translateY(-2px); }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 94%; animation: msgIn .5s var(--ease-out) both; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.msg-av { flex: none; width: 28px; height: 28px; }
.msg-av .sun { width: 28px; height: 28px; }
.msg-bubble { padding: 10px 14px; border-radius: 13px 13px 13px 4px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); font-size: 14px; line-height: 1.55; min-width: 0; overflow-wrap: anywhere; }
.msg.user .msg-bubble { border-radius: 13px 13px 4px 13px; background: linear-gradient(180deg, rgba(255, 122, 58, .24), rgba(255, 106, 43, .13)); border-color: rgba(255, 138, 66, .38); }
.msg-bubble b { color: #ffd2b8; font-weight: 600; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); font-size: 12.5px; font-weight: 500;
  transition: border-color .2s, background .2s, transform .3s var(--ease-out);
}
.chip:hover { border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-1px); }
.chip svg { width: 13px; height: 13px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1.1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

.tok-mini {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  margin-top: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .28);
  transition: border-color .2s, transform .3s var(--ease-out);
}
.tok-mini:hover { border-color: var(--accent-line); transform: translateX(3px); }
.tok-ico { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #2a1d15; display: grid; place-items: center; font: 700 13px var(--f-mono); color: #ffb994; overflow: hidden; flex: none; }
.tok-ico img { width: 100%; height: 100%; object-fit: cover; }
.tok-name { min-width: 0; }
.tok-name b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok-name span { font: 500 11.5px var(--f-mono); color: var(--dim); }
.tok-num { text-align: right; font: 500 12.5px var(--f-mono); }
.tok-num small { display: block; font-size: 11px; }

/* ---------- marquee strip (home bottom) ---------- */
.strip { height: 46px; display: flex; align-items: center; overflow: hidden; border-top: 1px solid var(--line); background: rgba(5, 5, 5, .7); backdrop-filter: blur(10px); font-size: 12.5px; }
.strip-label, .tick-label { flex: none; z-index: 1; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px; color: var(--accent2); font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; border-right: 1px solid var(--line); background: #060505; }
.strip-track, .tick-track { flex: 1; min-width: 0; overflow: hidden; mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee { display: flex; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.m-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; white-space: nowrap; border-right: 1px solid var(--line); transition: background .2s; }
.m-item:hover { background: rgba(255, 255, 255, .03); }
.m-item b { font-weight: 700; letter-spacing: .02em; }
.m-item .tok-ico { width: 20px; height: 20px; font-size: 9px; }
.m-item span { font-family: var(--f-mono); color: var(--muted); }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 16px; right: 16px; bottom: 24px; z-index: 200; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 11px;
  background: rgba(20, 17, 15, .96); border: 1px solid var(--line2); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .8);
  font-size: 13.5px; animation: toastIn .45s var(--ease-out) both;
}
.toast.ok svg { color: var(--up); }
.toast.err svg { color: var(--down); }
.toast.out { animation: toastOut .35s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- modal / forms ---------- */
dialog.modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border-radius: 16px;
  border: 1px solid var(--line2); background: #0f0d0c; color: var(--text); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9);
}
dialog.modal[open] { animation: modalIn .45s var(--ease-out) both; }
dialog.modal::backdrop { background: rgba(0, 0, 0, .66); backdrop-filter: blur(6px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; font-weight: 700; }
.modal-head .btn { margin-left: auto; }
.modal-body { padding: 18px 20px 20px; display: grid; gap: 14px; }
.modal-note { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.field { display: grid; gap: 6px; }
.field label { font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line2); background: #0a0908; outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(255, 138, 66, .6); box-shadow: 0 0 0 4px rgba(255, 106, 43, .12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field small { font-size: 11.5px; color: var(--dim); }
.wallet-list { display: grid; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); text-align: left; transition: border-color .2s, background .2s, transform .3s var(--ease-out); }
.wallet-opt:hover { border-color: var(--accent-line); background: var(--accent-soft); transform: translateX(3px); }
.wallet-opt .w-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.wallet-opt small { margin-left: auto; font: 500 11px var(--f-mono); color: var(--dim); }

/* =========================================================
   App shell (inner pages)
   ========================================================= */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; z-index: 60; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 12px 14px; border-right: 1px solid var(--line); background: rgba(6, 6, 6, .92); overflow-y: auto;
  animation: sideIn .7s var(--ease-out) both;
}
@keyframes sideIn { from { transform: translateX(-30px); opacity: 0; } }
.side-brand { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.side-brand .sun { width: 34px; height: 34px; }
.side-close { display: none; margin-left: auto; }
.side-label { padding: 16px 10px 6px; font: 600 10.5px var(--f-mono); letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 8px;
  color: var(--muted); font-size: 13.5px; font-weight: 500; transition: background .2s, color .2s;
}
.side-link:hover { background: rgba(255, 255, 255, .045); color: var(--text); }
.side-link[aria-current] { background: rgba(255, 106, 43, .1); color: var(--text); }
.side-link[aria-current]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); animation: barIn .5s var(--ease-out) both; }
@keyframes barIn { from { transform: scaleY(0); } }
.side-link[aria-current] svg { color: var(--accent2); }
.side-sub { margin: 2px 0 6px 21px; padding-left: 10px; border-left: 1px solid var(--line); display: grid; gap: 1px; }
.side-sub a { padding: 6px 10px; border-radius: 6px; font-size: 12.5px; color: var(--dim); transition: color .2s, background .2s; }
.side-sub a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.side-create { margin: 4px 2px 0; width: calc(100% - 4px); }
.side-ca { margin: 14px 2px 0; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); display: grid; gap: 6px; }
.side-ca .row { display: flex; align-items: center; gap: 6px; font: 600 10.5px var(--f-mono); color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.side-ca code { font: 500 11.5px var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-ca button { justify-self: start; }
.side-foot { margin-top: auto; padding-top: 14px; display: grid; gap: 2px; }
.side-status { display: flex; align-items: center; gap: 8px; padding: 10px 10px 0; font: 500 11px var(--f-mono); color: var(--dim); }
.side-status .pulse { color: var(--up); width: 6px; height: 6px; }

.app-col { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 40; height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 20px;
  border-bottom: 1px solid var(--line); background: rgba(5, 5, 5, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.top .menu-btn { display: none; }
.search { position: relative; flex: 1; max-width: 520px; }
.search > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search input { width: 100%; height: 38px; padding: 0 64px 0 38px; border-radius: 9px; border: 1px solid var(--line); background: #0b0a09; outline: 0; font-size: 13.5px; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: rgba(255, 138, 66, .55); box-shadow: 0 0 0 4px rgba(255, 106, 43, .1); }
.search .kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.kbd { font: 500 10.5px var(--f-mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line2); color: var(--dim); }
.search-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; border-radius: 12px; border: 1px solid var(--line2);
  background: #0f0d0c; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); animation: rise .35s var(--ease-out) both;
}
.search-pop[hidden] { display: none; }
.search-pop .tok-mini { margin: 0; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.net { display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px var(--f-mono); color: var(--muted); }
.net .pulse { width: 6px; height: 6px; color: var(--accent2); }
.tick { height: 38px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); font-size: 12px; background: rgba(5, 5, 5, .6); }
.tick .m-item { border-right: 0; padding: 0 16px; }
.app-main { flex: 1; min-width: 0; }
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #2a1a10, #0d0908); border: 1px solid rgba(255, 138, 66, .4);
  box-shadow: 0 16px 40px -10px rgba(255, 106, 43, .55); transition: transform .4s var(--ease-out);
  animation: fabIn .9s var(--ease-out) both .6s;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab .sun { width: 42px; height: 42px; }
@keyframes fabIn { from { transform: scale(0) rotate(-90deg); } }
.drawer {
  position: fixed; right: 22px; bottom: 92px; z-index: 70; width: min(400px, calc(100vw - 28px)); height: min(560px, calc(100vh - 120px));
  transform-origin: bottom right; transform: scale(.85) translateY(20px); opacity: 0; pointer-events: none; transition: .4s var(--ease-out);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9);
}
.drawer.open { transform: none; opacity: 1; pointer-events: auto; }
.drawer .chat { height: 100%; min-height: 0; }

/* ---------- page primitives ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 64px 40px 40px; }
.section { padding: 72px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 11px var(--f-mono); letter-spacing: .2em; color: var(--accent2); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero-title { margin: 18px 0 22px; font-size: clamp(40px, 5.2vw, 76px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: block; animation: lineUp 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero-title .alt { color: var(--copper); }
.lede { max-width: 54ch; color: #cfc6bd; font-size: 16px; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.fine { margin-top: 18px; font-size: 12px; color: var(--dim); }
.h2 { font-size: clamp(30px, 4vw, 52px); }
.h2 .alt { color: var(--copper); display: block; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head p { color: var(--muted); max-width: 52ch; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

.card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: 22px; transition: border-color .3s, transform .45s var(--ease-out); }
.card:hover { border-color: var(--line2); }
.card-lift:hover { transform: translateY(-4px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv:first-of-type { border-top: 0; }
.kv b { font-weight: 600; font-size: 14px; }
.kv span { color: var(--dim); font-size: 12.5px; grid-column: 1; }
.kv em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 500 12px var(--f-mono); font-style: normal; color: var(--muted); }

.stat { padding: 18px; border-top: 1px solid var(--line); }
.stat small { display: block; font: 600 10.5px var(--f-mono); letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.stat b { display: block; margin-top: 10px; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 34px; line-height: 1; }
.stat span { display: block; margin-top: 6px; font-size: 12px; color: var(--dim); }

.list { display: grid; gap: 8px; }
.row-tok {
  display: grid; grid-template-columns: 26px 36px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(14, 12, 11, .7);
  transition: border-color .25s, transform .35s var(--ease-out), background .25s;
}
.row-tok:hover { border-color: var(--accent-line); background: rgba(255, 106, 43, .05); transform: translateX(4px); }
.row-tok .rank { font: 600 12px var(--f-mono); color: var(--dim); }
.row-tok .tok-ico { width: 36px; height: 36px; }
.row-tok .num { font: 500 13px var(--f-mono); text-align: right; }
.row-tok .num small { display: block; color: var(--dim); font-size: 11px; }
.empty { padding: 28px; text-align: center; color: var(--dim); border: 1px dashed var(--line2); border-radius: 12px; font-size: 13.5px; }

.skel { position: relative; overflow: hidden; background: rgba(255, 255, 255, .04); border-radius: 10px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.flash-up { animation: flashUp 1.2s ease; }
.flash-down { animation: flashDown 1.2s ease; }
@keyframes flashUp { 0% { background: rgba(61, 220, 132, .22); } }
@keyframes flashDown { 0% { background: rgba(255, 92, 92, .22); } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 20px 4px; font-size: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font: 400 22px var(--f-mono); color: var(--accent2); transition: transform .35s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 20px; color: var(--muted); max-width: 70ch; animation: rise .5s var(--ease-out) both; }

.cta-band {
  position: relative; overflow: hidden; margin-top: 80px; padding: 56px 40px; border-radius: 20px; border: 1px solid rgba(255, 138, 66, .28);
  background: radial-gradient(ellipse 60% 120% at 100% 50%, rgba(255, 106, 43, .25), transparent 60%), #0e0b09;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band .h2 { max-width: 14ch; }
.cta-band .big-sun { position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; opacity: .14; pointer-events: none; }

.foot { max-width: 1180px; margin: 0 auto; padding: 40px; display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; color: var(--dim); font-size: 12.5px; border-top: 1px solid var(--line); margin-top: 80px; }
.foot a:hover { color: var(--text); }

/* ---------- OTC ---------- */
.deal { padding: 22px; border-radius: 16px; border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(36, 28, 23, .92), rgba(13, 11, 10, .96)); box-shadow: 0 40px 100px -40px rgba(255, 106, 43, .45); animation: rise 1s var(--ease-out) both .35s; }
.deal-head { display: flex; align-items: center; justify-content: space-between; font: 600 10.5px var(--f-mono); letter-spacing: .14em; color: var(--dim); }
.deal-head .tag::before { content: "●"; animation: blinkDot 1.4s steps(1) infinite; }
@keyframes blinkDot { 50% { opacity: .2; } }
.deal h3 { margin: 12px 0 14px; font-family: var(--f-display); font-stretch: 125%; font-size: 26px; font-weight: 700; }
.deal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); font: 500 11.5px var(--f-mono); cursor: default; transition: background .2s; }
.deal-row:hover, .deal-row:focus { background: rgba(255, 106, 43, .06); outline: 0; }
.deal-row span { color: var(--dim); letter-spacing: .1em; }
.deal-row b { font-weight: 500; color: #c9a58e; letter-spacing: .04em; }
.deal-row.open b { color: var(--text); }
.deal-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--dim); }
.deal-foot .sun { width: 22px; height: 22px; }
.ledger-card { padding: 26px; }
.ledger-card h3 { margin: 6px 0 8px; font-size: 22px; font-weight: 700; }
.ledger-card > p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.step-tab { position: relative; padding: 18px; text-align: left; border-right: 1px solid var(--line); transition: background .3s; }
.step-tab:last-child { border-right: 0; }
.step-tab small { font: 500 11px var(--f-mono); color: var(--dim); }
.step-tab b { display: block; margin-top: 6px; font-family: var(--f-display); font-stretch: 125%; font-size: 20px; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.step-tab.on { background: rgba(255, 106, 43, .07); }
.step-tab.on b { color: var(--text); }
.step-tab .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.step-tab.on .bar { animation: prog 5s linear forwards; }
.step-copy { margin-top: 18px; min-height: 48px; font-size: 17px; color: #d8cfc7; max-width: 62ch; }
.step-copy.swap { animation: rise .5s var(--ease-out) both; }
.formula { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: #0a0908; border: 1px solid var(--line); font: 500 13px var(--f-mono); color: #ffcfae; }
.block-card { display: grid; gap: 10px; padding: 18px; }
.block-card .top-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.block-card b.sym { font-family: var(--f-display); font-stretch: 125%; font-size: 20px; }
.block-card .meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.block-card .meta div { padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.block-card .meta small { display: block; font: 600 10px var(--f-mono); letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.block-card .meta span { font: 500 13px var(--f-mono); }
.block-card p { font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: #0a0908; gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--ink); }
.seg button:not([aria-selected="true"]):hover { color: var(--text); background: rgba(255, 255, 255, .05); }

/* ---------- Launchpad ---------- */
.orbit-card { position: relative; padding: 22px; border-radius: 18px; border: 1px solid var(--line2); background: rgba(14, 12, 11, .9); overflow: hidden; animation: rise 1s var(--ease-out) both .35s; }
.orbit-card .rings { position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; pointer-events: none; }
.orbit-card .rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 138, 66, .22); animation: sunspin 30s linear infinite; }
.orbit-card .rings span::after { content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 14px var(--accent); }
.orbit-card .rings span:nth-child(2) { inset: 50px; animation-duration: 18s; animation-direction: reverse; }
.orbit-card .rings span:nth-child(3) { inset: 100px; animation-duration: 11s; }
.orbit-card .head { display: flex; justify-content: space-between; align-items: center; font: 600 11px var(--f-mono); letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.orbit-card .tf { padding: 3px 8px; border: 1px solid var(--line2); border-radius: 6px; }
.orbit-card .sub { margin: 6px 0 18px; font-size: 12.5px; color: var(--dim); }
.orbit-card .tok-big { display: flex; align-items: center; gap: 14px; }
.orbit-card .tok-big .tok-ico { width: 56px; height: 56px; font-size: 18px; }
.orbit-card .tok-big b { font-size: 22px; font-weight: 700; display: block; }
.orbit-card .tok-big span { font: 500 12px var(--f-mono); color: var(--dim); }
.orbit-card .nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.orbit-card .nums div { padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.orbit-card .nums small { display: block; font: 600 10px var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.orbit-card .nums b { font: 600 15px var(--f-mono); }
.how { counter-reset: how; }
.how .card { position: relative; padding-top: 54px; }
.how .card::before { counter-increment: how; content: "0" counter(how); position: absolute; top: 20px; left: 22px; font: 600 12px var(--f-mono); color: var(--accent2); }
.how .card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.how .card p { color: var(--muted); font-size: 14px; }
.launch-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; align-items: start; }
.preview-coin { display: grid; place-items: center; gap: 12px; padding: 26px; text-align: center; }
.preview-coin .coin { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 35% 30%, #ffb27a, #ff6a2b 55%, #8a2c0a); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 28px; color: var(--ink); box-shadow: 0 20px 60px -16px rgba(255, 106, 43, .7); animation: coinSpin 6s ease-in-out infinite; }
.preview-coin .coin img { width: 100%; height: 100%; object-fit: cover; }
@keyframes coinSpin { 0%, 100% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(180deg) translateY(-6px); } }
.status-chip { font: 600 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); }
.status-chip.launched { color: #8ff0b8; border-color: rgba(61, 220, 132, .35); }
.status-chip.rejected { color: #ff9b9b; border-color: rgba(255, 92, 92, .35); }
.status-chip.pending { color: #ffc29a; border-color: rgba(255, 138, 66, .35); }

/* ---------- DEX ---------- */
.dex-wrap { max-width: 520px; margin: 0 auto; padding: 56px 20px 40px; }
.dex-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dex-head h1 { font-size: 40px; font-weight: 700; letter-spacing: -.03em; margin-top: 8px; }
.swap { padding: 16px; border-radius: 18px; animation: rise .8s var(--ease-out) both .2s; }
.swap-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.swap-top b { font-size: 14px; }
.slip { display: flex; gap: 4px; }
.slip button { height: 28px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); font: 500 11.5px var(--f-mono); color: var(--muted); transition: .2s; }
.slip button[aria-pressed="true"] { border-color: var(--accent-line); color: #ffc29a; background: var(--accent-soft); }
.leg { padding: 14px; border-radius: 13px; border: 1px solid var(--line); background: #0a0908; transition: border-color .25s; }
.leg:focus-within { border-color: rgba(255, 138, 66, .45); }
.leg-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.leg-main { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.leg-main input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 30px var(--f-mono); letter-spacing: -.02em; }
.leg-main input::placeholder { color: #4b4540; }
.leg-main output { flex: 1; min-width: 0; font: 500 30px var(--f-mono); letter-spacing: -.02em; color: #e8dfd7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg-main output.loading { color: #4b4540; animation: pulseTxt 1s ease-in-out infinite; }
@keyframes pulseTxt { 50% { opacity: .4; } }
.tok-sel { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 6px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); font-weight: 700; font-size: 13.5px; transition: border-color .2s, background .2s; }
.tok-sel:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.tok-sel .tok-ico { width: 26px; height: 26px; font-size: 10px; }
.flip { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; margin: -12px auto; border-radius: 10px; border: 1px solid var(--line2); background: #13110f; transition: transform .5s var(--ease-out), border-color .2s; }
.flip:hover { border-color: var(--accent-line); }
.flip.spin { transform: rotate(180deg); }
.swap-info { display: grid; gap: 6px; margin: 12px 2px; font-size: 12.5px; color: var(--muted); }
.swap-info div { display: flex; justify-content: space-between; gap: 10px; }
.swap-info b { font: 500 12.5px var(--f-mono); color: var(--text); text-align: right; }
.swap .btn-lg { width: 100%; }
.tok-list { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.tok-opt { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-align: left; transition: background .2s; }
.tok-opt:hover { background: rgba(255, 255, 255, .05); }
.tok-opt small { display: block; font: 500 11px var(--f-mono); color: var(--dim); }
.soon { padding: 34px 20px; text-align: center; color: var(--muted); }
.soon .sun { width: 64px; height: 64px; margin: 0 auto 12px; display: block; }

/* ---------- Terminal ---------- */
.term { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: calc(100vh - 98px); min-height: 560px; }
.term-col { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); animation: rise .8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 120ms + 100ms); }
.term-col:last-child { border-right: 0; }
.term-head { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.term-head b { font-size: 14px; }
.term-head .dim { margin-left: auto; font-size: 11.5px; font-family: var(--f-mono); }
.term-tools { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.term-tools select { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: #0b0a09; font-size: 12.5px; outline: 0; }
.tf-group { margin-left: auto; display: flex; gap: 2px; }
.tf-group button { height: 28px; padding: 0 8px; border-radius: 6px; font: 600 11px var(--f-mono); color: var(--dim); transition: .2s; }
.tf-group button[aria-pressed="true"] { background: rgba(255, 255, 255, .08); color: var(--text); }
.term-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; display: grid; align-content: start; gap: 8px; scrollbar-width: thin; scrollbar-color: #2a2522 transparent; }
.term-foot { flex: none; display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); font: 500 11px var(--f-mono); color: var(--dim); }
.term-foot .live { display: inline-flex; align-items: center; gap: 6px; }
.term-foot .live .pulse { color: var(--up); width: 5px; height: 5px; }
.t-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(14, 12, 11, .75); transition: border-color .25s, transform .35s var(--ease-out); animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms); }
.t-row:hover { border-color: var(--accent-line); transform: translateX(3px); }
.t-row .tok-ico { width: 38px; height: 38px; }
.t-row .nm b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-row .nm span { font: 500 11px var(--f-mono); color: var(--dim); }
.t-row .vals { text-align: right; font: 500 12.5px var(--f-mono); border-radius: 6px; padding: 2px 4px; }
.t-row .vals small { display: block; font-size: 11px; }
.callout { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(14, 12, 11, .75); animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
.callout .who { display: flex; align-items: center; gap: 10px; }
.callout .who .sun { width: 30px; height: 30px; }
.callout .who b { font-size: 13.5px; display: block; }
.callout .who span { font: 500 11px var(--f-mono); color: var(--dim); }
.callout p { margin-top: 10px; font-size: 13.5px; color: #ddd3ca; white-space: pre-line; }
.callout .chip { margin-top: 10px; }
.t-skel { height: 60px; }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; max-width: 1100px; margin: 0 auto; padding: 56px 40px; }
.toc { position: sticky; top: 90px; align-self: start; display: grid; gap: 2px; }
.toc a { padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: 13.5px; transition: .2s; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.toc a.on { color: var(--text); border-left-color: var(--accent); background: rgba(255, 106, 43, .06); }
.doc h1 { font-size: 44px; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 14px; }
.doc h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 48px 0 12px; scroll-margin-top: 90px; }
.doc p, .doc li { color: #cfc6bd; line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 10px 0; }
.doc code { font: 500 13px var(--f-mono); padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); color: #ffcfae; }
.callbox { margin: 16px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 138, 66, .3); background: rgba(255, 106, 43, .06); color: #ead9cc; font-size: 14px; }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.lost .sun { width: 140px; height: 140px; margin: 0 auto 10px; animation: floaty 5s ease-in-out infinite; }
.lost h1 { font-size: clamp(60px, 12vw, 140px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .hero { grid-template-columns: 1fr; }
  .term { grid-template-columns: 1fr 1fr; height: auto; }
  .term-col { height: 70vh; }
  .term-col:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
  .nav-right .hide-sm { display: none; }
  .nav-menu { display: inline-flex; }
  .home { min-height: 0; padding-top: 22px; }
  .token-strip, .home-grid { grid-template-columns: 1fr; }
  .chat { min-height: 460px; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-102%); transition: transform .4s var(--ease-out); animation: none; box-shadow: 30px 0 80px rgba(0, 0, 0, .7); }
  .side.open { transform: none; }
  .side-close { display: inline-flex; }
  .top .menu-btn { display: inline-flex; }
  .top .net { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-form { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-tab:nth-child(2) { border-right: 0; }
  .step-tab:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .nav-right .btn-wallet-label { display: none; }
  .home { padding: 18px 16px 24px; }
  .page { padding: 40px 16px 24px; }
  .docs { padding: 32px 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .market-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-sugs { grid-template-columns: 1fr; }
  .chat-intro h2 { font-size: 26px; }
  .acc-title { font-size: 22px; }
  .ca-value { font-size: 12.5px; white-space: normal; word-break: break-all; line-height: 1.35; }
  .ca-tag { padding: 0 9px; }
  .term { grid-template-columns: 1fr; }
  .term-col { height: 70vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .row-tok { grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 10px; }
  .row-tok .rank, .row-tok .hide-sm { display: none; }
  .block-card .meta { grid-template-columns: 1fr 1fr; }
  .orbit-card .nums { grid-template-columns: 1fr 1fr; }
  .orbit-card .nums div:last-child { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }
  .top { padding: 0 12px; gap: 8px; }
  .search .kbd { display: none; }
  .top .btn-wallet-label { display: none; }
  .cta-band { padding: 36px 22px; }
  .foot { padding: 28px 16px; }
  .fab { right: 14px; bottom: 14px; }
  .drawer { right: 14px; bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
