/* COMETRA — Real Assets. Onchain.
   Dark cinematic, luxury web3. A borboleta de vidro é a marca; o fundo é quase
   preto e o roxo só aparece em destaques. */

:root {
  --background: #030308;
  --background-2: #05050d;
  --surface: #090910;
  --surface-2: #0e0e18;
  --surface-3: #141421;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --border-purple: rgba(124, 92, 255, .45);

  --text: #f4f4f8;
  --text-muted: #a5a5b1;
  --text-dim: #6e6e7c;

  --purple: #7c5cff;
  --purple-deep: #4c33cc;
  --blue: #4ea8ff;
  --magenta: #d36bff;
  --gold: #c9a45c;
  --positive: #35d07f;
  --negative: #e5484d;
  --up: var(--positive);
  --down: var(--negative);

  --glow-purple: 0 0 40px rgba(124, 92, 255, .35);
  --radius: 14px;
  --radius-lg: 18px;
  --shell: 1360px;

  --sans: "Inter", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "Segoe UI Mono", "SF Mono", Consolas, monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--background); }

body {
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fundo contínuo: uma só atmosfera por trás de tudo, para as secções não
   parecerem páginas coladas umas às outras. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 760px at 82% -6%, rgba(124, 92, 255, .17), transparent 62%),
    radial-gradient(900px 620px at 6% 16%, rgba(78, 168, 255, .07), transparent 60%),
    radial-gradient(1000px 700px at 50% 104%, rgba(124, 92, 255, .12), transparent 62%),
    var(--background);
}

/* grão muito fino: mata o banding dos gradientes grandes */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.skip-link {
  position: absolute; left: 14px; top: -60px; z-index: 100;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--border-purple);
  padding: 10px 16px; border-radius: 10px; font-size: 13.5px; transition: top .18s;
}
.skip-link:focus { top: 14px; }
main:focus { outline: none; }

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

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(32px, 3.6vw, 46px); }
h2 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.12; }
h3 { font-size: 18px; letter-spacing: -0.015em; }

p { margin: 0 0 14px; }

.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.up, .positive { color: var(--positive); }
.down, .negative { color: var(--negative); }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.sr, input.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; width: 100%; }

.eyebrow {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .22em;
  color: var(--purple); font-weight: 600;
}

/* ---------------------------------------------------------------- header */

.masthead {
  position: sticky; top: 0; z-index: 60; height: 72px;
  background: rgba(3, 3, 8, .82);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.masthead::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1) 20%, rgba(124, 92, 255, .22) 50%, rgba(255, 255, 255, .1) 80%, transparent);
}
.masthead-inner { display: flex; align-items: center; gap: 28px; height: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

.wordmark { display: flex; align-items: center; gap: 10px; }
/* o png da marca vem com fundo preto: o screen sobre o fundo escuro limpa-o */
.wordmark img {
  width: 36px; height: 36px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border); background: #06060c;
  box-shadow: 0 0 18px rgba(124, 92, 255, .28);
}
.wordmark .name { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.wordmark .full { display: none; }

.nav { display: flex; gap: 30px; margin: 0 auto; font-size: 14.5px; }
.nav a { color: var(--text-muted); transition: color .16s; position: relative; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); }
.nav a.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue)); border-radius: 2px;
}

.masthead .actions { display: flex; align-items: center; gap: 10px; }

/* --------------------------------------------------------------- botões */

