/* ===== Cores e fonte do site inteiro ===== */
:root {
  --vermelho: #e50914;   /* cor de destaque da marca */
  --fundo: #0b0b0b;      /* fundo quase preto */
  --texto: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--fundo);
  color: var(--texto);
  font-family: Arial, Helvetica, sans-serif;
}

/* ===== Topo fixo ===== */
.topo {
  position: fixed;          /* fica parado no alto ao rolar */
  top: 0; left: 0; right: 0;
  display: flex;            /* coloca os itens lado a lado */
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
  z-index: 10;              /* fica por cima do resto */
}

.logo {
  color: var(--vermelho);
  font-size: 26px;
  font-weight: bold;
  text-decoration: none;
}

.botao {
  background: var(--vermelho);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

/* ===== Banner grande ===== */
.banner {
  height: 90vh;             /* 90% da altura da tela */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  /* enquanto não temos imagem, um degradê escuro */
  background: radial-gradient(circle at 70% 40%, #4a0b0e, var(--fundo) 70%);
}

.banner h1 { font-size: 48px; max-width: 600px; margin-bottom: 16px; }
.banner p  { font-size: 20px; max-width: 520px; color: #cccccc; margin-bottom: 28px; }

/* ===== Celular: telas pequenas ===== */
@media (max-width: 600px) {
  .topo { padding: 14px 20px; }
  .banner { padding: 0 20px; }
  .banner h1 { font-size: 32px; }
}
/* ===== Animação de abertura ===== */
#intro { display: none; }

html.intro-ativa #intro {
  display: flex;
  position: fixed;
  inset: 0;                      /* cobre a tela inteira */
  align-items: center;
  justify-content: center;
  background: var(--fundo);
  z-index: 100;                  /* por cima de tudo */
  transition: opacity 0.6s ease, background 0.6s ease;
}

#intro-palavra {
  color: var(--vermelho);
  font-size: clamp(36px, 8vw, 110px); /* cresce conforme a tela */
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.6s ease, transform 1s ease;
}

/* letras que começam escondidas */
#intro-palavra .extra {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  white-space: pre;              /* mantém os espaços */
  transition: max-width 0.9s ease;
}

/* etapa 1: TSF aparece e cresce bem grande */
#intro.etapa1 #intro-palavra { opacity: 1; transform: scale(2.2); }
#intro.etapa2 .extra { max-width: 5em; }
/* etapa 2: ja grande, abre o nome todo (e ajusta o tamanho para caber na tela) */
#intro.etapa2 #intro-palavra { transform: scale(1); transition: opacity 0.6s ease, transform 1s ease; }

/* site escondido durante a intro */
.topo, .banner { transition: opacity 0.8s ease; }
html.intro-ativa .topo, html.intro-ativa .banner { opacity: 0; }
html.site-aberto .topo, html.site-aberto .banner { opacity: 1; }

/* ===== Logo animado do topo ===== */
.logo span { display: inline-block; }         /* permite girar cada letra */

.logo .extra {
  max-width: 5em;
  overflow: hidden;
  vertical-align: bottom;
  white-space: pre;                            /* mantém os espaços */
  transition: max-width 0.6s ease;
}

.logo.fechado .extra { max-width: 0; }         /* recolhe para TSF */

@keyframes balanca {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(2deg); }
}

.logo.balancando span { animation: balanca 0.5s ease; }
