/* SwiftyEx — Landing shared tokens & atoms
   Two directions (A + B) share these tokens; layouts differ. */

:root {
  /* Brand */
  --brand: #5B46F6;
  --brand-2: #6824D3;
  --brand-soft: #9684E7;
  --brand-pale: #C3B9EF;
  --brand-tint: #B9A9FF;
  --accent: #1DD6B4;
  --warn: #F7931A;
  --down: #FF5A4A;
  --brand-grad: linear-gradient(135deg, #5B46F6 0%, #7B3CE0 100%);
  --hero-grad: radial-gradient(ellipse at top right, rgba(91,70,246,0.35), transparent 55%),
               radial-gradient(ellipse at bottom left,  rgba(29,214,180,0.18), transparent 55%);

  /* Radii */
  --r-sm: 8px;  --r: 14px;  --r-lg: 22px;  --r-xl: 32px;  --pill: 999px;

  /* Type scale */
  --t-hero: clamp(40px, 7vw, 88px);
  --t-h1:   clamp(32px, 4.5vw, 56px);
  --t-h2:   clamp(24px, 3vw, 40px);
  --t-h3:   20px;
  --t-body: 16px;
  --t-sm:   14px;
  --t-xs:   12px;
}

[data-theme="dark"] {
  --bg:       #08070F;
  --bg-2:     #0F0D1B;
  --surface:  #16131F;
  --surface-2:#1F1B2D;
  --surface-3:#2A2540;
  --border:   rgba(255,255,255,0.07);
  --border-2: rgba(255,255,255,0.12);
  --text:     #FFFFFF;
  --text-2:   rgba(255,255,255,0.72);
  --text-3:   rgba(255,255,255,0.48);
  --link:     #B9A9FF;
  --pill-bg:  rgba(255,255,255,0.05);
  --nav-bg:   rgba(11,10,20,0.65);
}

[data-theme="light"] {
  --bg:       #FAFAFC;
  --bg-2:     #F2EFFA;
  --surface:  #FFFFFF;
  --surface-2:#F3F0FB;
  --surface-3:#E7E1F7;
  --border:   rgba(17,16,28,0.07);
  --border-2: rgba(17,16,28,0.14);
  --text:     #0E0B1F;
  --text-2:   rgba(14,11,31,0.7);
  --text-3:   rgba(14,11,31,0.5);
  --link:     #5B46F6;
  --pill-bg:  rgba(91,70,246,0.06);
  --nav-bg:   rgba(255,255,255,0.78);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container-tight { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ───── Top Nav ───── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.3px;
  color: var(--text);
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-grad);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 14px rgba(91,70,246,0.35);
}
.nav-links {
  display: flex; gap: 4px;
  font-size: var(--t-sm); color: var(--text-2); font-weight: 500;
}
.nav-links a {
  padding: 8px 14px; border-radius: var(--pill);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--pill-bg); color: var(--text); }
.nav-links a.active { background: var(--pill-bg); color: var(--text); }

.nav-actions { display: flex; gap: 8px; align-items: center; }

.theme-switch {
  width: 60px; height: 32px; border-radius: var(--pill);
  background: var(--pill-bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; padding: 3px;
  cursor: pointer; position: relative;
}
.theme-switch span.knob {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-grad);
  transition: transform .25s ease;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
[data-theme="light"] .theme-switch span.knob { transform: translateX(28px); }

/* ───── Buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--pill); border: 1px solid transparent;
  font-family: inherit; font-weight: 600; font-size: var(--t-sm);
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand-grad); color: white; box-shadow: 0 8px 24px rgba(91,70,246,0.35); }
.btn-primary:hover { box-shadow: 0 10px 32px rgba(91,70,246,0.5); }
.btn-tg { background: #229ED9; color: white; box-shadow: 0 8px 24px rgba(34,158,217,0.28); }
.btn-tg:hover { box-shadow: 0 10px 32px rgba(34,158,217,0.4); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-outline:hover { background: var(--pill-bg); }
.btn-ghost { background: transparent; color: var(--text-2); padding: 12px 16px; }
.btn-ghost:hover { background: var(--pill-bg); color: var(--text); }
.btn-lg { padding: 18px 28px; font-size: 15px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ───── Pills / Chips ───── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: var(--pill);
  background: var(--pill-bg); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(29,214,180,0.18); }

/* ───── Cards ───── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

/* ───── Section ───── */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand-soft); margin-bottom: 14px;
}
[data-theme="light"] .eyebrow { color: var(--brand); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--text); }
h2 { font-size: var(--t-h2); line-height: 1.1; }
h3 { font-size: var(--t-h3); }
p { color: var(--text-2); margin: 0; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 640px; margin: 0 auto; }

/* ───── Footer ───── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  color: var(--text-2);
  font-size: var(--t-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
}
.socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pill-bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: background .15s, color .15s;
}
.social-btn:hover { background: var(--surface-2); color: var(--text); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* Coin badge */
.coin {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.coin-btc { background: #F7931A; }
.coin-eth { background: #627EEA; }
.coin-sol { background: #14F195; color: #021c14; }
.coin-bnb { background: #F3BA2F; color: #2A1F00; }
.coin-usdt { background: #26A17B; }
.coin-dot { background: #E6007A; }
.coin-dash { background: #008CE7; }
.coin-xrp { background: #23292F; }
.coin-usdc { background: #2775CA; }
.coin-ada { background: #0033AD; }
.coin-trx { background: #FF060A; }
.coin-doge { background: #C2A633; }
.coin-ltc { background: #345D9D; }

/* Utility */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.text-center { text-align: center; }
.muted { color: var(--text-2); }
.muted-2 { color: var(--text-3); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.up { color: var(--accent); }
.down { color: var(--down); }
.grow { flex: 1; }

/* ───── Marquee (shared between landing pages) ───── */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; gap: 36px; width: max-content;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
