/* ============================================
   HERO — Video Background + Animated Headlines
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* --- Video Background --- */
/* --- Video Background --- */
.hero-video {
  position: absolute;
  top: 0;
  right: 0;
  width: 130%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  filter: brightness(1) contrast(1.3) saturate(1.2);
}



/* --- Dark Overlay --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.45) 0%, /* Overlay mínimo */
    rgba(10, 14, 23, 0.25) 40%,
    rgba(10, 14, 23, 0.55) 100%
  );
}

/* --- Blue Atmospheric Glow --- */
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(121, 188, 189, 0.15) 0%, transparent 65%);
  z-index: 2;
  pointer-events: none;
}

/* --- Noise Overlay --- */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* --- Container --- */
.hero-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* --- Left Content --- */
.hero-content-wrapper {
  width: 65%;
  padding-right: 20px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 4px;
  background: rgba(121, 188, 189, 0.12);
  border-left: 3px solid var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-blue);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(121, 188, 189, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(121, 188, 189, 0); }
}

/* Headline */
.hero-headline {
  margin-bottom: 24px;
}

.hero-line--solid {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-shadow: none;
}

.hero-line--gradient {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--accent-blue);
  text-shadow: none;
}

/* --- Animated Word Cycler --- */
.hero-line--animated {
  display: block;
  position: relative;
  height: clamp(3rem, 5.5vw, 4.8rem);
  overflow: hidden;
  margin-top: 4px;
}

.hero-word-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-word {
  position: absolute;
  top: 0;
  left: 0;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--accent-blue);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: none;
  white-space: nowrap;
}

.hero-word.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-word.exit-up {
  opacity: 0;
  transform: translateY(-120%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Description */
.hero-desc {
  font-size: 1.1rem;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 40px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* CTAs */
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: var(--radius-md, 12px);
}

.hero-btn--primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 10px 40px rgba(121, 188, 189, 0.3);
}
.hero-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(121, 188, 189, 0.45);
  background: var(--accent-blue-hover);
}

.hero-btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.35);
}
.hero-btn--whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(37, 211, 102, 0.5);
  background: #22c55e;
}

.hero-btn--ghost {
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.04);
}
.hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat__number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.hero-stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
}
.hero-stat__sep {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   RIGHT SIDE: The Slanted Panel
   ============================================ */
.hero-image-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45vw; /* Valor atual: 45% da largura da tela */
  z-index: 5;
}

.hero-slant-wrapper {
  width: 100%;
  height: 100%;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  position: relative;
  overflow: hidden;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7) contrast(1.2) saturate(0.6);
  mix-blend-mode: luminosity;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 14, 23, 0.95) 0%,
    rgba(10, 14, 23, 0.4) 40%,
    rgba(121, 188, 189, 0.08) 100%
  );
}

/* Blue Accent Line on Slant Edge */
.hero-image-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(121, 188, 189, 0) 5%, var(--accent-blue) 40%, var(--accent-blue) 60%, rgba(121, 188, 189, 0) 95%);
  clip-path: polygon(30% 0, calc(30% + 3px) 0, calc(0% + 3px) 100%, 0% 100%);
  z-index: 10;
  filter: drop-shadow(0 0 12px var(--accent-blue)) drop-shadow(0 0 4px var(--accent-blue));
  pointer-events: none;
}

/* Floating Spec Tags */
.spec-tag {
  position: absolute;
  z-index: 20;
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid rgba(121, 188, 189, 0.2);
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
}
.spec-tag__dot {
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-blue);
}

.spec-tag--1 { top: 25%; left: 40%; }
.spec-tag--2 { bottom: 30%; left: 15%; }

/* ============================================
   MARQUEE
   ============================================ */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(121, 188, 189, 0.1);
  padding: 15px 0;
  overflow: hidden;
}

.hero-marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}

.hero-marquee__track span {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 5px;
  text-transform: uppercase;
  padding: 0 40px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.anim-hero {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay);
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Subtle Scanline Effect */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-container {
    padding: 120px 20px;
    flex-direction: column;
    text-align: center;
  }
  .hero-content-wrapper {
    width: 100%;
    padding-right: 0;
    margin-bottom: 60px;
  }
  .hero-image-panel {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 40px;
  }
  .hero-slant-wrapper {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 85%);
  }
  .hero-image-panel::before {
    clip-path: polygon(0 15%, 100% 0, 100% calc(0% + 3px), 0 calc(15% + 3px));
    background: linear-gradient(90deg, rgba(121, 188, 189, 0) 5%, var(--accent-blue) 40%, var(--accent-blue) 60%, rgba(121, 188, 189, 0) 95%);
  }
  .hero-stats { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-desc { margin: 0 auto 40px; }
  .spec-tag--1 { left: 10%; }
  .hero-line--animated {
    display: flex;
    justify-content: center;
  }
  .hero-word {
    left: auto;
  }
  .hero-glow {
    width: 500px;
    height: 500px;
  }
}

@media (max-width: 768px) {
  .hero-image-panel {
    display: none;
  }
  .hero-line--solid,
  .hero-line--gradient,
  .hero-word {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    white-space: normal; /* Allow wrapping if needed */
  }
  .hero-line--animated {
    height: clamp(2.5rem, 9vw, 3.2rem);
    width: 100%;
  }
  .hero-word {
    left: 50% !important;
    transform: translate(-50%, 100%);
    width: 100%;
    text-align: center;
  }
  .hero-word.active {
    transform: translate(-50%, 0);
  }
  .hero-word.exit-up {
    transform: translate(-50%, -120%);
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
  }
  .hero-btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    flex-direction: column;
    gap: 24px;
    margin-top: 16px;
  }
  .hero-stat__sep {
    display: none; /* Hide separators on vertical stack */
  }
  .hero-desc {
    padding: 0 16px;
  }
  .hero-container {
    padding-top: 100px;
  }
}

/* ============================================
   LIGHT MODE: THE PRIMARY EXPERIENCE
   ============================================ */

:root.light .hero-video {
  filter: brightness(0.8) contrast(1.2) saturate(1); /* Um pouco mais escuro para o texto branco brilhar */
}

:root.light .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.6) 0%,
    rgba(10, 14, 23, 0.3) 40%,
    rgba(10, 14, 23, 0.6) 100%
  );
}

:root.light .hero-headline,
:root.light .hero-line--solid {
  color: #ffffff !important; /* Branco puro conforme solicitado */
  text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}

:root.light .hero-desc {
  color: #ffffff !important; /* Branco puro conforme solicitado */
  text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  opacity: 0.9;
}

:root.light .hero-stat__number {
  color: #ffffff !important;
}

:root.light .hero-stat__label {
  color: rgba(255, 255, 255, 0.7) !important;
}

:root.light .hero-stat__sep {
  background: rgba(255, 255, 255, 0.2) !important;
}

:root.light .hero-btn--ghost {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

:root.light .hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}



:root.light .hero-image-overlay {
  background: linear-gradient(
    90deg,
    rgba(10, 14, 23, 0.8) 0%,
    transparent 60%
  );
}

:root.light .hero-marquee {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

:root.light .hero-marquee span {
  color: #94a3b8;
}
