/* ===========================
   Tablet (max 1024px)
   =========================== */

@media (max-width: 1024px) {
  :root {
    --space-section: 5rem;
  }

  .section__title {
    font-size: var(--text-3xl);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__inner {
    gap: var(--space-xl);
  }

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

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

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

  .steps__line {
    display: none;
  }
}

/* ===========================
   Small Tablet (max 768px)
   =========================== */

@media (max-width: 768px) {
  :root {
    --space-section: 4rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  /* Nav */
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 11, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav--open {
    opacity: 1;
    pointer-events: all;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
  }

  .nav__link {
    font-size: var(--text-xl);
  }

  .nav__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger--open .hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger--open .hamburger__line:nth-child(2) {
    opacity: 0;
  }

  .hamburger--open .hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

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

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__mockup img {
    transform: none;
    animation: none;
  }

  /* Pain Cards */
  .pain-cards {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

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

  .stat__number {
    font-size: var(--text-4xl);
  }

  /* Section */
  .section__title {
    font-size: var(--text-2xl);
  }

  /* CTA */
  .cta-block {
    padding: var(--space-2xl);
  }

  .cta-block__title {
    font-size: var(--text-2xl);
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ===========================
   Mobile (max 480px)
   =========================== */

@media (max-width: 480px) {
  :root {
    --space-section: 3rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

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

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

  .btn--lg {
    padding: 0.875rem 1.5rem;
    font-size: var(--text-base);
  }

  .btn--xl {
    padding: 0.875rem 2rem;
    font-size: var(--text-lg);
  }

  .pain-card,
  .feature-card,
  .stat {
    padding: var(--space-lg);
  }

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

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

  .carousel {
    margin: 0 calc(-1 * var(--space-md));
  }

  .carousel__slide {
    padding: 0 var(--space-md);
  }

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

  .cta-block__title {
    font-size: var(--text-xl);
  }
}
