/* ═══════════════════════════════════════════════════════════
   MERCADO MIND — Publicidade LP
   Slide Funnel · Premium Design
   ═══════════════════════════════════════════════════════════ */

:root {
  --accent: hsl(217, 100%, 50%);
  --accent-rgb: 0, 102, 255;
  --accent-light: hsl(217, 100%, 65%);
  --accent-dark: hsl(217, 100%, 40%);

  --bg: #0a0c10;
  --card-bg: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --text-4xl: clamp(2rem, 8vw, 3.5rem);
  --text-2xl: clamp(1.5rem, 5vw, 2.25rem);
  --text-lg: 1.25rem;
  --text-base: 1.125rem;

  --r-lg: 20px;
  --r-full: 9999px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text-primary);
  overflow: hidden;
  position: fixed;
  inset: 0;
  -webkit-font-smoothing: antialiased;
}

/* --- PROGRESS BAR --- */
.progress-bar-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.progress-bar-fill {
  height: 100%; width: 0%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  transition: width 0.8s var(--ease);
}

/* --- HEADER --- */
.funnel-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 24px;
  z-index: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.logo__name {
  font-weight: 700;
  font-size: 1rem;
}

.logo__name strong {
  color: var(--accent);
}

.nav-btn--secondary {
  pointer-events: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-btn--secondary:hover { color: var(--text-primary); }
.nav-btn--secondary:disabled { opacity: 0; visibility: hidden; }

/* --- MAIN SLIDES --- */
.funnel-main {
  height: 100vh;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: 80px;
  padding-bottom: 140px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transform: translateY(20px);
  overflow-y: auto;
}

.slide--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.slide__content {
  max-width: 640px;
  width: 100%;
  text-align: center;
  margin: auto;
}

/* --- TYPOGRAPHY --- */
.slide__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
}

.slide__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.slide__title em {
  font-style: normal;
  color: var(--accent);
}

.slide__body {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* --- COMPONENTS --- */
.highlight-funnel {
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin: 32px 0;
}

.slide__list, .value-list-funnel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px auto;
  width: fit-content;
  text-align: left;
}

.slide__list li, .value-list-funnel li {
  padding: 16px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}

.icon {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.icon--red { color: #ff4d4d; }

/* --- CAROUSEL STYLING --- */
.results-carousel {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0;
  display: flex;
}

/* Hide scrollbar */
.results-carousel::-webkit-scrollbar {
  display: none;
}
.results-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track {
  display: flex;
  gap: 16px;
  padding: 0 24px;
}

.carousel-item {
  flex: 0 0 280px;
  scroll-snap-align: center;
  aspect-ratio: 16/10;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

/* --- MODAL / LIGHTBOX --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal--active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s var(--ease);
}

.modal--active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

@media (max-width: 480px) {
  .carousel-item {
    flex: 0 0 85vw;
  }
  .modal-close {
    top: 20px;
    right: 20px;
  }
}

.theory-box {
  background: rgba(var(--accent-rgb), 0.05);
  border-left: 3px solid var(--accent);
  padding: 24px;
  border-radius: 4px 12px 12px 4px;
  margin: 32px 0;
  text-align: left;
}

/* --- SPECIAL SLIDES --- */
.slide--accent {
  background: linear-gradient(135deg, #0a0c10 0%, var(--accent-dark) 100%);
}

.slide--final {
  background: radial-gradient(circle at center, #1a1e26 0%, #0a0c10 100%);
}

/* --- NAVIGATION --- */
.funnel-nav {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  padding: 32px;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.nav-btn--primary {
  pointer-events: auto;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 48px;
  height: 64px;
  border-radius: var(--r-full);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* --- FORM STYLING --- */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input, .form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.form-group select option {
  background-color: #1a1e26;
  color: #fff;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(var(--accent-rgb), 0.3);
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn-checkout:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(var(--accent-rgb), 0.4);
}

.microcopy {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.c-red { color: #ff4d4d; }

/* --- ANIMATIONS --- */
.slide--active .slide__content > * {
  animation: slideFade 0.8s var(--ease) both;
}

@keyframes slideFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide--active .slide__title { animation-delay: 0.1s; }
.slide--active .slide__body { animation-delay: 0.2s; }
.slide--active .slide__list, .slide--active .highlight-funnel, .slide--active .value-list-funnel, .slide--active .lead-form { 
  animation-delay: 0.3s; 
}
