/* =============================================
   ANA — SDR de IA para Imobiliarias
   LeadsX · Deep Ocean Design System
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #020B18;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- Variables ---- */
:root {
  --blue: #06B6D4;
  --blue-light: #38BDF8;
  --blue-dark: #0891B2;
  --navy: #020B18;
  --navy-2: #030F1F;
  --navy-3: #041525;
  --card-bg: #051A2E;
  --card-border: rgba(6, 182, 212, 0.2);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --green: #22d3ee;
  --green-wa: #25D366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 32px rgba(0,0,0,0.5);
  --glow-blue: 0 0 60px rgba(6, 182, 212, 0.3);
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #0891B2, #38BDF8);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.6);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  background: rgba(26, 111, 216, 0.1);
}
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn-xl { padding: 18px 40px; font-size: 1.1rem; border-radius: 12px; }
.btn-icon { width: 20px; height: 20px; }

/* ---- Section Tags ---- */
.section-tag {
  display: inline-block;
  background: rgba(26, 111, 216, 0.15);
  color: var(--blue-light);
  border: 1px solid rgba(26, 111, 216, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tag-blue { color: var(--blue-light); }

/* ---- Section Titles ---- */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-sub-left {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.gradient-text {
  background: linear-gradient(135deg, #38BDF8, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.highlight-cyan { color: #38BDF8; }

/* ---- Solution list ---- */
.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.solution-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}
.check-icon {
  width: 22px; height: 22px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Feature tags ---- */
.feature-tag {
  display: inline-block;
  background: rgba(6,182,212,0.1);
  color: var(--blue-light);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.ana-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 10px 0;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(5, 13, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 111, 216, 0.15);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo img { height: 80px; width: auto; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px;
  background: rgba(5, 13, 26, 0.98);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 0;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-menu .btn { margin-top: 8px; text-align: center; justify-content: center; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  background: rgba(6, 182, 212, 0.12);
  top: -200px; left: -200px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: rgba(56, 189, 248, 0.08);
  bottom: -100px; right: -100px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 111, 216, 0.12);
  border: 1px solid rgba(26, 111, 216, 0.3);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--blue-light);
  font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 28px 48px;
  border-radius: var(--radius);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #38BDF8, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.08);
}
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

/* =============================================
   PROBLEM
   ============================================= */
.problem {
  padding: 100px 0;
  text-align: center;
}
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.problem-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s;
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 111, 216, 0.5);
}
.problem-icon { font-size: 2rem; margin-bottom: 16px; }
.problem-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.problem-card p { font-size: 0.9rem; color: var(--text-muted); }

/* =============================================
   ANA INTRO
   ============================================= */
.ana-intro {
  padding: 100px 0;
  background: var(--navy-2);
}
.ana-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ana-text .section-title { margin-bottom: 20px; }

/* ---- WhatsApp Chat Mockup ---- */
.chat-mockup-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.chat-phone {
  position: relative;
  width: 300px;
}
.chat-phone-frame {
  background: #111;
  border-radius: 44px;
  padding: 14px 10px 20px;
  border: 2px solid rgba(6,182,212,0.35);
  box-shadow: 0 0 40px rgba(6,182,212,0.15), 0 24px 60px rgba(0,0,0,0.6);
  overflow: hidden;
}
.chat-notch {
  width: 80px; height: 18px;
  background: #111;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 8px;
  border: 2px solid #222;
  border-top: none;
}
.chat-screen {
  background: #0b1417;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
}
.chat-glow {
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(37, 211, 102, 0.12);
  border-radius: 50%;
  filter: blur(40px);
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* WA Header */
.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1f2c34;
  padding: 10px 14px;
  flex-shrink: 0;
}
.wa-back {
  font-size: 1.1rem;
  color: #8696a0;
  cursor: pointer;
}
.wa-avatar-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4, #0891B2);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wa-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e9edef;
}
.wa-status {
  font-size: 0.68rem;
  color: var(--green-wa);
}
.wa-icons {
  font-size: 1.1rem;
  color: #8696a0;
}

/* WA Body */
.wa-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #0b1417;
  scrollbar-width: none;
}
.wa-body::-webkit-scrollbar { display: none; }

.chat-date-divider {
  text-align: center;
  font-size: 0.65rem;
  color: #8696a0;
  background: rgba(255,255,255,0.05);
  padding: 3px 10px;
  border-radius: 8px;
  margin: 4px auto 8px;
  width: fit-content;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.chat-msg.visible {
  opacity: 1;
  transform: translateY(0);
}
.chat-msg.msg-in {
  align-self: flex-start;
}
.chat-msg.msg-out {
  align-self: flex-end;
}
.msg-bubble {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  line-height: 1.45;
  position: relative;
}
.msg-in .msg-bubble {
  background: #202c33;
  color: #e9edef;
  border-bottom-left-radius: 4px;
}
.msg-out .msg-bubble {
  background: #005c4b;
  color: #e9edef;
  border-bottom-right-radius: 4px;
}
.msg-time {
  font-size: 0.6rem;
  color: #8696a0;
  margin-top: 2px;
  align-self: flex-end;
}
.msg-in .msg-time { align-self: flex-start; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #202c33;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  max-width: 70px;
  opacity: 0;
  transition: opacity 0.3s;
}
.typing-indicator.visible { opacity: 1; }
.typing-dot {
  width: 6px; height: 6px;
  background: #8696a0;
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* WA Input */
.wa-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #1f2c34;
  flex-shrink: 0;
}
.wa-input-field {
  flex: 1;
  background: #2a3942;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.75rem;
  color: #8696a0;
}
.wa-send-btn {
  width: 34px; height: 34px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
  padding: 100px 0;
  text-align: center;
}
.steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.step-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.step-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #38BDF8, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.step-content { max-width: 280px; }
.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.step-content p { font-size: 0.9rem; color: var(--text-muted); }
.step-arrow {
  position: absolute;
  right: -20px;
  top: 40px;
  font-size: 1.8rem;
  color: rgba(26,111,216,0.4);
  z-index: 1;
}

/* =============================================
   DEMO
   ============================================= */
.demo {
  padding: 100px 0;
  background: var(--navy-2);
  text-align: center;
}
.demo-video-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 960px;
  margin: 60px auto 0;
  text-align: left;
}
.demo-video-player {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  position: relative;
}
.demo-video-player video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.demo-video-block--reverse { direction: rtl; }
.demo-video-block--reverse > * { direction: ltr; }
.demo-video-title {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
.demo-video-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.phone-mockup {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}
.phone-frame {
  width: 100%;
  background: #111;
  border-radius: 44px;
  padding: 14px 10px 20px;
  border: 2px solid rgba(6,182,212,0.35);
  box-shadow: 0 0 40px rgba(6,182,212,0.15), 0 24px 60px rgba(0,0,0,0.6);
  overflow: hidden;
}
.phone-notch {
  width: 80px; height: 18px;
  background: #111;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 8px;
  border: 2px solid #222;
  border-top: none;
}
.phone-screen {
  background: #0f1e17;
  border-radius: 28px;
  overflow: hidden;
}
.phone-video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

/* =============================================
   RESULTS
   ============================================= */
.results {
  padding: 100px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.results-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.results-inner { position: relative; z-index: 1; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.result-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,0.4);
  box-shadow: 0 8px 32px rgba(6,182,212,0.12);
}
.result-num {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #38BDF8, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.result-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.result-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* =============================================
   CTA FINAL
   ============================================= */
.cta-section {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-inner { position: relative; z-index: 1; }
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--green-wa);
  font-weight: 500;
  margin-bottom: 28px;
}
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
}
.cta-section p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cta-note { font-size: 0.85rem; color: var(--text-muted); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy-2);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo { height: 80px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.footer-link { color: var(--blue-light); }
.footer-links-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-links-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-right { display: none; }
  .hamburger { display: flex; }
  .ana-inner { grid-template-columns: 1fr; gap: 48px; }
  .chat-mockup-wrap { order: -1; }
  .steps { flex-direction: column; gap: 40px; }
  .step-arrow { display: none; }
  .demo-video-block { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .demo-video-block .solution-list { text-align: left; display: inline-block; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; padding: 20px 28px; }
  .stat-divider { display: none; }
  .problems-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .section-title { font-size: 1.6rem; }
  .results-grid { grid-template-columns: 1fr; }
  .chat-phone { width: 260px; }
  .chat-screen { height: 420px; }
}
