/* ==========================================================================
   OCKHAM HERO & FLUXO VISUAL INTEGRADO (AZUL OCKHAM)
   Adaptação tecnológica premium baseada no Aura Emerald e Design System 2.0
   Transição contínua sem cortes entre Dobra 01 e Dobra 02
   ========================================================================== */

/* ==========================================================================
   WRAPPER DO FLUXO VISUAL (DOBRA 01 + DOBRA 02 INTEGRADOS)
   ========================================================================== */
.ock-flow-wrapper {
  position: relative;
  background-color: var(--ock-background); /* Preto Ockham #0F0F0F */
  width: 100%;
}

/* ==========================================================================
   CAMADAS DO FUNDO ANIMADO CONTÍNUO (DOBRA 01 + DOBRA 02 SEM CORTES)
   ========================================================================== */
.ock-flow-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* 1. Palco Unificado da Cúpula 3D + Trava de Cor (Isolado e com dissolução radial/vertical) */
.ock-aura-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1380px;
  z-index: 1;
  isolation: isolate;
  pointer-events: none;
  /* Máscara suave multi-stop que dissolve o canvas muito antes do fim do container */
  mask-image: linear-gradient(
    180deg,
    #000000 0%,
    #000000 44%,
    rgba(0, 0, 0, 0.82) 56%,
    rgba(0, 0, 0, 0.50) 68%,
    rgba(0, 0, 0, 0.20) 80%,
    rgba(0, 0, 0, 0.04) 90%,
    transparent 96%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    #000000 0%,
    #000000 44%,
    rgba(0, 0, 0, 0.82) 56%,
    rgba(0, 0, 0, 0.50) 68%,
    rgba(0, 0, 0, 0.20) 80%,
    rgba(0, 0, 0, 0.04) 90%,
    transparent 96%
  );
}

/* Container da Cúpula 3D / Unicorn Studio (Tons Azuis Ockham Oficiais) */
.ock-aura-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #0F0F0F;
  isolation: isolate;
  overflow: hidden;
  /* Sem rotação artificial: mantém o azul natural do WebGL */
  filter: brightness(1.1) saturate(1.5);
  /* Máscara radial elíptica para concentrar a luz no centro e evitar linha horizontal nas bordas */
  mask-image: radial-gradient(
    78% 82% at 50% 36%,
    #000000 0%,
    #000000 48%,
    rgba(0, 0, 0, 0.65) 66%,
    rgba(0, 0, 0, 0.22) 82%,
    transparent 95%
  );
  -webkit-mask-image: radial-gradient(
    78% 82% at 50% 36%,
    #000000 0%,
    #000000 48%,
    rgba(0, 0, 0, 0.65) 66%,
    rgba(0, 0, 0, 0.22) 82%,
    transparent 95%
  );
  opacity: 0;
  transition: opacity 1s var(--ock-ease);
}

.ock-aura-container [data-us-project],
.ock-aura-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover;
}

/* Camada de Trava de Cor Oficial: Confinada ao container isolado com fundo sólido 100% */
.ock-aura-tint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(29, 79, 179, 0.35) 0%,
    rgba(47, 111, 209, 0.50) 45%,
    rgba(54, 124, 221, 0.55) 70%,
    rgba(29, 79, 179, 0.20) 90%,
    transparent 100%
  );
  mix-blend-mode: color;
  pointer-events: none;
  z-index: 2;
}

/* Feathering Inferior e Lateral: Garante zero linha ou degrau na base do WebGL */
.ock-aura-feather {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      82% 78% at 50% 38%,
      transparent 0%,
      transparent 46%,
      rgba(15, 15, 15, 0.55) 72%,
      rgba(15, 15, 15, 0.92) 88%,
      #0F0F0F 98%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      transparent 44%,
      rgba(15, 15, 15, 0.32) 58%,
      rgba(15, 15, 15, 0.68) 73%,
      rgba(15, 15, 15, 0.92) 86%,
      #0F0F0F 96%
    );
  pointer-events: none;
  z-index: 3;
}

.unicorn-ready .ock-aura-container {
  opacity: 1;
}

