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

:root {
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-elevated: #1a2234;
  --border: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --accent: #22d3ee;
  --success: #34d399;
  --whatsapp: #25d366;
  --instagram: #e1306c;
  --messenger: #0084ff;
  --gradient: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --radius: 14px;
  --shadow: 0 25px 50px -12px rgba(0,0,0,0.55);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-elevated); border-color: #334155; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  width: 100%;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
  background: rgba(99,102,241,0.08);
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.logo-mark.small {
  width: 26px;
  height: 26px;
  font-size: 10px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--text); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  padding: 72px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 580px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.25); }
}

.hero h1 {
  font-size: clamp(30px, 4.8vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 470px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.stat span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== CHAT DEMO ========== */
.chat-demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 510px;
  max-width: 400px;
  margin-left: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  position: relative;
}

.avatar.online::after {
  content: '';
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--success);
  border: 2px solid var(--bg-elevated);
  border-radius: 50%;
}

.chat-title { font-weight: 600; font-size: 14px; }

.chat-status {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-status .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.live-badge {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  scroll-behavior: smooth;
}

.chat-body::-webkit-scrollbar { width: 3px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.message {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 13px;
  font-size: 13.5px;
  line-height: 1.45;
  animation: msgIn 0.32s ease;
  word-wrap: break-word;
}

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

.message.customer {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message.bot {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.message .time {
  display: block;
  font-size: 10px;
  opacity: 0.55;
  margin-top: 4px;
}

.chat-footer {
  border-top: 1px solid var(--border);
  padding: 10px 14px 14px;
  background: var(--bg-elevated);
}

.typing-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 2px;
}

.typing-indicator.visible { display: flex; }

.typing-indicator span {
  width: 5px;
  height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.chat-input-bar {
  display: flex;
  gap: 8px;
}

.chat-input-bar input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 13px;
  color: var(--text-muted);
  font-size: 13.5px;
  outline: none;
}

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 15px;
  cursor: default;
  opacity: 0.45;
}

/* ========== CONNECT SECTION ========== */
.connect-section {
  padding: 80px 0 90px;
  background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.04) 40%, transparent 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.connect-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.connect-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.channel-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: #fff;
}

.channel-icon.whatsapp { background: rgba(37, 211, 102, 0.15); color: var(--whatsapp); }
.channel-icon.instagram { background: rgba(225, 48, 108, 0.15); color: var(--instagram); }
.channel-icon.website { background: rgba(99, 102, 241, 0.15); color: var(--primary-hover); }
.channel-icon.messenger { background: rgba(0, 132, 255, 0.15); color: var(--messenger); }

.connect-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.connect-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.45;
}

.channel-btn {
  font-size: 13.5px;
  padding: 9px 14px;
}

.free-trial-note {
  background: var(--bg-card);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.note-badge {
  flex-shrink: 0;
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.free-trial-note p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.free-trial-note strong {
  color: var(--text);
}

/* ========== FEATURES ========== */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.3);
}

.feature-icon {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-hover);
  background: rgba(99,102,241,0.12);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(34,211,238,0.03) 50%, transparent 100%);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 300px;
}

.step-num {
  width: 38px;
  height: 38px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.step-arrow {
  font-size: 22px;
  color: var(--text-muted);
  align-self: center;
  margin-top: 18px;
  opacity: 0.5;
}

/* ========== CHANNELS BAND ========== */
.channels-band {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.channels-inner {
  text-align: center;
}

.channels-inner h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.channel-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.channel-logos span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.7;
  letter-spacing: 0.01em;
}

/* ========== PRICING ========== */
.pricing {
  padding: 80px 0 90px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 18px 40px rgba(99,102,241,0.18);
  transform: scale(1.025);
}

.popular-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.price-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.price-amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.price-amount span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.price-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.price-card ul {
  flex: 1;
  margin-bottom: 24px;
}

.price-card li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-card li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 13px;
}

.price-card li strong {
  color: var(--text);
}

/* ========== FINAL CTA ========== */
.final-cta {
  padding: 70px 0 80px;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.final-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 16px;
}

.cta-note {
  margin-top: 16px !important;
  font-size: 13px !important;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 13.5px;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .chat-demo-card {
    margin: 0 auto;
    max-width: 100%;
  }
  .connect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .price-card.popular {
    transform: none;
  }
  .step-arrow {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .free-trial-note {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 60px;
  }
  .hero-stats {
    gap: 18px;
  }
  .stat strong {
    font-size: 18px;
  }
  .connect-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== AUTH MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--text); }

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header .logo-mark {
  margin: 0 auto 14px;
}

.auth-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus {
  border-color: var(--primary);
}

.form-group input::placeholder {
  color: #64748b;
}

.btn-full {
  width: 100%;
  margin-top: 4px;
}

.auth-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--primary-hover);
  font-weight: 600;
  cursor: pointer;
  font-size: 13.5px;
  font-family: inherit;
}
.auth-switch button:hover {
  text-decoration: underline;
}
