/* =====================================================
   BOOMERANG TRADING — Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --navy:      #0A0F1E;
  --midnight:  #111827;
  --card:      #151D2E;
  --border:    #1E2A40;
  --teal:      #00D4B4;
  --teal-dim:  rgba(0, 212, 180, 0.12);
  --gold:      #F5C842;
  --white:     #F0F4FF;
  --grey:      #8B95B0;
  --grey-dark: #4A5568;
  --red:       #F56565;
  --green:     #48BB78;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(0, 212, 180, 0.18);
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent horizontal overflow at root level */
  overflow-x: hidden;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* Clamp width — nothing escapes the viewport */
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--white);
}
h1 { font-size: clamp(1.9rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--grey); max-width: 68ch; }

a  { color: var(--teal); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

strong { color: var(--white); font-weight: 600; }

/* ── LAYOUT ─────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  /* Ensure container never overflows */
  width: 100%;
}
.section   { padding: 96px 0; }
.section--sm { padding: 64px 0; }

/* ── NAV ────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,15,30,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  /* Prevent nav from overflowing */
  width: 100%;
  max-width: 100vw;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  /* Gap between logo and links with flex-wrap safety */
  flex-wrap: nowrap;
  overflow: hidden;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.25rem; color: var(--white);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav__logo svg { flex-shrink: 0; }
.nav__links {
  display: flex; align-items: center; gap: 24px;
  list-style: none;
  flex-shrink: 0;
}
.nav__links a { color: var(--grey); font-size: .925rem; font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__cta {
  background: var(--teal); color: var(--navy) !important;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .875rem; letter-spacing: .02em;
}
.nav__cta:hover { opacity: .9; }
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
  flex-shrink: 0;
}
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem;
  font-weight: 700; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--teal); color: var(--navy);
  box-shadow: 0 4px 24px rgba(0,212,180,.35);
}
.btn--primary:hover { box-shadow: 0 8px 32px rgba(0,212,180,.5); color: var(--navy); opacity: 1; }
.btn--secondary {
  background: transparent; color: var(--white);
  border: 1.5px solid var(--border);
}
.btn--secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn--gold {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 4px 24px rgba(245,200,66,.3);
}
.btn--gold:hover { box-shadow: 0 8px 32px rgba(245,200,66,.45); color: var(--navy); opacity: 1; }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }

/* ── BADGE / TAG ────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.badge--teal   { background: var(--teal-dim); color: var(--teal); border: 1px solid rgba(0,212,180,.25); }
.badge--gold   { background: rgba(245,200,66,.12); color: var(--gold); border: 1px solid rgba(245,200,66,.25); }
.badge--grey   { background: rgba(139,149,176,.1); color: var(--grey); border: 1px solid var(--border); }

/* ── CARD ───────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-card);
}
.card--glow { box-shadow: var(--shadow-card), var(--shadow-glow); border-color: rgba(0,212,180,.3); }

/* ── HERO ───────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 100px;
  background: radial-gradient(ellipse 80% 60% at 60% 20%, rgba(0,212,180,.08) 0%, transparent 70%),
              var(--navy);
  /* Prevent hero content from overflowing */
  width: 100%;
  max-width: 100vw;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
  /* Prevent grid overflow */
  width: 100%;
  overflow: hidden;
}
.hero__eyebrow { margin-bottom: 18px; }
.hero__title { margin-bottom: 24px; }
.hero__title span { color: var(--teal); }
.hero__sub { font-size: 1.1rem; margin-bottom: 40px; max-width: 52ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 28px; margin-top: 56px;
  padding-top: 32px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero__stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--teal); }
.hero__stat-label { font-size: .82rem; color: var(--grey); margin-top: 2px; }