.btn {
  font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.btn:hover { border-color: var(--border-purple); background: rgba(124, 92, 255, .08); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, #6f4dff, #4a2ee0);
  border-color: transparent; color: #fff;
}
.btn-primary:hover { background: linear-gradient(135deg, #7d5dff, #5738f0); box-shadow: var(--glow-purple); }

.btn-ghost { border-color: var(--border); color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 12.5px; }
.btn[disabled] { opacity: .42; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; border-color: var(--border-strong); box-shadow: none; }

/* header CTA com halo discreto */
.masthead .btn-primary { box-shadow: 0 0 0 1px rgba(124, 92, 255, .35), 0 0 24px rgba(124, 92, 255, .22); }

/* ---------------------------------------------------------- formulários */

input[type=text], input[type=search], input[type=number], input[type=url], select, textarea {
  font: inherit; width: 100%; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  transition: border-color .16s, background .16s;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--border-purple); background: var(--surface-3); }
input[type=file]:not(.sr) { display: block; width: 100%; font-size: 13px; color: var(--text-muted); }
textarea { resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.card label, .form label, .trade label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .13em;
  color: var(--text-dim); margin: 14px 0 6px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 13px; cursor: pointer; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 999px; transition: all .16s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.on { background: linear-gradient(135deg, #6f4dff, #4a2ee0); border-color: transparent; color: #fff; }

/* --------------------------------------------------------------- layout */

main { min-height: 60vh; }

.band { position: relative; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-sm { padding-top: 38px; padding-bottom: 52px; }

.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.section-head h2 { flex: none; font-size: clamp(22px, 2.2vw, 30px); }
.card .section-head h2 { font-size: 19px; }
.section-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.section-head .more { font-size: 12.5px; color: var(--text-dim); }
.live-badge { display: inline-flex; align-items: center; gap: 7px; }
.live-badge i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3);
  border: 1px solid var(--border-strong); transition: background .2s, box-shadow .2s, border-color .2s;
}
.live-badge i.on { background: var(--positive); border-color: transparent; box-shadow: 0 0 10px rgba(53, 208, 127, .85); }

.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: border-color .18s, transform .18s, background .18s;
}
.card-hover:hover { border-color: var(--border-purple); transform: translateY(-3px); }

/* ------------------------------------------------------------ hero home */

.cm-hero { position: relative; overflow: hidden; }
.cm-hero-grid { display: grid; align-items: center; min-height: 620px; }
.cm-hero-copy { padding: 70px 0 50px; max-width: 560px; position: relative; z-index: 2; }
.cm-hero-copy h1 { font-size: clamp(40px, 5.2vw, 66px); margin: 20px 0 22px; }
.lede { color: var(--text-muted); font-size: 17px; line-height: 1.6; max-width: 58ch; margin: 14px 0 26px; }
.cm-hero-copy .lede { max-width: 44ch; margin-bottom: 32px; }
.cm-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* a arte sangra até à margem direita do ecrã e esbate-se em baixo */
.cm-hero-art {
  position: absolute; top: 0; right: 0; bottom: 118px; width: 60vw; z-index: 1;
}
.cm-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 44% center; display: block; }
.cm-hero-art {
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, rgba(0,0,0,.35) 18%, #000 52%), linear-gradient(180deg, #000 66%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 2%, rgba(0,0,0,.35) 18%, #000 52%), linear-gradient(180deg, #000 66%, transparent);
  mask-composite: intersect;
}
.cm-hero-vertical {
  position: absolute; right: 34px; top: 50%; transform: translateY(-50%); z-index: 3;
  font-size: 11px; letter-spacing: .3em; line-height: 2.4; color: rgba(196, 176, 255, .92);
  text-transform: uppercase; font-weight: 600; text-align: right;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
}

.cm-metrics-wrap { position: relative; z-index: 2; }
.cm-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0;
  padding: 30px 0 48px; border-top: 1px solid var(--border);
}
.cm-metric dt { font-size: 12px; color: var(--text-dim); letter-spacing: .04em; }
.cm-metric dd { margin: 6px 0 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 650; letter-spacing: -0.03em; }

/* legado: as figuras usadas noutras páginas */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.figure { padding: 14px 0; border-top: 1px solid var(--border); }
.figure dt { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); }
.figure dd { margin: 7px 0 0; font-size: 26px; font-weight: 650; letter-spacing: -0.03em; }

/* --------------------------------------------------- secções com imagem */

.cm-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.cm-split-copy { padding: 96px 0; display: flex; flex-direction: column; justify-content: center; }
.cm-split-copy .inner { max-width: 560px; }
/* as imagens derretem no fundo em cima e em baixo, para não haver aresta */
.cm-split-art {
  position: relative; min-height: 520px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.cm-split-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s linear; }
/* cada render tem o motivo num sítio diferente da tela */
.art-assets img { object-position: 72% center; }
.art-globe img { object-position: 74% center; }
/* em vez de pintar o fundo por cima (que criava uma aresta contra o gradiente
   da página), recorta-se a própria imagem: o que aparece por trás é o fundo real */
.cm-split-art.fade-left {
  -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.5) 26%, #000 56%), linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,.5) 26%, #000 56%), linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-composite: intersect;
}
.cm-split-art.fade-right {
  -webkit-mask-image: linear-gradient(270deg, transparent, rgba(0,0,0,.5) 26%, #000 56%), linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(270deg, transparent, rgba(0,0,0,.5) 26%, #000 56%), linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-composite: intersect;
}
.cm-lede { color: var(--text-muted); font-size: 16px; max-width: 48ch; }

.cm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.cm-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: all .18s; }
.cm-step:hover { border-color: var(--border-purple); transform: translateY(-3px); }
.cm-step .ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--border); margin-bottom: 14px; color: var(--purple);
}
.cm-step b { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 5px; }
.cm-step span { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.cm-vtitle { font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; letter-spacing: .04em; line-height: 1.5; color: var(--purple); text-transform: uppercase; }

.cm-rewards-list { display: flex; flex-direction: column; gap: 20px; margin: 26px 0 30px; }
.cm-reward { display: flex; gap: 14px; align-items: flex-start; }
.cm-reward .ico {
  width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--purple);
}
.cm-reward b { display: block; font-weight: 600; margin-bottom: 3px; }
.cm-reward span { font-size: 13.5px; color: var(--text-muted); }

