/* ============================================================
   IBeLingue — Landing Page de Alta Conversão
   ============================================================ */

:root {
  --primary: #0047AB;
  --primary-dark: #003580;
  --secondary: #00C896;
  --secondary-dark: #00a87d;
  --accent: #FFB800;
  --accent-light: #FFD166;
  --danger: #ef4444;
  --text: #0f172a;
  --text-light: #475569;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.14);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== RESET ====== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== URGENCY BAR ====== */
.urgency-bar {
  background: linear-gradient(90deg, var(--danger), #b91c1c);
  color: white;
  text-align: center;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 100;
  animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ====== NAVBAR ====== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.brand span {
  color: var(--secondary);
}

.nav-cta {
  background: var(--primary);
  color: white;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 71, 171, 0.3);
}

/* ====== HERO ====== */
.hero {
  padding: 64px 0 80px;
  background: linear-gradient(160deg, #e0f2fe 0%, #f0fdf4 40%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 150, 0.08), transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* --- Hero Text --- */
.badge {
  display: inline-block;
  background: rgba(0, 200, 150, 0.12);
  color: var(--secondary-dark);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 520px;
}

/* --- Proof Row --- */
.proof-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.proof-card {
  background: var(--card);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 130px;
  text-align: center;
  transition: transform var(--transition);
}

.proof-card:hover {
  transform: translateY(-3px);
}

.pulse-border {
  position: relative;
}

.pulse-border::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius) + 3px);
  border: 2px solid var(--secondary);
  animation: pulseBorder 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseBorder {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.proof-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}

.proof-label {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Hero Bullets --- */
.hero-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bullet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.check {
  color: var(--secondary);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ====== FORM CARD ====== */
.hero-form {
  display: flex;
  justify-content: center;
}

.form-card {
  background: var(--card);
  padding: 36px 32px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  display: grid;
  gap: 16px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-header {
  text-align: center;
  margin-bottom: 4px;
}

.form-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.form-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}

.field input,
.field select {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid #e2e8f0;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background: white;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.1);
}

.field input.invalid,
.field select.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-msg {
  font-size: 0.8rem;
  color: var(--danger);
  font-weight: 600;
  min-height: 1em;
}

/* --- CTA Button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  font-family: inherit;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 71, 171, 0.3);
}

.btn-pulse {
  animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 71, 171, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(0, 71, 171, 0); }
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.form-micro {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* --- Live Activity Notification --- */
.live-activity {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #166534;
  animation: fadeSlide 0.4s ease;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== SECTIONS COMMON ====== */
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0, 71, 171, 0.08), rgba(0, 200, 150, 0.08));
  color: var(--primary);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

/* ====== BENEFITS ====== */
.benefits {
  padding: 80px 0;
  text-align: center;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.benefit-card {
  background: var(--card);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f2fe, #f0fdf4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.benefit-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.benefit-card p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* ====== HOW IT WORKS ====== */
.how-it-works {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg), #e0f2fe 50%, var(--bg));
  text-align: center;
}

.steps-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step-card {
  background: var(--card);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 240px;
  text-align: center;
  transition: transform var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step-card h4 {
  font-weight: 700;
  margin-bottom: 6px;
}

.step-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}

/* ====== TESTIMONIALS ====== */
.testimonials {
  padding: 80px 0;
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author strong {
  display: block;
  font-size: 0.9rem;
}

.author span {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ====== FAQ ====== */
.faq {
  padding: 80px 0;
  background: var(--bg);
  text-align: center;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-item summary:hover {
  background: #f1f5f9;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 22px 18px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ====== FINAL CTA ====== */
.final-cta {
  padding: 0 0 80px;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary), #1a6dd4);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.cta-box .btn-primary {
  background: var(--accent);
  color: var(--text);
}

.cta-box .btn-primary:hover {
  box-shadow: 0 14px 28px rgba(255, 184, 0, 0.4);
}

.cta-sub {
  margin-top: 12px;
  font-size: 0.88rem;
  opacity: 0.8;
}

/* ====== FOOTER ====== */
.footer {
  padding: 32px 0;
  border-top: 1px solid #e2e8f0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-size: 1.2rem;
}

.footer p {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* ====== STICKY CTA ====== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 80;
  text-align: center;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.btn-sticky {
  width: 100%;
  max-width: 500px;
  padding: 14px 24px;
  font-size: 0.9rem;
}

/* ====== MODAL ====== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--card);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.4s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.modal-content h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-content p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.modal-content .btn-primary {
  width: 100%;
}

/* ====== SCROLL ANIMATIONS ====== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
.delay-5 { transition-delay: 0.75s; }

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text {
    text-align: center;
  }

  .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .proof-row {
    justify-content: center;
  }

  .hero-bullets {
    grid-template-columns: 1fr;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
  }

  .steps-row {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .step-card {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 0 56px;
  }

  .form-card {
    padding: 28px 20px;
    border-radius: var(--radius);
  }

  .urgency-bar {
    font-size: 0.8rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cta-box {
    padding: 40px 24px;
  }
}

@media (min-width: 901px) {
  .sticky-cta {
    display: none !important;
  }
}
