/* ============================================================
   Solana Exchange – design system
   Light theme · Schibsted Grotesk + JetBrains Mono · accent #6741E0
   ============================================================ */

:root {
  --accent: #6741E0;
  --accent-strong: #5230C9;
  --accent-050: #F3EFFE;
  --accent-100: #E7DEFB;

  --ink: #17161C;
  --ink-2: #67646F;
  --ink-3: #9C99A4;

  --bg: #FBFAF8;
  --surface: #FFFFFF;
  --soft: #F4F2EC;
  --line: #EAE8E1;

  --green: #1B8A5E;
  --green-050: #E8F4EE;
  --red: #C6413B;
  --red-050: #FBECEB;

  --sans: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 18px;
  --shadow-card: 0 1px 2px rgba(20, 20, 30, 0.04), 0 34px 70px -46px rgba(60, 40, 160, 0.45);
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

h1, h2, h3 { letter-spacing: -0.03em; font-weight: 700; margin: 0; }

img { max-width: 100%; display: block; }
input { font-family: inherit; }

@keyframes se-spin { to { transform: rotate(360deg); } }

/* ---------- layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: 1100px; }
.wrap--tight { max-width: 900px; }

.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 22px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(103, 65, 224, 0.9);
}
.btn--primary:hover { background: var(--accent-strong); color: #fff; }
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent-100); background: var(--accent-050); }
.btn--pill { border-radius: 999px; padding: 10px 20px; font-size: 14px; }
.btn--sm { padding: 8px 16px; font-size: 13.5px; border-radius: 999px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow:hover { color: var(--accent-strong); }

/* ---------- badges / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
}
.badge--ok { background: var(--green-050); color: var(--green); }
.badge--warn { background: var(--red-050); color: var(--red); }

.token-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-050), #fff);
  border: 1px solid var(--accent-100);
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}
.token-mark img { width: 100%; height: 100%; object-fit: cover; }

/* generic surface card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(251, 250, 248, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--accent), #8B6BF0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px -4px rgba(103, 65, 224, 0.6);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); }
.main-nav .btn { color: #fff; }

/* ---------- safety banner ---------- */
.safety-banner {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent-050);
  border-bottom: 1px solid var(--accent-100);
  padding: 11px 32px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent-strong);
}
.safety-banner:hover { color: var(--accent-strong); background: var(--accent-100); }
.safety-banner .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- hero (home) ---------- */
.hero .wrap { padding-top: 80px; padding-bottom: 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 440px);
  gap: 60px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 26px;
}
.hero-kicker .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.hero h1 {
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-lead {
  margin: 26px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 440px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-2);
}
.status-pill b { color: var(--ink); font-weight: 600; }
.status-dot { position: relative; width: 8px; height: 8px; flex-shrink: 0; }
.status-dot::before,
.status-dot::after { content: ""; position: absolute; border-radius: 50%; background: var(--green); }
.status-dot::before { inset: 0; }
.status-dot::after { inset: -4px; opacity: 0.18; }

