/* =========================HERO – DeepSite-like glow (NOT GIANT) - 2 blobs+1 halo - size travado e responsivo================================*/
.hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

/* camada do glow */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  mix-blend-mode: screen;
  will-change: transform;
}

/* blob principal (azul #3b99ff) – tamanho controlado */
.hero::before {
  width: min(520px, 72vw);
  height: min(320px, 44vw);
  background:
    radial-gradient(circle at 35% 45%, rgba(59, 153, 255, .35) 0%, transparent 58%),
    radial-gradient(circle at 70% 35%, rgba(143, 140, 242, .22) 0%, transparent 60%),
    radial-gradient(circle at 55% 70%, rgba(13, 26, 66, .18) 0%, transparent 62%);
  animation: heroGlowMove 10s ease-in-out infinite;
}

/* segundo blob menor (dá “vida” sem crescer) */
.hero::after {
  width: min(380px, 58vw);
  height: min(240px, 36vw);
  background:
    radial-gradient(circle at 30% 60%, rgba(143, 140, 242, .22) 0%, transparent 60%),
    radial-gradient(circle at 75% 45%, rgba(107, 92, 255, .18) 0%, transparent 60%);
  opacity: .30;
  filter: blur(45px);
  animation: heroGlowMove2 12s ease-in-out infinite;
  will-change: transform;
}

/* conteúdo acima do glow */
.hero .hero-wrap {
  position: relative;
  z-index: 1;
}

@keyframes heroGlowMove {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(-50%, -52%) scale(1.05) rotate(6deg);
  }

  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes heroGlowMove2 {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(-50%, -48%) scale(1.04) rotate(-6deg);
  }

  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

/* mobile: reduz um pouco e deixa mais discreto */
@media (max-width: 768px) {
  .hero::before {
    opacity: .42;
    filter: blur(45px);
  }

  .hero::after {
    opacity: .28;
    filter: blur(40px);
  }
}

/* ================================
   ENHANCED MOTION EFFECTS
================================ */

/* Floating animation for cards */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes float-delayed {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

.float-animation-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* Pulse glow effect */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(59, 153, 255, 0.3), 0 0 40px rgba(59, 153, 255, 0.1);
  }

  50% {
    box-shadow: 0 0 30px rgba(59, 153, 255, 0.5), 0 0 60px rgba(59, 153, 255, 0.2);
  }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Shimmer effect for buttons */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.03),
      transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}


/* Text reveal animation */
@keyframes text-reveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }

  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.text-reveal {
  animation: text-reveal 1s ease-out forwards;
}