/* ------------------------------------------------------- rewards (só texto) */

.rewards-band { position: relative; }
.rewards-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 50% 0%, rgba(124, 92, 255, .1), transparent 70%);
}
.rewards-head { display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.rewards-head > div { max-width: 620px; }
.rewards-head h2 { margin-top: 12px; }

.fee-split { margin: 38px 0 30px; }
.fee-split .split { height: 8px; margin: 0 0 18px; }
.fee-split-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fee-split-legend div { border-top: 1px solid var(--border); padding-top: 14px; }
.fee-split-legend b { display: block; font-family: var(--mono); font-size: 26px; letter-spacing: -0.03em; }
.fee-split-legend div:nth-child(1) b { color: var(--positive); }
.fee-split-legend div:nth-child(2) b { color: var(--purple); }
.fee-split-legend div:nth-child(3) b { color: var(--text-muted); }
.fee-split-legend span { display: block; font-size: 13px; color: var(--text-dim); margin-top: 5px; }

.reward-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.reward-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; transition: border-color .18s, transform .18s;
}
.reward-card:hover { border-color: var(--border-purple); transform: translateY(-3px); }
.reward-card .ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--purple); margin-bottom: 16px;
}
.reward-card b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 7px; }
.reward-card span { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.reward-card span b { display: inline; color: var(--text); font-size: inherit; }

@media (max-width: 900px) {
  .reward-cards, .fee-split-legend { grid-template-columns: 1fr; }
  .rewards-head { align-items: flex-start; }
}

/* --------------------------------------------------- explorador de ativos */

.cm-explorer-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.cm-search { position: relative; min-width: 240px; }
.cm-search input { padding-left: 38px; border-radius: 999px; }
.cm-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }

.cm-asset-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cm-asset {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; text-align: left; cursor: pointer; color: inherit; font: inherit;
  transition: all .18s;
}
.cm-asset:hover { border-color: var(--border-purple); transform: translateY(-3px); background: var(--surface-2); }
.cm-asset img { width: 44px; height: 44px; object-fit: contain; display: block; margin-bottom: 12px; }
.cm-asset .nm { font-weight: 600; font-size: 14px; line-height: 1.25; }
.cm-asset .sym { font-size: 11.5px; color: var(--text-dim); letter-spacing: .06em; }
.cm-asset .px { font-family: var(--mono); font-size: 14px; margin-top: 14px; }
.cm-asset .chg { font-size: 12px; margin-top: 2px; }
/* o número acende na cor do movimento quando chega um preço novo */
.tick-up { animation: tick-up 1s ease-out; }
.tick-down { animation: tick-down 1s ease-out; }
@keyframes tick-up { 0%, 30% { color: var(--positive); } 100% { color: inherit; } }
@keyframes tick-down { 0%, 30% { color: var(--negative); } 100% { color: inherit; } }
@media (prefers-reduced-motion: reduce) { .tick-up, .tick-down { animation: none; } }

/* ---------------------------------------------------- mercados ao vivo */

.market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.market-grid > * { min-width: 0; }
.market-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  min-height: 158px; justify-content: space-between;
  transition: all .18s; text-align: left;
}
.market-card:hover { border-color: var(--border-purple); transform: translateY(-3px); }
.market-card .top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.market-card .top img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.market-card .who { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.market-card .sym { font-weight: 650; font-size: 14.5px; }
.market-card .nm { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-card .cap { font-family: var(--mono); font-size: clamp(20px, 5.4vw, 25px); letter-spacing: -0.03em; line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.market-card .cap small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .14em; color: var(--text-dim); margin-top: 4px; }
.market-card .cap { white-space: nowrap; }
.market-card .foot { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-dim); white-space: nowrap; }
.market-card .foot span { overflow: hidden; text-overflow: ellipsis; }
.market-card .foot .c-vol { flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 48%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 11.5px; color: var(--text-muted);
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 10px;
}
.pill img { width: 14px; height: 14px; }

.bar { height: 3px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); }
.bar.done i { background: linear-gradient(90deg, var(--positive), #28b0e6); }

.launch-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.launch-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; gap: 12px; align-items: center; transition: all .18s;
}
.launch-card:hover { border-color: var(--border-purple); transform: translateY(-3px); }
.launch-card img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.launch-card .who { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.launch-card .sym { font-weight: 650; font-size: 14px; }
.launch-card .nm { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.launch-card .cap { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .search { flex: 1; min-width: 220px; max-width: 420px; }
.toolbar .count { font-size: 12.5px; color: var(--text-dim); margin-left: auto; }

.pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 30px 0 0; }

/* --------------------------------------------------------------- tabela */

/* as tabelas ganham scroll próprio em vez de empurrarem a página */
.board-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.board-wrap table.board { min-width: 520px; }
table.board { width: 100%; border-collapse: collapse; }
table.board th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim);
  text-align: right; padding: 0 12px 12px; border-bottom: 1px solid var(--border); font-weight: 600; white-space: nowrap;
}
table.board th:first-child, table.board td:first-child { text-align: left; padding-left: 0; }
table.board th.sortable { cursor: pointer; user-select: none; }
table.board th.sortable:hover { color: var(--text); }
table.board th .dir { color: var(--purple); }
table.board td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: middle; }
table.board tbody tr { cursor: pointer; transition: background .16s; }
table.board tbody tr:hover { background: var(--surface); }

