/* ==========================================================================
   Responsive Adaptations & Breakpoints
   ========================================================================== */

/* Large Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-visual {
    max-width: 780px;
    margin-inline: auto;
  }

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

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

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

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

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

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

/* Tablets & Mobile (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --space-4xl: 64px;
    --space-3xl: 48px;
    --space-2xl: 32px;
  }

  .navbar {
    height: 70px;
  }

  .nav-menu,
  .navbar-actions .btn,
  .navbar-actions .btn-radbin-primary {
    display: none !important;
  }

  .btn-hamburger {
    display: inline-flex;
  }

  /* Values: Strict 1-column vertical list on mobile (No horizontal scroll!) */
  .values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .platform-groups-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Workflow Steps: Vertical Flow */
  .workflow-steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .workflow-step-card {
    flex-direction: row;
    text-align: start;
    align-items: flex-start;
    padding: var(--space-lg);
  }

  .workflow-step-badge {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* Field Support: Stacked with Character on top */
  .field-spotlight-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .field-character-wrap {
    order: -1;
  }

  .field-character-img {
    max-height: 380px;
  }

  /* Desktop Mockup & Mobile Phone Frame */
  .device-mobile-frame {
    width: 140px;
    bottom: -16px;
    inset-inline-start: -12px;
    border-width: 3px;
    border-radius: 24px;
  }

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

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

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

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

  .footer-legal-links {
    justify-content: center;
  }

  .final-cta-card {
    padding: var(--space-3xl) var(--space-lg);
  }

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

  .final-cta-actions .btn {
    width: 100%;
  }
}

/* Small Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

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

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

  .device-mobile-frame {
    display: none; /* Hide overlapping mobile frame on very narrow screens to preserve desktop readability */
  }

  .brand-logo {
    height: 34px;
  }
}