/* ---------- swap card ---------- */
.swap-shell { position: relative; }
.swap-shell::before {
  content: "";
  position: absolute;
  inset: -40px -20px -30px;
  background: radial-gradient(60% 55% at 70% 30%, rgba(103, 65, 224, 0.16), transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.swap-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.swap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 16px;
}
.swap-head-title { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.swap-head-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.swap-field {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px 16px;
}
.swap-field + .swap-field { margin-top: 6px; }
.swap-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.swap-field-label span:first-child {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.swap-field-label .approx { font-size: 11px; color: var(--ink-3); }
.swap-row { display: flex; align-items: center; gap: 12px; }
.swap-amount {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.token-select {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 20, 30, 0.04);
  font-family: inherit;
}
.token-select .token-mark { width: 28px; height: 28px; font-size: 10px; }
.token-select .sym { font-weight: 700; font-size: 15px; }
.token-select .caret { color: var(--ink-3); font-size: 11px; }
.swap-flip-row { position: relative; height: 0; display: flex; justify-content: center; z-index: 2; }
.swap-flip {
  position: absolute;
  top: -17px;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -6px rgba(20, 20, 30, 0.25);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}
.swap-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px 6px;
}
.swap-rate { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.swap-best { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--green); }
.swap-best .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.swap-note { text-align: center; padding: 14px 0 2px; font-size: 12px; color: var(--ink-3); }

/* ---------- popular pairs ---------- */
.pairs { padding-bottom: 40px; }
.pairs .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pairs-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pairs-list { display: flex; gap: 10px; flex-wrap: wrap; }
.pair-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
}
.pair-chip:hover { border-color: var(--accent-100); background: var(--accent-050); color: var(--ink); }
.pair-chip .arrow { color: var(--ink-3); font-weight: 400; }

/* ---------- features grid ---------- */
.features .wrap { padding-top: 64px; padding-bottom: 40px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 30px 26px;
}
.feature-num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 18px; }
.feature h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* ---------- trust / safety split section ---------- */
.trust {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 48px;
}
.trust .wrap {
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 460px);
  gap: 60px;
  align-items: center;
}
.trust h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.08; margin-top: 22px; }
.trust p { margin: 24px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 480px; }
.trust p + p { margin-top: 18px; }
.trust .link-arrow { margin-top: 28px; }

/* safety check card (shared: home + token detail) */
.check-card { overflow: hidden; box-shadow: 0 30px 60px -46px rgba(60, 40, 160, 0.4); }
.check-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.check-head .token-mark { width: 38px; height: 38px; font-size: 12px; }
.check-head-meta { display: flex; flex-direction: column; gap: 2px; }
.check-head-meta .name { font-weight: 700; font-size: 15px; }
.check-head-meta .sub { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.check-head .badge { margin-left: auto; }
.check-body { padding: 6px 22px 10px; }
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.check-row:last-child { border-bottom: none; }
.check-val {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 13.5px;
}
.check-val--ok { color: var(--green); }
.check-val--warn { color: var(--red); }
.check-val .tick {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.check-val--ok .tick { background: var(--green-050); }
.check-val--warn .tick { background: var(--red-050); }
.check-foot {
  padding: 14px 22px;
  background: var(--soft);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ---------- page heading (inner pages) ---------- */
.page-head { padding-top: 72px; }
.page-head h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; margin-top: 20px; }
.page-head .lead { margin: 16px 0 0; font-size: 17px; color: var(--ink-2); max-width: 560px; }

/* ---------- tokens table ---------- */
.tokens-page { padding-top: 72px; padding-bottom: 96px; }
.tokens-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tokens-top h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; }
.tokens-top p { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); max-width: 520px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 15px;
  min-width: 280px;
}
.search-box .slash { color: var(--ink-3); font-family: var(--mono); font-size: 13px; }
.search-box input { flex: 1; border: none; outline: none; background: transparent; font-size: 14.5px; color: var(--ink); }

