/* ==========================================================================
   Hero Slider — Laudo Pro
   Arte 1536×1024 (3:2) · visual à direita · copy compacta à esquerda
   ========================================================================== */

.hero-slider {
  --hero-text-max: 480px;
  --hero-title: clamp(1.75rem, 2.6vw, 2.45rem);
  --hero-sub: 1rem;
  --hero-eyebrow-size: 0.75rem;

  position: relative;
  width: 100%;
  /* Altura proporcional à arte 3:2, limitada pela viewport */
  height: min(66.667vw, 100svh);
  min-height: 480px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-slider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(3rem, 8vw, 5.5rem);
  z-index: 45;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(8, 16, 32, 0.22) 45%,
    rgba(8, 16, 32, 0.42) 100%
  );
}

/* Sombra na transição hero → conteúdo (altura 0 — não ocupa faixa no layout) */
.hero-edge-shadow {
  position: relative;
  z-index: 6;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: visible;
}

.hero-edge-shadow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(-4.5rem, -9vw, -6rem);
  height: clamp(4.5rem, 9vw, 6rem);
  background: linear-gradient(
    to bottom,
    rgba(8, 16, 32, 0.38) 0%,
    rgba(15, 30, 61, 0.16) 42%,
    rgba(15, 30, 61, 0.05) 72%,
    transparent 100%
  );
  filter: drop-shadow(0 10px 28px rgba(8, 16, 32, 0.2));
}

/* Faixa de fundo sólida quando a viewport não é 3:2 */
.hero-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

/* Imagem como arte final — nunca distorce */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #F0F0F1;
}

.hero-slide--dark .hero-slide-bg {
  background: #0A1628;
}

.hero-slide-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

/* Hero03 — monitor e operador à direita; center corta a composição */
.hero-slide--copilot .hero-slide-bg img {
  object-position: 72% center;
}

/* Overlay sobre a imagem — somente mobile (ver @media 768px) */
.hero-slide-overlay {
  display: none;
}

/* Conteúdo: coluna esquerda estreita, nunca invade o visual */
.hero-slide-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, var(--hero-text-max)) 1fr;
  align-items: center;
  max-width: 1440px;
  margin-inline: auto;
  padding:
    calc(var(--nav-height) + 0.5rem)
    clamp(1.25rem, 3.5vw, 3rem)
    3.25rem;
  pointer-events: none;
}

.hero-slide-content {
  grid-column: 1;
  max-width: var(--hero-text-max);
  pointer-events: auto;
}

/* Tipografia compacta — isolada do styles.css global */
.hero-slider .hero-eyebrow {
  font-family: var(--font-display);
  font-size: var(--hero-eyebrow-size);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.875rem;
}

.hero-slider .hero-slide-title {
  font-family: var(--font-display);
  font-size: var(--hero-title);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.875rem;
  max-width: 100%;
  color: var(--navy);
}

.hero-slider .hero-slide--dark .hero-slide-title {
  color: var(--white);
}

.hero-slider .hero-slide-title .accent {
  color: var(--teal);
}

.hero-slider .hero-slide-sub {
  font-family: var(--font-body);
  font-size: var(--hero-sub);
  font-weight: 400;
  line-height: 1.5;
  max-width: 100%;
  margin: 0 0 1.375rem;
  color: var(--gray);
}

.hero-slider .hero-slide--dark .hero-slide-sub {
  color: rgba(255, 255, 255, 0.78);
}

/* CTAs menores */
.hero-slide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.hero-slider .btn {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.6875rem 1.25rem;
}

.hero-slide--dark .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-slide--dark .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Features / KPIs compactos */
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem 1rem;
  max-width: var(--hero-text-max);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

.hero-slide--light .hero-feature { color: var(--navy); }
.hero-slide--dark .hero-feature { color: rgba(255, 255, 255, 0.88); }

.hero-feature svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .hero-features--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  max-width: var(--hero-text-max);
}

.hero-kpi {
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.125rem;
}

.hero-kpi span {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
}

/* Security card */
.hero-security-card {
  margin-top: 0.25rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: var(--hero-text-max);
}

.hero-security-card ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 0.75rem;
}

.hero-security-card li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-security-card svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
  flex-shrink: 0;
}

/* Chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.hero-chip svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}

.hero-chips + .hero-slide-cta {
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.hero-security-card + .hero-features,
.hero-security-card ~ .hero-features {
  margin-top: 1.25rem;
}

/* ==========================================================================
   Micro-animações — entrada por slide
   ========================================================================== */

