/* =============================================
   RESPONSIVE.CSS — Futurizai
   Breakpoints: mobile / tablet / desktop
   ============================================= */

.mobile-only {
  display: none !important;
}

/* ─── TABLET: 768px – 1200px ─── */
@media (max-width: 1200px) {
  .container {
    padding: 0 var(--space-6);
  }

  /* bento mantém 3 colunas no tablet */

  .ecosystem__pillars {
    flex-wrap: wrap;
  }

  .ecosystem__pillar {
    flex: 1 1 calc(50% - 1px);
    border-bottom: 1px solid var(--border);
  }

  .ecosystem__pillar:nth-child(even) {
    border-right: none;
  }
}

/* ─── MOBILE: < 768px ─── */
@media (max-width: 767px) {

  .mobile-only {
    display: block !important;
  }

  .navbar__inner {
    display: flex;
    justify-content: space-between;
  }

  .navbar__links,
  .navbar__cta,
  .social-links--nav {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
    align-items: center;
  }

  .hero-headline {
    font-size: clamp(40px, 10vw, 56px);
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn {
    padding: 14px 20px;
    text-align: center;
    justify-content: center;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-title {
    font-size: var(--text-xl);
    font-weight: 500;
  }

  .section-box {
    padding: var(--space-8) var(--space-6);
    border-radius: 14px;
  }

  /* Bento → pilha vertical no mobile */
  .bento-grid {
    grid-template-columns: 1fr;
    background: transparent;
    border: 1px solid var(--border);
    gap: 0;
  }

  .bento-grid .card {
    grid-column: span 1 !important;
    border-bottom: 1px solid var(--border);
  }

  .bento-grid .card:last-child {
    border-bottom: none;
  }

  /* Método → vertical no mobile */
  .method-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .method-connector {
    display: none;
  }

  /* Ecosystem pillars → 2 colunas */
  .ecosystem__pillars {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
  }

  .ecosystem__pillar {
    flex: 1 1 calc(50% - 1px);
    padding: var(--space-5) var(--space-4);
    border-bottom: 1px solid var(--border);
  }

  .ecosystem__pillar:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .ecosystem__pillar:nth-child(even) {
    border-right: none;
  }

  /* CTA contacts → vertical */
  .cta-contacts {
    flex-direction: column;
    gap: var(--space-6);
  }

  .cta-headline {
    font-size: clamp(28px, 7vw, 40px);
  }

  /* Footer → centralizado no mobile */
  .footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-5);
  }

  .footer__bottom {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    padding-right: 30px;
    padding-left: 30px;
  }

  /* Quem Somos → coluna única */
  .sobre__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .sobre__headline {
    position: static;
  }

  .sobre__stats {
    flex-direction: column;
  }

  .sobre__stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sobre__stat:last-child {
    border-bottom: none;
  }

  /* Cursor → desabilitar em touch */
  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  /* Container narrow */
  .container--narrow {
    padding: 0 var(--space-5);
  }

  /* Esconder botões flutuantes quando menu estiver aberto ou no final da página */
  body.menu-open .agent-fab,
  body.menu-open .floating-diag-btn,
  body.at-bottom .agent-fab,
  body.at-bottom .floating-diag-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
  }
}

/* ─── PEQUENO MOBILE: < 480px ─── */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-5);
  }

  .hero__content {
    padding: 0 var(--space-5);
  }

  .marquee-item {
    font-size: 12px;
    padding: 5px var(--space-3);
  }
}

/* ─── TOUCH DEVICE: cursor customizado desligado ─── */
@media (hover: none) and (pointer: coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  * {
    cursor: auto !important;
  }
}