.asset { display: flex; align-items: center; gap: 12px; text-align: left; }
.asset img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.asset .who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.asset .sym { font-weight: 650; font-size: 14px; }
.asset .nm { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26ch; }

.pair { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.pair img { width: 16px; height: 16px; }

.tag {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em;
  border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; color: var(--text-dim);
}
.tag.live { border-color: rgba(53, 208, 127, .4); color: var(--positive); }
.tag.curve { border-color: rgba(201, 164, 92, .4); color: var(--gold); }

/* ----------------------------------------------------------- fee split */

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flow > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.flow small { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); display: block; }
.flow b { font-family: var(--mono); font-size: 24px; font-weight: 500; display: block; margin: 8px 0 4px; letter-spacing: -0.03em; }
.flow span { font-size: 12px; color: var(--text-dim); }

.split { display: flex; height: 6px; border-radius: 999px; overflow: hidden; margin: 14px 0 10px; background: var(--surface-3); }
.split i { display: block; height: 100%; }
.split .s-holders { background: linear-gradient(90deg, var(--positive), #2bb7a0); }
.split .s-burn { background: linear-gradient(90deg, var(--purple), var(--magenta)); }
.split .s-protocol { background: var(--surface-3); }
.split-legend { display: flex; gap: 18px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.split-legend b { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.split-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ------------------------------------------------------- página de mercado */

.market-head { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: end; padding: 34px 0 22px; border-bottom: 1px solid var(--border); }
.market-id { display: flex; gap: 18px; align-items: center; }
.market-id > img { width: 66px; height: 66px; border-radius: 18px; object-fit: cover; border: 1px solid var(--border); background: var(--surface-3); flex: none; }
.market-id h1 { font-size: clamp(30px, 3.4vw, 40px); }
.market-id .meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 9px; font-size: 13px; color: var(--text-muted); }
.market-price { text-align: right; }
.market-price b { font-family: var(--mono); font-size: clamp(26px, 3vw, 34px); display: block; letter-spacing: -0.03em; }
.market-price small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--text-dim); }
/* o preço acende quando chega um valor novo, sem mexer no layout */
.market-price b.tick { animation: tick .9s ease-out; }
@keyframes tick { 0% { color: var(--purple); } 100% { color: var(--text); } }

.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; padding: 26px 0 80px; align-items: start; }
.market-layout > div { min-width: 0; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats-row > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; min-width: 0; overflow: hidden; }
.stats-row dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); }
.stats-row dd { margin: 8px 0 0; font-family: var(--mono); font-size: 17px; letter-spacing: -0.02em; }
.stats-row dd small { display: block; font-family: var(--sans); font-size: 11.5px; color: var(--text-dim); margin-top: 3px; letter-spacing: 0; }

