:root {
  /* graphite / slate theme */
  --bg-0:      #0e1013;
  --bg-1:      #14171c;
  --bg-2:      #1a1e25;
  --bg-3:      #22262f;

  --surface:   rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.065);
  --surface-3: rgba(255,255,255,.09);

  --border:    rgba(255,255,255,.08);
  --border-2:  rgba(255,255,255,.14);
  --border-3:  rgba(255,255,255,.22);

  --text-0:    #ffffff;
  --text-1:    #e6e8ec;
  --text-2:    #a7adb7;
  --text-3:    #6c727c;

  --accent:    #ffffff;
  --accent-2:  #f2f3f5;

  --brand:     #6ea8fe;
  --brand-2:   #4a86ff;

  --success:   #4ade80;

  --radius:    16px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ─── background fx ─── */
.bg-fx {
  position: fixed; inset: 0; pointer-events: none;
  z-index: 0; overflow: hidden;
}
.orb {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
}
.orb-1 {
  top: -200px; left: -160px;
  background: radial-gradient(circle, rgba(120,140,180,.35), transparent 70%);
}
.orb-2 {
  top: 40%; right: -220px;
  background: radial-gradient(circle, rgba(90,110,150,.28), transparent 70%);
}
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}

/* ─── typography ─── */
h1, h2, h3, h4 {
  color: var(--text-0);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: clamp(38px, 5.8vw, 64px); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
p  { margin: 0; color: var(--text-2); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ─── nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(14,16,19,.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; }
.logo-text {
  font-weight: 700; font-size: 20px;
  color: var(--text-0); letter-spacing: -.01em;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; color: var(--text-2);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text-0); }

/* ─── buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .18s, border-color .18s, box-shadow .18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--text-0);
  color: #0e1013;
  box-shadow: 0 8px 24px -12px rgba(255,255,255,.4);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 12px 28px -12px rgba(255,255,255,.5);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-1);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-3);
  color: var(--text-0);
}

.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-full { width: 100%; padding: 15px 20px; }

/* ─── hero ─── */
.hero {
  position: relative; z-index: 1;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 4vw, 64px) 80px;
}
.hero-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero-left h1 { margin-bottom: 22px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-1);
  background: var(--surface);
  margin-bottom: 24px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(74,222,128,.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
  50%      { box-shadow: 0 0 0 8px rgba(74,222,128,.05); }
}
.lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 44px;
}
.trust {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(14px, 2vw, 26px);
}
.trust-item {}
.trust-num {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -.01em;
}
.trust-lbl {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.trust-sep {
  width: 1px; height: 32px;
  background: var(--border-2);
}

/* ─── calculator ─── */
.calc {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.02) inset;
}
.calc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.calc-title {
  font-weight: 700;
  color: var(--text-0);
  font-size: 17px;
  letter-spacing: -.01em;
}
.calc-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.calc-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--success);
  padding: 5px 10px;
  border: 1px solid rgba(74,222,128,.2);
  background: rgba(74,222,128,.06);
  border-radius: 999px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse-s 1.5s ease-in-out infinite;
}
@keyframes pulse-s {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

.field {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .15s;
}
.field:focus-within { border-color: var(--border-3); }
.field-lbl {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: .04em;
}
.field-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 6px;
}
.field-row input {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: var(--text-0);
  font-size: 22px;
  font-weight: 600;
  padding: 0; margin: 0;
  font-family: inherit;
  letter-spacing: -.01em;
}
.field-row select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-0);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  min-width: 128px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23a7adb7' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 28px;
}
.field-row select:hover { border-color: var(--border-2); }
.field-row select option {
  background: #1a1e25;
  color: #ffffff;
  padding: 8px;
}

.swap-line {
  position: relative;
  display: flex; justify-content: center;
  margin: 10px 0;
}
.swap-line::before, .swap-line::after {
  content: '';
  position: absolute; top: 50%;
  width: calc(50% - 22px);
  height: 1px;
  background: var(--border);
}
.swap-line::before { left: 0; }
.swap-line::after  { right: 0; }
.swap-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text-1);
  border-radius: 50%;
  position: relative; z-index: 1;
}

.calc-meta {
  margin-top: 16px;
  padding: 14px 4px 4px;
  border-top: 1px dashed var(--border-2);
}
.meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.meta-row span { color: var(--text-3); }
.meta-row b   { color: var(--text-1); font-weight: 600; }
.meta-row.total {
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
}
.meta-row.total span { color: var(--text-2); font-weight: 500; font-size: 14px; }
.meta-row.total b {
  color: var(--text-0);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

#exchangeBtn { margin-top: 18px; }
.calc-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* ─── sections ─── */
.section {
  position: relative; z-index: 1;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 64px);
  max-width: 1240px; margin: 0 auto;
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 12px; }
.section-sub {
  max-width: 620px; margin: 0 auto;
  color: var(--text-2);
  font-size: 15px;
}

