/* ───────────────────────── MuWorld DEX — tema dark web3 ───────────────────────── */
:root{
  --bg:        #07060f;
  --bg-soft:   #0e0c1d;
  --panel:     rgba(22, 19, 41, 0.72);
  --panel-2:   rgba(33, 28, 58, 0.55);
  --stroke:    rgba(140, 130, 200, 0.16);
  --stroke-2:  rgba(140, 130, 200, 0.28);
  --txt:       #ece9ff;
  --txt-dim:   #9b93c4;
  --txt-faint: #6f6790;
  --cyan:      #37d4ef;
  --violet:    #8b5cf6;
  --pink:      #f472b6;
  --green:     #34e0a1;
  --red:       #ff6b81;
  --amber:     #ffcc66;
  --grad:      linear-gradient(110deg, #37d4ef 0%, #8b5cf6 55%, #f472b6 100%);
  --grad-soft: linear-gradient(110deg, rgba(55,212,239,.18), rgba(139,92,246,.18));
  --radius:    22px;
  --radius-sm: 14px;
  --shadow:    0 24px 60px -20px rgba(0,0,0,.7);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:'Inter', system-ui, -apple-system, sans-serif;
  background:var(--bg);
  color:var(--txt);
  line-height:1.55;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:'Space Grotesk','Inter',sans-serif; line-height:1.1; letter-spacing:-.02em; }
.grad{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hidden{ display:none !important; }

/* ── orbs de fundo ── */
.bg-orbs{ position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.orb{ position:absolute; border-radius:50%; filter:blur(120px); opacity:.45; }
.orb--cyan{   width:520px;height:520px; background:#165e80; top:-160px; left:-120px; }
.orb--violet{ width:560px;height:560px; background:#3c2b6e; top:18%; right:-160px; opacity:.55;}
.orb--pink{   width:440px;height:440px; background:#6e1f4e; bottom:-160px; left:30%; opacity:.35;}

/* ───────────────────────────── NAV ───────────────────────────── */
.nav{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  gap:18px; padding:16px clamp(18px,4vw,46px);
  backdrop-filter:blur(14px);
  background:linear-gradient(180deg, rgba(7,6,15,.82), rgba(7,6,15,.35));
  border-bottom:1px solid var(--stroke);
}
.brand{ display:flex; align-items:center; gap:11px; font-weight:800; }
.brand__logo{ width:34px; height:34px; }
.brand__name{ font-family:'Space Grotesk',sans-serif; font-size:1.2rem; display:flex; align-items:baseline; gap:7px; }
.brand__tick{
  font-size:.62rem; letter-spacing:.12em; font-weight:700;
  padding:3px 7px; border-radius:7px; color:#0a0a14;
  background:var(--grad);
}
.nav__links{ display:flex; gap:28px; font-size:.93rem; color:var(--txt-dim); font-weight:500; }
.nav__links a{ transition:color .2s; }
.nav__links a:hover{ color:var(--txt); }
.nav__right{ display:flex; align-items:center; gap:12px; }

.net-badge{
  display:flex; align-items:center; gap:8px;
  background:var(--panel-2); border:1px solid var(--stroke);
  color:var(--txt-dim); font-size:.84rem; font-weight:600;
  padding:9px 13px; border-radius:12px; cursor:pointer; transition:.2s;
}
.net-badge:hover{ border-color:var(--stroke-2); color:var(--txt); }
.net-dot{ width:8px; height:8px; border-radius:50%; background:var(--txt-faint); box-shadow:0 0 8px currentColor; }
.net-badge.is-ok .net-dot{ background:var(--green); }
.net-badge.is-wrong{ color:var(--amber); border-color:rgba(255,204,102,.4); }
.net-badge.is-wrong .net-dot{ background:var(--amber); }

/* ───────────────────────────── BOTÕES ───────────────────────────── */
.btn{
  font-family:inherit; font-weight:700; font-size:.95rem;
  border:none; border-radius:14px; cursor:pointer; transition:transform .12s, filter .2s, opacity .2s;
  color:#0a0a14;
}
.btn:active{ transform:translateY(1px); }
.btn--connect{ background:var(--grad); padding:11px 20px; box-shadow:0 8px 24px -8px rgba(139,92,246,.6); }
.btn--connect:hover{ filter:brightness(1.08); }
.btn--connect.is-connected{
  background:var(--panel-2); color:var(--txt); border:1px solid var(--stroke-2);
  box-shadow:none; font-family:'Space Grotesk',sans-serif;
}
.btn--action{
  width:100%; padding:17px; font-size:1.05rem; margin-top:8px;
  background:var(--grad); box-shadow:0 12px 30px -10px rgba(139,92,246,.55);
}
.btn--action:hover:not(:disabled){ filter:brightness(1.08); }
.btn--action:disabled{ background:var(--panel-2); color:var(--txt-faint); cursor:not-allowed; box-shadow:none; }
.btn--ghost{
  width:100%; padding:13px; margin-top:10px; background:transparent;
  border:1px dashed var(--stroke-2); color:var(--cyan); font-weight:600;
}
.btn--ghost:hover{ background:var(--grad-soft); }

.icon-btn{
  width:38px; height:38px; border-radius:11px; cursor:pointer;
  background:var(--panel-2); border:1px solid var(--stroke); color:var(--txt-dim);
  font-size:1.1rem; transition:.2s;
}
.icon-btn:hover{ color:var(--txt); border-color:var(--stroke-2); transform:rotate(15deg); }

/* ───────────────────────────── HERO ───────────────────────────── */
.hero{
  display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(30px,5vw,70px);
  align-items:center;
  max-width:1240px; margin:0 auto; padding:clamp(40px,7vh,90px) clamp(18px,4vw,46px);
}
.pill-tag{
  display:inline-flex; align-items:center; gap:9px;
  background:var(--grad-soft); border:1px solid var(--stroke-2);
  color:var(--cyan); font-size:.8rem; font-weight:600; letter-spacing:.02em;
  padding:7px 14px; border-radius:999px; margin-bottom:22px;
}
.pulse{ width:8px;height:8px;border-radius:50%; background:var(--green); box-shadow:0 0 0 0 rgba(52,224,161,.6); animation:pulse 1.8s infinite; }
@keyframes pulse{ 70%{ box-shadow:0 0 0 9px rgba(52,224,161,0);} 100%{ box-shadow:0 0 0 0 rgba(52,224,161,0);} }

.hero__copy h1{ font-size:clamp(2.1rem,4.6vw,3.5rem); font-weight:800; margin-bottom:18px; }
.lead{ color:var(--txt-dim); font-size:clamp(1rem,1.4vw,1.13rem); max-width:540px; margin-bottom:30px; }
.lead strong{ color:var(--txt); }

.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:24px; }
.stat{
  background:var(--panel); border:1px solid var(--stroke); border-radius:var(--radius-sm);
  padding:14px 14px; backdrop-filter:blur(8px);
}
.stat__label{ display:block; font-size:.72rem; color:var(--txt-faint); text-transform:uppercase; letter-spacing:.08em; }
.stat__value{ display:block; font-family:'Space Grotesk',sans-serif; font-size:1.32rem; font-weight:700; margin-top:4px; }
.stat__sub{ font-size:.7rem; color:var(--txt-faint); }

.hero__trust{ display:flex; flex-wrap:wrap; gap:8px 18px; font-size:.83rem; color:var(--txt-dim); }

/* ───────────────────────────── SWAP CARD ───────────────────────────── */
.swap{
  background:var(--panel); border:1px solid var(--stroke-2);
  border-radius:var(--radius); padding:20px; box-shadow:var(--shadow);
  backdrop-filter:blur(18px); position:relative;
}
.swap::before{ /* halo */
  content:""; position:absolute; inset:-1px; border-radius:var(--radius); padding:1px;
  background:var(--grad); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; opacity:.4; pointer-events:none;
}
.swap__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.swap__head h2{ font-size:1.35rem; }
.swap__tools{ display:flex; gap:8px; }

.settings{ background:var(--bg-soft); border:1px solid var(--stroke); border-radius:var(--radius-sm); padding:14px; margin-bottom:14px; }
.settings__row{ margin-bottom:12px; }
.settings__row:last-child{ margin-bottom:0; }
.settings__row label{ display:block; font-size:.8rem; color:var(--txt-dim); margin-bottom:8px; }
.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  background:var(--panel-2); border:1px solid var(--stroke); color:var(--txt-dim);
  border-radius:10px; padding:7px 12px; font-size:.85rem; font-weight:600; cursor:pointer; transition:.18s;
}
.chip:hover{ border-color:var(--stroke-2); }
.chip.is-active{ background:var(--grad-soft); color:var(--cyan); border-color:var(--cyan); }
.chip--input{ display:flex; align-items:center; gap:2px; cursor:default; color:var(--txt-dim); }
.chip--input input{
  width:58px; background:transparent; border:none; color:var(--txt); font-family:inherit;
  font-size:.85rem; font-weight:600; outline:none; text-align:right;
}

/* token box */
.token-box{
  background:var(--bg-soft); border:1px solid var(--stroke);
  border-radius:var(--radius-sm); padding:15px 16px; transition:border-color .2s;
}
.token-box:focus-within{ border-color:var(--stroke-2); }
.token-box__top, .token-box__bottom{
  display:flex; justify-content:space-between; align-items:center;
  font-size:.8rem; color:var(--txt-faint);
}
.token-box__bottom{ margin-top:8px; min-height:18px; }
.balance{ color:var(--txt-dim); }
.token-box__main{ display:flex; align-items:center; gap:12px; margin-top:10px; }
.amount-input{
  flex:1; min-width:0; background:transparent; border:none; outline:none;
  font-family:'Space Grotesk',sans-serif; font-size:1.85rem; font-weight:600; color:var(--txt);
}
.amount-input::placeholder{ color:var(--txt-faint); }
.amount-input[readonly]{ color:var(--txt-dim); }

.token-pill{
  display:flex; align-items:center; gap:8px; flex-shrink:0;
  background:var(--panel-2); border:1px solid var(--stroke-2);
  padding:8px 13px 8px 9px; border-radius:999px; font-weight:700; font-size:.95rem;
}
.token-pill__icon{ width:24px; height:24px; border-radius:50%; }

.max-btn{
  background:var(--grad-soft); color:var(--cyan); border:1px solid var(--stroke-2);
  font-size:.68rem; font-weight:700; padding:3px 8px; border-radius:7px; cursor:pointer; letter-spacing:.05em;
}
.max-btn:hover{ filter:brightness(1.2); }

.switch-btn{
  display:block; margin:-12px auto; position:relative; z-index:2;
  width:40px; height:40px; border-radius:12px; cursor:pointer;
  background:var(--bg-soft); border:4px solid var(--bg); color:var(--cyan);
  font-size:1.1rem; font-weight:700; transition:transform .25s, color .2s;
}
.switch-btn:hover{ transform:rotate(180deg); color:var(--txt); }

.quote{
  background:var(--bg-soft); border:1px solid var(--stroke);
  border-radius:var(--radius-sm); padding:13px 15px; margin:14px 0 4px; font-size:.86rem;
}
.quote__row{ display:flex; justify-content:space-between; padding:4px 0; color:var(--txt-dim); }
.quote__row span:last-child{ color:var(--txt); font-weight:600; }
.impact-low{ color:var(--green)!important; }
.impact-mid{ color:var(--amber)!important; }
.impact-high{ color:var(--red)!important; }

.swap__note{ text-align:center; font-size:.74rem; color:var(--txt-faint); margin-top:14px; }

/* ───────────────────────────── SECTIONS ───────────────────────────── */
.section{ max-width:1180px; margin:0 auto; padding:clamp(50px,9vh,100px) clamp(18px,4vw,46px); }
.section--alt{ background:linear-gradient(180deg, transparent, rgba(14,12,29,.6), transparent); max-width:none; }
.section--alt > *{ max-width:1180px; margin-left:auto; margin-right:auto; }
.section__head{ text-align:center; margin-bottom:46px; }
.section__head h2{ font-size:clamp(1.8rem,3.4vw,2.6rem); margin-bottom:12px; }
.section__head p{ color:var(--txt-dim); font-size:1.05rem; max-width:560px; margin:0 auto; }

.cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.card{
  background:var(--panel); border:1px solid var(--stroke); border-radius:var(--radius);
  padding:26px 24px; backdrop-filter:blur(8px); transition:transform .2s, border-color .2s;
}
.card:hover{ transform:translateY(-4px); border-color:var(--stroke-2); }
.card__ic{ font-size:1.9rem; margin-bottom:14px; }
.card h3{ font-size:1.2rem; margin-bottom:8px; }
.card p{ color:var(--txt-dim); font-size:.93rem; }
.card code, .card em{ color:var(--cyan); font-style:normal; }
.card code{ font-size:.86em; }

.tokenomics{ margin-top:46px; background:var(--panel); border:1px solid var(--stroke); border-radius:var(--radius); padding:30px clamp(20px,4vw,40px); }
.tokenomics h3{ font-size:1.3rem; margin-bottom:22px; text-align:center; }
.tk-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px; }
.tk{ text-align:center; padding:16px; background:var(--bg-soft); border-radius:var(--radius-sm); border:1px solid var(--stroke); }
.tk span{ display:block; font-family:'Space Grotesk',sans-serif; font-size:1.45rem; font-weight:700; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.tk label{ display:block; font-size:.76rem; color:var(--txt-faint); margin-top:6px; }

/* steps */
.steps{ list-style:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; }
.steps li{ background:var(--panel); border:1px solid var(--stroke); border-radius:var(--radius); padding:26px 24px; position:relative; }
.steps__n{
  display:flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:12px; font-family:'Space Grotesk',sans-serif;
  font-weight:700; font-size:1.2rem; color:#0a0a14; background:var(--grad); margin-bottom:16px;
}
.steps h3{ font-size:1.15rem; margin-bottom:8px; }
.steps p{ color:var(--txt-dim); font-size:.92rem; }

/* contratos */
.addr-list{ display:grid; gap:12px; max-width:760px; margin:0 auto; }
.addr{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  background:var(--panel); border:1px solid var(--stroke); border-radius:var(--radius-sm); padding:16px 18px;
}
.addr__label{ font-weight:700; display:flex; align-items:center; gap:9px; }
.addr__label small{ color:var(--txt-faint); font-weight:500; }
.addr__val{ display:flex; align-items:center; gap:10px; }
.addr__hash{ font-family:'Space Grotesk',monospace; font-size:.82rem; color:var(--txt-dim); }
.addr a, .addr .copy{ color:var(--cyan); cursor:pointer; font-size:.84rem; font-weight:600; }
.copy{ background:none; border:1px solid var(--stroke); border-radius:8px; padding:5px 9px; }
.copy:hover{ border-color:var(--cyan); }
.disclaimer{ max-width:760px; margin:30px auto 0; font-size:.82rem; color:var(--txt-faint); text-align:center; line-height:1.6; }

/* footer */
.footer{ border-top:1px solid var(--stroke); padding:34px clamp(18px,4vw,46px); text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px; }
.footer .brand{ justify-content:center; }
.footer p{ color:var(--txt-faint); font-size:.85rem; }

/* toast */
.toast{
  position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--bg-soft); border:1px solid var(--stroke-2); color:var(--txt);
  padding:14px 22px; border-radius:14px; box-shadow:var(--shadow); z-index:100;
  font-size:.92rem; font-weight:500; max-width:90vw; opacity:0; transition:opacity .3s, transform .3s;
  display:flex; align-items:center; gap:10px;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.toast--ok{ border-color:rgba(52,224,161,.5); }
.toast--err{ border-color:rgba(255,107,129,.5); }
.toast--info{ border-color:var(--stroke-2); }
.toast a{ color:var(--cyan); text-decoration:underline; }
.spinner{ width:16px;height:16px;border:2px solid var(--stroke-2); border-top-color:var(--cyan); border-radius:50%; animation:spin .8s linear infinite; flex-shrink:0; }
@keyframes spin{ to{ transform:rotate(360deg);} }

/* responsivo */
@media (max-width:900px){
  .hero{ grid-template-columns:1fr; }
  .nav__links{ display:none; }
  .stats{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:480px){
  .stats{ grid-template-columns:repeat(2,1fr); }
  .amount-input{ font-size:1.5rem; }
}
