/* ============================================
   RESPONSIVE — All Media Queries
   ============================================ */

/* ---------- Tablet (≤1024px) ---------- */
@media (max-width: 1024px) {
  :root {
    --section-py: 96px;
  }

  /* Hero: stack layout */
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content { order: 1; }
  .hero-visual  { order: 0; }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .phone-frame {
    width: 240px;
  }

  .floating-badge {
    display: none;
  }

  /* Grids */
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card.featured {
    grid-column: span 2;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Mobile (≤768px) ---------- */
@media (max-width: 768px) {
  :root {
    --section-py: 76px;
  }

  .container {
    padding: 0 20px;
  }

  /* Mobile nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 48px 36px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-slow);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a:not(.nav-cta) {
    color: var(--gray-800) !important;
    font-size: 1.1rem;
  }

  .nav-links a:not(.nav-cta)::after {
    background: var(--green-600) !important;
  }

  .nav-cta {
    background: var(--green-700) !important;
    color: var(--white) !important;
    border-color: var(--green-700) !important;
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 110px 0 70px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 28px;
    flex-wrap: wrap;
  }

  .phone-frame {
    width: 210px;
  }

  .hero-wave svg {
    height: 50px;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.featured {
    grid-column: span 1;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .benefit-card {
    padding: 28px 16px;
  }

  /* Preview */
  .preview-slide {
    flex: 0 0 210px;
  }

  /* CTA */
  .cta {
    padding: 88px 0;
  }

  /* Footer */
  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

/* ---------- Small Mobile (≤480px) ---------- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-stat {
    text-align: center;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .preview-slide {
    flex: 0 0 180px;
  }

  .section-title {
    font-size: 1.65rem;
  }
}
