/* ============================================
   RESPONSIVE — Mobile-first breakpoints
   ============================================
   Breakpoints:
   - 480px   → Small mobile
   - 768px   → Tablet
   - 1024px  → Small desktop
   - 1280px  → Desktop
   - 1440px  → Wide desktop
   - 1920px  → Ultrawide
   ============================================ */

/* ══════════════════════════════════════════════
   MAX 1280px — Compact desktop
   ══════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .footer__grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-md);
  }
}

/* ══════════════════════════════════════════════
   MAX 1024px — Tablet landscape / Small desktop
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
  }

  .feature-row--reverse {
    direction: ltr;
  }

  .feature-row__content {
    max-width: 600px;
    margin: 0 auto;
  }

  .feature-row__visual {
    max-width: 500px;
    margin: 0 auto;
  }

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

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

/* ══════════════════════════════════════════════
   MAX 768px — Tablet portrait
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(3rem, 8vh, 6rem);
  }

  /* Nav → Mobile */
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }

  .nav__links.active {
    display: flex;
  }

  .nav__link {
    font-size: 1.5rem;
    color: var(--color-frost);
  }

  .nav__hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .nav__hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  /* Hero */
  .hero {
    min-height: 90vh;
    padding-top: 80px;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Products */
  .products__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Showcase */
  .showcase__specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .showcase__visual {
    aspect-ratio: 4/3;
  }

  /* CTA */
  .cta__box {
    padding: var(--space-lg) var(--space-md);
  }

  .cta__form {
    flex-direction: column;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
  }

  .footer__brand-desc {
    margin: 1rem auto 0;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Feature rows */
  .feature-row__visual {
    max-width: 100%;
    aspect-ratio: 4/3;
  }
}

/* ══════════════════════════════════════════════
   MAX 480px — Small mobile
   ══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .card__body {
    padding: 1.25rem;
  }

  .card__title {
    font-size: 1.15rem;
  }

  .showcase__device {
    border-radius: var(--radius-md);
  }

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

  .spec-item {
    padding: 1rem;
  }

  .spec-item__value {
    font-size: var(--fs-h3);
  }

  .marquee__item {
    font-size: var(--fs-h3);
  }
}

/* ══════════════════════════════════════════════
   MIN 1440px — Wide desktop
   ══════════════════════════════════════════════ */
@media (min-width: 1440px) {
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

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

/* ══════════════════════════════════════════════
   MIN 1920px — Ultrawide
   ══════════════════════════════════════════════ */
@media (min-width: 1920px) {
  :root {
    --fs-mega: 8rem;
  }

  .container {
    max-width: 1400px;
  }

  .container--wide {
    max-width: 1600px;
  }
}

/* ══════════════════════════════════════════════
   PREFERS REDUCED MOTION
   ══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }
}
