/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #fafaf8;
  --surface:   #ffffff;
  --accent:    #c9170e;        /* vermelho do logo */
  --dark:      #2c2c2c;
  --mid:       #888888;
  --light:     #e8e5e0;
  --radius:    14px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
}

html, body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  background-color: var(--bg);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

/* ─── Blobs de fundo ───────────────────────────────── */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: rgba(201, 23, 14, 0.06);
  top: -100px;
  right: -120px;
  animation: drift 14s ease-in-out infinite alternate;
}

.blob-2 {
  width: 360px;
  height: 360px;
  background: rgba(180, 160, 140, 0.08);
  bottom: -80px;
  left: -100px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.06); }
}

/* ─── Container principal ──────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
  gap: 0;
}

/* ─── Logo ─────────────────────────────────────────── */
.logo-wrap {
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  cursor: pointer;
}

.logo-wrap.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.logo-wrap img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 4px 28px rgba(0,0,0,0.07);
  padding: 10px;
  transition:
    transform   0.55s var(--ease),
    box-shadow  0.55s var(--ease),
    filter      0.55s var(--ease);
  will-change: transform;
}

/* Hover no logo: gira, escala e acende o vermelho */
.logo-wrap:hover img {
  transform: rotate(8deg) scale(1.1);
  box-shadow:
    0 10px 40px rgba(201, 23, 14, 0.18),
    0 2px 12px rgba(0,0,0,0.08);
  filter: drop-shadow(0 0 10px rgba(201, 23, 14, 0.25));
}

/* Pulso suave no retorno */
.logo-wrap img:active {
  transform: scale(0.93);
  transition-duration: 0.18s;
}

/* ─── Nome da marca ────────────────────────────────── */
.brand {
  margin-top: 22px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 200;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--dark);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease) 0.15s, transform 0.8s var(--ease) 0.15s;
  /* sem overflow-hidden para as letras flutuarem */
  display: flex;
  gap: 0.01em;
}

.brand.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cada letra individualmente */
.brand .letter {
  display: inline-block;
  transition:
    transform   0.4s var(--ease),
    color       0.3s ease,
    opacity     0.3s ease;
  will-change: transform;
}

/* Quando hover no .brand: eleva todas um pouco */
.brand:hover .letter {
  color: var(--mid);
}

/* Letra específica hovered: sobe e fica vermelha */
.brand .letter:hover {
  transform: translateY(-6px) scale(1.15);
  color: var(--accent) !important;
}

/* Letras vizinhas reagem com menor intensidade (via JS) */
.brand .letter.near {
  transform: translateY(-3px) scale(1.06);
  color: #a0a0a0;
}

.brand .letter.far {
  transform: translateY(-1px);
}

/* ─── Linha decorativa ─────────────────────────────── */
.divider {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 26px auto;
  transition: width 0.9s var(--ease) 0.3s;
}

.divider.visible {
  width: 80px;
}

/* ─── Mensagem ─────────────────────────────────────── */
.msg {
  font-size: clamp(0.78rem, 1.8vw, 0.9rem);
  font-weight: 300;
  color: var(--mid);
  line-height: 1.85;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s var(--ease) 0.45s, transform 0.8s var(--ease) 0.45s;
}

.msg.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Redes sociais ────────────────────────────────── */
.social-wrap {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s var(--ease) 0.6s, transform 0.8s var(--ease) 0.6s;
}

.social-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

.social-label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--light);
  color: #bbb;
}

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

/* ─── Botão de rede social ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--dark);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  padding: 11px 22px;
  border: 1px solid var(--light);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: border-color 0.3s ease, color 0.3s ease,
              box-shadow 0.3s ease, transform 0.25s ease;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(201, 23, 14, 0.12);
  transform: translateY(-2px);
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

/* ─── Responsivo ───────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 40px 20px; }
  .social-links { flex-direction: column; align-items: center; }
  .btn { width: 200px; justify-content: center; }
}