.token-table { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.token-table-head,
.token-row {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1fr 1.2fr 1.4fr 0.9fr;
  gap: 16px;
  padding: 16px 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.token-table-head {
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.token-row:last-child { border-bottom: none; }
.token-row:hover { background: var(--soft); }
.token-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
}
.token-identity .token-mark { width: 36px; height: 36px; font-size: 12px; }
.token-identity .sym { font-weight: 700; font-size: 15px; }
.token-identity .name { font-size: 13px; color: var(--ink-3); }
.token-identity .stack { display: flex; flex-direction: column; gap: 1px; }
.t-right { text-align: right; font-variant-numeric: tabular-nums; }
.t-price { font-weight: 600; font-size: 15px; }
.t-change { font-weight: 600; font-size: 14px; }
.t-change.up { color: var(--green); }
.t-change.down { color: var(--red); }
.t-vol { font-size: 14.5px; color: var(--ink-2); }
.t-safety { display: flex; justify-content: flex-end; }
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-050);
  color: var(--green);
  font-weight: 600;
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
}
.score-badge .mono { font-family: var(--mono); }
.score-badge .max { opacity: 0.6; }
.t-action { display: flex; justify-content: flex-end; }
.btn--swap {
  background: var(--accent-050);
  color: var(--accent);
  border: 1px solid var(--accent-100);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.btn--swap:hover { background: var(--accent); color: #fff; }

/* ---------- token detail ---------- */
.token-detail { padding-top: 56px; padding-bottom: 96px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 32px;
}
.detail-head { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; }
.detail-head > .token-mark { width: 64px; height: 64px; font-size: 20px; }
.detail-id { flex: 1; min-width: 260px; }
.detail-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-title h1 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1; }
.detail-title .sym { font-family: var(--mono); font-size: 15px; color: var(--ink-3); font-weight: 500; }
.addr-copy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 13px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}
.addr-copy .do { color: var(--accent); font-weight: 500; font-family: var(--sans); }
.detail-price { text-align: right; }
.detail-price .big { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.detail-price .chg { font-size: 15px; font-weight: 600; margin-top: 4px; }
.detail-price .chg.up { color: var(--green); }
.detail-price .chg.down { color: var(--red); }
.detail-price .chg .muted { color: var(--ink-3); font-weight: 400; }
.detail-price .btn { margin-top: 16px; }

.detail-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.info-card { overflow: hidden; }
.info-card-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.info-card-body { padding: 6px 22px 10px; }
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--ink-2); }
.info-row .v { font-weight: 600; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--ink-2);
}

/* ---------- wiki ---------- */
.wiki { padding-top: 72px; padding-bottom: 96px; }
.wiki h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; max-width: 640px; }
.featured {
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px;
  box-shadow: 0 30px 60px -50px rgba(60, 40, 160, 0.35);
}
.featured h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; max-width: 640px; }
.featured p { margin: 20px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 680px; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-050);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.section-label {
  margin: 56px 0 20px;
  font-size: 15px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.guide-card:hover { border-color: var(--accent-100); background: var(--accent-050); }
.guide-card .cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.guide-card .title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.25; }
.guide-card .desc { font-size: 14px; line-height: 1.5; color: var(--ink-2); flex: 1; }
.guide-card .read { font-size: 12.5px; color: var(--ink-3); }

/* ---------- rating ---------- */
.rating { padding-top: 72px; padding-bottom: 96px; }
.rating h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; max-width: 620px; }
.rating .lead { margin: 16px 0 0; font-size: 17px; color: var(--ink-2); max-width: 560px; }
.rank-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.rank-row {
  display: grid;
  grid-template-columns: 44px 2fr 1.6fr 1fr 0.9fr;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 24px;
}
.rank-row:hover { border-color: var(--accent-100); }
.rank-num { font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--ink-3); }
.rank-id { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.rank-id > a { display: flex; align-items: center; gap: 13px; color: inherit; }
.rank-id .token-mark { width: 38px; height: 38px; font-size: 12px; }
.rank-id .sym { font-weight: 700; font-size: 15px; }
.rank-id .name { font-size: 13px; color: var(--ink-3); }
.rank-id .stack { display: flex; flex-direction: column; gap: 1px; }
.rank-score { display: flex; align-items: center; gap: 12px; }
.rank-bar { flex: 1; height: 7px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.rank-bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.rank-score .num { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--green); width: 34px; text-align: right; }
.rank-checks { font-size: 13.5px; color: var(--ink-2); text-align: right; }
.rank-checks .inline { display: inline-flex; align-items: center; gap: 6px; }
.rank-checks .tick {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--green-050);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--green);
}

