/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile First
   Always override from smaller to larger.
═══════════════════════════════════════════ */

/* ── Tablet: max 1100px ─────────────────── */
@media (max-width: 1100px) {
  .tools-primary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tool-card--large {
    grid-column: 1 / -1;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
    align-items: start;
  }
}

/* ── Desktop nav collapse: max 1024px ───── */
@media (max-width: 1024px) {
  .feat-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .feat-grid--flip .feat-text   { order: 1; }
  .feat-grid--flip .feat-visual { order: 2; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .auth-buttons .btn-ghost { display: none; }
  .summary-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* ── Tablet narrow: max 768px ───────────── */
@media (max-width: 768px) {
  :root {
    --header-h:  56px;
    --ticker-h:  36px;
  }

  .wrap {
    padding-inline: var(--sp-5);
  }

  .section    { padding-block: var(--sp-16); }
  .section-sm { padding-block: var(--sp-10); }

  .tools-primary-grid {
    grid-template-columns: 1fr;
  }
  .tool-card--large {
    grid-column: auto;
  }

  .summary-grid  { grid-template-columns: 1fr; max-width: 100%; }
  .news-grid     { grid-template-columns: 1fr; }

  .cta-banner {
    padding: var(--sp-10) var(--sp-6);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: block;
  }

  .table-toolbar         { flex-direction: column; align-items: flex-start; }
  .search-input          { width: 100%; }
  .table-toolbar-right,
  .search-wrap           { width: 100%; }

  .hero-stats { flex-wrap: wrap; }
  .hero-stat  { flex: 1 1 45%; }

  .news-header { flex-direction: column; align-items: flex-start; }

  .mock-airdrop-grid { grid-template-columns: 1fr; }
}

/* ── Mobile: max 480px ──────────────────── */
@media (max-width: 480px) {
  .hero-ctas,
  .cta-actions,
  .feat-cta,
  .mobile-nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn,
  .cta-actions .btn,
  .feat-cta .btn,
  .mobile-nav-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-4);
  }
  .footer-bottom-links { justify-content: center; }

  .integrations-row { gap: var(--sp-2); }

  .section-tag { font-size: .68rem; }

  .hero-stat {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid var(--bg-border);
  }
  .hero-stat:last-child { border-bottom: none; }
}

/* ── Print ──────────────────────────────── */
@media print {
  .site-header,
  .ticker-wrap,
  .site-footer,
  .btn { display: none !important; }
  body  { padding-top: 0; }
}