.chart-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); margin-top: 20px; overflow: hidden; }
.chart-tools { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.chart-body { padding: 8px 10px 6px; min-height: 300px; }
.chart-frame { height: 420px; background: #000; }
.chart-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.trade {
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg);
  padding: 20px; position: sticky; top: 92px;
}
.trade .sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 8px; }
.trade .sides button { font: inherit; font-size: 14px; cursor: pointer; border: none; background: transparent; color: var(--text-muted); padding: 9px; border-radius: 999px; transition: all .16s; }
.trade .sides button.on { background: linear-gradient(135deg, #6f4dff, #4a2ee0); color: #fff; }
.trade .amount { display: flex; gap: 10px; align-items: center; }
.trade .amount input { font-family: var(--mono); font-size: 19px; }
.trade .quote { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; font-size: 13px; display: flex; flex-direction: column; gap: 7px; }
.trade .quote div { display: flex; justify-content: space-between; gap: 10px; }
.trade .note { font-size: 11.5px; color: var(--text-dim); margin-top: 14px; line-height: 1.5; }
.trade .note a { color: var(--purple); }
.trade .btn { width: 100%; margin-top: 16px; }

.legs { margin-top: 20px; }
.leg { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.leg:last-child { border-bottom: none; }

/* -------------------------------------------------------------- FAQ e docs */

.faq { max-width: 880px; }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: 20px; margin-bottom: 14px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 0 18px; transition: border-color .16s;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 550; font-size: 14.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.faq-item .caret { color: var(--text-dim); transition: transform .18s; }
.faq-item[open] .caret { transform: rotate(90deg); }
.faq-item p { margin: 0 0 16px; color: var(--text-muted); font-size: 13.5px; line-height: 1.65; max-width: 70ch; }

.doc-body section { margin-bottom: 8px; }
.doc-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.doc-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); }
.needs-info {
  display: inline-block; font-size: 12.5px; color: var(--gold);
  background: rgba(201, 164, 92, .08); border: 1px dashed rgba(201, 164, 92, .4);
  border-radius: 8px; padding: 8px 12px;
}

.token-hero { display: flex; align-items: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.token-hero > img { border-radius: 16px; border: 1px solid var(--border); background: #06060c; }
.token-hero h1 { margin: 0; }
.token-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.token-cap { margin-left: auto; text-align: right; }
.token-cap b { font-size: clamp(24px, 3vw, 32px); display: block; letter-spacing: -0.03em; }
.token-cap small { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: var(--text-dim); }

/* ---------------------------------------------------- cabeçalho de página */

.page-head { padding: 58px 0 26px; position: relative; }
.page-head h1 { margin: 14px 0 0; max-width: 18ch; }
.page-head .lede { margin-top: 16px; }

/* ----------------------------------------------------------------- launch */

.launch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; padding-bottom: 90px; }
.launch-layout > * { min-width: 0; }
.launch-steps { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; min-width: 0; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step-head h2 { font-size: 19px; letter-spacing: -0.015em; }
.step-n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 12.5px; font-weight: 600; color: var(--purple);
  background: rgba(124, 92, 255, .12); border: 1px solid var(--border-purple);
}
.step-note-right { margin-left: auto; font-size: 12.5px; color: var(--text-dim); }
.step-note { font-size: 12.5px; color: var(--text-dim); margin: 16px 0 0; line-height: 1.55; }
.step-note a { color: var(--purple); }

.picked { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px 14px; margin-bottom: 16px; }
.picked-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.picked-row:last-child { border-bottom: none; }
.picked-ctrl { display: flex; align-items: center; gap: 8px; }
.picked-ctrl input { width: 78px; padding: 6px 10px; }

.pair-tools { margin-bottom: 12px; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; min-width: 0; max-width: 100%; }
.chips.scroll-x .chip { flex: none; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; max-height: 340px; overflow-y: auto; padding: 2px; }
.pick {
  font: inherit; cursor: pointer; text-align: left; color: var(--text);
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px;
  transition: border-color .16s, background .16s, transform .16s;
}
.pick:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.pick.on { border-color: var(--border-purple); background: rgba(124, 92, 255, .1); }
.pick img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.pick .who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.pick .sym { font-weight: 600; font-size: 13.5px; }
.pick .nm { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .px { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); }

.identity { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.drop-wrap { width: 128px; flex: none; }
.drop {
  display: grid; place-items: center; gap: 8px; cursor: pointer; overflow: hidden;
  width: 128px; height: 108px; border-radius: 12px; color: var(--text-dim);
  background: var(--surface-2); border: 1px dashed var(--border-strong);
  transition: border-color .16s, color .16s;
}
.drop:hover { border-color: var(--border-purple); color: var(--text-muted); }
.drop span { font-size: 12px; }
.drop.has-image { border-style: solid; padding: 0; }
.drop img { width: 100%; height: 100%; object-fit: cover; }
.drop-wrap .hint { font-size: 11.5px; color: var(--text-dim); margin: 9px 0 0; text-align: center; }

.identity-fields { flex: 1; min-width: 240px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: var(--text-dim); margin-bottom: 7px; }
.field-error { color: var(--negative); font-size: 12.5px; margin: 8px 0 10px; }

.disclose {
  font: inherit; font-size: 13.5px; cursor: pointer; color: var(--text-muted);
  background: transparent; border: none; padding: 16px 0 0; margin-top: 16px;
  border-top: 1px solid var(--border); width: 100%; text-align: left;
}
.disclose:hover { color: var(--text); }
.disclose .caret { display: inline-block; transition: transform .16s; color: var(--text-dim); }
.disclose.open .caret { transform: rotate(90deg); }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.extras .field:last-child { grid-column: 1 / -1; }

.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fee-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fee-head label { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: var(--text-dim); }
.fee-head b { font-size: 20px; }
.fee-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); margin-top: 8px; }
.hint { font-size: 12px; color: var(--text-dim); line-height: 1.55; margin: 12px 0 0; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--surface-3); padding: 0; border: none; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--purple); border: 2px solid #0b0b13; cursor: pointer; box-shadow: 0 0 12px rgba(124, 92, 255, .6);
}
input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--purple); border: 2px solid #0b0b13; cursor: pointer; }
input[type=range]:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }

