
:root {
  --gold:    #fdb73f;
  --gold2:   #e6b800;
  --bg:      #060810;
  --bg2:     #0d1117;
  --card:    #111520;
  --card2:   #171c2a;
  --border:  #1e2535;
  --border2: #252d40;
  --text:    #e8eaf0;
  --muted:   #6b7694;
  --green:   #00d68f;
  --red:     #ff4d6d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* ── NOISE TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,8,16,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.3px;
}
.logo-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

nav { display: flex; align-items: center; gap: 6px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
nav a:hover { color: var(--text); background: var(--card2); }

.btn-nav {
  background: var(--gold);
  color: #060810 !important;
  font-weight: 700 !important;
  padding: 9px 22px !important;
  border-radius: 8px;
  margin-left: 8px;
}
.btn-nav:hover { background: var(--gold2) !important; background: transparent !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 40px 60px;
  overflow: hidden;
}

/* Glow blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.blob-1 { width: 600px; height: 600px; background: radial-gradient(circle, #fcd53f18, transparent 70%); top: -100px; left: -100px; }
.blob-2 { width: 500px; height: 500px; background: radial-gradient(circle, #00d68f12, transparent 70%); bottom: -50px; right: -50px; }
.blob-3 { width: 300px; height: 300px; background: radial-gradient(circle, #6366f118, transparent 70%); top: 40%; left: 50%; transform: translateX(-50%); }

/* Grid lines background */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .3;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold)18;
  border: 1px solid var(--gold)44;
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp .6s ease both;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(30px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  animation: fadeUp .7s .1s ease both;
}
.hero-title .accent { color: var(--gold); position: relative; }
.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  opacity: .4;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 40px;
  font-weight: 400;
  animation: fadeUp .8s .2s ease both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .9s .3s ease both;
}

.btn-primary-lg {
  background: var(--gold);
  color: #060810;
  border: none;
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 0 30px var(--gold)44;
}
.btn-primary-lg:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--gold)66;
}

.btn-outline-lg {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn-outline-lg:hover {
  background: var(--card2);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ── TICKER ── */
.ticker-wrap {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 12px 0;
  position: relative;
  z-index: 2;
}
.ticker-inner {
  display: flex;
  gap: 0;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 36px;
  font-size: 13px;
  font-weight: 600;
  border-right: 1px solid var(--border);
}
.ticker-item .sym { color: var(--muted); font-size: 11px; }
.ticker-item .price { color: var(--text); }
.ticker-item .chg-up   { color: var(--green); }
.ticker-item .chg-down { color: var(--red); }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── STATS BAR ── */
.stats-bar {
  padding: 60px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  position: relative;
  z-index: 2;
}
.stat-item {
  background: var(--bg2);
  padding: 36px 40px;
  text-align: center;
}
.stat-item .num {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ── SECTION ── */
section {
  padding: 100px 40px;
  position: relative;
  z-index: 2;
}
.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
}

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  margin-top: 60px;
  border-radius: 16px;
  overflow: hidden;
}
.step-card {
  background: var(--card);
  padding: 40px 32px;
  position: relative;
  transition: background .3s;
}
.step-card:hover { background: var(--card2); }
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--border2);
  line-height: 1;
  margin-bottom: 20px;
  transition: color .3s;
}
.step-card:hover .step-num { color: var(--gold)44; }
.step-icon {
  width: 48px; height: 48px;
  background: var(--gold)18;
  border: 1px solid var(--gold)33;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}
