:root{
  --bg:#090A0D;
  --panel:#111319;
  --panel-2:#171A22;
  --ink:#F6F7F9;
  --muted:#A6ACB6;
  --soft:#737B87;
  --line:rgba(255,255,255,.12);
  --line-strong:rgba(255,255,255,.18);
  --accent:#F0B90B;
  --accent-soft:rgba(240,185,11,.15);
  --shadow:0 30px 80px rgba(0,0,0,.42);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  min-height:100dvh;
  height:100dvh;
  overflow:hidden;
  color:var(--ink);
  background:
    radial-gradient(circle at 50% -20%, rgba(240,185,11,.16), transparent 36rem),
    linear-gradient(180deg, #0E1015 0%, var(--bg) 58%);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
p,h1{margin:0}

.topbar{
  display:flex;
  align-items:center;
  gap:18px;
  flex:0 0 auto;
  min-height:68px;
  padding:16px clamp(16px,4vw,42px);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
  font-weight:800;
  font-size:1.05rem;
}

.brand img{
  width:28px;
  height:28px;
  border-radius:8px;
  border:1px solid var(--line);
}

.brand span{white-space:nowrap}
.nav{
  display:flex;
  align-items:center;
  gap:24px;
  margin-left:10px;
}

.nav a{
  color:var(--muted);
  font-size:.92rem;
  font-weight:600;
  line-height:1;
}

.nav a:hover{color:var(--ink)}
.spacer{flex:1}

.ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 17px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  color:var(--ink);
  background:rgba(255,255,255,.04);
  font-size:.9rem;
  font-weight:800;
  white-space:nowrap;
  transition:transform .14s ease, border-color .14s ease, background .14s ease;
}

.ghost:hover{
  transform:translateY(-1px);
  border-color:rgba(240,185,11,.54);
  background:rgba(240,185,11,.08);
}

.stage{
  flex:1 1 auto;
  min-height:0;
  display:grid;
  place-items:center;
  align-content:center;
  gap:28px;
  width:min(100%, 1060px);
  margin:0 auto;
  padding:10px 18px 8px;
  text-align:center;
}

.hero{
  display:grid;
  justify-items:center;
  gap:14px;
}

h1{
  font-size:clamp(3rem, 7vw, 5.35rem);
  line-height:.95;
  font-weight:850;
  letter-spacing:0;
}

.value{
  max-width:58ch;
  color:var(--muted);
  font-size:clamp(1rem, 1.75vw, 1.2rem);
}

.value strong{
  color:var(--ink);
  font-weight:800;
  text-decoration:underline;
  text-decoration-color:var(--accent);
  text-decoration-thickness:.12em;
  text-underline-offset:.16em;
}

.swap-card{
  width:min(590px, 100%);
  padding:18px;
  border:1px solid var(--line);
  border-radius:8px;
  background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)), var(--panel);
  box-shadow:var(--shadow);
}

.route{
  display:grid;
  grid-template-columns:1fr 42px 1fr;
  align-items:center;
  gap:12px;
}

.leg{
  min-width:0;
  padding:15px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel-2);
  text-align:left;
}

.label{
  display:block;
  color:var(--soft);
  font-size:.69rem;
  font-weight:800;
  letter-spacing:.08em;
  line-height:1;
  text-transform:uppercase;
}

.chip{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  min-height:32px;
}

.token{
  width:30px;
  height:30px;
  flex:0 0 auto;
  border-radius:50%;
}

.symbol{
  min-width:0;
  overflow:hidden;
  color:var(--ink);
  font-size:1.14rem;
  font-weight:850;
  line-height:1;
  text-overflow:ellipsis;
}

.switch{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid var(--line-strong);
  border-radius:50%;
  color:#17140A;
  background:var(--accent);
  cursor:pointer;
  font:900 1.12rem/1 system-ui, sans-serif;
  transition:transform .16s ease, box-shadow .16s ease;
}

.switch:hover{
  transform:translateY(-1px);
  box-shadow:0 0 0 6px var(--accent-soft);
}

.primary{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  margin-top:14px;
  border-radius:8px;
  background:var(--accent);
  color:#12100A;
  font-size:1rem;
  font-weight:900;
  transition:transform .14s ease, box-shadow .14s ease;
}

.primary:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(240,185,11,.18);
}

.note{
  margin-top:10px;
  color:var(--soft);
  font-size:.78rem;
  font-weight:700;
}

.foot{
  flex:0 0 auto;
  padding:14px 18px 22px;
  color:var(--soft);
  font-size:.84rem;
  font-weight:700;
  text-align:center;
}

@media (max-width:700px){
  .topbar{
    min-height:58px;
    padding:13px 14px;
    gap:10px;
  }

  .nav{display:none}
  .brand{font-size:.98rem}
  .ghost{
    min-height:34px;
    padding:0 13px;
    font-size:.84rem;
  }

  .stage{
    gap:20px;
    padding:4px 14px 6px;
  }

  .hero{gap:11px}
  h1{font-size:clamp(2.55rem, 13vw, 3.25rem)}
  .value{
    max-width:32ch;
    font-size:.98rem;
    line-height:1.45;
  }

  .swap-card{padding:14px}
  .route{
    grid-template-columns:1fr;
    gap:9px;
  }

  .leg{padding:13px 14px}
  .chip{margin-top:9px}
  .switch{
    justify-self:center;
    width:38px;
    height:38px;
  }

  .switch span{transform:rotate(90deg)}
  .primary{
    min-height:48px;
    margin-top:12px;
  }

  .foot{padding:10px 18px 16px}
}

@media (max-height:680px){
  .topbar{min-height:56px;padding-top:12px;padding-bottom:12px}
  .stage{gap:18px}
  h1{font-size:clamp(2.35rem, 6vw, 4rem)}
  .swap-card{padding:14px}
  .leg{padding:12px 14px}
  .primary{min-height:46px}
  .foot{padding-bottom:12px}
}
