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

:root {
  --bg: #060504;
  --text: #f7f1e6;
  --muted: rgba(247, 241, 230, 0.74);

  /* paleta extraída da logo: dourado/âmbar quente sobre preto */
  --gold-1: #ffe08a;   /* dourado claro (brilho do anel) */
  --gold-2: #e8a934;   /* âmbar dourado (CENTRAL) */
  --gold-3: #b6781a;   /* bronze/âmbar escuro */
  --amber:  #f0991f;   /* laranja-âmbar de destaque */

  --wa: #25d366;
}

html, body { height: 100%; }

body {
  background: var(--bg); /* fallback escuro se o vídeo falhar */
  color: var(--text);
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* ===================== VÍDEO DE FUNDO ===================== */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  background: #000;
  filter: saturate(1.08) contrast(1.04) brightness(0.88);
  transform: scale(1.02);
}

/* ===================== PROFUNDIDADE (degradê + vinheta) ===================== */
.overlay-gradient {
  position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(8,6,4,0.55) 0%,
      rgba(8,6,4,0.30) 35%,
      rgba(8,6,4,0.55) 70%,
      rgba(8,6,4,0.92) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.overlay-vignette {
  position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(125% 95% at 50% 40%,
    rgba(0,0,0,0) 42%,
    rgba(0,0,0,0.45) 85%,
    rgba(0,0,0,0.80) 100%);
  pointer-events: none;
}

/* ===================== HERO (conteúdo direto sobre o vídeo) ===================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  padding-top: max(48px, env(safe-area-inset-top));
  padding-bottom: max(36px, env(safe-area-inset-bottom));
}

/* ===================== MARCA / LOGO ===================== */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
  animation: fadeUp 0.8s ease 0.1s both;
}
/* container que gera os anéis dourados pulsantes ao redor da logo */
.logo-wrap {
  position: relative;
  width: 160px;
  height: 160px;
}
.logo-wrap::before,
.logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(240, 153, 31, 0.6);
  z-index: -1;
  animation: logoPulse 2.8s ease-out infinite;
}
.logo-wrap::after { animation-delay: 1.4s; } /* 2º anel defasado */