.suffix-field { position: relative; }
.suffix-field input { font-family: var(--mono); font-size: 17px; padding-right: 54px; }
.suffix-field span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--text-dim); }

.launch-summary { position: sticky; top: 92px; }
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.summary-card h3 { margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.summary-row span { color: var(--text-dim); }
.summary-row b { font-weight: 550; text-align: right; }
.summary-card .btn { width: 100%; margin-top: 18px; }
.summary-hint { font-size: 12px; color: var(--text-dim); margin: 10px 0 0; }
.summary-note { font-size: 11.5px; color: var(--text-dim); margin: 14px 0 0; line-height: 1.5; }

.launch-status { margin-top: 14px; font-size: 13px; padding: 12px 14px; border-radius: 10px; line-height: 1.5; }
.launch-status a { color: var(--purple); }
.launch-status.working { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.launch-status.ok { background: rgba(53, 208, 127, .08); border: 1px solid rgba(53, 208, 127, .35); color: var(--positive); }
.launch-status.error { background: rgba(229, 72, 77, .08); border: 1px solid rgba(229, 72, 77, .35); color: #ff9a9d; }

.notice.error { border-left-color: var(--negative); color: #ffb4b6; }

/* ------------------------------------------------------------ commodities */

.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.coin {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 15px; display: flex; gap: 13px; align-items: center; cursor: pointer;
  color: inherit; font: inherit; text-align: left; transition: all .18s;
}
.coin:hover { border-color: var(--border-purple); transform: translateY(-2px); }
.coin img { width: 32px; height: 32px; flex: none; object-fit: contain; }
.coin .who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.coin .sym { font-weight: 650; font-size: 14px; }
.coin .nm { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin .px { font-family: var(--mono); font-size: 13.5px; text-align: right; }
.coin .px small { display: block; font-family: var(--sans); font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ------------------------------------------------------------------ misc */

.skeleton {
  background: linear-gradient(90deg, var(--surface), var(--surface-3), var(--surface));
  background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: var(--radius);
}
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.empty { text-align: center; padding: 90px 20px; color: var(--text-muted); }
.empty h2 { color: var(--text); margin-bottom: 10px; }

.notice { border: 1px solid var(--border); border-left: 2px solid var(--purple); background: var(--surface); border-radius: 10px; padding: 13px 16px; font-size: 13.5px; }

.prose { max-width: 76ch; min-width: 0; }
.prose .mono, .prose code { overflow-wrap: anywhere; }
.docs-table { min-width: 460px; }
.prose h2 { margin: 44px 0 12px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 27px; }
.prose h3 { margin: 26px 0 8px; }
.prose p { color: var(--text-muted); line-height: 1.68; }
.prose ul, .prose ol { color: var(--text-muted); line-height: 1.65; }
.prose a { color: var(--purple); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13.5px; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: var(--text-dim); }
.prose code, .prose .mono { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.prose dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 18px 0; }
.prose dt { font-family: var(--mono); font-size: 20px; letter-spacing: -0.02em; }
.prose dd { margin: 3px 0 0; font-size: 12px; color: var(--text-dim); }

/* docs */
.docs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
.docs-layout > * { min-width: 0; }
.docs-layout .prose { max-width: none; }
.docs-side { position: sticky; top: 96px; }
.docs-side nav { display: flex; flex-direction: column; gap: 9px; font-size: 13px; border-left: 1px solid var(--border); padding-left: 16px; }
.docs-side nav > span:first-child { font-size: 10.5px; text-transform: uppercase; letter-spacing: .15em; color: var(--text-dim); margin-bottom: 4px; }
.docs-side nav a { color: var(--text-muted); }
.docs-side nav a:hover { color: var(--purple); }
.prose section { scroll-margin-top: 96px; }
.docs-head { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.docs-head > * { min-width: 0; }
.prose > div, .prose > div > div { min-width: 0; }
.docs-flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0; }
.docs-flow > span:not(:empty) { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; color: var(--text-muted); }
.docs-flow > span:empty::before { content: '→'; color: var(--text-dim); }
.docs-note { border-left: 1px solid var(--border-purple); padding: 2px 0 2px 16px; margin: 18px 0; }
.docs-note b { display: block; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.docs-note p { margin: 0; }
.docs-note > span:empty { display: none; }
.prose dl div { border-top: 1px solid var(--border); padding-top: 10px; }

/* ---------------------------------------------------------------- footer */

footer.site {
  position: relative; padding: 70px 0 44px;
  background: linear-gradient(180deg, transparent, rgba(8, 6, 20, .75) 45%, rgba(10, 7, 24, .9));
}
footer.site::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand { max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; }
.footer-col h2 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .15em;
  color: var(--text-dim); font-weight: 600; margin-bottom: 3px;
}
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-base {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 22px; font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
footer.site .brand { display: flex; gap: 11px; align-items: center; }
footer.site .brand img { width: 32px; height: 32px; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); background: #06060c; }
footer.site .brand .name { font-weight: 650; font-size: 17px; }
footer.site .tagline { font-size: 13px; color: var(--text-dim); margin: 14px 0 0; line-height: 1.6; }
footer.site .social { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
footer.site .social a {
  color: var(--text-muted); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  transition: color .16s, border-color .16s, background .16s;
}
footer.site .social a:hover { color: var(--text); border-color: var(--border-purple); background: rgba(124, 92, 255, .08); }
footer.site .slogan { font-size: 11px; letter-spacing: .22em; color: var(--purple); text-transform: uppercase; font-weight: 600; }

/* --------------------------------------------------------------- carteira */

.spinner {
  width: 13px; height: 13px; border-radius: 50%; display: inline-block;
  border: 2px solid rgba(255, 255, 255, .28); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--positive); box-shadow: 0 0 8px rgba(53, 208, 127, .8); }
.dot.bad { background: var(--negative); box-shadow: 0 0 8px rgba(229, 72, 77, .8); }
.btn.wrong-chain { border-color: rgba(229, 72, 77, .5); }

.icon-btn {
  font: inherit; cursor: pointer; background: transparent; border: none; color: var(--text-dim);
  width: 30px; height: 30px; border-radius: 8px;
}
.icon-btn:hover { color: var(--text); background: var(--surface-3); }

.wallet-dialog { max-width: 420px; }
.wallet-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-option {
  font: inherit; cursor: pointer; color: var(--text); text-align: left;
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px;
  transition: border-color .16s, background .16s;
}
.wallet-option:hover { border-color: var(--border-purple); background: var(--surface-3); }
.wallet-option img { border-radius: 7px; }
.wallet-option .nm { flex: 1; font-weight: 550; }
.wallet-option .go { font-size: 12.5px; color: var(--text-dim); }
.wallet-option.busy { opacity: .6; pointer-events: none; }
.wallet-dot { width: 28px; height: 28px; border-radius: 7px; background: var(--surface-3); display: inline-block; }
.wallet-missing { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; font-size: 13px; }
.wallet-missing a { color: var(--purple); }
.wallet-note { font-size: 12px; color: var(--text-dim); margin: 18px 0 0; line-height: 1.5; }
.wallet-error { font-size: 13px; color: var(--negative); margin: 14px 0 0; }

.wallet-menu {
  position: fixed; z-index: 80; min-width: 236px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
}
.wallet-menu .who { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.wallet-menu .who .muted { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.wallet-menu > button, .wallet-menu > a {
  font: inherit; font-size: 13.5px; text-align: left; cursor: pointer;
  background: transparent; border: none; color: var(--text-muted);
  padding: 9px 12px; border-radius: 9px;
}
.wallet-menu > button:hover, .wallet-menu > a:hover { background: var(--surface-3); color: var(--text); }
.wallet-menu .net { font-size: 12px; padding: 8px 12px; border-radius: 9px; margin-bottom: 4px; }
.wallet-menu .net.ok { color: var(--positive); background: rgba(53, 208, 127, .08); }
.wallet-menu .net.bad { color: var(--negative); background: rgba(229, 72, 77, .1); border: 1px solid rgba(229, 72, 77, .3); cursor: pointer; }
.wallet-menu [data-disconnect] { color: var(--negative); }

/* --------------------------------------------------------------- toast */

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--surface-3); color: var(--text); border: 1px solid var(--border-purple);
  padding: 13px 20px; border-radius: 12px; font-size: 13.5px; z-index: 90; max-width: min(90vw, 460px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
  animation: toast-in .24s cubic-bezier(.22, .61, .36, 1);
}
.toast.out { opacity: 0; transform: translate(-50%, 8px); transition: opacity .28s, transform .28s; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

dialog::backdrop { background: rgba(2, 2, 6, .78); backdrop-filter: blur(4px); }
dialog {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 26px; max-width: 540px; width: calc(100vw - 36px); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}

/* ------------------------------------------------------------ animações */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.cm-hero-art img { animation: float 11s ease-in-out infinite; }

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

/* ------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .cm-asset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .market-grid, .launch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .section { padding: 72px 0; }
  /* telemóvel: texto primeiro, imagem a seguir, métricas no fim */
  .cm-hero { display: flex; flex-direction: column; }
  .cm-hero > .shell:first-of-type { order: 1; }
  .cm-hero-art { order: 2; }
  .cm-metrics-wrap { order: 3; }
  .cm-hero-grid { min-height: 0; }
  .cm-hero-copy { padding: 36px 0 28px; }
  .cm-hero-art { position: relative; width: auto; bottom: auto; height: 340px; margin: 0 0 10px; }
  .cm-hero-art { -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); -webkit-mask-composite: source-over; mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-composite: add; }
  .cm-hero-vertical { right: 20px; }
  .cm-metrics { grid-template-columns: repeat(2, 1fr); }
  .cm-split { grid-template-columns: 1fr; }
  .cm-split-copy { padding: 64px 0 40px; }
  .cm-split-art { min-height: 340px; margin: 0; }
  .cm-split-art.fade-left, .cm-split-art.fade-right { -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); -webkit-mask-composite: source-over; mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); mask-composite: add; }
  .market-layout { grid-template-columns: 1fr; }
  .trade { position: static; }
  .launch-layout { grid-template-columns: minmax(0, 1fr); }
  .launch-summary { position: static; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .docs-side { position: static; order: -1; }
  .docs-side nav { flex-direction: row; flex-wrap: wrap; border-left: none; padding-left: 0; gap: 12px; }
  .docs-side nav > span:first-child { width: 100%; }
  .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}

@media (max-width: 720px) {
  .shell { padding: 0 18px; }
  .masthead-inner { padding: 0 18px; gap: 14px; }
  .cm-asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-grid, .launch-row, .cm-steps, .cols-2, .cols-3, .cols-4, .flow { grid-template-columns: 1fr; }
  .cm-metrics { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .market-head { grid-template-columns: 1fr; align-items: start; }
  .market-price { text-align: left; }
  .identity-fields, .extras, .fee-grid { grid-template-columns: 1fr; }
  .step { padding: 18px; }
  .page-head { padding: 40px 0 28px; }
  .cm-hero-vertical { display: none; }
  .wordmark .name { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .token-cap { margin-left: 0; text-align: left; }
  /* no telemóvel o CTA vive na barra de baixo, o topo fica só com a carteira */
  .masthead .actions .btn-primary { display: none; }
  .masthead-inner { justify-content: space-between; }
  footer.site .social { margin-left: 0; }
  footer.site .slogan { text-align: left; }
  table.board .hide-sm { display: none; }
}

/* barra de navegação inferior no telemóvel */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(5, 5, 13, .94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; text-align: center; font-size: 11px; color: var(--text-dim); padding: 6px 2px; }
.tabbar a.on { color: var(--purple); }
@media (max-width: 980px) {
  .tabbar { display: flex; }
  main { padding-bottom: 68px; }
}

/* ------------------------------------------------- ajustes finais responsivos */

.hide-md { display: inline-flex; }

@media (max-width: 1100px) {
  .hide-md { display: none; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .launch-layout { grid-template-columns: minmax(0, 1fr); }
  .launch-summary { position: static; }
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .token-cap { margin-left: 0; text-align: left; }
  .identity-fields, .extras, .fee-grid { grid-template-columns: 1fr; }
  .step { padding: 18px; }
  .page-head { padding: 40px 0 28px; }
  .cm-hero-art { -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
}

@media (max-width: 420px) {
  .shell { padding: 0 14px; }
  .masthead-inner { padding: 0 14px; gap: 10px; }
  .wordmark .name { display: none; }
  .btn { padding: 9px 15px; font-size: 13.5px; }
  .cm-asset-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pick-grid { grid-template-columns: 1fr; }
  .market-card .cap { font-size: 21px; }
  h1 { font-size: 30px; }
  .cm-hero-copy h1 { font-size: 34px; }
}


/* grelhas colapsam antes de apertar */
@media (max-width: 900px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .board-wrap table.board { min-width: 460px; }
}

/* ------------------------------------------- passagem entre secções */

/* Cada secção leva um halo próprio que nasce e morre dentro dela, por isso o
   scroll passa de uma para a outra sem nunca encontrar uma linha. */
main > section { position: relative; isolation: isolate; }
main > section::before {
  content: ''; position: absolute; left: 0; right: 0; top: -14%; bottom: -14%;
  z-index: -1; pointer-events: none;
}
main > section:nth-of-type(odd)::before {
  background: radial-gradient(1100px 520px at 18% 50%, rgba(124, 92, 255, .075), transparent 68%);
}
main > section:nth-of-type(even)::before {
  background: radial-gradient(1100px 520px at 82% 50%, rgba(78, 168, 255, .055), transparent 68%);
}

/* a primeira e a última secção fundem-se com o cabeçalho e com o rodapé */
.cm-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(3, 3, 8, .55));
}
main > section:last-of-type { padding-bottom: 20px; }

/* nada de réguas dentro das bandas: o que separa é o espaço e a luz */
.band + .band { border-top: none; }
