/* Página "site em atualização" da DINEMA: as cores e as ondas da abertura do app (tela de boas-vindas, tema escuro). */
@font-face {
  font-family: "Inter";
  src: url("/fontes/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fontes/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --fundo: #0b0d10;
  --texto: #f4f6f8;
  --texto2: #a7b0ba;
  --texto3: #6e7782;
  --lima: #b5ef4a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  /* Coluna do tamanho da tela (com "auto", a grade crescia até a frase mais longa e cortava no celular) */
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.5;
}

#ondas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Aura de energia atrás do logotipo: respira devagar */
.aura {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(92vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -55%;
  background: radial-gradient(circle, rgba(181, 239, 74, 0.2) 0%, rgba(181, 239, 74, 0.07) 40%, rgba(181, 239, 74, 0) 70%);
  z-index: 0;
  pointer-events: none;
  animation: respirar 7s ease-in-out infinite;
}

@keyframes respirar {
  0%, 100% { scale: 0.9; opacity: 0.75; }
  50% { scale: 1.06; opacity: 1; }
}

.centro {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 720px;
  padding: 24px 16px 64px;
  text-align: center;
}

.marca {
  margin: 0;
  line-height: 0;
}

.marca img {
  display: block;
  width: min(78vw, 560px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(181, 239, 74, 0.14));
}

.lema {
  margin: 4px 0 18px;
  min-height: 1.5em;
  color: var(--lima);
  font-weight: 600;
  font-size: clamp(12px, 2.3vw, 17px);
}

#lema.girando {
  display: inline-flex;
  justify-content: center;
  white-space: nowrap;
}

/* Sem script: as três palavras paradas (quebram a linha na tela estreita) */
#lema:not(.girando) { letter-spacing: 0.32em; }

.letra {
  display: inline-block;
  margin-right: 0.42em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* A última letra sem o espaço depois: a palavra fica centrada de verdade */
.letra:last-child { margin-right: 0; }

.letra.entrou {
  opacity: 1;
  transform: translateY(0);
}

.letra.saindo {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.36s cubic-bezier(0.55, 0, 1, 0.45), transform 0.36s cubic-bezier(0.55, 0, 1, 0.45);
}

.aviso {
  margin: 0;
  color: var(--texto2);
  font-size: clamp(15px, 2.2vw, 17px);
}

.botoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.botao {
  display: inline-block;
  margin-top: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--lima);
  color: var(--fundo);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(181, 239, 74, 0.25);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.botao:hover { filter: brightness(1.06); box-shadow: 0 0 38px rgba(181, 239, 74, 0.38); }

.botao:focus-visible {
  outline: 3px solid var(--texto);
  outline-offset: 3px;
}

.secundario {
  background: transparent;
  color: var(--texto);
  border: 1px solid rgba(244, 246, 248, 0.22);
  box-shadow: none;
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 1;
  color: var(--texto3);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}

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

/* Movimento reduzido (pedido pelo sistema): a aura só varia o brilho e o lema só esmaece, sem deslocar */
@keyframes respirar-suave {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .aura { animation: respirar-suave 10s ease-in-out infinite; }
  .letra,
  .letra.entrou,
  .letra.saindo {
    transform: none;
    transition: opacity 0.45s ease;
  }
}

@media (max-width: 480px) {
  #lema:not(.girando) { letter-spacing: 0.18em; }
}

@media (max-height: 520px) {
  body { overflow: auto; }
  footer { position: static; padding-bottom: 12px; }
}