/* ---------- about ---------- */
.about-hero { padding-top: 80px; padding-bottom: 24px; }
.about-hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.03; letter-spacing: -0.035em; max-width: 720px; margin-top: 22px; }
.about-hero .lead { margin: 30px 0 0; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 680px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 36px;
}
.stat { background: var(--bg); padding: 28px 24px; }
.stat .big { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.stat .cap { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- prose (markdown content) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin: 40px 0 16px; }
.prose h3 { font-size: 20px; margin: 32px 0 12px; }
.prose p { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); margin: 0 0 16px; }
.prose ul, .prose ol { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 500; }

/* ---------- how-to / faq (token page SEO blocks) ---------- */
.how-to, .faq { margin-top: 44px; }
.how-to h2, .faq h2 { font-size: 26px; margin-bottom: 20px; }
.how-to ol { padding-left: 22px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.how-to li { margin-bottom: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary { font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--accent); }
.faq p { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* ---------- swap widget (token page: base tabs + direction) ---------- */
.swap-section { margin-top: 40px; }
/* Плагин Jupiter рендерится фикс-шириной ~360px — держим всю колонку виджета
   опрятной центрированной, чтобы не терялся в пустоте и влезал на мобилке. */
.swap-widget { max-width: 460px; margin-inline: auto; }
.swap-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.dir-toggle {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dir-btn {
  border: none;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9px;
  cursor: pointer;
}
.dir-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23, 22, 28, 0.08);
}
.base-tabs { display: inline-flex; align-items: center; gap: 6px; }
.base-tabs-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}
.base-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.base-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-050);
  color: var(--accent-strong);
}

/* ---------- intent sections (SEO: one page, three pairs) ---------- */
.intents { margin-top: 56px; }
.intent-block { margin-top: 28px; }
.intent-block h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.intent-block p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
}

/* ---------- jupiter terminal (lazy launcher) ---------- */
.jup-mount {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.jup-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px 28px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(103, 65, 224, 0.9);
}
.jup-launch:hover { background: var(--accent-strong); }

/* После запуска снимаем «карточную» обёртку (фон/рамку/тень), но оставляем
   вертикальный отступ и центрируем плагин по горизонтали. */
.swap-card.is-launched,
.jup-mount.is-launched {
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 0;
  padding: 10px 0;
  display: flex;
  justify-content: center;
}

/* ---------- footer ---------- */
.site-footer { background: #131217; color: #EDEBF2; margin-top: 80px; }
.site-footer .wrap { padding-top: 72px; padding-bottom: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), #8B6BF0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -0.03em;
}
.footer-brand .name { font-weight: 700; font-size: 16px; color: #fff; }
.footer-about { margin: 0; font-size: 14px; line-height: 1.6; color: #9A97A4; max-width: 260px; }
.footer-col-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #736F7E;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #C9C6D2; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid #26242D;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-langs { display: flex; align-items: center; gap: 20px; }
.footer-langs .current { font-size: 13.5px; color: #EDEBF2; font-weight: 600; }
.footer-langs a { color: #8F8B9A; font-size: 13.5px; }
.footer-langs a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: #736F7E; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .swap-shell { max-width: 440px; }
  .trust .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-cards { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .value-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .main-nav { gap: 18px; }
  .main-nav .nav-link { display: none; }
  .hero .wrap { padding-top: 48px; }
  .hero-grid > * { min-width: 0; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 40px); overflow-wrap: break-word; }
  .about-hero h1 { font-size: clamp(30px, 8.5vw, 42px); overflow-wrap: break-word; }
  .swap-shell { max-width: 100%; }
  .swap-shell::before { display: none; }
  .swap-amount { max-width: 100%; }
  .featured { padding: 28px 22px; }
  .features-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-head { flex-direction: column; }
  .detail-price { text-align: left; }
  .tokens-top { flex-direction: column; align-items: stretch; }

  /* tables collapse on mobile */
  .token-table-head { display: none; }
  .token-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .token-row .t-vol, .token-row .t-safety { display: none; }
  .rank-row { grid-template-columns: 32px 1fr auto; gap: 12px; }
  .rank-row .rank-score, .rank-row .rank-checks { display: none; }
}