/* ── TERMINAL MOCK ──────────────────────────── */
.terminal {
  background: #0D1117; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(0,212,180,.1);
  /* Prevent terminal from overflowing its column */
  min-width: 0;
  max-width: 100%;
}
.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: #161C27;
  border-bottom: 1px solid var(--border);
}
.terminal__dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.terminal__dot--red    { background: #FF5F57; }
.terminal__dot--yellow { background: #FEBC2E; }
.terminal__dot--green  { background: #28C840; }
.terminal__title { margin-left: 8px; font-size: .78rem; color: var(--grey-dark); font-family: monospace; }
.terminal__body {
  padding: 20px; font-family: 'Courier New', monospace;
  font-size: .78rem; line-height: 1.8;
  /* Prevent long lines from breaking out */
  overflow-x: auto;
  white-space: nowrap;
}
.t-grey   { color: #6B7280; }
.t-teal   { color: var(--teal); }
.t-gold   { color: var(--gold); }
.t-green  { color: var(--green); }
.t-red    { color: var(--red); }
.t-white  { color: var(--white); }
.t-cursor { display: inline-block; width: 8px; height: 14px; background: var(--teal); vertical-align: -2px; animation: blink 1s infinite; }

@keyframes blink { 0%,100%{ opacity:1 } 50%{ opacity:0 } }

/* ── FEATURE GRID ───────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.feature__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--teal-dim); border: 1px solid rgba(0,212,180,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; flex-shrink: 0;
}
.feature__title { margin-bottom: 8px; }
.feature__desc { font-size: .9rem; }

/* ── HIGHLIGHT BAR ──────────────────────────── */
.highlight-bar {
  background: linear-gradient(90deg, var(--teal-dim), rgba(245,200,66,.06), var(--teal-dim));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.highlight-bar__text h3 { color: var(--teal); margin-bottom: 8px; }

/* ── PRICING CARD ───────────────────────────── */
.price-card {
  background: var(--card); border: 1.5px solid rgba(0,212,180,.4);
  border-radius: var(--radius-lg); padding: 48px;
  text-align: center; max-width: 520px; margin: 0 auto;
  box-shadow: 0 0 60px rgba(0,212,180,.15);
  position: relative; overflow: hidden;
}
.price-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,212,180,.15) 0%, transparent 70%);
  pointer-events: none;
}
.price-card__amount {
  font-family: var(--font-display); font-size: 4rem;
  font-weight: 800; color: var(--white); margin: 20px 0 4px;
}
.price-card__amount span { font-size: 1.8rem; vertical-align: top; margin-top: 14px; display: inline-block; }
.price-card__sub { color: var(--grey); margin-bottom: 32px; max-width: 100%; }
.price-card__list { list-style: none; text-align: left; margin: 32px 0; display: flex; flex-direction: column; gap: 12px; }
.price-card__list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--white); }
.price-card__list li svg { flex-shrink: 0; color: var(--teal); }

