/* ============================================
   DESIGN TOKENS — troque aqui pra ajustar identidade visual
   ============================================ */
:root {
  /* Cores */
  --color-bg: #05070d;
  --color-surface: rgba(24, 32, 51, 0.6);
  --color-surface-raised: rgba(32, 42, 66, 0.7);
  --color-border: rgba(255, 255, 255, 0.08);

  --color-text: #f5f3ee;
  --color-text-dim: #9aa4b8;
  --color-text-faint: #616d85;

  --color-accent: #22c55e;       /* verde crescimento — CTA principal */
  --color-accent-hover: #34e07a;
  --color-accent-2: #d9a441;     /* dourado — detalhes/kicker */
  --color-accent-3: #6ee7ff;     /* ciano — realce/gradientes */

  --color-error: #f87171;

  /* Tipografia */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --text-kicker: clamp(0.7rem, 0.65rem + 0.2vw, 0.8rem);
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
  --text-headline: clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
  --text-sub: clamp(0.95rem, 0.9rem + 0.2vw, 1.1rem);

  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 2.75rem;
  --space-xl: 4rem;

  /* Timing */
  --duration-fast: 150ms;
  --duration-normal: 400ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Blobs de fundo — profundidade e clima moderno */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}

body::before {
  width: 26rem;
  height: 26rem;
  top: -8rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.28), transparent 70%);
}

body::after {
  width: 24rem;
  height: 24rem;
  bottom: -10rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.16), transparent 70%);
  animation-delay: -8s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(2rem, 3rem) scale(1.12);
  }
}

/* Grain sutil — textura, evita visual "chapado" */
.stage::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .badge-dot {
    animation: none;
  }
}

button {
  font-family: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
}

/* ============================================
   LAYOUT / STAGE
   ============================================ */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-sm);
}

.screen {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.screen.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.screen-inner {
  width: 100%;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.kicker {
  font-size: var(--text-kicker);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  text-transform: uppercase;
}

.headline {
  font-size: var(--text-headline);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  font-size: var(--text-sub);
  color: var(--color-text-dim);
  max-width: 26rem;
}

.steps {
  font-size: var(--text-kicker);
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
  margin-top: var(--space-xs);
}

/* ============================================
   VIDEO (TELA 1)
   ============================================ */
.video-frame {
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.1), 0 30px 70px -25px rgba(0, 0, 0, 0.75);
  aspect-ratio: 16 / 9;
  position: relative;
}

/* Vídeo em formato vertical (reels/stories) — troque a classe no HTML se voltar a usar horizontal */
.video-frame-vertical {
  aspect-ratio: 9 / 16;
  width: min(100%, 19rem);
  max-height: 62dvh;
  margin: 0 auto;
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.55), rgba(110, 231, 255, 0.35), rgba(217, 164, 65, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  color: var(--color-text-dim);
  font-size: 0.9rem;
  background: var(--color-surface);
}

.video-fallback code {
  color: var(--color-accent-2);
}

.cta-waiting {
  font-size: 0.85rem;
  color: var(--color-text-faint);
  min-height: 1.2em;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  border: none;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 1.1rem 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo),
    opacity var(--duration-normal) var(--ease-out-expo);
}

.btn::after {
  content: "→";
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.btn:hover:not(:disabled)::after {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #16a34a);
  color: #04140b;
  box-shadow: 0 10px 30px -8px rgba(34, 197, 94, 0.55);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-accent-hover), var(--color-accent));
  box-shadow: 0 14px 36px -8px rgba(34, 197, 94, 0.7);
  transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 3px;
}

.btn-block {
  width: 100%;
}

.cta-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.cta-hidden.cta-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  height: auto;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

/* ============================================
   QUIZ DE QUALIFICAÇÃO (TELAS 2-4)
   ============================================ */
.quiz-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--space-xs);
}

.quiz-option {
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  padding: 1rem 1.25rem;
  transition: border-color var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-fast) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-expo);
}

.quiz-option:hover {
  border-color: rgba(34, 197, 94, 0.45);
  transform: translateY(-1px);
}

.quiz-option:focus-visible {
  outline: 2px solid var(--color-accent-2);
  outline-offset: 2px;
}

.quiz-option.selected {
  border-color: var(--color-accent);
  background: rgba(34, 197, 94, 0.14);
  color: var(--color-accent);
}

/* ============================================
   FORM (TELA 5)
   ============================================ */
.lead-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: var(--space-md);
  text-align: left;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-dim);
  letter-spacing: 0.02em;
}

.field input {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--duration-fast) var(--ease-out-expo);
}

.field input::placeholder {
  color: var(--color-text-faint);
}

.field input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.field input.field-invalid {
  border-color: var(--color-error);
}

.field-error {
  min-height: 1.1em;
  font-size: 0.78rem;
  color: var(--color-error);
}

.privacy-note {
  font-size: 0.78rem;
  color: var(--color-text-faint);
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .screen-inner {
    gap: var(--space-md);
  }
}

/* ============================================
   HEADER / FOOTER
   ============================================ */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: var(--space-sm) var(--space-sm) 0;
}

.site-logo {
  height: clamp(28px, 4vw, 40px);
  width: auto;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-faint);
}
