/* ==========================================================================
   style.css — layout e componentes
   Ordem: cenário de fundo → estrutura da tela → topo → centro → rodapé
   ========================================================================== */

/* --- Cenário de fundo --------------------------------------------------- */

.cenario {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.brilho {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.30;
  will-change: transform;
}

.brilho--um {
  top: -22vmax;
  left: -12vmax;
  background: radial-gradient(circle, var(--acento) 0%, transparent 68%);
  animation: flutuar-um 22s ease-in-out infinite alternate;
}

.brilho--dois {
  right: -20vmax;
  bottom: -26vmax;
  background: radial-gradient(circle, var(--acento-quente) 0%, transparent 68%);
  opacity: 0.22;
  animation: flutuar-dois 26s ease-in-out infinite alternate;
}

@keyframes flutuar-um {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(8vw, 6vh, 0) scale(1.12); }
}

@keyframes flutuar-dois {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-7vw, -5vh, 0) scale(1); }
}

/* malha fina, some nas bordas */
.grade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 100%);
}

/* granulado: tira o aspecto "plástico" do gradiente */
.granulado {
  position: absolute;
  inset: -50%;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Estrutura da tela -------------------------------------------------- */

.tela {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--espaco-4);
  min-height: 100vh;
  min-height: 100dvh;
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: var(--espaco-3);
}

/* entrada em cascata */
@keyframes surgir {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.topo,
.titulo,
.subtitulo,
.apoio,
.aviso,
.rodape {
  animation: surgir 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.topo      { animation-delay: 0.05s; }
.titulo    { animation-delay: 0.15s; }
.subtitulo { animation-delay: 0.28s; }
.apoio     { animation-delay: 0.38s; }
.aviso     { animation-delay: 0.48s; }
.rodape    { animation-delay: 0.58s; }

/* --- Topo --------------------------------------------------------------- */

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--espaco-2);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.marca__sigla {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--linha-forte);
  border-radius: 8px;
  font-family: var(--fonte-titulo);
  font-size: 0.9rem;
  font-weight: 800;
}

.marca__nome {
  font-size: 0.95rem;
  font-weight: 500;
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--linha);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

.selo::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--acento);
  box-shadow: 0 0 0 4px rgba(109, 140, 255, 0.18);
  animation: pulsar 2.4s ease-in-out infinite;
}

@keyframes pulsar {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* --- Centro ------------------------------------------------------------- */

.centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--espaco-4) 0;
}

.titulo {
  font-size: clamp(3.2rem, 13vw, 9.5rem);
  font-stretch: 108%;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  background: linear-gradient(175deg, #ffffff 35%, #9fb0d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitulo {
  margin-top: var(--espaco-3);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-indent: 0.4em; /* compensa o espaço extra da última letra */
  text-transform: uppercase;
  color: var(--texto-suave);
}

.apoio {
  max-width: 44ch;
  margin-top: var(--espaco-3);
  font-size: 1rem;
  color: var(--texto-suave);
}

/* --- Captura de e-mail -------------------------------------------------- */

.aviso {
  display: flex;
  gap: 0.4rem;
  width: min(100%, 32rem);
  margin-top: var(--espaco-4);
  padding: 0.4rem;
  border: 1px solid var(--linha);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease;
}

.aviso:focus-within {
  border-color: var(--linha-forte);
}

.campo {
  flex: 1;
  min-width: 0;
}

.campo__rotulo {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.campo__entrada {
  width: 100%;
  height: 100%;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.95rem;
}

.campo__entrada::placeholder {
  color: rgba(152, 161, 178, 0.75);
}

.campo__entrada:focus {
  outline: none;
}

.botao {
  flex-shrink: 0;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background-color: var(--acento);
  color: #080a0f;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.botao:hover {
  background-color: #8aa3ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(109, 140, 255, 0.32);
}

.botao:active {
  transform: translateY(0);
}

.recado {
  min-height: 1.5rem;
  margin-top: var(--espaco-2);
  font-size: 0.88rem;
  color: var(--texto-suave);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recado--visivel {
  opacity: 1;
}

.recado--erro {
  color: #ff9a9a;
}

/* --- Rodapé ------------------------------------------------------------- */

.rodape {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--espaco-3);
}

.redes {
  display: flex;
  gap: 0.7rem;
}

.rede {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--linha);
  border-radius: 50%;
  color: var(--texto-suave);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.rede:hover {
  color: var(--texto);
  border-color: var(--linha-forte);
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.creditos {
  font-size: 0.78rem;
  color: rgba(152, 161, 178, 0.7);
}

/* --- Telas menores ------------------------------------------------------ */

@media (max-width: 560px) {
  .aviso {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 18px;
  }

  .campo__entrada {
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.04);
  }

  .botao {
    width: 100%;
    border-radius: 14px;
  }

  .subtitulo {
    letter-spacing: 0.28em;
  }
}