/* ── FAQ ────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; background: var(--card);
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  color: var(--white); cursor: pointer; text-align: left; border: none;
  transition: background .15s;
  gap: 12px;
}
.faq-item__q:hover { background: #1A2234; }
.faq-item__q svg { flex-shrink: 0; transition: transform .25s; color: var(--teal); }
.faq-item__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-item__a { display: none; padding: 0 24px 20px; background: var(--card); }
.faq-item__a p { font-size: .9rem; max-width: 100%; }
.faq-item__a code { background: rgba(0,212,180,.1); color: var(--teal); padding: 2px 6px; border-radius: 4px; font-size: .82rem; }
.faq-item.open .faq-item__a { display: block; }
.faq-item.open .faq-item__q { border-bottom: 1px solid var(--border); }

/* ── FAQ CATEGORIES ─────────────────────────── */
.faq-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.faq-tab {
  padding: 7px 16px; border-radius: 99px; border: 1px solid var(--border);
  background: transparent; color: var(--grey); font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.faq-tab.active, .faq-tab:hover { background: var(--teal-dim); border-color: rgba(0,212,180,.3); color: var(--teal); }

/* ── FORM ───────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1/-1; }
label { font-size: .85rem; font-weight: 600; color: var(--grey); }
input, textarea, select {
  background: #0D1117; border: 1px solid var(--border);
  color: var(--white); border-radius: var(--radius-sm);
  padding: 12px 16px; font-family: var(--font-body); font-size: .925rem;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--grey-dark); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,212,180,.12);
}
textarea { resize: vertical; min-height: 130px; }
select option { background: #0D1117; color: var(--white); }
.upload-zone {
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  padding: 28px; text-align: center; cursor: pointer;
  transition: all .2s;
}
.upload-zone:hover { border-color: var(--teal); background: var(--teal-dim); }
.upload-zone__icon { color: var(--grey); margin-bottom: 8px; }
.upload-zone p { font-size: .85rem; margin: 0; max-width: 100%; }
.upload-zone input[type="file"] { display: none; }
#file-name { font-size: .8rem; color: var(--teal); margin-top: 6px; }

/* ── CHECKOUT ───────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.order-summary { position: sticky; top: 88px; }
.crypto-option {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); cursor: pointer;
  transition: all .2s; margin-bottom: 12px;
  background: var(--card);
}
.crypto-option:hover { border-color: var(--teal); }
.crypto-option.selected { border-color: var(--teal); background: var(--teal-dim); }
.crypto-option input[type="radio"] { accent-color: var(--teal); width: 18px; height: 18px; flex-shrink: 0; }
.crypto-symbol { font-size: 1.4rem; flex-shrink: 0; }
.crypto-name { font-weight: 600; font-size: .95rem; }
.crypto-sub { font-size: .8rem; color: var(--grey); }

.wallet-display {
  background: #0D1117; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 52px 14px 16px;
  font-family: monospace; font-size: .82rem; color: var(--teal);
  word-break: break-all; position: relative;
}
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  background: var(--teal-dim); border: none; color: var(--teal);
  padding: 4px 10px; border-radius: 4px; font-size: .75rem;
  cursor: pointer; font-family: var(--font-body);
}
.steps-list { counter-reset: step; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.steps-list li {
  counter-increment: step;
  display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start;
}
.steps-list li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-dim); border: 1px solid rgba(0,212,180,.3);
  color: var(--teal); font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}

/* ── COMPARISON TABLE ───────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.compare-table th {
  padding: 14px 20px; text-align: left; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--grey); border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 16px 20px; border-bottom: 1px solid rgba(30,42,64,.6);
  font-size: .9rem;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--white); font-weight: 500; }
.compare-table td.yes { color: var(--green); }
.compare-table td.no  { color: var(--red); }
.compare-table .highlight-row td { background: var(--teal-dim); }
.compare-table .highlight-row td:first-child { color: var(--teal); }

/* ── PARAMS TABLE ───────────────────────────── */
.params-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.params-table th {
  padding: 12px 16px; text-align: left; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--grey);
  background: #0D1117; border-bottom: 1px solid var(--border);
}
.params-table td { padding: 13px 16px; border-bottom: 1px solid rgba(30,42,64,.5); font-size: .88rem; }
.params-table td:first-child { color: var(--teal); font-family: monospace; font-size: .82rem; }
.params-table td:nth-child(2) { color: var(--gold); }
.params-table td:nth-child(3) { color: var(--grey); }
.params-table tr:last-child td { border-bottom: none; }