@keyframes heroBgIn {
  from {
    opacity: 0.88;
    transform: scale(1.028);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(11px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroIconIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-slide .hero-eyebrow,
.hero-slide .hero-slide-title,
.hero-slide .hero-slide-sub,
.hero-slide .hero-slide-cta,
.hero-slide .hero-features,
.hero-slide .hero-kpis,
.hero-slide .hero-security-card,
.hero-slide .hero-chips,
.hero-slide .hero-feature,
.hero-slide .hero-kpi,
.hero-slide .hero-chip,
.hero-slide .hero-security-card li {
  opacity: 0;
}

.hero-slide.is-active .hero-slide-bg img {
  animation: heroBgIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide.is-active.is-entering .hero-eyebrow {
  animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

.hero-slide.is-active.is-entering .hero-slide-title {
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.18s;
}

.hero-slide.is-active.is-entering .hero-slide-sub {
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.26s;
}

.hero-slide.is-active.is-entering .hero-slide-cta {
  animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.34s;
}

.hero-slide.is-active.is-entering .hero-slide-cta .btn:nth-child(2) {
  animation: heroFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.42s;
}

.hero-slide.is-active.is-entering .hero-features {
  animation: heroFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.44s;
}

.hero-slide.is-active.is-entering .hero-feature {
  animation: heroFadeUp 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide.is-active.is-entering .hero-feature:nth-child(1) { animation-delay: 0.48s; }
.hero-slide.is-active.is-entering .hero-feature:nth-child(2) { animation-delay: 0.54s; }
.hero-slide.is-active.is-entering .hero-feature:nth-child(3) { animation-delay: 0.6s; }
.hero-slide.is-active.is-entering .hero-feature:nth-child(4) { animation-delay: 0.66s; }

.hero-slide.is-active.is-entering .hero-feature svg {
  animation: heroIconIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: inherit;
}

.hero-slide.is-active.is-entering .hero-kpis {
  animation: heroFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.42s;
}

.hero-slide.is-active.is-entering .hero-kpi {
  animation: heroFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide.is-active.is-entering .hero-kpi:nth-child(1) { animation-delay: 0.46s; }
.hero-slide.is-active.is-entering .hero-kpi:nth-child(2) { animation-delay: 0.52s; }
.hero-slide.is-active.is-entering .hero-kpi:nth-child(3) { animation-delay: 0.58s; }
.hero-slide.is-active.is-entering .hero-kpi:nth-child(4) { animation-delay: 0.64s; }

.hero-slide.is-active.is-entering .hero-security-card {
  animation: heroFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.38s;
}

.hero-slide.is-active.is-entering .hero-security-card li {
  animation: heroFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide.is-active.is-entering .hero-security-card li:nth-child(1) { animation-delay: 0.46s; }
.hero-slide.is-active.is-entering .hero-security-card li:nth-child(2) { animation-delay: 0.52s; }
.hero-slide.is-active.is-entering .hero-security-card li:nth-child(3) { animation-delay: 0.58s; }
.hero-slide.is-active.is-entering .hero-security-card li:nth-child(4) { animation-delay: 0.64s; }

.hero-slide.is-active.is-entering .hero-security-card svg {
  animation: heroIconIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: inherit;
}

.hero-slide.is-active.is-entering .hero-chips + .hero-slide-cta {
  animation: heroFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.72s;
}

.hero-slide.is-active.is-entering .hero-chips {
  animation: heroFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.4s;
}

.hero-slide.is-active.is-entering .hero-chip {
  animation: heroFadeUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide.is-active.is-entering .hero-chip:nth-child(1) { animation-delay: 0.44s; }
.hero-slide.is-active.is-entering .hero-chip:nth-child(2) { animation-delay: 0.49s; }
.hero-slide.is-active.is-entering .hero-chip:nth-child(3) { animation-delay: 0.54s; }
.hero-slide.is-active.is-entering .hero-chip:nth-child(4) { animation-delay: 0.59s; }
.hero-slide.is-active.is-entering .hero-chip:nth-child(5) { animation-delay: 0.64s; }

.hero-slide.is-active.is-entering .hero-chip svg {
  animation: heroIconIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: inherit;
}

.hero-slide.is-active.is-entering .hero-security-card ~ .hero-features {
  animation: heroFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.72s;
}

.hero-slide.is-active.is-entering .hero-security-card ~ .hero-features .hero-feature {
  animation: heroFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide.is-active.is-entering .hero-security-card ~ .hero-features .hero-feature:nth-child(1) { animation-delay: 0.76s; }
.hero-slide.is-active.is-entering .hero-security-card ~ .hero-features .hero-feature:nth-child(2) { animation-delay: 0.81s; }
.hero-slide.is-active.is-entering .hero-security-card ~ .hero-features .hero-feature:nth-child(3) { animation-delay: 0.86s; }
.hero-slide.is-active.is-entering .hero-security-card ~ .hero-features .hero-feature:nth-child(4) { animation-delay: 0.91s; }

/* ==========================================================================
   Navbar sobre o hero — tamanho e contraste consistentes
   ========================================================================== */

.hero-slider > .navbar,
.hero-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(240, 240, 241, 0.72) !important;
  backdrop-filter: blur(16px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
  border-bottom: 1px solid rgba(15, 30, 61, 0.07) !important;
  box-shadow: none !important;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-slider > .navbar[data-theme="dark"]:not(.scrolled),
.hero-navbar[data-theme="dark"]:not(.scrolled) {
  background: rgba(8, 16, 32, 0.55) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.hero-slider > .navbar .container,
.hero-navbar .container {
  max-width: 1440px;
  padding-inline: clamp(1.25rem, 3.5vw, 3rem);
}

/* Logo — caixa fixa, mesma área para claro e escuro */
.hero-slider > .navbar .navbar-logo,
.hero-navbar .navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 220px;
  height: 36px;
}

.hero-slider > .navbar .navbar-logo img,
.hero-navbar .navbar-logo img {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}

.hero-slider > .navbar .navbar-logo,
.hero-navbar .navbar-logo {
  position: relative;
}

.hero-slider > .navbar .logo-dark,
.hero-navbar .logo-dark { display: none; opacity: 0; }
.hero-slider > .navbar .logo-light,
.hero-navbar .logo-light { display: block; opacity: 1; }

.hero-slider > .navbar[data-theme="dark"]:not(.scrolled) .logo-light,
.hero-navbar[data-theme="dark"]:not(.scrolled) .logo-light {
  display: block;
  opacity: 0;
  pointer-events: none;
}

.hero-slider > .navbar[data-theme="dark"]:not(.scrolled) .logo-dark,
.hero-navbar[data-theme="dark"]:not(.scrolled) .logo-dark {
  display: block;
  opacity: 1;
}

.hero-slider > .navbar .navbar-nav a,
.hero-navbar .navbar-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
}

.hero-slider > .navbar[data-theme="dark"]:not(.scrolled) .navbar-nav a,
.hero-navbar[data-theme="dark"]:not(.scrolled) .navbar-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.hero-slider > .navbar .menu-toggle,
.hero-navbar .menu-toggle {
  color: var(--navy);
}

.hero-slider > .navbar[data-theme="dark"]:not(.scrolled) .menu-toggle,
.hero-navbar[data-theme="dark"]:not(.scrolled) .menu-toggle {
  color: var(--white);
}

.hero-slider > .navbar .navbar-nav a:hover,
.hero-navbar .navbar-nav a:hover {
  color: var(--teal);
}

.hero-slider > .navbar .navbar-actions .btn,
.hero-navbar .navbar-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* Ao rolar — fixo acima de todo o conteúdo da página */
.hero-slider.is-nav-fixed,
.hero-slider:has(> .navbar.scrolled),
.hero-slider:has(> .hero-navbar.scrolled) {
  z-index: 1100;
}

.hero-slider > .navbar.scrolled,
.hero-navbar.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(240, 240, 241, 0.94) !important;
  box-shadow: 0 1px 0 rgba(15, 30, 61, 0.06) !important;
}

.hero-slider > .navbar.scrolled .navbar-nav a,
.hero-slider > .navbar.scrolled .menu-toggle,
.hero-navbar.scrolled .navbar-nav a,
.hero-navbar.scrolled .menu-toggle {
  color: var(--navy) !important;
}

.hero-slider > .navbar.scrolled .logo-light,
.hero-navbar.scrolled .logo-light {
  display: block !important;
  opacity: 1 !important;
}

.hero-slider > .navbar.scrolled .logo-dark,
.hero-navbar.scrolled .logo-dark {
  display: block !important;
  opacity: 0 !important;
  pointer-events: none;
}

.hero-nav-spacer {
  display: none;
  height: var(--nav-height);
}

.hero-slider.is-nav-fixed .hero-nav-spacer {
  display: block;
}

.hero-slider.is-nav-fixed > .navbar,
.hero-slider.is-nav-fixed > .hero-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

/* Controles do slider */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-nav svg { width: 18px; height: 18px; }
.hero-prev { left: clamp(0.75rem, 2vw, 1.5rem); }
.hero-next { right: clamp(0.75rem, 2vw, 1.5rem); }

.hero-slider[data-theme="light"] .hero-nav {
  background: rgba(15, 30, 61, 0.08);
  color: var(--navy);
}

.hero-slider[data-theme="light"] .hero-nav:hover {
  background: rgba(46, 139, 122, 0.15);
}

.hero-slider[data-theme="dark"] .hero-nav {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.hero-slider[data-theme="dark"] .hero-nav:hover {
  background: rgba(46, 139, 122, 0.25);
}

/* Desktop: filho direto do hero — posicionamento absoluto individual */
.hero-controls {
  display: contents;
}

.hero-pagination {
  position: absolute;
  bottom: 1.25rem;
  left: clamp(1.25rem, 3.5vw, 3rem);
  transform: none;
  z-index: 40;
  display: flex;
  gap: 0.375rem;
}

.hero-dot {
  width: 28px;
  height: 2px;
  border-radius: 1px;
  background: rgba(15, 30, 61, 0.2);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.hero-slider[data-theme="dark"] .hero-dot {
  background: rgba(255, 255, 255, 0.25);
}

.hero-dot.is-active {
  width: 40px;
  background: var(--teal);
}

.hero-progress {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  background: rgba(46, 139, 122, 0.14);
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hero-navbar[data-theme="dark"]:not(.scrolled) .hero-progress {
  background: rgba(255, 255, 255, 0.1);
}

.hero-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--teal);
  transition: none;
  will-change: width;
}

.hero-slider.is-nav-fixed .hero-progress,
.hero-slider > .hero-navbar.scrolled .hero-progress {
  opacity: 0;
  visibility: hidden;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-slider {
    --hero-text-max: 400px;
    height: min(72vw, 100svh);
    min-height: 440px;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    --hero-text-max: 100%;
    --hero-title: clamp(1.375rem, 5.5vw, 1.875rem);
    --hero-sub: 0.875rem;
    height: auto;
    min-height: max(520px, 100svh);
    isolation: auto;
    touch-action: pan-y pinch-zoom;
  }

  /* Arte 3:2 com copy à esquerda — no mobile prioriza o visual à direita */
  .hero-slide-bg img {
    object-fit: cover;
    object-position: 78% center;
  }

  .hero-slide--copilot .hero-slide-bg img {
    object-position: 82% center;
  }

  .hero-slide--security .hero-slide-bg img {
    object-position: 76% center;
  }

  .hero-slide--retail .hero-slide-bg img {
    object-position: 88% center;
  }

  /* Escurece a imagem para legibilidade do texto */
  .hero-slide-overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(8, 16, 32, 0.25) 0%,
      rgba(8, 16, 32, 0.45) 35%,
      rgba(8, 16, 32, 0.72) 62%,
      rgba(8, 16, 32, 0.88) 100%
    );
  }

  .hero-slide-inner {
    grid-template-columns: 1fr;
    align-items: end;
    min-height: max(520px, 100svh);
    padding-bottom: clamp(4.5rem, 14vw, 5.25rem);
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 35%,
      rgba(240, 240, 241, 0.92) 58%,
      rgba(240, 240, 241, 0.98) 100%
    );
  }

  .hero-slide--dark .hero-slide-inner {
    background: linear-gradient(
      180deg,
      transparent 0%,
      transparent 32%,
      rgba(8, 16, 32, 0.88) 55%,
      rgba(8, 16, 32, 0.97) 100%
    );
  }

  .hero-slider .hero-slide-sub {
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: none;
  }

  .hero-slide-sub + .hero-slide-sub {
    margin-top: -0.625rem;
  }

  /* Libera altura do slide ativo — evita cortar copy longa */
  .hero-track {
    position: relative;
    min-height: max(520px, 100svh);
  }

  .hero-slide.is-active {
    position: relative;
    inset: auto;
    min-height: max(520px, 100svh);
  }

  .hero-slide:not(.is-active) {
    inset: 0;
  }

  .hero-features {
    display: none;
  }

  .hero-slide-inner {
    padding-bottom: clamp(5rem, 16vw, 6rem);
  }

  /* Barra de navegação centralizada */
  .hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    position: absolute;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 920;
    padding: 0.375rem 0.5rem 0.375rem 0.375rem;
    border-radius: 100px;
    background: rgba(8, 16, 32, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }

  .hero-nav {
    position: static;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    transform: none;
  }

  .hero-next {
    right: auto;
  }

  .hero-pagination {
    position: static;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0 0.125rem;
  }

  .hero-dot {
    position: relative;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .hero-dot::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
  }

  .hero-dot.is-active::before {
    width: 22px;
    height: 7px;
    border-radius: 4px;
    background: var(--teal);
  }

  .hero-dot.is-active {
    width: 32px;
    background: transparent;
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }

  .hero-slide.is-active .hero-slide-bg img,
  .hero-slide.is-active.is-entering .hero-eyebrow,
  .hero-slide.is-active.is-entering .hero-slide-title,
  .hero-slide.is-active.is-entering .hero-slide-sub,
  .hero-slide.is-active.is-entering .hero-slide-cta,
  .hero-slide.is-active.is-entering .hero-feature,
  .hero-slide.is-active.is-entering .hero-kpi,
  .hero-slide.is-active.is-entering .hero-security-card,
  .hero-slide.is-active.is-entering .hero-security-card li,
  .hero-slide.is-active.is-entering .hero-chip,
  .hero-slide.is-active.is-entering .hero-features,
  .hero-slide.is-active.is-entering .hero-kpis,
  .hero-slide.is-active.is-entering .hero-chips {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
