:root{
  --bg: #ffffff;
  --text: #0b0f14;
  --muted: #56606b;
  --border: rgba(14, 24, 36, 0.10);
  --shadow: 0 18px 60px rgba(15, 25, 40, 0.10);
  --shadow2: 0 10px 26px rgba(15, 25, 40, 0.08);
  --r: 18px;

  /* swap.it lime */
  --a1: #d7ea1a;
  --a2: #b4d610;
  --a3: #8ecf18;
  --a4: #f3ff63;

  --focus: rgba(180, 214, 16, 0.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
code{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace}

.container{
  width:min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.bg-glow{
  position: fixed;
  inset:-40vh -30vw auto -30vw;
  height: 80vh;
  pointer-events:none;
  background:
    radial-gradient(closest-side, rgba(215,234,26,0.22), rgba(255,255,255,0) 70%),
    radial-gradient(closest-side, rgba(142,207,24,0.14), rgba(255,255,255,0) 72%);
  filter: blur(10px);
  z-index:-1;
}

/* Header */
.header{
  position: sticky;
  top: 14px;
  z-index: 20;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow2);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
}
.brand:hover{background: rgba(14,24,36,0.04)}
.brand__icon{width:28px; height:28px}
.brand__text{font-weight:800; letter-spacing:-0.02em}
.dot{color: var(--a2)}

.nav{
  display:flex;
  gap: 18px;
  color: var(--muted);
  font-weight:600;
  font-size: 14px;
}
.nav a{padding: 8px 10px; border-radius: 999px}
.nav a:hover{background: rgba(14,24,36,0.04); color: var(--text)}

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

.btn{
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active{transform: translateY(1px)}
.btn:focus{outline:none; box-shadow: 0 0 0 4px var(--focus)}
.btn--primary{
  border-color: rgba(142,207,24,0.35);
  background: linear-gradient(135deg, var(--a4), var(--a1) 40%, var(--a3));
  box-shadow: 0 14px 36px rgba(142,207,24,0.22);
}
.btn--primary:hover{filter:saturate(1.08)}
.btn--ghost{
  background: rgba(14,24,36,0.03);
}
.btn--ghost:hover{background: rgba(14,24,36,0.06)}
.btn--icon{
  display:none;
  width:42px;
  height:42px;
  padding:0;
  align-items:center;
  justify-content:center;
}

.w-full{width:100%}

.mobile-menu{
  position:absolute;
  top: calc(100% + 12px);
  right: 10px;
  width: min(260px, calc(100vw - 40px));
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.mobile-menu a{
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}
.mobile-menu a:hover{background: rgba(14,24,36,0.04); color: var(--text)}
.divider{height:1px; background: var(--border); margin: 6px 0}

/* Hero */
.hero{
  padding: 48px 0 20px;
  display:grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items:start;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(142,207,24,0.22);
  background: rgba(215,234,26,0.10);
  color: #31410f;
  font-weight: 700;
  font-size: 13px;
}
.pill__dot{
  width:8px;height:8px;border-radius:999px;
  background: linear-gradient(135deg, var(--a4), var(--a3));
  box-shadow: 0 0 0 4px rgba(215,234,26,0.18);
}

h1{
  margin: 18px 0 10px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.grad{
  background: linear-gradient(135deg, var(--a4), var(--a1) 35%, var(--a3));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

.sub{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 52ch;
}

.cta-row{
  display:flex;
  gap: 12px;
  align-items:center;
}

.stats{
  margin-top: 22px;
  display:flex;
  gap: 14px;
  flex-wrap:wrap;
}
.stat{
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  min-width: 150px;
  box-shadow: var(--shadow2);
}
.stat__num{
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.stat__label{
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.ca{
  margin-top: 18px;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow2);
  max-width: 520px;
}
.ca__label{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #31410f;
  background: rgba(215,234,26,0.20);
  border: 1px solid rgba(142,207,24,0.20);
  padding: 6px 8px;
  border-radius: 999px;
}
.ca code{
  flex:1;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2a2f35;
}
.icon-btn{
  border: 1px solid var(--border);
  background: rgba(14,24,36,0.03);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: background .12s ease, transform .12s ease;
}
.icon-btn:hover{background: rgba(14,24,36,0.06)}
.icon-btn:active{transform: translateY(1px)}
.icon-btn:focus{outline:none; box-shadow: 0 0 0 4px var(--focus)}

/* Cards */
.card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
}

.swap{
  padding: 14px;
}
.swap__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 12px;
}
.swap__title{
  display:flex;
  align-items:baseline;
  gap: 10px;
}
.swap__badge{
  font-weight: 900;
  letter-spacing: -0.02em;
}
.swap__tiny{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.swap__body{display:flex; flex-direction:column; gap: 10px}

.field{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}
.field__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
label{font-size: 12px; font-weight: 800; color: var(--muted)}
.token{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(14,24,36,0.03);
  cursor:pointer;
  font-weight: 900;
}
.token:hover{background: rgba(14,24,36,0.06)}
.token__icon{
  width: 20px; height: 20px; border-radius: 999px;
  background: linear-gradient(135deg, var(--a4), var(--a3));
  box-shadow: 0 6px 14px rgba(142,207,24,0.18);
}
.token__chev{opacity:.7; font-weight:900}

.amount{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 10px;
}
.amount input{
  flex:1;
  border:none;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  outline:none;
}
.amount input::placeholder{color: rgba(11,15,20,0.25)}
.mini{
  border: 1px solid rgba(142,207,24,0.30);
  background: rgba(215,234,26,0.14);
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 900;
  cursor:pointer;
}
.mini:hover{filter:saturate(1.05)}
.hint{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.switch{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(142,207,24,0.25);
  background: linear-gradient(135deg, rgba(243,255,99,0.55), rgba(142,207,24,0.20));
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  margin: -6px auto;
  box-shadow: 0 12px 24px rgba(142,207,24,0.14);
}
.switch:hover{filter:saturate(1.08)}
.switch:active{transform: translateY(1px)}
.switch:focus{outline:none; box-shadow: 0 0 0 4px var(--focus)}

.tag{
  font-size: 12px;
  font-weight: 900;
  color: #31410f;
  background: rgba(215,234,26,0.18);
  border: 1px solid rgba(142,207,24,0.20);
  padding: 6px 10px;
  border-radius: 999px;
}

.details{
  padding: 10px 2px 6px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.details__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight: 800;
  color: #28303a;
  font-size: 13px;
}
.details__row span:first-child{color: var(--muted); font-weight: 800}

.tiny{
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Mini card */
.mini-card{padding: 14px; margin-top: 14px}
.mini-card__title{font-weight: 900; margin-bottom: 10px}
.mini-list{display:flex; flex-direction:column; gap: 10px}
.mini-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.mini-item__left{display:flex; align-items:center; gap: 10px}
.badge{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--a4), var(--a3));
  box-shadow: 0 8px 18px rgba(142,207,24,0.15);
}
.mini-item__sym{font-weight: 900}
.mini-item__pct{font-weight: 900; color: #1c2b10}

/* Sections */
.section{padding: 44px 0}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section__head h2{
  margin:0;
  font-size: 28px;
  letter-spacing:-0.03em;
}
.section__head p{
  margin:0;
  color: var(--muted);
  font-weight: 700;
  max-width: 50ch;
  line-height: 1.6;
}

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature{padding: 16px}
.feature__icon{font-size: 20px}
.feature h3{margin: 10px 0 6px; letter-spacing:-0.02em}
.feature p{margin:0; color: var(--muted); font-weight: 700; line-height:1.6; font-size: 13px}

/* Token table */
.table{padding: 6px}
.table__row{
  display:grid;
  grid-template-columns: 1.2fr 0.6fr 0.8fr 0.4fr;
  align-items:center;
  padding: 12px 12px;
  border-radius: 14px;
  gap: 10px;
}
.table__head{
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
.token-row{
  border: 1px solid transparent;
}
.token-row:hover{
  border-color: rgba(142,207,24,0.22);
  background: rgba(215,234,26,0.10);
}
.token-cell{
  display:flex;
  align-items:center;
  gap: 10px;
}
.token-name{font-weight: 900}
.token-sub{font-size: 12px; color: var(--muted); font-weight: 700}
.pct{font-weight: 900}
.liq{font-weight: 900}
.use{
  justify-self:end;
  font-weight: 900;
  color: #31410f;
}

/* FAQ */
.faq{display:grid; gap: 12px}
details.card{padding: 14px 16px}
summary{
  cursor:pointer;
  font-weight: 900;
  list-style:none;
}
summary::-webkit-details-marker{display:none}
details p{margin: 10px 0 0; color: var(--muted); font-weight: 700; line-height:1.6}

/* Footer */
.footer{
  padding: 26px 0 42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.footer__left{display:flex; align-items:center; gap: 12px}
.footer__icon{width:28px;height:28px}
.footer__brand{font-weight: 900}
.footer__tiny{color: var(--muted); font-weight: 700; font-size: 12px}
.footer__right{display:flex; gap: 14px; color: var(--muted); font-weight: 800}
.link:hover{color: var(--text)}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:50;
}
.modal[aria-hidden="false"]{display:block}
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(10,14,18,0.22);
  backdrop-filter: blur(6px);
}
.modal__panel{
  position:relative;
  width: min(520px, calc(100% - 40px));
  margin: 80px auto 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
  padding: 14px;
}
.modal__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.modal__title{font-weight: 900; font-size: 16px}
.modal__sub{color: var(--muted); font-weight: 700; font-size: 12px; margin-top: 4px}
.modal__search{margin-top: 12px}
.modal__search input{
  width:100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  font-weight: 800;
  outline:none;
}
.modal__search input:focus{box-shadow: 0 0 0 4px var(--focus)}
.modal__list{
  margin-top: 12px;
  max-height: 320px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap: 8px;
  padding-right: 4px;
}
.token-opt{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor:pointer;
}
.token-opt:hover{background: rgba(215,234,26,0.12); border-color: rgba(142,207,24,0.24)}
.token-opt__left{display:flex; align-items:center; gap: 10px}
.token-opt__sym{font-weight: 900}
.token-opt__name{font-size: 12px; color: var(--muted); font-weight: 700}
.token-opt__tag{
  font-size: 12px;
  font-weight: 900;
  color: #31410f;
}

/* Toast */
.toast{
  position: fixed;
  right: 18px;
  bottom: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow2);
  border-radius: 16px;
  padding: 12px 12px;
  display:flex;
  align-items:center;
  gap: 10px;
  z-index: 60;
}
.toast__dot{
  width:10px;height:10px;border-radius:999px;
  background: linear-gradient(135deg, var(--a4), var(--a3));
}
.toast__text{font-weight: 900}

/* Swap status overlay */
.swap-status{
  position: fixed;
  inset:0;
  z-index: 70;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(10,14,18,0.20);
  backdrop-filter: blur(8px);
  padding: 18px;
}
.swap-status__card{
  width:min(420px, 100%);
  border-radius: 18px;
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
  text-align:center;
}
.swap-status__title{font-weight: 900; margin-top: 10px}
.swap-status__sub{color: var(--muted); font-weight: 700; margin-top: 6px}
.swap-status__tx{
  margin-top: 12px;
  font-weight: 900;
  color: #31410f;
  word-break: break-all;
  background: rgba(215,234,26,0.12);
  border: 1px solid rgba(142,207,24,0.22);
  border-radius: 14px;
  padding: 10px 10px;
}

.spinner{
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(14,24,36,0.10);
  border-top-color: rgba(142,207,24,0.85);
  margin: 0 auto;
  animation: spin 0.9s linear infinite;
}
@keyframes spin{to{transform: rotate(360deg)}}

/* Responsive */
@media (max-width: 940px){
  .hero{grid-template-columns: 1fr; padding-top: 24px}
  .nav{display:none}
  .btn--icon{display:flex}
  .header{border-radius: 22px}
}
@media (max-width: 900px){
  .grid{grid-template-columns: repeat(2, 1fr)}
  .section__head{flex-direction:column; align-items:flex-start}
}
@media (max-width: 520px){
  .grid{grid-template-columns: 1fr}
  .stat{min-width: 0; width:100%}
  .header__actions .btn--ghost{display:none}
}


/* Ensure hidden attribute always hides (fixes modal showing on load) */
[hidden]{display:none !important;}
