/* ============================================
   FuseIoT — Responsive Breakpoints
   1440px, 1024px, 768px, 480px
   ============================================ */

/* ============================================
   <= 1440px — Minor adjustments
   ============================================ */
@media (max-width: 1440px) {
  .hero__container {
    height: 58vh;
  }

  .statement__headline {
    font-size: clamp(3rem, 9vw, 10rem);
  }

  .products__capabilities-title {
    font-size: clamp(48px, 6vw, 90px);
  }

  .about__headline {
    font-size: clamp(3rem, 8vw, 9rem);
  }

  .cta__headline {
    font-size: clamp(3.5rem, 9vw, 8rem);
  }

  .mock-sidebar {
    width: 180px;
  }
}

/* ============================================
   <= 1024px — Tablet landscape
   ============================================ */
@media (max-width: 1024px) {
  .header__brand {
    font-size: 16px;
  }

  .products__heroes-grid {
    gap: 2vw;
    width: 94vw;
  }

  .products__hero-card {
    padding: 36px;
  }

  .products__hero-card-title {
    font-size: clamp(3rem, 6vw, 6rem);
  }

  .products__capabilities-grid {
    column-gap: 2vw;
    row-gap: 48px;
  }

  /* About */
  .about__twin {
    margin-bottom: 56px;
  }

  .about__stats {
    gap: 32px;
  }

  /* Statement: full width body */
  .statement__body-wrap {
    max-width: 60%;
  }

  /* Footer: 2 columns */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__col--newsletter {
    grid-column: 1 / -1;
  }
}

/* ============================================
   <= 768px — Tablet portrait / Large phone
   ============================================ */
@media (max-width: 768px) {
  .header {
    padding: 0 4vw;
  }

  .header__brand {
    display: none;
  }

  /* O menu é o único caminho até Fórum/Release Notes — fica visível,
     só um pouco menor para caber ao lado do CTA */
  .header__menu {
    width: 44px;
    height: 44px;
  }

  /* Hero */
  .hero__text {
    padding-top: 90px;
  }

  .hero__container {
    width: calc(100% - 4vw);
    height: 50vh;
    margin-top: 1.5rem;
  }

  .mock-sidebar {
    width: 140px;
  }

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

  /* Statement: single column */
  .statement {
    padding-top: 120px;
  }

  .statement__headline {
    font-size: clamp(2.5rem, 8vw, 6rem);
    margin-bottom: 40px;
  }

  .statement__body-wrap {
    max-width: 100%;
    margin-left: 0;
  }

  .statement__image {
    max-width: 100%;
  }

  /* Products: single column */
  .products__heroes-grid {
    grid-template-columns: 1fr;
    gap: 4vw;
    width: 96vw;
  }

  .products__hero-card {
    padding: 32px;
    aspect-ratio: 16 / 12;
  }

  .products__hero-card-title {
    font-size: clamp(2.5rem, 10vw, 5rem);
  }

  .products__capabilities-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .products__capabilities-title {
    font-size: clamp(40px, 6vw, 64px);
    margin-bottom: 48px;
  }

  /* About */
  .about__headline {
    font-size: clamp(2.5rem, 8vw, 6rem);
    margin-bottom: 8vh;
  }

  .about__twin {
    margin-bottom: 48px;
  }

  .about__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  /* CTA */
  .cta {
    padding: 60px 4vw;
  }

  .cta__content {
    max-width: 100%;
  }

  .cta__headline {
    font-size: clamp(3rem, 9vw, 6rem);
    margin-bottom: 36px;
  }

  .cta__form {
    max-width: 100%;
  }

  .cta__form-row {
    flex-direction: column;
    gap: 16px;
  }

  /* Footer */
  .footer__main {
    padding-top: 60px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__copyright {
    text-align: center;
  }

  /* Section gaps reduced ~40% */
  :root {
    --section-gap-large: clamp(72px, 10vw, 144px);
    --section-gap-medium: clamp(36px, 5vw, 72px);
  }
}

/* ============================================
   <= 480px — Small phone
   ============================================ */
@media (max-width: 480px) {
  .header {
    padding: 0 20px;
    height: 64px;
  }

  .header__logo img {
    height: 32px;
  }

  .hero__text {
    padding-top: 80px;
  }

  .hero__container {
    width: calc(100% - 40px);
    margin-top: 1.5rem;
    height: 45vh;
    border-radius: 16px;
  }

  .mock-sidebar {
    width: 0;
    padding: 0;
    overflow: hidden;
    border: none;
  }

  .mock-main {
    padding: 16px;
  }

  .mock-widgets {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .mock-widget {
    height: 60px;
    padding: 10px;
  }

  .statement {
    padding-top: 80px;
  }

  .statement__headline {
    font-size: clamp(2rem, 10vw, 4rem);
    margin-bottom: 32px;
  }

  .products__heroes-grid {
    width: calc(100% - 40px);
  }

  .products__hero-card {
    padding: 24px;
    aspect-ratio: auto;
    min-height: 280px;
  }

  .products__hero-card-title {
    font-size: clamp(2rem, 12vw, 4rem);
  }

  .products__hero-card-subtitle {
    font-size: 15px;
  }

  .products__hero-card-pills .pill {
    font-size: 10px;
    padding: 6px 12px;
  }

  .products__capabilities {
    padding-left: 20px;
    padding-right: 20px;
  }

  .products__capabilities-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .products__capability-card-title {
    font-size: clamp(18px, 4vw, 24px);
  }

  .about {
    padding-top: clamp(60px, 8vw, 100px);
    padding-bottom: clamp(60px, 8vw, 100px);
  }

  .about__headline {
    font-size: clamp(2rem, 10vw, 4rem);
    margin-bottom: 6vh;
  }

  .about__stats {
    flex-direction: column;
    gap: 20px;
  }

  .about__stat-number {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .cta {
    padding: 48px 20px;
  }

  .cta__subtitle {
    font-size: 10px;
  }

  .cta__headline {
    font-size: clamp(2.5rem, 10vw, 4rem);
    margin-bottom: 32px;
  }

  .cta__form-input {
    height: 48px;
    font-size: 14px;
  }

  .cta__form-textarea {
    min-height: 100px;
  }

  .footer__main {
    padding: 48px 0 32px;
  }

  .footer__newsletter-input {
    height: 48px;
    font-size: 14px;
  }

  :root {
    --section-gap-large: clamp(48px, 8vw, 80px);
    --section-gap-medium: clamp(24px, 4vw, 48px);
  }
}

/* ==========================================================================
   Ajustes mobile — auditoria jun/2026
   ========================================================================== */
@media (max-width: 768px) {
  /* o hint de scroll encostava no card do demo da Iris no hero */
  .hero__bottom-bar {
    display: none;
  }

  /* respiro entre o bloco de stats e o texto corrido (colavam no 24/7) */
  .about__body-wrap {
    margin-top: 3rem;
  }

  /* a curva do masthead atravessa o kicker/deck em telas estreitas —
     mantém o gesto, devolve a leitura */
  .forum__curve {
    opacity: 0.3;
  }
}
