/* ── CHATBOT DEMO PAGE ─────────────────────────────────── */
.chatbot-hero {
  padding: 60px var(--gutter) 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.chatbot-hero .hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}
.chatbot-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--fg);
}
.chatbot-hero p {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── CHAT CONTAINER ────────────────────────────────────── */
.chat-section {
  padding: 20px var(--gutter) 80px;
  max-width: 760px;
  margin: 0 auto;
}
.chat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
.chat-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.chat-header-info h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.chat-header-info span {
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.header-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.header-btn:hover { background: var(--surface-2); }

/* ── CHAT WINDOW ───────────────────────────────────────── */
#chat-window {
  height: 480px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}
#chat-window::-webkit-scrollbar { width: 6px; }
#chat-window::-webkit-scrollbar-track { background: transparent; }
#chat-window::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.message {
  display: flex;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.message-user { justify-content: flex-end; }
.message-bot { justify-content: flex-start; }
.bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.message-user .bubble {
  background: var(--accent);
  color: #08080a;
  border-bottom-right-radius: 4px;
}
.message-bot .bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg);
  border-bottom-left-radius: 4px;
}
.typing-indicator {
  display: flex;
  align-items: center;
}
.typing-indicator .bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
}
.typing-indicator .dot {
  width: 6px;
  height: 6px;
  background: var(--fg-muted);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ── INPUT AREA ────────────────────────────────────────── */
.chat-input-area {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input-area textarea {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--fg);
  font-family: var(--font-body);
  resize: none;
  min-height: 48px;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
}
.chat-input-area textarea::placeholder { color: var(--fg-muted); }
.chat-input-area textarea:focus { outline: none; border-color: var(--accent-border); }
#send-btn {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08080a;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.1s;
}
#send-btn:hover { opacity: 0.85; transform: scale(1.05); }
#send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── LEAD FORM ─────────────────────────────────────────── */
#lead-form {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  background: var(--surface-2);
}
#lead-form.hidden { display: none; }
.lead-form-inner {
  display: flex;
  gap: 10px;
  align-items: center;
}
.lead-form-inner input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--fg);
  font-family: var(--font-body);
}
.lead-form-inner input::placeholder { color: var(--fg-muted); }
.lead-form-inner input:focus { outline: none; border-color: var(--accent-border); }
#lead-submit {
  background: var(--accent);
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #08080a;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
}
#lead-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 8px;
}
.slide-up {
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── CTA BANNER ────────────────────────────────────────── */
.cta-banner {
  margin-top: 48px;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: #08080a;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--surface); }