/* ===== TABLET (768px - 1199px) ===== */
@media (max-width: 1199px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ===== MOBILE (<768px) ===== */
@media (max-width: 767px) {
  :root {
    --nav-height: 60px;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-right .btn-cta { display: none; }

  .section { padding: 70px 0; }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 40px;
  }

  /* Hero */
  .hero { min-height: 100svh; }

  .hero h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.95rem; }

  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn-cta { width: 100%; max-width: 280px; justify-content: center; }

  .hero-stats {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  /* Hero particles off on mobile */
  .hero-particles { display: none; }

  /* Steps */
  .steps-timeline::before { left: 20px; }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .step-content { padding: 20px; }
  .step-content h3 { font-size: 0.95rem; }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card { padding: 24px 20px; }

  /* Carousel */
  .carousel-slide { flex: 0 0 220px; }

  .phone-frame {
    width: 220px;
    border-radius: 28px;
  }

  /* Rankings */
  .league-card {
    padding: 16px 20px;
    gap: 14px;
  }

  .league-icon { font-size: 1.5rem; }
  .league-info h3 { font-size: 0.9rem; }

  /* Auth */
  .auth-card { padding: 28px 20px; margin: 0 12px; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  /* RTL Mobile */
  [dir="rtl"] .steps-timeline::before { right: 20px; }
}

/* ===== SMALL MOBILE (<400px) ===== */
@media (max-width: 399px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.5rem; }
  .carousel-slide { flex: 0 0 180px; }
  .phone-frame { width: 180px; border-radius: 24px; }
}