.step-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 60px;
  max-width: 900px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color .3s, transform .2s;
  cursor: default;
}
.feature-card:hover { border-color: var(--gold)44; transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── PAIRS TABLE ── */
.pairs-section { background: var(--bg2); }
.pairs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  max-width: 900px;
}
.pairs-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  border-bottom: 1px solid var(--border);
}
.pairs-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.pairs-table tr:hover td { background: var(--card); }
.pair-name { font-weight: 700; font-family: 'Syne', sans-serif; }
.pair-sub  { font-size: 11px; color: var(--muted); margin-top: 2px; }
.profit-pill {
  background: var(--green)18;
  color: var(--green);
  border: 1px solid var(--green)33;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.trade-btn {
  background: var(--gold);
  color: #060810;
  border: none;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  display: inline-block;
  transition: background .2s;
}
.trade-btn:hover { background: var(--gold2); }

/* ── CTA SECTION ── */
.cta-section {
  text-align: center;
  padding: 120px 40px;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}
.cta-glow {
  position: absolute;
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, var(--gold)0a, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer .logo { font-size: 18px; }
footer p { font-size: 13px; color: var(--muted); }
footer .links { display: flex; gap: 20px; }
footer .links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
footer .links a:hover { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── LIVE CHART MINI (decorative) ── */
.chart-preview {
  width: 100%;
  max-width: 700px;
  margin: 50px auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  animation: fadeUp 1s .4s ease both;
}
.chart-topbar {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.chart-topbar .pair-tag {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-family: 'Syne', sans-serif;
}
.btc-dot {
  width: 26px; height: 26px;
  background: #f7931a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.chart-price { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; color: var(--gold); }
canvas#miniChart { width: 100%; height: 140px; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header { padding: 0 20px; }
  header nav { display: none; }
  .hero { padding: 90px 20px 50px; }
  .hero-title { letter-spacing: -1px; }
  .stats-bar { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  section { padding: 60px 20px; }
  .cta-section { padding: 80px 20px; }
  footer { padding: 30px 20px; flex-direction: column; text-align: center; }
  .btn-nav { display: none; }
  .mobile-menu-btn { display: flex !important; }
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}


/* Responsive navigation and market table fixes */
.mobile-menu-btn { position:relative; z-index:1002; }
@media (max-width: 768px) {
  header { height: 68px; padding: 0 16px; }
  header .logo { font-size: clamp(13px, 3.5vw, 18px); gap: 7px; }
  header nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    padding: 12px 16px 18px;
    background: rgba(6,8,16,.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 18px 35px #0008;
  }
  header nav.is-open { display: flex; }
  header nav a { display: block; width: 100%; padding: 12px 14px; }
  header nav .btn-nav { display: block; margin: 8px 0 0; text-align: center; }
  .mobile-menu-btn { display: flex !important; align-items:center; justify-content:center; width:42px; height:40px; padding:0; font-size:18px; }
  .hero { min-height: auto; padding-top: 120px; }
  .hero-sub { font-size: 15px; }
  .chart-preview { margin-top: 35px; }
  .chart-topbar { flex-wrap: wrap; gap: 10px; }
  .chart-topbar > div:last-child { flex-wrap: wrap; justify-content:flex-end; }
  .pairs-table { min-width: 0; }
  .pairs-table thead { display: none; }
  .pairs-table, .pairs-table tbody, .pairs-table tr, .pairs-table td { display: block; width: 100%; }
  .pairs-table tr { padding: 14px 12px; border-bottom: 1px solid var(--border); }
  .pairs-table td { border-bottom: 0; padding: 6px 0; display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:right; }
  .pairs-table td:first-child { justify-content:flex-start; text-align:left; padding-bottom:10px; }
  .pairs-table td:first-child::before { content:none; }
  .pairs-table td:nth-child(2)::before { content:'Live Price'; color:var(--muted); font-size:11px; }
  .pairs-table td:nth-child(3)::before { content:'24h Change'; color:var(--muted); font-size:11px; }
  .pairs-table td:nth-child(4)::before { content:'Max Profit'; color:var(--muted); font-size:11px; }
  .pairs-table td:nth-child(5) { justify-content:flex-end; padding-top:10px; }
  section { padding: 60px 16px; }
  .stats-bar { padding: 20px 16px; }
  .stat-item { padding: 25px 12px; }
  .steps-grid, .features-grid { margin-top: 32px; }
  .cta-section { padding: 75px 16px; }
  footer { padding: 28px 16px; }
}
@media (max-width: 420px) {
  .hero-title { font-size: clamp(30px, 9vw, 42px); }
  .hero-badge { font-size: 9px; padding: 6px 10px; }
  .hero-cta { flex-direction:column; width:100%; }
  .btn-primary-lg, .btn-outline-lg { width:100%; justify-content:center; padding:14px 18px; }
  .chart-topbar { padding: 12px; }
  .chart-price { font-size: 15px; }
  .pairs-table td { font-size: 12px; }
}


/* Cross-device responsive hardening */
*, *::before, *::after { box-sizing: border-box; }
html { width:100%; max-width:100%; overflow-x:clip; scroll-padding-top:78px; }
body, #site-main { width:100%; max-width:100%; overflow-x:clip; }
#site-main > section { width:100%; min-width:0; }
#site-main img, #site-main canvas, #site-main svg, #site-main video { max-width:100%; }
#site-main canvas#miniChart { width:100%; height:140px; }
#site-main .hero-inner, #site-main .chart-preview, #site-main .cta-section > div { width:100%; min-width:0; }
#site-main .hero-title { overflow-wrap:anywhere; }
#site-main .pairs-section > div { width:100%; max-width:900px; margin-inline:auto; min-width:0; }
#site-main .pairs-table { table-layout:auto; }
#site-main .pairs-table td, #site-main .pairs-table th { overflow-wrap:anywhere; }
.mobile-menu-btn { flex:0 0 auto; touch-action:manipulation; }
button, .btn-primary-lg, .btn-outline-lg, .trade-btn, .btn-nav { touch-action:manipulation; }
.reveal { max-width:100%; }

@media (min-width:769px) {
  header { padding-inline:clamp(20px,3.2vw,40px); }
  #site-main > section { padding-inline:clamp(24px,3.2vw,40px); }
  #site-main .stats-bar { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #site-main .steps-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #site-main .features-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #site-main .pairs-table { width:100%; }
}
@media (max-width:768px) {
  html { scroll-padding-top:70px; }
  header { width:100%; padding-inline:16px; gap:12px; }
  header .logo { min-width:0; max-width:calc(100% - 58px); font-size:clamp(12px,3.3vw,17px); overflow-wrap:anywhere; }
  header .logo-dot { flex:0 0 7px; }
  header nav { z-index:1001; max-height:calc(100dvh - 68px); overflow-y:auto; }
  #site-main .hero { min-height:auto; padding:112px 18px 44px; }
  #site-main .hero-inner { max-width:680px; }
  #site-main .hero-badge { max-width:100%; white-space:normal; justify-content:center; line-height:1.5; }
  #site-main .hero-title { font-size:clamp(32px,7.2vw,54px); line-height:1.12; }
  #site-main .hero-sub { width:100%; max-width:540px; }
  #site-main .hero-cta { width:100%; gap:10px; }
  #site-main .chart-preview { max-width:700px; margin-top:32px; }
  #site-main .chart-topbar { align-items:flex-start; }
  #site-main .chart-topbar > div:last-child { min-width:0; }
  #site-main .ticker-item { padding-inline:18px; }
  #site-main .stats-bar { display:grid; grid-template-columns:1fr; gap:1px; padding:20px 16px; }
  #site-main .stat-item { padding:24px 16px; }
  #site-main .steps-grid { grid-template-columns:minmax(0,1fr); margin-top:30px; }
  #site-main .step-card { padding:28px 22px; }
  #site-main .features-grid { grid-template-columns:minmax(0,1fr); gap:12px; margin-top:30px; }
  #site-main .feature-card { padding:22px; }
  #site-main section { padding:58px 18px; }
  #site-main .hero { padding-top:112px; }
  #site-main .cta-section { padding:72px 18px; }
  #site-main footer { padding:28px 18px; gap:16px; }
  #site-main footer .links { justify-content:center; flex-wrap:wrap; }
  #site-main .pairs-table { display:block; width:100%; border-collapse:separate; border-spacing:0; }
  #site-main .pairs-table thead { display:none; }
  #site-main .pairs-table tbody { display:grid; grid-template-columns:minmax(0,1fr); width:100%; }
  #site-main .pairs-table tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 14px; width:100%; padding:13px 12px; border-bottom:1px solid var(--border); }
  #site-main .pairs-table td { display:flex; align-items:center; justify-content:space-between; min-width:0; padding:6px 0; border:0; text-align:right; font-size:12px; }
  #site-main .pairs-table td:first-child { grid-column:1 / -1; justify-content:flex-start; text-align:left; padding-bottom:10px; }
  #site-main .pairs-table td:nth-child(2)::before { content:"Live Price"; }
  #site-main .pairs-table td:nth-child(3)::before { content:"24h Change"; }
  #site-main .pairs-table td:nth-child(4)::before { content:"Max Profit"; }
  #site-main .pairs-table td:nth-child(2)::before,
  #site-main .pairs-table td:nth-child(3)::before,
  #site-main .pairs-table td:nth-child(4)::before { color:var(--muted); font:500 10px/1.3 'DM Sans',sans-serif; text-align:left; padding-right:6px; }
  #site-main .pairs-table td:nth-child(5) { grid-column:1 / -1; justify-content:flex-end; padding-top:9px; }
  #site-main .pairs-table td:nth-child(5)::before { content:none; }
  #site-main .pairs-table .trade-btn { display:inline-flex; justify-content:center; min-width:110px; padding:10px 14px; }
}
@media (max-width:420px) {
  header { padding-inline:12px; }
  #site-main .hero { padding-inline:14px; }
  #site-main .hero-title { font-size:clamp(29px,8.5vw,38px); letter-spacing:-.7px; }
  #site-main .hero-sub { font-size:14px; }
  #site-main .hero-badge { font-size:8px; letter-spacing:.4px; }
  #site-main .chart-topbar { padding:12px; }
  #site-main .chart-topbar > div:last-child { width:100%; justify-content:space-between; gap:6px !important; }
  #site-main .chart-topbar > div:last-child span { padding:5px 7px !important; font-size:10px !important; }
  #site-main .chart-price { font-size:15px; }
  #site-main section { padding-inline:14px; }
  #site-main .pairs-table tr { padding-inline:9px; column-gap:8px; }
  #site-main .pairs-table td { font-size:11px; }
  #site-main .pairs-table td:nth-child(2)::before,
  #site-main .pairs-table td:nth-child(3)::before,
  #site-main .pairs-table td:nth-child(4)::before { font-size:9px; }
  #site-main .pairs-table .trade-btn { min-width:100px; }
  #site-main footer .links { gap:12px; }
}
@media (max-width:340px) {
  header .logo { font-size:11px; }
  #site-main .hero-title { font-size:28px; }
  #site-main .pairs-table tr { grid-template-columns:minmax(0,1fr); }
  #site-main .pairs-table td:first-child, #site-main .pairs-table td:nth-child(5) { grid-column:1; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}


/* ===== Final layout + typography pass for all screen sizes ===== */
/* Consistent font hierarchy and stronger loaded-font fallbacks */
body, button, input, textarea, select {
  font-family: "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.logo, .hero-title, .section-title, .chart-price, .pair-name,
.step-card h3, .feature-card h3, .cta-section h2 {
  font-family: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.section-title {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 100%;
  overflow-wrap: break-word;
}
.section-sub {
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.7;
  max-width: 760px;
}
.feature-card h3 {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.feature-card p {
  font-size: clamp(13px, .9vw, 15px);
  line-height: 1.7;
  overflow-wrap: break-word;
}

/* Fix the Features section that was capped at 900px on wide monitors. */
#site-main #features {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(16px, 3.2vw, 56px);
}
#site-main #features > .section-tag,
#site-main #features > .section-title,
#site-main #features > .section-sub {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
#site-main #features > .features-grid {
  width: 100%;
  max-width: 1400px;
  margin: clamp(28px, 4vw, 56px) auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 20px);
  align-items: stretch;
}
#site-main #features .feature-card {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: clamp(18px, 1.8vw, 30px);
  overflow-wrap: anywhere;
}
#site-main #features .feature-card p {
  max-width: 58ch;
}
#site-main section:not(.hero):not(.cta-section) {
  min-width: 0;
}
#site-main .steps-grid,
#site-main .stats-bar,
#site-main .pairs-table {
  max-width: 1400px;
}
#site-main .pairs-section > div {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
}
#site-main .pairs-table {
  width: 100%;
}
#site-main .cta-section > div:not(.cta-glow) {
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 1500px) {
  #site-main #features { padding-inline: max(56px, calc((100vw - 1500px)/2)); }
}
@media (max-width: 1024px) {
  #site-main #features { padding-inline: 24px; }
  #site-main #features > .features-grid { gap: 14px; }
  #site-main #features .feature-card { padding: 22px; }
}
@media (max-width: 768px) {
  #site-main #features {
    padding: 56px 18px;
  }
  #site-main #features > .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
  }
  #site-main #features .feature-card { padding: 18px; }
  #site-main .section-title { font-size: clamp(27px, 5.2vw, 36px); }
  #site-main .section-sub { font-size: 14px; }
}
@media (max-width: 560px) {
  #site-main #features { padding: 48px 16px; }
  #site-main #features > .features-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  #site-main #features .feature-card {
    padding: 20px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    align-content: start;
  }
  #site-main #features .feature-icon {
    grid-row: 1 / span 2;
    margin: 0;
  }
  #site-main #features .feature-card h3 { margin: 2px 0 7px; }
  #site-main #features .feature-card p { grid-column: 2; max-width: none; }
  #site-main .section-title { font-size: clamp(26px, 7.4vw, 33px); }
}
@media (max-width: 360px) {
  #site-main #features { padding-inline: 12px; }
  #site-main #features .feature-card {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 10px;
    padding: 15px;
  }
  #site-main #features .feature-icon { width: 36px; height: 36px; }
  #site-main #features .feature-card h3 { font-size: 14px; }
  #site-main #features .feature-card p { font-size: 12px; }
}


