:root{
  --bg:#F7F7F4;
  --bg-soft:#EFEFEB;
  --surface:#FFFFFF;
  --surface-2:#FAFAF8;
  --ink:#15161A;
  --muted:#646872;
  --faint:#9297A1;
  --line:rgba(21,22,26,.10);
  --line-strong:rgba(21,22,26,.16);
  --accent:#5B6CFF;
  --accent-dark:#4756DC;
  --accent-soft:rgba(91,108,255,.10);
  --shadow:0 30px 70px -42px rgba(21,22,26,.42);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  min-height:100dvh;
  overflow:hidden;
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.45;
  background:
    radial-gradient(circle at 50% -18%, rgba(91,108,255,.14), transparent 36%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  -webkit-font-smoothing:antialiased;
  display:grid;
  grid-template-rows:auto 1fr auto;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit}
h1,p{margin:0}

.topbar{
  width:100%;
  min-height:66px;
  display:flex;
  align-items:center;
  gap:18px;
  padding:16px clamp(18px,4vw,42px) 10px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
  font-size:1rem;
  font-weight:750;
}
.brand img{
  width:30px;
  height:30px;
  border-radius:10px;
  box-shadow:0 8px 20px -14px rgba(21,22,26,.6);
  flex:none;
}
.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:550;
  transition:color .16s ease;
}
.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;
  background:rgba(255,255,255,.62);
  color:var(--ink);
  font-size:.9rem;
  font-weight:700;
  box-shadow:0 12px 28px -24px rgba(21,22,26,.42);
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.ghost:hover{
  transform:translateY(-1px);
  border-color:rgba(91,108,255,.34);
  background:#fff;
}

.stage{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:26px;
  padding:10px clamp(18px,4vw,42px);
  text-align:center;
}
.hero{
  width:min(720px,100%);
  display:flex;
  flex-direction:column;
  align-items:center;
}
h1{
  font-size:clamp(2.72rem,6vw,4.75rem);
  line-height:1.02;
  letter-spacing:0;
  font-weight:820;
}
.value{
  width:min(590px,100%);
  margin-top:15px;
  color:var(--muted);
  font-size:clamp(1rem,1.55vw,1.17rem);
}
.value strong{
  color:var(--ink);
  font-weight:800;
  background:linear-gradient(180deg, transparent 54%, var(--accent-soft) 54%);
}

.app-card{
  width:min(500px,100%);
  padding:18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86));
  box-shadow:var(--shadow);
  text-align:left;
}
.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.preview-label{
  color:var(--muted);
  font-size:.8rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0;
}
.mode-toggle{
  display:inline-grid;
  grid-template-columns:1fr 1fr;
  min-width:176px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-2);
}
.mode-toggle button{
  min-height:30px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  font-size:.78rem;
  font-weight:800;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
.mode-toggle button.active{
  background:var(--surface);
  color:var(--accent);
  box-shadow:0 7px 18px -14px rgba(21,22,26,.52);
}
.asset-list{
  display:grid;
  gap:10px;
}
.asset-row{
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
}
.coin-chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:var(--ink);
  font-size:1.08rem;
  font-weight:850;
}
.coin-chip img{
  width:30px;
  height:30px;
  border-radius:999px;
  flex:none;
}
.row-action{
  color:var(--faint);
  font-size:.84rem;
  font-weight:750;
  white-space:nowrap;
}
.primary{
  width:100%;
  min-height:54px;
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:var(--accent);
  color:#fff;
  font-size:1rem;
  font-weight:850;
  box-shadow:0 18px 34px -20px rgba(91,108,255,.84);
  transition:transform .16s ease,background .16s ease,box-shadow .16s ease;
}
.primary:hover{
  transform:translateY(-1px);
  background:var(--accent-dark);
  box-shadow:0 22px 38px -20px rgba(91,108,255,.94);
}

.foot{
  padding:10px 22px 18px;
  color:var(--faint);
  font-size:.85rem;
  font-weight:650;
  text-align:center;
}

@media (max-width:720px){
  .topbar{
    min-height:60px;
    gap:10px;
    padding:13px 16px 8px;
  }
  .nav{display:none}
  .brand span{font-size:.95rem}
  .ghost{
    min-height:35px;
    padding:0 13px;
    font-size:.84rem;
  }
  .stage{
    gap:20px;
    padding:8px 16px;
  }
  h1{font-size:clamp(2.45rem,12.6vw,3.2rem)}
  .value{
    margin-top:12px;
    font-size:1rem;
    max-width:31ch;
  }
  .app-card{
    padding:15px;
    border-radius:18px;
  }
  .card-head{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .mode-toggle{
    width:100%;
    min-width:0;
  }
  .asset-row{
    min-height:58px;
    padding:11px 12px;
  }
  .primary{min-height:50px}
  .foot{padding:8px 16px 14px}
}

@media (max-width:390px){
  .brand span{max-width:142px;overflow:hidden;text-overflow:ellipsis}
  .ghost{padding:0 11px}
  h1{font-size:2.52rem}
  .value{font-size:.95rem}
  .app-card{padding:13px}
  .coin-chip{font-size:1rem}
  .row-action{font-size:.78rem}
}

@media (max-height:700px){
  .topbar{min-height:56px;padding-top:10px}
  .stage{gap:16px;padding-top:4px;padding-bottom:4px}
  h1{font-size:clamp(2.25rem,5vw,3.45rem)}
  .value{margin-top:9px;font-size:.97rem}
  .app-card{padding:14px}
  .asset-row{min-height:56px;padding-top:10px;padding-bottom:10px}
  .primary{min-height:48px;margin-top:12px}
  .foot{padding-top:6px;padding-bottom:10px}
}
