/* hero.css - Seção Principal (Sticky Parallax) */

/* 1. Wrapper suportando a rolagem 3-fases (180vh) */
#hero-wrapper {
  position: relative;
  height: 180vh;
}

/* 2. Palco sticky */
#hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #080e14;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
  #hero-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  }
}

/* 2.1 Noise Lighter para Mobile (O 'Tchan' sem o calor) */
@media (max-width: 1023px) {
  #hero-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.06; /* Ligeiramente maior para compensar a menor densidade */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  }
}

/* 3. Foto de fundo */
#hero-stage img.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
  opacity: 0;
  animation: fadeIn 1.4s var(--ease-out-expo) 0.2s forwards;
  z-index: 0;
  will-change: transform;
}

/* Overlay escuro */
#hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top,
      rgba(4, 8, 12, 0.96) 0%,
      rgba(4, 8, 12, 0.65) 28%,
      rgba(4, 8, 12, 0.1) 55%,
      transparent 80%),
    linear-gradient(to bottom,
      rgba(4, 8, 12, 0.45) 0%,
      transparent 20%),
    linear-gradient(135deg, rgba(0, 163, 122, 0.08) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.1s linear;
}

/* Scan line animada */
/* Scan line — apenas desktop para não competir com scroll no mobile */
@media (hover: hover) {
  #hero-stage::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 163, 122, 0.22), transparent);
    animation: scanH 7s ease-in-out infinite;
    z-index: 2;
    top: 50%;
    pointer-events: none;
  }
}

/* Reticle */
.hero-photo__reticle {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 1s forwards;
}

/* ID tag */
.hero-photo__tag {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 4;
  background: rgba(4, 8, 12, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 163, 122, 0.28);
  padding: 0.75rem 1rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 1.3s forwards;
}

.hero-photo__tag-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 163, 122, 0.85);
  margin-bottom: 0.2rem;
}

.hero-photo__tag-desc {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f0f4f8;
  letter-spacing: 0.05em;
}

/* Scroll hint suave */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 1.8s forwards;
  transition: opacity 0.5s var(--ease-out-expo);
  pointer-events: none;
}

.hero-scroll-hint.fade-out {
  opacity: 0 !important;
}

.hero-scroll-hint span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero-scroll-hint__arrow {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* Orbs */
.hero-orb-1, .hero-orb-2 {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
}

.hero-orb-1 {
  top: 18%; left: 52%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 163, 122, 0.07) 0%, transparent 65%);
}

.hero-orb-2 {
  bottom: 8%; left: 20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(10, 37, 64, 0.35) 0%, transparent 65%);
}

@media (hover: hover) {
  .hero-orb-1 { animation: orbFloat 12s ease-in-out infinite; }
  .hero-orb-2 { animation: orbFloat 16s ease-in-out infinite reverse; }
}

/* 4. Bloco de texto */
#hero-text-block {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  transform: translateY(30%) translateZ(0);
  opacity: 0;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 5rem) clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(to top,
      rgba(4, 8, 12, 0.98) 0%,
      rgba(4, 8, 12, 0.88) 40%,
      rgba(4, 8, 12, 0.5) 70%,
      transparent 100%);
}




/* Desktop */
@media (min-width: 901px) {
  #hero-stage {
    display: flex;
    align-items: stretch;
  }

  #hero-stage img.hero-bg {
    left: auto;
    right: 0;
    width: 52%;
    height: 100%;
    object-position: center 12%;
  }

  #hero-text-block {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 48%;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(0) translateZ(0);
    opacity: 1;
    padding: clamp(9rem, 14vh, 11rem) clamp(2rem, 4vw, 4rem) clamp(4rem, 8vh, 6rem);
    background: linear-gradient(90deg,
        rgba(4, 8, 12, 0.98) 0%,
        rgba(4, 8, 12, 0.95) 58%,
        rgba(4, 8, 12, 0.72) 82%,
        rgba(4, 8, 12, 0.15) 100%);
  }

  .hero-scroll-hint {
    display: none;
  }
}

/* Elementos do bloco de texto */
.hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero-eyebrow__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(4, 8, 12, 0.75);
  border: 1px solid rgba(0, 163, 122, 0.38);
  padding: 0.4rem 0.9rem;
  border-radius: 60px;
}

/* backdrop-filter apenas em dispositivos com hover (desktop) */
@media (hover: hover) {
  .hero-eyebrow__badge {
    background: rgba(4, 8, 12, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
.hero-eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulseCyan 2s ease-in-out infinite;
}

.hero-eyebrow__text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero-title__accent {
  display: block;
  background: linear-gradient(135deg, var(--cyan) 0%, #00e8a8 50%, #80ffc8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(0, 163, 122, 0.5));
}

.hero-subtitle {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 300;
  color: rgba(240, 244, 248, 0.72);
  max-width: 480px;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

/* Corrige a hierarquia visual das palavras destacadas para o tema escuro da Hero */
.hero-subtitle .kw {
  color: rgba(240, 244, 248, 0.35); /* Começa mais apagado que o texto base */
}

.hero-subtitle .kw-visible {
  color: #00e8a8; /* Ciano brilhante para contraste com o fundo escuro */
  text-shadow: 0 0 16px rgba(0, 230, 160, 0.4);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(4, 8, 12, 0.85);
  border: 1px solid rgba(0, 163, 122, 0.28);
  padding: 0.75rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 72px;
  transition:
    transform 0.4s var(--ease-premium),
    box-shadow 0.4s var(--ease-premium),
    border-color 0.4s var(--ease-premium);
}

@media (hover: hover) {
  .stat-pill {
    background: rgba(4, 8, 12, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .stat-pill:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 163, 122, 0.15);
    border-color: rgba(0, 163, 122, 0.45);
  }
}

.stat-pill__number {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: #00e8a8;
  text-shadow: 0 0 16px rgba(0, 230, 160, 0.4);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-pill__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 244, 248, 0.7);
}
