/* ============================================
   RESPONSIVE — Breakpoints & media queries
   ============================================ */

/* ---- 1200px — Large desktops ---- */
@media (max-width: 1200px) {
  :root {
    --container-padding: 2rem;
  }

  .footer-grid {
    gap: var(--space-2xl);
  }
}

/* ---- 992px — Tablets landscape ---- */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  /* Third testimonial spans full width on 2-col */
  .testimonials-grid .tcard:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2xl);
  }

  .steps-connector {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

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

/* ---- 768px — Tablets portrait / mobile ---- */
@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
  }

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

  .hero-code {
    max-width: 100%;
    justify-self: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

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

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

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

  .testimonials-grid .tcard:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 280px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  .flow-section {
    padding: var(--space-4xl) 0;
  }
}

/* ---- 480px — Small mobile ---- */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

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

  h2 {
    font-size: clamp(1.5rem, 6vw, 1.75rem);
  }

  .lead {
    font-size: var(--text-base);
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
    justify-content: center;
  }

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

  .stat .stat-value {
    font-size: var(--text-2xl);
  }

  .card {
    padding: var(--space-xl);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-ghost {
    width: 100%;
    justify-content: center;
  }

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

  .code-block pre {
    padding: 1rem;
    font-size: var(--text-xs);
  }
}
