:root {
  --surface: #0d1628;
  --surface-2: #111d34;
  --surface-3: #0f1a2f;
  --text: #edf3ff;
  --muted: #acbddb;
  --line: rgba(145, 165, 199, 0.2);
  --primary: #1f84ff;
  --primary-2: #3b96ff;
  --success: #55e0b2;
  --danger: #ff7c9f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 22%, rgba(24, 63, 128, 0.25), rgba(6, 11, 20, 0) 40%),
    linear-gradient(180deg, #050913 0%, #090f1d 100%);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 5.2rem 0; }
.section-alt {
  background: rgba(14, 26, 46, 0.34);
  border-top: 1px solid rgba(145, 165, 199, 0.12);
  border-bottom: 1px solid rgba(145, 165, 199, 0.12);
}

h1, h2, h3 { line-height: 1.15; margin-top: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }

.top-nav {
  border-bottom: 1px solid rgba(145, 165, 199, 0.14);
  background: rgba(8, 16, 30, 0.88);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}
.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-weight: 600;
  color: #d8e6ff;
}
.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(128, 158, 208, 0.26);
  background: rgba(15, 31, 56, 0.6);
}
.nav-links, .nav-left { display: flex; align-items: center; gap: 0.85rem; }
.nav-link, .back-link { color: #9fb8df; font-size: 0.92rem; }

.hero {
  min-height: calc(100vh - 66px);
  display: flex;
  align-items: center;
  padding: 3.6rem 0 4.4rem;
}
.hero-grid { display: grid; justify-items: center; }
.hero-content { max-width: 820px; text-align: center; }
.eyebrow {
  color: #9ec3fb;
  font-weight: 600;
  font-size: 0.84rem;
  border: 1px solid rgba(133, 166, 219, 0.24);
  background: rgba(22, 38, 64, 0.44);
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  display: inline-flex;
}
.text-accent-blue {
  background: linear-gradient(180deg, #2f83ff 0%, #67c9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-accent-gold {
  background: linear-gradient(180deg, #ffde7a 0%, #efe5b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rate-pills { display: flex; justify-content: center; gap: 0.82rem; margin: 1.3rem 0 2rem; flex-wrap: wrap; }
.rate-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.52rem;
  border: 1px solid rgba(145, 165, 199, 0.22);
  border-radius: 12px;
  background: rgba(16, 29, 50, 0.6);
  padding: 0.72rem 1rem;
}
.rate-pill span, .rate-pill em { color: var(--muted); font-size: 0.95rem; font-style: normal; }
.rate-pill strong { font-size: 2rem; line-height: 1; }
.loyalty-note {
  margin-top: -0.7rem;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 11px;
  padding: 0.74rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 80%);
  color: #fff;
  min-width: 170px;
  box-shadow: 0 8px 18px rgba(22, 80, 164, 0.32);
}
.btn-secondary {
  border-color: rgba(145, 165, 199, 0.24);
  color: #d5e4ff;
  background: rgba(16, 30, 53, 0.52);
}
.btn-link { color: #58a8ff; font-weight: 600; padding: 0.45rem 0.2rem; }

.btn:hover {
  box-shadow: 0 0 0 1px rgba(88, 168, 255, 0.45), 0 0 22px rgba(31, 132, 255, 0.35);
}

.status-strip { padding-top: 1rem; padding-bottom: 0.8rem; }
.status-grid, .metrics-grid, .cards-grid, .safety-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.status-pill, .metric-card, .card, .panel, .vouch-card, .faq-item, .rate-pill {
  border: 1px solid rgba(145, 165, 199, 0.18);
  background: rgba(16, 29, 50, 0.58);
}
.status-pill { border-radius: 999px; padding: 0.55rem 0.9rem; font-size: 0.92rem; color: #c6d8f5; }
.status-pill.pulse { animation: none; }
.dot-live { display: inline-block; width: 8px; height: 8px; background: #3dde7b; border-radius: 999px; margin-right: 0.4rem; }
.metric-card { border-radius: 14px; padding: 1.2rem; }
.metric-card span { color: var(--muted); font-size: 0.86rem; }
.metric-card strong { display: block; margin-top: 0.3rem; font-size: 1.7rem; font-variant-numeric: tabular-nums; }

.calculator-wrap { text-align: left; }
.calc-presets { display: flex; gap: 0.5rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.chip {
  border: 1px solid rgba(145, 165, 199, 0.22);
  background: rgba(16, 29, 50, 0.54);
  color: #c2d7fa;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  cursor: pointer;
}
.chip.is-active { border-color: rgba(37, 148, 255, 0.6); background: rgba(20, 89, 172, 0.4); color: #fff; }
.calc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  grid-template-areas:
    "direction direction direction amount amount amount speed speed speed loyalty loyalty loyalty"
    "fee fee fee output output output swap swap swap swap swap swap";
}
.calc-item-direction,
.calc-item-amount,
.calc-item-speed,
.calc-item-loyalty {
  grid-column: span 3;
}
.calc-item-fee,
.calc-item-output,
.calc-item-swap {
  grid-column: span 3;
}
.calc-item-direction { grid-area: direction; }
.calc-item-amount { grid-area: amount; }
.calc-item-speed { grid-area: speed; }
.calc-item-loyalty { grid-area: loyalty; }
.calc-item-fee { grid-area: fee; }
.calc-item-output { grid-area: output; }
.calc-item-swap { grid-area: swap; width: 100%; }
.calc-item-loyalty .anon-toggle {
  height: 42px;
  align-items: center;
}
.calc-result { border-radius: 10px; padding: 0.7rem 0.85rem; }
.calc-result span { display: block; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.calc-result strong { font-size: 1.18rem; }
.calc-item-fee strong {
  line-height: 1.1;
  margin-top: 0.1rem;
  display: block;
  white-space: nowrap;
}
.calc-item-fee small {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.82rem;
}
.calc-bars { display: none; }

.cards-grid, .steps-grid { gap: 1.2rem; }
.card, .panel, .vouch-card { border-radius: 14px; padding: 1.25rem; }
.card-icon { display: none; }
.card p, .step p, .subtle { color: var(--muted); }

.card:hover,
.panel:hover,
.vouch-card:hover,
.metric-card:hover,
.faq-item:hover {
  border-color: rgba(88, 168, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(88, 168, 255, 0.3), 0 0 28px rgba(31, 132, 255, 0.25);
}

.how-wrap { text-align: center; }
.steps-grid { margin-top: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(145, 165, 199, 0.2);
  background: rgba(16, 29, 50, 0.58);
  padding: 1.2rem;
  box-shadow: none;
  transition: transform 0.18s ease, border 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.step-line,
.step-icon {
  display: none;
}
.step-number {
  position: static;
  min-width: 38px;
  height: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(30, 132, 255, 0.2);
  border: 1px solid rgba(30, 132, 255, 0.45);
  color: #8fc5ff;
  margin-bottom: 0.65rem;
}
.step:hover {
  transform: translateY(-3px);
  border-color: rgba(88, 168, 255, 0.46);
  box-shadow: 0 0 0 1px rgba(88, 168, 255, 0.35), 0 0 24px rgba(31, 132, 255, 0.24);
}

.vouch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem; text-align: left; }
.vouch-actions-inline { display: flex; gap: 0.65rem; align-items: center; margin-top: 0.35rem; }
.vouch-empty { margin-top: 2.5rem; color: var(--muted); }
.recent-vouches {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.page-header { padding: 1rem 0; }
.search-row { margin: 1rem 0 1.2rem; }
.search-layout { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: center; }
.vouch-count { color: #9ab2d8; margin: 0.2rem 0 0; }
.section-intro { margin-top: -0.2rem; margin-bottom: 1.2rem; }
label { font-size: 0.92rem; font-weight: 600; }
input, textarea, select {
  width: 100%; border: 1px solid rgba(145, 165, 199, 0.22); background: var(--surface-3);
  color: var(--text); border-radius: 10px; padding: 0.72rem 0.86rem; font: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: rgba(47, 131, 255, 0.72); box-shadow: 0 0 0 3px rgba(47, 131, 255, 0.18);
}
textarea { min-height: 140px; resize: vertical; }
.form-grid { display: grid; gap: 0.95rem; }
.submit-panel { max-width: 620px; margin: 0 auto; }
.anon-toggle { display: inline-flex; align-items: center; gap: 0.6rem; color: #b9cae7; }
.anon-toggle input { width: auto; }
.char-count { display: block; margin-top: 0.35rem; text-align: right; }
.status { margin-top: 0.85rem; font-weight: 600; }
.status.ok { color: var(--success); }
.status.err { color: var(--danger); }

.vouch-list { display: grid; gap: 0.9rem; }
.vouch-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.45rem; }
.verified-badge {
  color: #78ceff; border: 1px solid rgba(120, 206, 255, 0.35); border-radius: 999px;
  padding: 0.1rem 0.45rem; font-size: 0.74rem;
}
.empty {
  color: var(--muted); border: 1px dashed rgba(145, 165, 199, 0.26); border-radius: 12px;
  padding: 1.4rem 1rem; background: rgba(16, 28, 56, 0.34); text-align: center;
}

.site-footer {
  margin-top: 5rem; border-top: 1px solid rgba(145, 165, 199, 0.12); background: rgba(11, 20, 36, 0.5);
}
.footer-main {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}
.footer-bottom {
  border-top: 1px solid rgba(145, 165, 199, 0.12);
  padding: 0.75rem 0 1rem;
  color: #8eaad3;
  font-size: 0.9rem;
}
.footer-links { display: flex; gap: 1.2rem; color: #9fb8df; font-size: 0.95rem; }
.footer-copy {
  margin: 0.45rem 0 0;
  max-width: 440px;
}

.safety-list { margin: 0; padding-left: 1.1rem; }
.safety-list li { margin-bottom: 0.55rem; }
.faq-accordion { display: grid; gap: 0.65rem; }
.faq-item { border-radius: 12px; padding: 0.86rem 0.95rem; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: 0.6rem 0 0; }

.sticky-discord, .connected-account, .connect-grid, .divider { display: none; }

@media (max-width: 760px) {
  .section { padding: 4rem 0; }
  .top-nav .container { min-height: 58px; }
  .btn-primary { min-width: 150px; }
  .calc-grid, .search-layout, .steps-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-areas: none; }
  .calc-item-direction,
  .calc-item-amount,
  .calc-item-speed,
  .calc-item-loyalty,
  .calc-item-fee,
  .calc-item-output,
  .calc-item-swap { grid-column: span 1; }
  .steps-grid { margin-top: 1.4rem; }
  .step { padding-top: 1.2rem; }
  .vouch-head { flex-direction: column; align-items: flex-start; }
  .vouch-actions-inline { width: 100%; flex-wrap: wrap; }
  .vouch-empty { margin-top: 2rem; text-align: left; }
  .footer-main { padding: 0.85rem 0; flex-direction: column; align-items: flex-start; min-height: auto; }
  .footer-links { gap: 0.8rem; flex-wrap: wrap; }
}
