/* ============================================================
   Movement Guarulhos — Landing Page
   Estilos customizados (complemento ao Tailwind CSS)
   Design System: #A4FB63 (principal) · #070707 (fundos)
   Tipografia: Termina (títulos/principal) · Poppins (textos)
   ============================================================ */

/* ===== Fonte principal: Termina =====
   Fonte comercial (Typotheque). Coloque os arquivos em assets/fonts/.
   Enquanto os arquivos não existirem, o fallback Helvetica/Arial é usado. */
/* As declarações @font-face da Termina ficam DESATIVADAS até os arquivos da fonte
   serem adicionados em assets/fonts/ — isso evita os 404 no console.
   Para ativar: coloque os arquivos (ver assets/fonts/README.md) e descomente abaixo.

@font-face {
  font-family: 'Termina';
  src: url('../assets/fonts/Termina-Regular.woff2') format('woff2'),
       url('../assets/fonts/Termina-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Termina';
  src: url('../assets/fonts/Termina-Medium.woff2') format('woff2'),
       url('../assets/fonts/Termina-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Termina';
  src: url('../assets/fonts/Termina-Demi.woff2') format('woff2'),
       url('../assets/fonts/Termina-Demi.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Termina';
  src: url('../assets/fonts/Termina-Bold.woff2') format('woff2'),
       url('../assets/fonts/Termina-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Termina';
  src: url('../assets/fonts/Termina-Heavy.woff2') format('woff2'),
       url('../assets/fonts/Termina-Heavy.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  --lime: #A4FB63;
  --ink: #070707;
}

html,
body {
  background-color: var(--ink);
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: #e9eae7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
.font-heading {
  font-family: 'Termina', 'Helvetica', 'Arial', sans-serif;
  letter-spacing: -0.02em;
}

/* ===== Grid pattern de fundo (detalhe profissional) ===== */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(164, 251, 99, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(164, 251, 99, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}

.bg-grid-sm {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bg-dots {
  background-image: radial-gradient(rgba(164, 251, 99, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Máscara de desvanecimento radial para o grid */
.grid-fade {
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.grid-fade-b {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}

/* ===== Glow orbs ===== */
.glow-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}

/* ===== Texto com gradiente lime ===== */
.text-gradient {
  background: linear-gradient(120deg, #A4FB63 0%, #d7ffae 50%, #A4FB63 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Borda gradiente para cards ===== */
.card-border {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-border:hover {
  border-color: rgba(164, 251, 99, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -20px rgba(164, 251, 99, 0.35);
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #070707;
}

::-webkit-scrollbar-thumb {
  background: #2c5417;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4ca713;
}

/* ===== Botão principal ===== */
.btn-primary {
  background: var(--lime);
  color: #06210a;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(164, 251, 99, 0.5);
}

.btn-primary:hover {
  background: #b6ff7e;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(164, 251, 99, 0.55);
}

/* ===== Inputs ===== */
.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(164, 251, 99, 0.15);
  background: rgba(164, 251, 99, 0.04);
}

.form-input.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

/* ===== Radio cards ===== */
.radio-card input:checked + label {
  border-color: var(--lime);
  background: rgba(164, 251, 99, 0.08);
  color: #fff;
}

.radio-card input:checked + label .radio-dot {
  border-color: var(--lime);
  background: var(--lime);
}

.radio-card input:checked + label .radio-dot::after {
  opacity: 1;
}

/* ===== Form progress ===== */
.progress-bar {
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-line {
  transition: background-color 0.5s ease;
}

/* ============================================================
   Player de vídeo customizado (showroom)
   ============================================================ */
.video-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-player video {
  cursor: pointer;
}

/* Estado "tocando": esconde o overlay/selo */
.video-player.is-playing .video-overlay,
.video-player.is-playing .play-ring {
  opacity: 0;
  pointer-events: none;
}

.video-overlay {
  cursor: pointer;
}

/* Anel pulsante ao redor do botão de play */
.play-ring::before,
.play-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid rgba(164, 251, 99, 0.55);
  animation: play-pulse 2.4s ease-out infinite;
}
.play-ring::after {
  animation-delay: 1.2s;
}

@keyframes play-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ============================================================
   Glassmorphism — header/menu (vidro fosco)
   ============================================================ */
.glass {
  position: relative;
  background: rgba(12, 12, 14, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.10),   /* brilho superior (borda de vidro) */
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.03),
    0 8px 32px -10px rgba(0, 0, 0, 0.55);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Reflexo/gradiente sutil no topo do vidro */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

/* Estado ao rolar a página: mais opaco + leve glow lime */
.glass--scrolled {
  background: rgba(8, 8, 10, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
    0 12px 36px -12px rgba(0, 0, 0, 0.7),
    0 0 28px -12px rgba(164, 251, 99, 0.22);
}

/* Fallback: sem suporte a backdrop-filter, usa fundo mais sólido */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: rgba(10, 10, 12, 0.92); }
  .glass--scrolled { background: rgba(8, 8, 10, 0.96); }
}

/* ============================================================
   Vídeo de fundo do YouTube — técnica de "cover"
   Mantém o aspecto 16:9 e cobre toda a seção, recortando o excedente.
   ============================================================ */
.yt-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.yt-cover iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Fallback para navegadores sem aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .yt-cover iframe {
    width: 177.78vh; /* 100vh * 16/9 */
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
  }
}

/* ============================================================
   GSAP: quando ativo, o GSAP controla os reveals.
   Sem GSAP, o IntersectionObserver (main.js) cuida via .reveal.
   ============================================================ */
html.gsap-enabled .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Respeita preferências de redução de movimento */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .play-ring::before,
  .play-ring::after { animation: none; }
  .animate-float { animation: none !important; }
}

/* ============================================================
   Brilho que acompanha o cursor do mouse
   ============================================================ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px; /* centraliza o brilho no ponto do cursor */
  border-radius: 9999px;
  background: radial-gradient(circle,
    rgba(164, 251, 99, 0.16) 0%,
    rgba(164, 251, 99, 0.07) 35%,
    rgba(164, 251, 99, 0) 70%);
  pointer-events: none;
  z-index: 40; /* abaixo do header (z-50) */
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
  will-change: transform;
}

.cursor-glow.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}