/* ─── steps ─── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .18s, border-color .18s, background .18s;
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.step-n {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .16em;
  margin-bottom: 16px;
}
.step-title {
  color: var(--text-0);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.step-text {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.step-tg {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  padding: 8px 12px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--surface-2);
  transition: all .15s;
}
.step-tg:hover {
  color: var(--text-0);
  border-color: var(--border-3);
  background: var(--surface-3);
}

/* ─── cards (why) ─── */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .18s, border-color .18s, background .18s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-0);
  margin-bottom: 16px;
}
.card-title {
  color: var(--text-0);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.card-text {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

/* ─── rates ─── */
.rates {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.rate {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  transition: border-color .15s, background .15s;
}
.rate:hover { border-color: var(--border-2); background: var(--surface-2); }
.rate span { color: var(--text-3); font-weight: 600; letter-spacing: .04em; }
.rate b { color: var(--text-0); font-weight: 700; }

/* ─── cta band ─── */
.cta-band {
  position: relative; z-index: 1;
  padding: 40px clamp(20px, 4vw, 64px);
  max-width: 1240px; margin: 20px auto 0;
}
.cta-inner {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 44px);
  display: flex; justify-content: space-between; align-items: center;
  gap: 28px; flex-wrap: wrap;
}
.cta-inner h3 { margin-bottom: 6px; }
.cta-inner p  { color: var(--text-2); font-size: 15px; max-width: 480px; }

/* ─── about ─── */
.about {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  max-width: 1120px; margin: 0 auto;
}
.about-left p { margin-bottom: 14px; }
.about-left .eyebrow { margin-bottom: 14px; }
.about-left h2 { margin-bottom: 18px; }
.about-left .btn { margin-top: 14px; }

.about-right {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 22px;
}
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text-3); }
.info-row b { color: var(--text-0); font-weight: 600; }

/* ─── footer ─── */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 56px clamp(20px, 4vw, 64px) 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 2fr;
  gap: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-sub {
  font-size: 14px;
  color: var(--text-3);
  max-width: 320px;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-3);
  margin-bottom: 6px;
  font-weight: 600;
}
.footer-cols a {
  font-size: 14px;
  color: var(--text-1);
  transition: color .15s;
}
.footer-cols a:hover { color: var(--text-0); }
.footer-bottom {
  max-width: 1240px; margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-3);
  gap: 12px; flex-wrap: wrap;
}

/* ─── floating tg ─── */
.fab-tg {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: var(--text-0);
  color: #0e1013;
  border-radius: 50%;
  box-shadow: 0 12px 28px -6px rgba(0,0,0,.5), 0 0 0 4px rgba(255,255,255,.06);
  z-index: 40;
  transition: transform .15s;
}
.fab-tg:hover { transform: translateY(-3px) scale(1.03); }

/* ─── responsive ─── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .rates { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  /* nav */
  .nav {
    padding: 12px 16px;
    gap: 10px;
  }
  .nav-links { display: none; }
  .logo-text { font-size: 18px; }
  .logo-mark { width: 26px; height: 26px; }

  /* hero */
  .hero {
    padding: 32px 16px 40px;
  }
  .hero-inner { gap: 28px; }
  h1 {
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: -.02em;
  }
  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 18px;
  }
  .hero-left h1 { margin-bottom: 16px; }
  .lead {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .hero-cta {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
  }
  .hero-cta .btn { width: 100%; }

  /* trust stats on mobile — 2x2 grid */
  .trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
  }
  .trust-sep { display: none; }
  .trust-item {
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .trust-num { font-size: 18px; }
  .trust-lbl { font-size: 11px; }

  /* calc — compact */
  .calc {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .calc-head { margin-bottom: 18px; }
  .calc-title { font-size: 15px; }
  .calc-sub { font-size: 11px; }
  .calc-live { font-size: 10px; padding: 4px 8px; }
  .field {
    padding: 12px 14px;
    border-radius: 14px;
  }
  .field-row {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .field-row input {
    font-size: 20px;
    min-width: 0;
    width: 100%;
  }
  .field-row select {
    font-size: 13px;
    min-width: 110px;
    padding: 8px 26px 8px 10px;
    background-position: right 10px center;
  }
  .meta-row { font-size: 13px; }
  .meta-row.total b { font-size: 18px; }
  #exchangeBtn { padding: 14px 16px; font-size: 14px; }
  .calc-note { font-size: 11px; }

  /* sections spacing */
  .section {
    padding: 48px 16px;
  }
  .section-head { margin-bottom: 30px; }
  .eyebrow {
    font-size: 11px;
    padding: 5px 10px;
    margin-bottom: 14px;
  }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .section-sub { font-size: 14px; }

  /* steps */
  .step { padding: 22px 20px; }
  .step-title { font-size: 16px; }
  .step-text { font-size: 13.5px; margin-bottom: 14px; }
  .step-tg { padding: 7px 11px; font-size: 12px; }

  /* cards */
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 20px 18px; }
  .card-icon { width: 40px; height: 40px; margin-bottom: 12px; }
  .card-title { font-size: 15px; }
  .card-text { font-size: 13.5px; }

  /* rates */
  .rates { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rate { padding: 12px 14px; font-size: 13px; }

  /* cta band */
  .cta-band {
    padding: 24px 16px;
    margin-top: 0;
  }
  .cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 24px 20px;
    gap: 16px;
  }
  .cta-inner h3 { font-size: 20px; }
  .cta-inner p { font-size: 14px; }
  .cta-inner .btn { width: 100%; }

  /* about */
  .about-right { padding: 4px 16px; }
  .info-row { padding: 12px 0; font-size: 13.5px; }

  /* footer */
  .footer {
    padding: 40px 16px 20px;
    margin-top: 40px;
  }
  .footer-inner { gap: 26px; }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    padding-top: 20px;
    margin-top: 26px;
  }

  /* fab */
  .fab-tg {
    right: 16px; bottom: 16px;
    width: 52px; height: 52px;
  }
  .fab-tg svg { width: 22px; height: 22px; }
}

@media (max-width: 380px) {
  h1 { font-size: 28px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .field-row input { font-size: 18px; }
  .field-row select { min-width: 100px; font-size: 12px; }
}
