/* ==========================================================================
   0FEE — stylesheet
   ========================================================================== */
:root {
  --bg: #070a12;
  --bg-2: #0a0f1d;
  --card: rgba(255, 255, 255, 0.045);
  --card-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f8;
  --muted: #93a0b8;
  --muted-2: #6c7a94;
  --accent: #00e08a;
  --accent-ink: #04150e;
  --accent-2: #5b8cff;
  --warn: #ffb545;
  --danger: #ff6b6b;
  --radius: 26px;
  --radius-sm: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(0, 224, 138, 0.14), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(700px 700px at 50% 110%, rgba(0, 224, 138, 0.06), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-family: var(--font); }
html, body { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* top strip ---------------------------------------------------------------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0, 224, 138, 0.12), rgba(91, 140, 255, 0.1));
  font-size: 12.5px;
  color: #d6e2f2;
  overflow: hidden;
}
.topbar-track {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 8px 22px; flex-wrap: wrap; text-align: center;
}
.topbar b { color: #fff; }
.topbar .dot { color: var(--muted-2); }
.topbar a { color: var(--accent); font-weight: 600; }
.tb-short { display: none; }

/* header ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(140deg, var(--accent), #12b4ff);
  color: var(--accent-ink);
  display: grid; place-items: center; font-size: 17px; font-weight: 900;
}
.brand-word { font-size: 19px; }
.brand-sub {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 5px; margin-left: 4px;
}
.brand.small .brand-mark { width: 24px; height: 24px; border-radius: 8px; font-size: 14px; }
.brand.small .brand-word { font-size: 16px; }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.chain-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
}
.chain-pill:hover { border-color: var(--line-strong); }
.chain-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(0, 224, 138, 0.16); }

.btn {
  border: 0; border-radius: 999px; font-weight: 700; font-size: 14px;
  padding: 12px 20px; transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4bd6ff);
  color: #04150e; box-shadow: 0 10px 30px rgba(0, 224, 138, 0.22);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { background: rgba(255, 255, 255, 0.08); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }
.btn-connect { padding: 10px 18px; }

/* hero --------------------------------------------------------------------- */
.hero { padding: 54px 0 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 452px; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0, 224, 138, 0.35); background: rgba(0, 224, 138, 0.09);
  color: #b9f7db; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600;
}
.badge b { color: #fff; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { font-size: 46px; line-height: 1.08; margin: 18px 0 0; letter-spacing: -0.035em; font-weight: 800; }
.grad { background: linear-gradient(100deg, var(--accent) 10%, #4bd6ff 55%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 16px; max-width: 560px; margin: 18px 0 0; }
.lede-short { display: none; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.hero-points li { color: #cbd6e6; font-size: 14.5px; padding-left: 26px; position: relative; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(0, 224, 138, 0.16); border: 1px solid rgba(0, 224, 138, 0.5);
}
.hero-points li::after {
  content: ""; position: absolute; left: 5px; top: 11px; width: 4px; height: 6px;
  border-right: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(38deg);
}
.hero-stats { display: flex; gap: 34px; margin-top: 32px; }
.hero-stats > div { display: flex; flex-direction: column; }
.stat-num { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.stat-label { font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }

/* swap card ---------------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, rgba(20, 27, 43, 0.92), rgba(11, 16, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.swap-card { position: relative; padding: 18px; width: 100%; }
.card-tabs { display: flex; gap: 6px; align-items: center; margin-bottom: 12px; }
.tab {
  background: transparent; border: 0; color: var(--muted); font-size: 15px; font-weight: 700;
  padding: 8px 12px; border-radius: 10px;
}
.tab.is-active { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.settings-btn { margin-left: auto; }
.icon-btn {
  background: transparent; border: 0; color: var(--muted); width: 32px; height: 32px;
  border-radius: 9px; display: grid; place-items: center;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.route-row { display: flex; align-items: center; gap: 10px; padding: 0 2px 8px; }
.route-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); }
.chips { display: flex; gap: 6px; }
.chip {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600;
}
.chip.is-active { color: #fff; border-color: rgba(0, 224, 138, 0.55); background: rgba(0, 224, 138, 0.13); }
.chip.sm { padding: 4px 9px; }
.panel { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius-sm); padding: 13px 14px 11px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.bal { background: none; border: 0; color: var(--muted); font-size: 12.5px; padding: 0; }
.bal:hover { color: var(--text); }
.panel-body { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.amount {
  flex: 1 1 auto; min-width: 0; width: 100%;
  background: none; border: 0; outline: none; color: #fff;
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em; padding: 2px 0;
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis;
}
.amount::placeholder { color: #5b6680; }
.token-side { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.chain-select {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05); display: grid; place-items: center; padding: 0;
}
.chain-select .chain-dot { width: 10px; height: 10px; }
.token-select {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text); border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 700; font-size: 15px;
}
.token-select:hover { background: rgba(255, 255, 255, 0.12); }
.t-avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #05100c;
  background: linear-gradient(140deg, var(--accent), #6ea8ff);
}
.panel-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted-2); margin-top: 6px; min-height: 16px; }
.max-btn { background: rgba(0, 224, 138, 0.12); border: 1px solid rgba(0, 224, 138, 0.4); color: var(--accent); font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.fee-free { color: var(--accent); font-weight: 700; }
.flip {
  display: block; margin: -9px auto; position: relative; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: #131b2c; border: 1px solid var(--line-strong); color: var(--muted);
  place-items: center; display: grid;
}
.flip:hover { color: var(--text); border-color: rgba(0, 224, 138, 0.6); }

.details { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.028); border: 1px solid rgba(255, 255, 255, 0.05); display: grid; gap: 6px; }
.details[hidden], .settings[hidden], .modal[hidden] { display: none; }
.detail-row { display: flex; justify-content: space-between; gap: 14px; font-size: 12.6px; color: var(--muted); }
.detail-row b { color: #dfe7f3; font-weight: 600; text-align: right; }
.detail-row.accent b { color: var(--accent); }
.detail-row .pos { color: var(--accent); }
.detail-row .neg { color: var(--danger); }

.btn-swap { width: 100%; margin-top: 14px; padding: 16px; font-size: 16px; border-radius: 16px; }
.card-note { font-size: 11.6px; color: var(--muted-2); text-align: center; margin: 10px 0 0; }

.settings {
  position: absolute; inset: 52px 18px auto; z-index: 5;
  background: #101828; border: 1px solid var(--line-strong); border-radius: 16px; padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.settings-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.field { display: block; margin-bottom: 12px; font-size: 12.5px; color: var(--muted); }
.slippage-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.slippage-row input {
  width: 84px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: #fff;
  border-radius: 9px; padding: 7px 10px; font-size: 13px; outline: none;
}
.unit { font-size: 12px; color: var(--muted-2); margin-right: 4px; }
.hint { font-size: 11.5px; color: var(--muted-2); margin: 6px 0 0; }

/* sponsor ------------------------------------------------------------------ */
.sponsor-slot {
  margin: 26px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  background: linear-gradient(100deg, rgba(91, 140, 255, 0.1), rgba(0, 224, 138, 0.08));
  border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: 20px; padding: 18px 22px;
}
.sponsor-label {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2);
  display: block; margin-bottom: 4px;
}
.sponsor-copy h3 { font-size: 17px; }
.sponsor-copy p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; max-width: 620px; }
.sponsor-slot .btn { white-space: nowrap; }

/* sections ----------------------------------------------------------------- */
.section { padding: 66px 0 0; }
.section-title { font-size: 28px; }
.section-sub { color: var(--muted); margin: 8px 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; }
.feature b { color: #d9e3f2; }
.feature-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 224, 138, 0.12); border: 1px solid rgba(0, 224, 138, 0.3);
  color: var(--accent); font-weight: 800; font-size: 14px; margin-bottom: 12px;
}
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.step span { color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; }
.step h4 { font-size: 15.5px; margin: 6px 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }

.faq { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted-2); font-weight: 700; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; max-width: 780px; font-size: 14px; }
.faq a { color: var(--accent); }

/* footer ------------------------------------------------------------------- */
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); padding: 34px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-note { color: var(--muted-2); font-size: 13px; margin: 12px 0 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.disclaimer { color: #5f6b83; font-size: 11.5px; margin-top: 26px; max-width: 900px; }

/* token modal -------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.72); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; width: min(430px, calc(100vw - 28px)); max-height: min(640px, calc(100vh - 40px));
  background: #0d1322; border: 1px solid var(--line-strong); border-radius: 22px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-chainrow { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.mchain {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600;
}
.mchain.is-active { color: #fff; border-color: rgba(0, 224, 138, 0.5); background: rgba(0, 224, 138, 0.12); }
.modal-search {
  width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: #fff; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; outline: none;
}
.modal-search:focus { border-color: rgba(0, 224, 138, 0.5); }
.token-list { overflow-y: auto; display: grid; gap: 2px; min-height: 120px; }
.trow {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: transparent; border: 0; color: var(--text); padding: 9px 8px; border-radius: 12px; font-size: 14px;
}
.trow:hover { background: rgba(255, 255, 255, 0.06); }
.trow .t-avatar { width: 30px; height: 30px; font-size: 13px; }
.trow .t-meta { display: flex; flex-direction: column; line-height: 1.25; }
.trow .t-name { color: var(--muted-2); font-size: 11.5px; }
.trow .t-bal { margin-left: auto; color: var(--muted); font-size: 12px; }
.trow .tag {
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 4px;
}
.import-box { display: flex; gap: 8px; }
.import-box .btn { padding: 9px 14px; font-size: 13px; }
.empty { color: var(--muted-2); font-size: 13px; padding: 18px 8px; }

/* toast -------------------------------------------------------------------- */
.toast-wrap { position: fixed; z-index: 120; left: 50%; transform: translateX(-50%); bottom: 22px; display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); }
.toast {
  background: #101a2b; border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 13px; padding: 11px 14px; font-size: 13px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  display: flex; gap: 8px; align-items: flex-start;
}
.toast.ok { border-color: rgba(0, 224, 138, 0.5); }
.toast.err { border-color: rgba(255, 107, 107, 0.55); }
.toast a { color: var(--accent); text-decoration: underline; }

/* responsive --------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .swap-card { max-width: 460px; margin: 0 auto; }
  .hero-copy { text-align: left; }
  .nav { display: none; }
  .feature-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .topbar-track span.dot, .topbar-track .tb-long { display: none; }
  .topbar-track .tb-short { display: inline; }
  .topbar-track { flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; font-size: 11px; justify-content: flex-start; gap: 10px; }
  .header-inner { height: 60px; gap: 10px; }
  .brand-sub { display: none; }
  .hero { padding: 26px 0 16px; }
  .hero h1 { font-size: 32px; line-height: 1.12; }
  .lede { font-size: 14.5px; margin-top: 12px; }
  .lede-long { display: none; }
  .lede-short { display: inline; }
  .hero-points, .hero-stats { display: none; }
  .swap-card { padding: 14px; border-radius: 22px; margin-top: 4px; }
  .amount { font-size: 27px; }
  .btn-swap { padding: 15px; font-size: 15px; }
  .feature-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .sponsor-slot { flex-direction: column; align-items: flex-start; }
  .section { padding: 46px 0 0; }
  .section-title { font-size: 23px; }
  .chain-pill { padding: 8px 11px; font-size: 12px; }
  .chain-pill #chainPillName { font-size: 11.5px; }
  .btn-connect { padding: 10px 14px; font-size: 13px; }
  .footer-inner { flex-direction: column; gap: 16px; }
}
@media (max-width: 390px) {
  .amount { font-size: 24px; }
  .hero h1 { font-size: 29px; }
  .token-select { padding: 4px 9px 4px 4px; font-size: 14px; }
  .btn-connect { padding: 9px 12px; font-size: 12.5px; }
}