/* 2. Glow Central e Ponte de Transição (Une as 4 caixas ao título da Dobra 02 sem cortes) */
.ock-glow-main {
  position: absolute;
  top: 520px;
  left: 50%;
  width: 115%;
  max-width: 1380px;
  height: 980px;
  background: radial-gradient(
    ellipse 58% 52% at 50% 44%,
    rgba(54, 124, 221, 0.52) 0%,
    rgba(47, 111, 209, 0.36) 28%,
    rgba(29, 79, 179, 0.20) 52%,
    rgba(25, 71, 171, 0.08) 72%,
    transparent 90%
  );
  filter: blur(90px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.ock-glow-transition {
  position: absolute;
  top: 840px;
  left: 50%;
  width: 110%;
  max-width: 1280px;
  height: 760px;
  background: radial-gradient(
    ellipse 55% 50% at 50% 42%,
    rgba(47, 111, 209, 0.34) 0%,
    rgba(29, 79, 179, 0.22) 34%,
    rgba(25, 71, 171, 0.10) 62%,
    transparent 88%
  );
  filter: blur(105px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

/* 3. Malha de Pontos Contínua em Todo o Fluxo (Dot Grid 100% Unificada e Sem Corte) */
.ock-dot-grid-flow {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.17;
  background-image: radial-gradient(rgba(255, 255, 255, 0.82) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(
    180deg,
    #000000 0%,
    #000000 72%,
    rgba(0, 0, 0, 0.5) 88%,
    transparent 99%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    #000000 0%,
    #000000 72%,
    rgba(0, 0, 0, 0.5) 88%,
    transparent 99%
  );
}

/* 4. Feixes Verticais de Luz (Vertical Light Beams - Velocidade Calibrada ~30% mais lenta) */
.ock-beams-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1550px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  opacity: 0.55;
  mask-image: linear-gradient(
    180deg,
    #000000 0%,
    #000000 55%,
    rgba(0, 0, 0, 0.45) 75%,
    transparent 96%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    #000000 0%,
    #000000 55%,
    rgba(0, 0, 0, 0.45) 75%,
    transparent 96%
  );
}

.ock-beam-col {
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.ock-beam-col:last-child {
  border-right: none;
}

.ock-beam {
  position: absolute;
  bottom: 0;
  right: -0.5px;
  width: 1.5px;
  background: linear-gradient(to top, transparent, #367CDD 60%, #8AB8FF 90%, transparent);
  box-shadow: 0 0 10px rgba(54, 124, 221, 0.85);
  animation: ock-beam-rise 14s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ock-beam-rise {
  0% {
    transform: translateY(120vh);
    opacity: 0;
  }
  20% {
    opacity: 0.85;
  }
  80% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}

.ock-grid-marker {
  position: absolute;
  top: 28%;
  right: -6px;
  font-family: monospace;
  font-size: 11px;
  color: rgba(138, 184, 255, 0.35);
  user-select: none;
}

/* 5. Partículas Azuis Flutuantes */
#ock-particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1550px;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000000 0%, #000000 60%, transparent 96%);
  -webkit-mask-image: linear-gradient(180deg, #000000 0%, #000000 60%, transparent 96%);
}

.ock-particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, #8AB8FF 0%, rgba(54, 124, 221, 0.8) 50%, transparent 100%);
  box-shadow: 0 0 8px #367CDD;
  pointer-events: none;
}

@keyframes ock-particle-rise {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.75;
  }
  85% {
    opacity: 0.75;
  }
  100% {
    transform: translateY(-1500px) scale(1.1);
    opacity: 0;
  }
}

/* ==========================================================================
   SEÇÃO HERO (CONTEÚDO DA DOBRA 01)
   ========================================================================== */
.ock-hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(76px + 110px);
  padding-bottom: clamp(40px, 4.5vw, 60px);
  background: transparent;
  z-index: 5;
}

.ock-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  margin-inline: auto;
  position: relative;
  z-index: 10;
}

/* Eyebrow Pill com respiro ampliado */
.ock-hero-eyebrow {
  margin-bottom: 28px;
}

/* Headline H1 com base branca nítida e palavra 'oportunidades.' em degradê Ockham */
.ock-hero-title {
  font-family: var(--ock-heading);
  font-size: clamp(2.35rem, 5.2vw, 4.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.ock-gradient-word {
  background: linear-gradient(135deg, #8AB8FF 0%, #367CDD 55%, #2F6FD1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 32px rgba(54, 124, 221, 0.4);
}

/* Lead */
.ock-hero-lead {
  font-family: var(--ock-body);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--ock-muted);
  max-width: 68ch;
  margin-bottom: 36px;
}

/* Ações */
.ock-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Badge de Credibilidade */
.ock-hero-proof {
  margin-bottom: 20px;
}

.ock-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border-radius: var(--ock-radius-pill);
  background: rgba(18, 22, 30, 0.65);
  border: 1px solid rgba(138, 184, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ock-avatars {
  display: flex;
  align-items: center;
}

.ock-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  border: 1.5px solid #0F0F0F;
  margin-left: -6px;
}

.ock-avatar:first-child {
  margin-left: 0;
}

.ock-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ock-stars svg {
  width: 14px;
  height: 14px;
  fill: #F2C66D;
}

.ock-trust-text {
  font-size: 0.8125rem;
  color: var(--ock-muted);
}

.ock-trust-text strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVIDADE DO HERO
   ========================================================================== */
@media (max-width: 768px) {
  .ock-hero {
    padding-top: calc(76px + 80px); /* 80px de respiro no mobile */
    padding-bottom: 48px;
  }

  .ock-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .ock-hero-actions .ock-btn {
    width: 100%;
  }

  .ock-trust-badge {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 10px 16px;
  }

  .ock-hero-proof {
    margin-bottom: 24px;
  }
}