/* Targeted fix: stats band + How It Works section only */
#site-main .stats-band,
#site-main .stats-section,
#site-main .stats-bar {
  width: 100%;
  max-width: none;
}
#site-main .stats-band {
  padding: 28px clamp(16px, 3.2vw, 40px);
}
#site-main .stats-bar {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#site-main .stat-item {
  min-width: 0;
  text-align: center;
}
#site-main #how,
#site-main .how-section,
#site-main .steps-section {
  width: 100%;
  max-width: none;
  padding-inline: clamp(16px, 3.2vw, 40px);
}
#site-main #how > .section-tag,
#site-main #how > .section-title,
#site-main #how > .section-sub,
#site-main #how > .steps-grid,
#site-main .how-section > .section-tag,
#site-main .how-section > .section-title,
#site-main .how-section > .section-sub,
#site-main .how-section > .steps-grid,
#site-main .steps-section > .section-tag,
#site-main .steps-section > .section-title,
#site-main .steps-section > .section-sub,
#site-main .steps-section > .steps-grid {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
#site-main .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 0;
  overflow: hidden;
  border-radius: 12px;
}
#site-main .step-card {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 2vw, 30px);
  overflow-wrap: anywhere;
}
#site-main .step-card h3 {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.35;
}
#site-main .step-card p {
  font-size: clamp(12px, .9vw, 14px);
  line-height: 1.7;
  overflow-wrap: break-word;
}
@media (max-width: 900px) {
  #site-main .stats-band { padding: 22px 18px; }
  #site-main #how,
  #site-main .how-section,
  #site-main .steps-section { padding-inline: 20px; }
  #site-main .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #site-main .step-card { padding: 22px; }
}
@media (max-width: 600px) {
  #site-main .stats-band { padding: 16px 12px; }
  #site-main .stats-bar { grid-template-columns: minmax(0, 1fr); }
  #site-main .stat-item { padding: 18px 12px; }
  #site-main #how,
  #site-main .how-section,
  #site-main .steps-section { padding: 48px 14px; }
  #site-main .steps-grid { grid-template-columns: minmax(0, 1fr); }
  #site-main .step-card {
    padding: 22px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  #site-main .step-card:last-child { border-bottom: 0; }
  #site-main .step-number,
  #site-main .step-num { font-size: clamp(34px, 10vw, 44px); }
}
@media (max-width: 360px) {
  #site-main #how,
  #site-main .how-section,
  #site-main .steps-section { padding-inline: 12px; }
  #site-main .step-card { padding: 18px 14px; }
}
