/* ============================
   RESPONSIVE BREAKPOINTS
   ============================ */

/* ──────────────────────────────
   Tablet landscape  ≤ 1024px
   ────────────────────────────── */
@media (max-width: 1024px) {
  /* Layout utility grids */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 360px;
  }
  .sol-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .sol-card {
    height: 320px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

/* ──────────────────────────────
   Tablet portrait & mobile  ≤ 768px
   ────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  /* Utility grids → 1 col */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-16) 0;
  }
  .section-title {
    font-size: var(--text-3xl);
  }
  .section-header {
    margin-bottom: var(--space-10);
  }

  /* ── Navigation mobile ── */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10,15,30,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-6);
    gap: var(--space-2);
    border-bottom: var(--border-dark);
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-link {
    padding: var(--space-3) var(--space-4);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 48px;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255,255,255,0.03);
    margin-top: var(--space-2);
    display: none;
    min-width: auto;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-item {
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
  }
  .nav-lang {
    margin-left: 0;
    align-self: flex-start;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* ── Hero ── */
  .hero {
    min-height: 85vh;
  }
  .hero-content {
    padding: var(--space-20) var(--container-padding) var(--space-12);
  }
  .hero-headline {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
  .hero-sub {
    font-size: var(--text-base);
  }
  .hero-sub br {
    display: none;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .hero-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .hero-btns .btn--lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }
  .hero-partners {
    gap: var(--space-4);
    flex-wrap: wrap;
  }
  .hero-partners-label {
    font-size: 12px;
  }
  .hero-scroll-hint {
    display: none;
  }
  .marquee-track img {
    width: 72px;
    height: 26px;
  }

  /* ── Stats ── */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .stat-number {
    font-size: var(--text-4xl);
  }

  /* ── Capabilities ── */
  .cap-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .cap-connector {
    display: none;
  }

  /* ── Bento ── */
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-main {
    grid-column: auto;
    min-height: 320px;
  }
  .bento-full {
    grid-column: auto;
    flex-direction: column;
  }
  .bento-chat-demo {
    width: 100%;
    max-width: 100%;
  }
  .bento-main .bento-title {
    font-size: var(--text-3xl);
  }
  .bento-item {
    padding: var(--space-6);
  }

  /* ── Solutions ── */
  .sol-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .sol-card {
    height: 300px;
    min-height: 280px;
  }
  .sol-link {
    opacity: 1;
    transform: translateY(0);
  }

  /* ── Industries ── */
  .industry-panel.active {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .industry-stats {
    justify-content: flex-start;
    gap: var(--space-6);
  }
  .industry-img {
    order: -1;
  }
  .industry-text h3 {
    font-size: var(--text-2xl);
  }

  /* ── Trust ── */
  .trust-grid {
    gap: var(--space-4) var(--space-6);
    justify-content: flex-start;
  }
  .trust-item span:last-child {
    font-size: var(--text-xs);
  }

  /* ── CTA ── */
  .cta-content h2 {
    font-size: var(--text-3xl);
  }
  .cta-form {
    flex-direction: column;
  }
  .cta-submit {
    width: 100%;
  }

  /* ── Footer ── */
  .footer {
    padding: var(--space-12) 0 var(--space-6);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
  .footer-qr {
    justify-content: flex-start;
  }

  /* ── Buttons — ensure all button groups wrap/stack ── */
  .product-hero-btns,
  .product-cta-btns,
  .sol-hero-btns,
  .sol-cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .product-hero-btns .btn,
  .product-cta-btns .btn,
  .sol-hero-btns .btn,
  .sol-cta-btns .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* ── Minimum touch targets (WCAG) ── */
  .btn {
    min-height: 44px;
  }
  .industry-tab {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}

/* ──────────────────────────────
   Small phones  ≤ 480px
   ────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

  .section {
    padding: var(--space-12) 0;
  }
  .section-title {
    font-size: var(--text-2xl);
  }
  .section-subtitle {
    font-size: var(--text-base);
  }
  .section-header {
    margin-bottom: var(--space-8);
  }

  /* Hero */
  .hero {
    min-height: 80vh;
  }
  .hero-content {
    padding: var(--space-20) var(--container-padding) var(--space-12);
  }
  .hero-headline {
    font-size: 2rem;
  }
  .hero-sub {
    font-size: var(--text-base);
  }
  .hero-btns .btn {
    max-width: 100%;
  }

  /* Stats → 2 col tighter */
  .stats-grid {
    padding: var(--space-6);
    gap: var(--space-4);
  }
  .stat-number {
    font-size: var(--text-3xl);
  }
  .stat-label {
    font-size: var(--text-xs);
  }
  .stat-sub {
    font-size: 10px;
  }

  /* Bento */
  .bento-main {
    min-height: 260px;
    padding: var(--space-6);
  }
  .bento-main .bento-title {
    font-size: var(--text-2xl);
  }
  .bento-item {
    padding: var(--space-5);
  }
  .bento-title {
    font-size: var(--text-xl);
  }

  /* Solutions cards */
  .sol-card {
    height: auto;
    min-height: 260px;
  }
  .sol-content {
    padding: var(--space-6);
  }
  .sol-card h3 {
    font-size: var(--text-xl);
  }

  /* Industry tabs */
  .industry-tabs {
    gap: var(--space-1);
  }
  .industry-tab {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    min-height: 36px;
  }
  .industry-stat-val {
    font-size: var(--text-2xl);
  }

  /* Trust */
  .trust-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  /* CTA */
  .cta-content h2 {
    font-size: var(--text-2xl);
  }
  .cta-content p {
    font-size: var(--text-base);
  }
  .cta-input {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
  }

  /* Footer */
  .footer-brand p {
    max-width: 100%;
  }
  .footer-qr-item img {
    width: 64px;
    height: 64px;
  }

  /* Cap cards tighter */
  .cap-card {
    padding: var(--space-6) var(--space-5);
  }
  .cap-icon {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
  .cap-card h3 {
    font-size: var(--text-xl);
  }
}

/* ──────────────────────────────
   Tiny phones  ≤ 375px
   ────────────────────────────── */
@media (max-width: 375px) {
  .hero-headline {
    font-size: 1.75rem;
  }
  .stat-number {
    font-size: var(--text-2xl);
  }
  .section-title {
    font-size: var(--text-xl);
  }
  .btn {
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-5);
  }
  .btn--lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }
}