.logo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  display: block;
  /* recorta a logo em círculo (remove os cantos pretos do SVG) */
  border-radius: 50%;
  /* moldura/anel dourado fino + brilho âmbar ao redor */
  border: 1px solid rgba(232, 169, 52, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 10px 30px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(240, 153, 31, 0.35);
  /* flutuação suave contínua (motion) */
  animation: floatLogo 5.5s ease-in-out infinite;
  will-change: transform;
}
.brand-name {
  margin-top: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.brand-sub {
  margin-top: 7px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: rgba(247, 241, 230, 0.6);
}

/* ===================== HEADLINE (serifada de luxo) ===================== */
.headline {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 9vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 18px;
  animation: fadeUp 0.8s ease 0.22s both;
}
.headline em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, var(--gold-1), var(--amber) 55%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* palavra que muda (máquina de escrever) */
.typed {
  background: linear-gradient(90deg, var(--gold-1), var(--amber) 55%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* cursor piscando */
.caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: var(--amber);
  border-radius: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===================== SUBHEADLINE ===================== */
.subheadline {
  font-size: clamp(0.92rem, 3.6vw, 1.05rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 18px;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* seta de scroll */
.scroll-cue {
  color: rgba(246, 241, 234, 0.55);
  margin-bottom: 26px;
  animation: bob 2.2s ease-in-out infinite;
}

/* ===================== BOTÕES (pílulas) ===================== */
.links {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 17px 26px;
  border-radius: 999px;          /* pílula */
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.3s ease,
    background 0.3s ease, border-color 0.3s ease;
  animation: fadeUp 0.7s ease 0.4s both;
}

/* brilho que cruza no hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::after { left: 140%; }

.btn-ic {
  display: inline-flex; align-items: center; flex-shrink: 0;
  transition: transform 0.25s ease;
}
.btn-arrow {
  margin-left: 2px; font-weight: 700;
  transition: transform 0.25s ease;
}

/* movimento dos elementos internos no hover */
.btn:hover .btn-ic   { transform: scale(1.18) rotate(-6deg); }
.btn:hover .btn-arrow { transform: translateX(6px); }

/* PRINCIPAL — pílula dourada/âmbar (cor da logo), texto escuro */
.btn-primary {
  /* gradiente maior para o reflexo deslizar (shimmer) */
  background: linear-gradient(120deg,
    var(--gold-3), var(--gold-1) 25%, var(--amber) 50%, var(--gold-1) 75%, var(--gold-3));
  background-size: 220% 220%;
  color: #2a1804;
  font-weight: 700;
  box-shadow:
    0 14px 36px -10px rgba(240, 153, 31, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  /* entrada + reflexo deslizante + brilho pulsante (autoplay) */
  animation:
    fadeUp 0.7s ease 0.4s both,
    shimmer 3.4s ease-in-out infinite,
    glowPulse 2.6s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 22px 50px -10px rgba(240, 153, 31, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* SECUNDÁRIOS — vidro com borda fina */
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(246, 241, 234, 0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* entrada + leve pulsar de borda âmbar (autoplay) */
  animation:
    fadeUp 0.7s ease 0.4s both,
    ghostPulse 3.2s ease-in-out infinite;
}
/* pulsar sutil da borda/halo dos botões de vidro */
@keyframes ghostPulse {
  0%, 100% { border-color: rgba(246, 241, 234, 0.30);
             box-shadow: 0 0 0 0 rgba(240, 153, 31, 0); }
  50%      { border-color: rgba(232, 169, 52, 0.55);
             box-shadow: 0 0 18px -4px rgba(240, 153, 31, 0.4); }
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold-2);
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 16px 34px -12px rgba(0, 0, 0, 0.65),
    0 0 26px -6px rgba(240, 153, 31, 0.4);
}
.btn-ghost .btn-ic { color: var(--gold-2); }
.btn:active { transform: translateY(-1px); }

/* ===================== CRÉDITO ===================== */
.credit {
  margin-top: 30px;
  font-size: 0.74rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(246, 241, 234, 0.5);
  animation: fadeUp 0.7s ease 0.55s both;
}
.credit strong { font-weight: 600; color: rgba(246, 241, 234, 0.78); }
.credit-link {
  font-weight: 600;
  color: var(--gold-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 169, 52, 0.4);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.credit-link:hover {
  color: var(--gold-1);
  border-color: var(--gold-1);
}

/* ===================== WHATSAPP FLUTUANTE ===================== */
.wa-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  z-index: 50;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
  /* respiração suave do botão */
  animation: waBreathe 2.2s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.1); }

/* anéis que se expandem (efeito radar/pulsar) */
.wa-float::before,
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  z-index: -1;
  animation: waRing 2.2s ease-out infinite;
}
.wa-float::after { animation-delay: 1.1s; } /* 2º anel defasado */

/* ===================== ANIMAÇÕES ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* reflexo dourado deslizando no botão principal */
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* brilho pulsante ao redor do botão principal */
@keyframes glowPulse {
  0%, 100% { box-shadow:
      0 14px 36px -10px rgba(240, 153, 31, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.5); }
  50%      { box-shadow:
      0 16px 44px -8px rgba(240, 153, 31, 0.9),
      0 0 30px -2px rgba(255, 224, 138, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.55); }
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50%      { transform: translateY(-12px) rotate(0.6deg); }
}
/* anéis dourados expandindo ao redor da logo (pulsar) */
@keyframes logoPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(7px); opacity: 1; }
}
@keyframes waBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes waRing {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(2.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 480px) {
  /* alinha o conteúdo a partir do topo para não cortar a logo */
  .hero {
    justify-content: flex-start;
    padding-top: max(26px, env(safe-area-inset-top));
  }
  .logo, .logo-wrap { width: 120px; height: 120px; }
  .brand { margin-bottom: 16px; }
  .headline { margin-bottom: 12px; }
  .subheadline { margin-bottom: 12px; }
  .scroll-cue { margin-bottom: 16px; }
  .btn { padding: 15px 22px; font-size: 0.96rem; }
  .links { gap: 11px; }
  .credit { margin-top: 20px; }
  .brand-name { letter-spacing: 0.36em; padding-left: 0.36em; }
}

@media (min-width: 768px) {
  .logo, .logo-wrap { width: 170px; height: 170px; }
  .headline { font-size: clamp(3rem, 5vw, 4.4rem); }
  .links { max-width: 400px; }
}
