/* =========================
   HERO SECTION
========================= */

.hero {
  min-height: 100vh;
  position: relative;
  background: #020617;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(
      600px 400px at 20% 30%,
      rgba(37, 99, 235, 0.28),
      transparent 60%
    ),
    radial-gradient(
      500px 300px at 80% 70%,
      rgba(14, 165, 233, 0.22),
      transparent 65%
    );

  filter: blur(60px);
  opacity: 0.9;

  will-change: background;
}

.hero {
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2; /* acima do background */
  pointer-events: none;
}

#hero-bg-canvas {
  position: absolute;
  inset: 0;
  z-index: 1; /* acima do hero-background, abaixo do canvas do mouse */
  pointer-events: none;
}



/* Container */
.hero-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 2px;
  margin: 0 auto;
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}



/* =========================
   HERO CONTENT
========================= */

.hero-left {
  max-width: 620px;
}

.hero-tag {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.15);
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h2 {
  margin-top: 18px;
  font-size: 1.4rem;
  font-weight: 400;
  color: #e5e7eb;
}

.hero h2 strong {
  color: #93c5fd;
  font-weight: 500;
}

.hero p {
  margin-top: 28px;
  font-size: 1.05rem;
  color: #cbd5f5;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  gap: 20px;
}


/* =========================
   BUTTONS
========================= */

.btn-primary {
  padding: 14px 36px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
}

/* Reflexo */
.btn-primary::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, rgba(255,255,255,0.3), rgba(255,255,255,0) 50%);
  transform: rotate(25deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::before {
  transform: rotate(25deg) translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.6);
}


/* =========================
   SEGUNDO BOTÃO
========================= */


.btn-secondary {
  padding: 14px 36px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(6px);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, rgba(255,255,255,0.2), rgba(255,255,255,0) 50%);
  transform: rotate(25deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-secondary:hover::before {
  transform: rotate(25deg) translateX(100%);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.35);
}




/* =========================
   HERO VISUAL (SEM FUNDO REAL)
========================= */

.hero-visual {
  position: relative;
  height: 600px;
  width: 600px;

  /* dissolve esquerda + bordas */
  -webkit-mask-image:
    linear-gradient(90deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.25) 20%,
      rgba(0, 0, 0, 0.7) 40%,
      rgba(0, 0, 0, 1) 55%,
      rgba(0, 0, 0, 1) 100%),
    radial-gradient(circle at 65% 50%,
      rgba(0, 0, 0, 1) 45%,
      rgba(0, 0, 0, 0.85) 65%,
      rgba(0, 0, 0, 0.4) 80%,
      rgba(0, 0, 0, 0) 100%);

  mask-image:
    linear-gradient(90deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.25) 20%,
      rgba(0, 0, 0, 0.7) 40%,
      rgba(0, 0, 0, 1) 55%,
      rgba(0, 0, 0, 1) 100%),
    radial-gradient(circle at 65% 50%,
      rgba(0, 0, 0, 1) 45%,
      rgba(0, 0, 0, 0.85) 65%,
      rgba(0, 0, 0, 0.4) 80%,
      rgba(0, 0, 0, 0) 100%);

  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}


.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* menos impacto, mais integração */
  filter: brightness(0.92) contrast(1.03);
}


/* EFEITO FOSCO / TÉCNICO (RESPEITA O RECORTE) */
/* camada fosca parcial */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background: linear-gradient(90deg,
      rgba(2, 6, 23, 0.95) 0%,
      rgba(2, 6, 23, 0.8) 28%,
      rgba(2, 6, 23, 0.55) 45%,
      rgba(2, 6, 23, 0.25) 60%,
      rgba(2, 6, 23, 0) 72%);
}




/* sombra de ancoragem */
.hero-visual::after {
  content: "";
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 60%;
  height: 42px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse,
      rgba(0, 0, 0, 0.6),
      transparent 70%);
  z-index: 1;
}



/* =========================
   HERO RESPONSIVO
========================= */

@media (max-width: 900px) {
  .hero-visual {
    width: 380px;
    height: 380px;
  }
}


/* =========================
   AJUSTE: HERO ACTIONS para comportar (botão + hint)
========================= */
.hero-actions {
  align-items: flex-start;
  /* antes ficava centralizado, agora alinha topo */
  flex-wrap: wrap;
  /* em telas menores, quebra bonito */
}

/* Cada CTA vira um bloco (botão + texto pequeno) */
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Texto pequeno abaixo dos CTAs */
.cta-hint {
  font-size: 0.82rem;
  color: rgba(203, 213, 245, 0.72);
  line-height: 1.2;
  padding-left: 6px;
  /* micro alinhamento com botão */
}

/* =========================
   LINKS RÁPIDOS HERO
========================= */

.hero-links {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(203, 213, 245, 0.85);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

/* Ícone estilizado */
.hero-link .link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  color: #2563EB;
  font-size: 0.7rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

/* Hover efeito premium */
.hero-link::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.25), rgba(255,255,255,0) 50%);
  transform: rotate(25deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.hero-link:hover::before {
  transform: rotate(25deg) translateX(100%);
}

.hero-link:hover {
  color: #2563EB;
  transform: translateY(-2px) scale(1.05);
}

.hero-link:hover .link-icon {
  background: rgba(37, 99, 235, 0.35);
  color: #ffffff;
}


/* =========================
   HERO TEXT INTERACTION LEVE PERCEPTÍVEL
========================= */
.hero-left h1,
.hero-left h2,
.hero-left p,
.hero-tag {
  display: inline-block;
  position: relative;
  color: #e5e7eb;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
  cursor: default;
}

/* Efeito aplicado via JS */
.text-hover-effect {
  transform: translateX(var(--tx, 0px)) translateY(var(--ty, 0px)) scale(1.02);
  text-shadow: 
    0 4px 12px rgba(147, 197, 253, 0.25), 
    0 2px 4px rgba(147, 197, 253, 0.15);
}






/* =========================
   RESPONSIVO: empilha melhor
========================= */
@media (max-width: 900px) {
  .hero-actions {
    gap: 16px;
  }
}



/* =========================
   HERO ENTRY STATES
========================= */

/* Fade + slide de baixo */
.hero-tag[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero.is-visible .hero-tag[data-animate] {
  opacity: 1;
  transform: translateY(0);
}


/* H1: Fade + Scale */
.hero h1[data-animate] {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.hero.is-visible h1[data-animate] {
  opacity: 1;
  transform: scale(1);
}

/* H2: Slide da esquerda */
.hero h2[data-animate] {
  opacity: 0;
  transform: translateX(-50px) rotate(-2deg);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero.is-visible h2[data-animate] {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}


/* Parágrafo: leve rotação */
.hero p[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero.is-visible p[data-animate] {
  opacity: 1;
  transform: translateY(0);
}


/* Botões: scale + bounce */
.hero-actions a {
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.hero.is-visible .hero-actions a {
  opacity: 1;
  transform: scale(1);
}

.hero-links a {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero.is-visible .hero-links a {
  opacity: 1;
  transform: translateY(0);
}