/* ── SECTION HEADERS ────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge { margin-bottom: 14px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { margin: 0 auto; }

/* ── ALERT BOX ──────────────────────────────── */
.alert { padding: 18px 22px; border-radius: var(--radius-sm); margin: 24px 0; display: flex; gap: 12px; }
.alert--warning { background: rgba(245,200,66,.08); border: 1px solid rgba(245,200,66,.25); }
.alert--info    { background: var(--teal-dim); border: 1px solid rgba(0,212,180,.25); }
.alert--danger  { background: rgba(245,101,101,.08); border: 1px solid rgba(245,101,101,.25); }
.alert p { font-size: .88rem; max-width: 100%; }
.alert--warning p { color: var(--gold); }
.alert--info    p { color: var(--teal); }
.alert--danger  p { color: var(--red); }

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: #07090F; border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  width: 100%;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer__brand p { font-size: .88rem; margin-top: 12px; }
.footer__col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-dark); margin-bottom: 14px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__col ul a { color: var(--grey); font-size: .88rem; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--grey-dark);
  flex-wrap: wrap; gap: 8px;
}
.footer__disclaimer { font-size: .75rem; color: var(--grey-dark); margin-top: 8px; max-width: 100%; }

/* ── DIVIDER ────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── PAGE HEADER ────────────────────────────── */
.page-header {
  padding: 80px 0 60px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,212,180,.06) 0%, transparent 70%),
              var(--navy);
  text-align: center; border-bottom: 1px solid var(--border);
  width: 100%;
}
.page-header .badge { margin-bottom: 12px; }
.page-header h1 { margin-bottom: 14px; }
.page-header p { margin: 0 auto; font-size: 1.05rem; }

/* ── SUCCESS STATE ──────────────────────────── */
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--teal-dim); border: 2px solid rgba(0,212,180,.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 2rem;
}

/* ── MOBILE NAV ─────────────────────────────── */
.nav__mobile {
  display: none; flex-direction: column;
  background: var(--midnight); border-top: 1px solid var(--border);
  width: 100%;
}
.nav__mobile a { padding: 14px 24px; color: var(--grey); font-size: .95rem; font-weight: 500; display: block; border-bottom: 1px solid var(--border); }
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile.open { display: flex; }

/* ── UTILS ──────────────────────────────────── */
.text-teal   { color: var(--teal); }
.text-gold   { color: var(--gold); }
.text-grey   { color: var(--grey); }
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — most overflow bugs live here
   ═══════════════════════════════════════════════ */

/* ── 1200px: slightly tighten the hero terminal ─ */
@media (max-width: 1200px) {
  .hero__grid { grid-template-columns: 1fr 420px; gap: 40px; }
}

/* ── 1024px: stack hero, hide terminal ──────── */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .terminal { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

/* ── 900px: nav links start to get cramped ───── */
@media (max-width: 900px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: .85rem; }
}

/* ── 768px: full mobile nav ─────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .features { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: 1; }

  .highlight-bar { flex-direction: column; text-align: center; padding: 32px 20px; }
  .highlight-bar .btn { width: 100%; justify-content: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__stats  { flex-wrap: wrap; gap: 20px; }
  .section      { padding: 64px 0; }
  .section--sm  { padding: 44px 0; }

  /* Three-col stat bar on homepage */
  .section--sm > .container > div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Two-col grid sections */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns: 1fr 380px"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns: 1fr 480px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── 480px: small phones ─────────────────────── */
@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero { padding: 60px 0 48px; }
  .price-card { padding: 28px 20px; }
  .container  { padding: 0 16px; }
  .card       { padding: 20px; }

  .btn--lg { padding: 14px 24px; font-size: .95rem; }

  /* Stack the three icon-stat blocks */
  .section--sm > .container > div {
    grid-template-columns: 1fr !important;
  }
  /* Remove side borders on icon stats */
  .section--sm > .container > div > div {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
  .section--sm > .container > div > div:last-child {
    border-bottom: none;
  }

  /* Overflow tables: allow horizontal scroll */
  .compare-table, .params-table { font-size: .78rem; }
  .compare-table th,
  .compare-table td,
  .params-table  th,
  .params-table  td { padding: 10px 12px; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ── Homepage stat bar ──────────────────────── */
@media (max-width: 600px) {
  .stat-bar-grid {
    grid-template-columns: 1fr !important;
  }
  .stat-bar-grid > div {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 20px 16px !important;
  }
  .stat-bar-grid > div:last-child {
    border-bottom: none;
  }
}
