/* ═══════════════════════════════════════════
   ANSELMOTION — style.css
   Identidade visual: Manual de marca 2024
═══════════════════════════════════════════ */

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

/* ── TOKENS DA MARCA ── */
:root {
  /* Cores */
  --roxo:         #522B9E;
  --roxo-escuro:  #3A1E70;
  --roxo-fundo:   #0E0A1C;
  --amarelo:      #F5C400;
  --amarelo-hover:#FFD740;
  --branco:       #FFFFFF;
  --cinza-claro:  #F0EEF5;
  --cinza-texto:  #A89EC0;
  --escuro:       #0A0812;
  --escuro-2:     #130F22;
  --escuro-3:     #1C1735;

  /* Tipografia */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Espaçamentos */
  --px: 60px;      /* padding horizontal padrão */
  --px-sm: 24px;   /* mobile */

  /* Bordas */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transições */
  --transition: .25s ease;
}

/* ── BASE ── */
html {
  overflow-x: clip;   /* animações de entrada (slide) não podem alargar a página no celular */
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--escuro);
  color: var(--branco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── SISTEMA DE IDIOMAS ── */
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  overflow: hidden;
  margin-left: 16px;
}
.lang-btn {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  transition: background .2s, color .2s;
}
.lang-btn.active {
  background: var(--amarelo);
  color: var(--escuro);
}
[data-pt], [data-en] { }
html[data-lang="en"] [data-pt] { display: none !important; }
html[data-lang="pt"] [data-en] { display: none !important; }
html:not([data-lang="es"]) [data-es] { display: none !important; }
html[data-lang="es"] [data-pt], html[data-lang="es"] [data-en] { display: none !important; }

/* globo de idioma: substitui a pílula no celular (criado pelo main.js) */
.lang-globe { display: none; position: relative; }
.lang-globe-btn {
  display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 100px; cursor: pointer;
  font: 500 11px var(--font-body); letter-spacing: .1em; color: var(--branco);
  background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.14);
}
.lang-globe-btn svg { width: 15px; height: 15px; stroke: var(--amarelo); flex-shrink: 0; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 200; min-width: 160px; padding: 6px;
  background: var(--escuro-2); border: 0.5px solid rgba(255,255,255,0.1); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.lang-globe.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: 400 14px var(--font-body); color: rgba(255,255,255,0.8); text-align: left;
}
.lang-menu button small { font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,0.35); }
.lang-menu button.on { background: rgba(245,196,0,0.12); color: var(--amarelo); }
@media (max-width: 768px) {
  .lang-toggle { display: none !important; }
  .lang-globe { display: block; }
}

/* ── TIPOGRAFIA ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  font-weight: 800;
}

h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(32px, 4.5vw, 60px); }
h3 { font-size: clamp(20px, 2.5vw, 32px); }

p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--cinza-texto);
}

/* ── UTILITÁRIOS ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amarelo);
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--amarelo);
  flex-shrink: 0;
}

.hl-amarelo { color: var(--amarelo); }
.hl-roxo    { color: var(--roxo); }

/* ── BOTÕES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--amarelo);
  color: var(--escuro);
}
.btn-primary:hover {
  background: var(--amarelo-hover);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--branco);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes */
.reveal[data-anim="slide-left"] {
  transform: translateX(-40px);
}
.reveal[data-anim="slide-left"].visible {
  transform: translateX(0);
}
.reveal[data-anim="slide-right"] {
  transform: translateX(40px);
}
.reveal[data-anim="slide-right"].visible {
  transform: translateX(0);
}
.reveal[data-anim="scale"] {
  transform: scale(.92);
}
.reveal[data-anim="scale"].visible {
  transform: scale(1);
}

/* Delays encadeados */
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* ── STAGGER GROUP ── */
.stagger-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO PARALLAX ── */
.hero-inner {
  will-change: transform, opacity;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,8,18,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(82,43,158,0.3);
  transition: background var(--transition);
}
.nav-logo img {
  height: 28px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--branco);
}
.nav-cta {
  background: var(--amarelo);
  color: var(--escuro) !important;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 13px;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover {
  background: var(--amarelo-hover) !important;
  transform: scale(1.04);
}

/* ── FOOTER ── */
.footer {
  padding: 40px var(--px);
  background: var(--escuro-2);
  border-top: 0.5px solid rgba(82,43,158,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo img { height: 22px; }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--branco); }
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.15);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .lang-toggle { margin-left: 8px; }
}

@media (max-width: 768px) {
  :root { --px: var(--px-sm); }

  .nav-links { display: none; }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* ── VIDEO PLAY OVERLAY ── */
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,8,18,0.5);
  z-index: 10;
  cursor: pointer;
  border-radius: inherit;
  transition: opacity .2s ease;
}
.video-play-overlay:hover {
  background: rgba(10,8,18,0.35);
}
.video-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(245,196,0,0.95);
  color: #0A0812;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(245,196,0,0.15), 0 8px 32px rgba(0,0,0,0.4);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  flex-shrink: 0;
}
.video-play-overlay:hover .video-play-btn {
  transform: scale(1.1);
  background: #FFD740;
  box-shadow: 0 0 0 14px rgba(245,196,0,0.12), 0 8px 32px rgba(0,0,0,0.5);
}
.media-video {
  position: relative;
}