/* ========================================
   Responsive Styles
   ======================================== */

/* Large Tablets & Small Desktops (1024px and below) */
@media (max-width: 1024px) {
  :root {
    --container-padding: 20px;
  }

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

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

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

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

/* Tablets (768px and below) */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 36px;
    --font-size-4xl: 30px;
    --font-size-3xl: 24px;
    --space-4xl: 64px;
    --space-3xl: 48px;
  }

  /* Header Mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 350px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
  }

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

  /* Product Hero */
  .product-hero .container {
    flex-direction: column;
    text-align: center;
  }

  .product-hero-image {
    order: -1;
  }

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

  /* SDK */
  .sdk-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

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

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
  :root {
    --font-size-5xl: 30px;
    --font-size-4xl: 26px;
    --font-size-3xl: 22px;
    --font-size-2xl: 20px;
    --container-padding: 16px;
    --space-4xl: 48px;
    --space-3xl: 32px;
  }

  .btn-lg {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-base);
  }

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

  .hero-actions .btn {
    width: 100%;
  }

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

  .feature-item {
    padding: var(--space-lg);
  }

  .feature-list-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-list-icon {
    margin: 0 auto;
  }
}

/* Hover states - disable on touch devices */
@media (hover: none) {
  .product-card:hover {
    transform: none;
  }

  .nav-links a::after {
    display: none;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .btn {
    display: none;
  }

  .hero {
    padding-top: var(--space-lg);
  }

  body {
    font-size: 12pt;
  }
}
