/* =========================================================
   intro.css — Tela de abertura (index.html)
   Fundo branco, conforme identidade do Grupo In Press.
   ========================================================= */

body.intro-page {
  background: var(--color-white);
  overflow: hidden;
  height: 100vh;
}

.intro {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
}

/* Ambient glows — muito sutis, apenas uma respiração de cor sobre o branco */
.intro__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  pointer-events: none;
}

.intro__glow--one {
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(224, 3, 0, 0.1), transparent 70%);
  top: -14%;
  left: -12%;
  animation: drift-a 22s ease-in-out infinite alternate;
}

.intro__glow--two {
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(87, 87, 86, 0.1), transparent 70%);
  bottom: -16%;
  right: -10%;
  animation: drift-b 26s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(6vw, 4vh) scale(1.15);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-5vw, -6vh) scale(1.1);
  }
}

/* Grid fino — remete a varredura / segurança de dados */
.intro__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
}

/* Ruído sutil sobreposto — textura premium, quase imperceptível no branco */
.intro__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.intro__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
  padding: 2rem;
  max-width: 780px;
}

.intro__logo {
  height: 42px;
  width: auto;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.15s forwards;
}

.intro__eyebrow {
  opacity: 0;
  color: var(--color-lead);
  animation: fade-up 0.8s var(--ease-out) 0.4s forwards;
}

.intro__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.25;
  color: var(--color-black);
  letter-spacing: -0.01em;
}

.intro__title .intro__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: word-in 0.75s var(--ease-out) forwards;
}

.intro__title .intro__word--accent {
  font-style: italic;
  color: var(--color-red);
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botão "Acessar" — herda .btn/.btn--primary (preto, texto e seta brancas)
   e ganha apenas a entrada animada aqui */
.intro__button {
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
}

.intro__button.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.intro__timer {
  width: 100%;
  max-width: 220px;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) 2.1s forwards;
}

.intro__timer-bar {
  height: 100%;
  width: 0%;
  background: var(--color-red);
  border-radius: 2px;
}

.intro__hint {
  opacity: 0;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--color-lead-soft);
  animation: fade-up 0.8s var(--ease-out) 2.2s forwards;
}

/* Transição de saída para a home */
.intro.is-leaving {
  animation: leave-fade 0.6s var(--ease-in-out) forwards;
}

@keyframes leave-fade {
  to {
    opacity: 0;
    transform: scale(1.02);
  }
}

@media (max-width: 560px) {
  .intro__content {
    gap: 1.4rem;
  }
}
