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

:root {
  --bg:          #07071a;
  --bg-2:        #0d0d2b;
  --card:        rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --primary:     #6366f1;
  --primary-dark:#4f46e5;
  --secondary:   #8b5cf6;
  --accent:      #06b6d4;
  --text:        #f1f5f9;
  --muted:       #94a3b8;
  --muted-2:     #64748b;
  --white:       #ffffff;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 20px 60px rgba(0,0,0,0.5);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --gradient:    linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-h:  linear-gradient(135deg, #4f46e5, #7c3aed);
  --transition:  0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg { display: block; max-width: 100%; }

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 600; }

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

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover {
  background: var(--gradient-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

.btn-lg { padding: 18px 36px; font-size: 1.05rem; border-radius: 12px; }

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(7,7,26,0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--card-border);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.logo-ch { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-fr {
  padding: 7px 14px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-size: 0.88rem !important;
  background: var(--card);
}
.nav-fr:hover { border-color: var(--primary) !important; color: var(--text) !important; }

.nav-cta {
  margin-left: 8px;
  padding: 10px 20px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.4); }

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

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

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 99px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  width: fit-content;
}

.hero-text h1 { margin-bottom: 20px; }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--muted-2);
}

/* Background blobs */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; right: -100px;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  bottom: -100px; left: -80px;
}

/* ========================================
   CHATBOT WIDGET
   ======================================== */
.chatbot-wrapper {
  position: relative;
}
.chatbot-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: var(--gradient);
  opacity: 0.5;
  filter: blur(16px);
  z-index: -1;
}

.chatbot-card {
  background: rgba(13,13,43,0.95);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(99,102,241,0.07);
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chatbot-badge {
  padding: 3px 10px;
  background: var(--gradient);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Mode buttons */
.mode-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
}

.mode-btn {
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.mode-btn:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(99,102,241,0.1);
}
.mode-btn.active {
  background: rgba(99,102,241,0.18);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* Chat messages */
.chat-messages {
  padding: 16px;
  min-height: 240px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }

.message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.message-avatar {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.15);
  border-radius: 50%;
}

.message-bubble {
  max-width: 85%;
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.bot-message .message-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.bot-message .message-bubble em { color: var(--accent); font-style: normal; }

.user-message {
  flex-direction: row-reverse;
}
.user-message .message-bubble {
  background: var(--gradient);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Typing dots */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* Chat input */
.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--card-border);
}
.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 14px;
  transition: border-color var(--transition);
}
.chat-input-wrapper:focus-within { border-color: var(--primary); }

.chat-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  resize: none;
  line-height: 1.5;
  max-height: 120px;
}
.chat-input::placeholder { color: var(--muted-2); }

.send-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--gradient);
  border: none;
  border-radius: 9px;
  color: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.send-btn:hover { transform: scale(1.08); }

/* ========================================
   SECTION SHARED
   ======================================== */
section { padding: 96px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ========================================
   BENEFITS
   ======================================== */
.benefits {
  background: var(--bg-2);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.benefit-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.benefit-card h3 { margin-bottom: 10px; }
.benefit-card p { color: var(--muted); font-size: 0.92rem; }

/* ========================================
   HOW IT WORKS
   ======================================== */
.steps {
  display: flex;
  align-items: center;
  gap: 20px;
}

.step {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.step:hover { border-color: rgba(99,102,241,0.3); }

.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}
.step-content h3 { margin-bottom: 10px; }
.step-content p { color: var(--muted); font-size: 0.92rem; }

.step-arrow {
  font-size: 1.6rem;
  color: var(--muted-2);
  flex-shrink: 0;
}

/* ========================================
   FEATURES
   ======================================== */
.features { background: var(--bg-2); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover { border-color: rgba(99,102,241,0.25); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }

.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; }

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(99,102,241,0.35); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }

.faq-icon {
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  font-weight: 300;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
}
.faq-item.open .faq-answer { display: block; }
.faq-answer p { color: var(--muted); font-size: 0.93rem; }
.faq-answer a { color: var(--primary); text-decoration: underline; }

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section { padding: 80px 0; }
.cta-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
  border-radius: 50%;
}
.cta-card h2 { margin-bottom: 14px; }
.cta-card > p { color: var(--muted); margin-bottom: 36px; font-size: 1.05rem; }
.cta-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted-2); }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--card-border);
  padding: 48px 0 24px;
}
.footer-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand p { color: var(--muted-2); font-size: 0.9rem; margin-top: 8px; }
.logo-text { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }

.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-2);
}
.footer-bottom a { color: var(--primary); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-container { gap: 40px; }
}

@media (max-width: 860px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero { padding: 110px 0 80px; }
  .hero-text { text-align: center; }
  .hero-badge { margin: 0 auto 24px; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta-group { align-items: center; }
  .steps {
    flex-direction: column;
  }
  .step-arrow { transform: rotate(90deg); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 48px 24px; }
  .footer-container { flex-direction: column; gap: 24px; }
  .footer-links { gap: 16px; }
  .nav-cta { display: none; }
  section { padding: 72px 0; }
}