/* Scale bounce effect */
@keyframes scale-bounce {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.scale-bounce {
  animation: scale-bounce 0.6s ease-out forwards;
}

/* Rotate slow for decorative elements */
@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.rotate-slow {
  animation: rotate-slow 20s linear infinite;
}

/* Slide in from sides */
@keyframes slide-in-left {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(50px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slide-in-left 0.8s ease-out forwards;
}

.slide-in-right {
  animation: slide-in-right 0.8s ease-out forwards;
}

/* Stagger children animations */
.stagger-children>* {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-children>*:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-children>*:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-children>*:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-children>*:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-children>*:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-children>*:nth-child(6) {
  animation-delay: 0.6s;
}

/* Magnetic hover effect preparation */
.magnetic-hover {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Parallax scroll effect base */
.parallax-slow {
  will-change: transform;
  transform: translateZ(0);
}

/* Glitch effect for tech feel */
@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

.glitch-hover:hover {
  animation: glitch 0.3s ease-in-out;
}

/* Neon flicker effect */
@keyframes neon-flicker {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }

  52% {
    opacity: 0.3;
  }

  54% {
    opacity: 0.8;
  }

  90% {
    opacity: 0.9;
  }
}

.neon-flicker {
  animation: neon-flicker 4s ease-in-out infinite;
}

/* Wave animation for backgrounds */
@keyframes wave {
  0% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(-25%) translateY(10px);
  }

  100% {
    transform: translateX(0) translateY(0);
  }
}

/* Morphing blob animation */
@keyframes morph {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

.morph-blob {
  animation: morph 8s ease-in-out infinite;
}

/* Scroll indicator bounce */
@keyframes scroll-bounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }
}

.scroll-indicator {
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* Typing cursor effect */
@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: #3b99ff;
}

/* Gradient text animation */
@keyframes gradient-text {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.gradient-text-animated {
  background: linear-gradient(90deg, #3b99ff, #8F8CF2, #3b99ff, #1a7cff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-text 4s ease infinite;
}

/* Card 3D tilt effect base */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

/* Ripple effect for buttons */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}


/* ================================
   Hero Video Section
================================ */
.hero-video-section {
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-video-wrap {
  width: 100%;
  max-width: min(900px, 92vw);
  margin: 0 auto;
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: none;
  background: transparent;
}

@media (max-width: 768px) {
  .hero-video {
    border-radius: 12px;
  }
}

/* ================================ ALIA – Global Base ================================ */

/* Prevent horizontal overflow */
body {
  overflow-x: hidden;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ================================
   Scrollbar
================================ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0B0B0E;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #8F8CF2, #3b99ff);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #8F8CF2, #3b99ff);
}

/* ================================
   Animations
================================ */

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
  .text-7xl {
    font-size: 3rem !important;
    line-height: 1;
  }

  .text-8xl {
    font-size: 3.5rem !important;
    line-height: 1;
  }

  .text-5xl {
    font-size: 2.5rem !important;
  }

  .text-6xl {
    font-size: 2.75rem !important;
  }

  section {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .glass-premium {
    padding: 1.5rem !important;
  }

  #vagas .glass-premium {
    padding: 2rem 1.25rem !important;
  }

  .hero-video-wrap {
    max-width: 100% !important;
  }
}

/* Disable interactive transforms on touch devices */
@media (hover: none) {

  .tilt-card,
  .magnetic-hover,
  .scale-bounce {
    transform: none !important;
    transition: none !important;
  }

  .tilt-card:hover,
  .magnetic-hover:hover {
    transform: none !important;
  }
}

/* ================================
   Utility Animations
================================ */
.gradient-animate {
  background: linear-gradient(270deg, #3b99ff, #8F8CF2, #3b99ff);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes bounceSlow {

  0%,
  100% {
    transform: translateY(-5%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce-slow {
  animation: bounceSlow 3s infinite;
}

/* ================================
   Focus Styles (Accessibility)
================================ */

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 153, 255, 0.25);
}

/* ================================
   HERO – Subtle IA Glow (CORE)
================================ */

.hero {
  position: relative;
  overflow: visible;
  --mouse-x: 50%;
  --mouse-y: 45%;
}


.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 260px;

  background: radial-gradient(circle,
      rgba(107, 92, 255, 0.18) 0%,
      rgba(107, 92, 255, 0.08) 15%,
      transparent 70%);

  filter: blur(60px);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;

  animation: heroHalo 10s ease-in-out infinite;
}

.hero>* {
  position: relative;
  z-index: 1;
}

@keyframes heroHalo {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero::before {
    width: 300px;
    height: 180px;
    filter: blur(45px);
    opacity: 0.1;
  }
}

/* ================================
   Cards
================================ */

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 153, 255, 0.15);
}

.benefit-card-hover {
  position: relative;
  overflow: hidden;
}

.benefit-card-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.benefit-card-hover:hover::before {
  opacity: 1;
}

/* ================================
   Borders
================================ */

.border-gradient {
  border: 2px solid transparent;
  background:
    linear-gradient(#0B0B0E, #0B0B0E) padding-box,
    linear-gradient(135deg, #3b99ff, #0D1A42) border-box;
}

/* ================================
   Text Utilities
================================ */

.text-balanced {
  text-wrap: balance;
}

.max-w-readable {
  max-width: 65ch;
}

/* ================================
   Anchor Offset (Fixed Header)
================================ */

:target {
  scroll-margin-top: 120px;
}

/* --- FIX: halo por trás do conteúdo, mas por cima do fundo --- */
.hero {
  position: relative;
  isolation: isolate;
  /* cria contexto de empilhamento estável */
}

/* fundo/blobs SEMPRE atrás */
.hero .hero-glow-container {
  z-index: 0 !important;
}

/* conteúdo SEMPRE acima */
.hero .hero-wrap {
  position: relative;
  z-index: 2 !important;
}

/* halo fica entre fundo (0) e conteúdo (2) */
.hero::before {
  content: "";
  position: absolute;
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 45%);
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  transition: left 0.15s ease-out, top 0.15s ease-out;

  background: radial-gradient(circle,
      rgba(59, 153, 255, 0.22) 0%,
      rgba(59, 153, 255, 0.10) 35%,
      transparent 70%);
  filter: blur(45px);
  opacity: 0.12;
  z-index: 1 !important;
  pointer-events: none;
  animation: heroHalo 10s ease-in-out infinite;
  will-change: left, top;
}

@keyframes heroHalo {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ================================
   Reveal Animations
================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Benefit Cards Interactive Highlight */
.benefit-card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit-card-hover:hover {
  transform: scale(1.05) translateY(-5px);
  background: linear-gradient(135deg, rgba(59, 153, 255, 0.08), rgba(11, 11, 14, 0.95)) !important;
  border-color: rgba(59, 153, 255, 0.3) !important;
  box-shadow: 0 20px 40px -15px rgba(59, 153, 255, 0.25);
  z-index: 10;
}

/* Exit Intent Modal Styles */
#exit-intent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 9, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 1.5rem;
}

@media (max-width: 640px) {
  #exit-intent-overlay {
    padding: 0.75rem;
  }
}

#exit-intent-overlay.active {
  opacity: 1;
  visibility: visible;
}

#exit-intent-modal {
  width: 95%;
  max-width: 550px;
  max-height: 90vh;
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
}

#exit-intent-overlay.active #exit-intent-modal {
  transform: scale(1) translateY(0);
}

.modal-glass-container {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
}

.modal-content-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 10px;
}

/* Custom scrollbar for the modal */
.modal-content-scroll::-webkit-scrollbar {
  width: 6px;
}

.modal-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(59, 153, 255, 0.5);
  border-radius: 10px;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #3b99ff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .close-modal {
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
  }
}

.close-modal:hover {
  background: #fff;
  color: #3b99ff;
  transform: rotate(90deg) scale(1.1);
}

.close-modal span {
  font-size: 24px;
  font-weight: bold;
}

/* Float variations for decorative blobs */
.float-slow {
  animation: float 8s ease-in-out infinite;
}

.float-fast {
  animation: float 3s ease-in-out infinite;
}