/* Container Principal (Moldura e Limite do Banner) */
.heroOfficialSection {
  position: relative;
  min-height: 580px;
  max-width: 1800px;
  margin: 100px auto 0;
  border-radius: 32px;
  border: var(--color-outline-secondary);
  overflow: hidden;
  box-sizing: border-box;
}

/* Navegação de Abas (Fixa no topo do banner) */
.heroTabsNav {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
  padding: 0 24px;
  box-sizing: border-box;
}

.pillTabs {
  display: inline-flex;
  flex-direction: row;
  background: var(--bg-glass-color-60);
  border: var(--color-outline-secondary);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 4px;
  gap: 8px;
  border-radius: 999px;
}

.heroTabItem {
  display: flex;
  align-items: center;
  position: relative;
  padding: 6px 18px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.heroTabItem:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.heroTabItem.active {
  color: #ffffff;
  background: var(--node-purple);
}

/* Container de Slides */
.heroSlidesContainer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 680px;
  padding: 0 20px;
}

/* Cada Banner / Slide (Ocupa 100% do container) */
.heroSlide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background-color: var(--color-background-primary);
  gap: 48px;
  padding: 100px 48px 48px 48px;
  box-sizing: border-box;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;

  /* Estilização de Fundo Única de Cada Slide */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.heroSlide.active {
  opacity: 1;
  visibility: visible;
}

/* --- IMAGENS DE FUNDO ESPECÍFICAS DE CADA BANNER --- */
#slide-sense {
  background-image: radial-gradient(circle at center, rgba(116, 28, 255, 0.15), transparent 70%),
    url('https://cdn.nodeiot.com.br/siteRemoteIO/imagesHero/heroRemote.png');
}

#slide-gateway {
  background-image: radial-gradient(circle at center, rgba(116, 28, 255, 0.15), transparent 70%),
    url('https://cdn.nodeiot.com.br/siteRemoteIO/imagesHero/heroRemote.png');
}

#slide-edge {
  background-image: radial-gradient(circle at center, rgba(116, 28, 255, 0.15), transparent 70%),
    url('https://cdn.nodeiot.com.br/siteRemoteIO/imagesHero/heroRemote.png');
}

#slide-geo {
  background-image: radial-gradient(circle at center, rgba(116, 28, 255, 0.15), transparent 70%),
    url('https://cdn.nodeiot.com.br/siteRemoteIO/imagesHero/heroRemote.png');
}

/* Lado Esquerdo (Texto e Ações) */
.heroLeft {
  width: 50%;
  z-index: 2;
}

.heroBadgeContainer {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 20px;
}

.heroBadge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(116, 28, 255, 0.12);
  border: 1px solid rgba(116, 28, 255, 0.25);
  color: var(--node-purple);
  backdrop-filter: blur(12px);
}

.heroLeft h2 {
  margin: 0;
  font-size: 56px;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.heroLeft h2 span {
  background: linear-gradient(135deg, #a78bff 0%, var(--node-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heroDescription {
  max-width: 600px;
  margin-top: 18px;
  margin-bottom: 40px;
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1.6;
}

.primaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #7c4dff 0%, #5b34ff 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  gap: 12px;
  box-shadow:
    0 12px 30px rgba(94, 52, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
  text-decoration: none;
}

.primaryButton:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 40px rgba(94, 52, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Lado Direito (Ativos do Produto) */
.heroRight {
  position: relative;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.productImage {
  position: relative;
  z-index: 2;
  width: 420px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.productImage:hover {
  transform: scale(1.02) rotate(-2deg);
}

.heroRight:has(.productImage[src=""]),
.heroRight:has(.productImage:not([src])) {
  display: none !important;
}

/* ==========================================================
   VERSÃO MOBILE E RESPONSIVA AJUSTADA
   ========================================================== */

@media (max-width: 1024px) {
  .heroOfficialSection {
    margin: 80px 24px 0;
    min-height: auto;
  }


  /* Remove a imagem de fundo de todos os slides no mobile, mantendo apenas o gradiente */
  #slide-sense,
  #slide-gateway,
  #slide-edge,
  #slide-geo {
    background-image: radial-gradient(circle at center, rgba(116, 28, 255, 0.15), transparent 70%) !important;
  }


  .heroSlidesContainer {
    min-height: 420px;
  }

  .heroSlide {
    position: absolute;
    flex-direction: column;
    text-align: center;
    padding: 84px 24px 62px 24px;
    gap: 32px;
  }

  .heroSlide.active {
    position: relative;
  }

  .heroLeft,
  .heroRight {
    width: 100%;
  }

  .heroBadgeContainer {
    justify-content: center;
  }

  .heroLeft h2 {
    font-size: 42px;
  }

  .heroDescription {
    margin: 16px auto 28px auto;
  }

  .primaryButton {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .productImage {
    width: 320px;
  }
}

@media (max-width: 600px) {
  .heroOfficialSection {
    margin: 80px 16px 0;
    border-radius: 20px;
  }

  .heroTabsNav {
    top: 16px;
    padding: 0 12px;
  }

  .pillTabs {
    width: 100%;
    justify-content: space-between;
    padding: 3px;
    gap: 4px;
  }

  .heroTabItem {
    flex: 1;
    justify-content: center;
    padding: 6px 8px;
    font-size: 12px;
  }

  .heroSlide {
    padding: 110px 16px 24px 16px;
  }

  .heroLeft h2 {
    font-size: 30px;
  }

  .heroDescription {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .primaryButton {
    max-width: 100%;
    padding: 12px 20px;
    font-size: 15px;
  }

  .productImage {
    width: 260px;
  }
}