:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --ink: #14162b;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 22, 43, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; }

p { margin: 0 0 16px; color: var(--muted); }

ul { padding: 0; margin: 0; list-style: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--primary); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(circle at 80% -10%, #eef2ff 0%, #ffffff 55%);
}

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

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.accent { color: var(--primary); }

.lead { font-size: 1.1rem; max-width: 480px; }

.hero-actions { display: flex; gap: 14px; margin: 24px 0 12px; flex-wrap: wrap; }

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

.hero-visual { display: flex; justify-content: center; }

.mock-window {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.mock-header {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }

.mock-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; }

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
}
.chat-bubble.left {
  align-self: flex-start;
  background: var(--bg-soft);
  border-bottom-left-radius: 4px;
}
.chat-bubble.right {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  background: var(--bg-soft);
  padding: 10px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  animation: blink 1.4s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* Logos */
.logos { padding: 40px 0; border-bottom: 1px solid var(--border); }
.logos-title { text-align: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.logos-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  font-weight: 700;
  color: #c7cbe0;
  letter-spacing: 0.05em;
}

/* Sections */
section { padding: 90px 0; }

.section-head { max-width: 620px; margin: 0 auto 50px; text-align: center; }
.eyebrow {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Features */
.features { background: var(--bg-soft); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* Stats */
.stats { background: var(--primary); padding: 56px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 24px;
}
.stat strong { display: block; font-size: 2rem; color: #fff; font-weight: 800; }
.stat span { color: #dbe0ff; font-size: 0.9rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: scale(1.02);
}
.price-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.1rem; }
.price { font-size: 2.2rem; font-weight: 800; margin: 6px 0; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-desc { font-size: 0.9rem; }
.price-card ul { margin: 8px 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-card li { font-size: 0.9rem; padding-left: 22px; position: relative; color: var(--ink); }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Testimonials */
.testimonials { background: var(--bg-soft); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin: 0;
}
.testimonial p { color: var(--ink); font-size: 1rem; }
.testimonial footer { font-size: 0.85rem; color: var(--muted); }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--primary); font-weight: 700; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 12px 0 0; font-size: 0.95rem; }

/* CTA */
.cta { background: var(--ink); text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-inner p { color: #b6b9d1; max-width: 480px; margin: 0 auto 28px; }
.cta-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.cta-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #33365a;
  background: #1e2044;
  color: #fff;
  font-size: 0.95rem;
}
.cta-form input::placeholder { color: #8b8ec2; }
.form-success { color: #86efac; margin-top: 14px; font-size: 0.9rem; }

/* Footer */
.site-footer { background: #0f1024; color: #a9acc9; padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #24264a;
}
.footer-grid .logo { color: #fff; margin-bottom: 10px; }
.footer-grid p { font-size: 0.9rem; }
.footer-grid h4 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; }
.footer-grid a { display: block; font-size: 0.9rem; margin-bottom: 10px; color: #a9acc9; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { padding: 20px 0 30px; font-size: 0.85rem; text-align: center; }

/* Chat widget */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.4);
  transition: transform 0.15s ease;
}
.chat-toggle:hover { transform: scale(1.06); }

.chat-panel {
  width: 320px;
  max-height: 420px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel-header {
  background: var(--primary);
  color: #fff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.chat-panel-header strong { display: block; }
.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  margin-right: 4px;
}
.chat-panel-header button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.chat-panel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  background: var(--bg-soft);
}

.chat-panel-footer {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 10px;
  gap: 8px;
}
.chat-panel-footer input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
}
.chat-panel-footer button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 38px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .features-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .site-header.open .nav-actions {
    display: flex;
    position: absolute;
    top: calc(72px + 190px);
    left: 0;
    right: 0;
    background: #fff;
    padding: 0 24px 20px;
    flex-direction: column;
  }
  .chat-panel { width: calc(100vw - 48px); }
}
