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

:root {
  --purple: #534AB7;
  --purple-light: #EEEDFE;
  --purple-dark: #3C3489;
  --teal: #0F6E56;
  --teal-light: #E1F5EE;
  --amber: #854F0B;
  --amber-light: #FAEEDA;
  --coral: #993C1D;
  --coral-light: #FAECE7;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: rgba(0,0,0,0.1);
  --bg: #ffffff;
  --bg2: #f8f7fc;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--purple);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.15s;
}
.btn-nav:hover { background: var(--purple-dark); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  color: var(--text-muted);
  padding: 12px 24px;
  font-size: 15px;
  border-radius: 10px;
  border: 0.5px solid var(--border);
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--bg2); color: var(--text); }

.btn-outline {
  display: block;
  text-align: center;
  border: 0.5px solid var(--border);
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
  margin-top: auto;
}
.btn-outline:hover { background: var(--bg2); }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 80px 48px 72px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text);
}

.highlight { color: var(--purple); }

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 20px 32px;
  background: var(--bg2);
  border-radius: 14px;
  border: 0.5px solid var(--border);
}

.stat { text-align: center; }
.stat strong { display: block; font-size: 22px; font-weight: 700; color: var(--purple); }
.stat span { font-size: 12px; color: var(--text-muted); }
.stat-divider { width: 0.5px; height: 36px; background: var(--border); }

/* ===== SECTION SHARED ===== */
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: 10px;
}

section h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

/* ===== HOW IT WORKS ===== */
.how {
  padding: 72px 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

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

.step {
  flex: 1;
  max-width: 220px;
  padding: 24px;
  background: var(--bg2);
  border-radius: 14px;
  border: 0.5px solid var(--border);
  text-align: center;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.step-arrow {
  font-size: 22px;
  color: var(--border);
  margin-top: 40px;
  flex-shrink: 0;
}

/* ===== FEATURES ===== */
.features {
  padding: 72px 48px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

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

.feature-card {
  padding: 24px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 20px rgba(83,74,183,0.08); }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.feature-icon.purple { background: var(--purple-light); }
.feature-icon.teal { background: var(--teal-light); }
.feature-icon.amber { background: var(--amber-light); }
.feature-icon.coral { background: var(--coral-light); }

.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== PRICING ===== */
.pricing {
  padding: 72px 48px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg2);
}

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

.price-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured { border: 2px solid var(--purple); }

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

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

.price-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.price-amount span { font-size: 14px; font-weight: 400; color: var(--text-muted); }

.price-card ul {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}
.price-card ul li {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 0.5px solid var(--border);
  color: var(--text);
}
.price-card ul li::before { content: '✓ '; color: var(--teal); font-weight: 600; }
.price-card ul li.disabled { color: var(--text-muted); }
.price-card ul li.disabled::before { content: '— '; color: var(--border); }

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 80px 48px;
  background: var(--purple);
}
.cta h2 { font-size: 32px; color: #fff; margin-bottom: 12px; }
.cta p { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 32px; }
.cta .btn-primary { background: #fff; color: var(--purple); }
.cta .btn-primary:hover { background: var(--purple-light); }

/* ===== FOOTER ===== */
.footer {
  padding: 28px 48px;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-logo { font-size: 16px; font-weight: 700; color: var(--text); }
.footer-logo span { color: var(--purple); }

.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 16px 20px; }
  .nav-links a:not(.btn-nav) { display: none; }
  .hero { padding: 48px 20px; }
  .hero h1 { font-size: 32px; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 60px; height: 0.5px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
  .how, .features, .pricing { padding: 48px 20px; }
}


/* ===== REVIEWS SECTION ===== */
.reviews { padding: 72px 48px; background: var(--bg2); }
.reviews-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.reviews-inner h2 { margin-bottom: 40px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 52px;
  text-align: left;
}

.review-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.review-stars { color: #F5A623; font-size: 17px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-size: 13px; color: var(--text); line-height: 1.75; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; border-top: 0.5px solid var(--border); padding-top: 12px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.review-name { font-size: 13px; font-weight: 600; color: var(--text); }
.review-role { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.reviews-empty { grid-column: 1/-1; text-align: center; padding: 36px; color: var(--text-muted); font-size: 14px; }

/* Review submit box */
.review-submit-box {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
}

.review-submit-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.review-submit-icon { font-size: 28px; }
.review-submit-title { font-size: 16px; font-weight: 600; color: var(--text); }
.review-submit-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.review-fields { display: flex; flex-direction: column; gap: 10px; }
.review-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.rev-input, .rev-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
}
.rev-input:focus, .rev-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(83,74,183,0.08);
  background: #fff;
}
.rev-textarea { resize: vertical; line-height: 1.6; }

.rev-star-row { display: flex; align-items: center; gap: 10px; }
.rev-star-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.rev-stars { display: flex; gap: 3px; }
.rev-star { font-size: 26px; cursor: pointer; color: #ddd; transition: color 0.1s; user-select: none; }
.rev-star:hover { color: #F5A623; }

@media (max-width: 768px) {
  .reviews { padding: 48px 20px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-fields-row { grid-template-columns: 1fr; }
  .review-submit-box { padding: 22px 18px; }
}

/* ===== CHATBOT ===== */
#chatbot-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }

#chat-bubble {
  width: 54px; height: 54px; background: #534AB7; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 22px; box-shadow: 0 4px 16px rgba(83,74,183,0.4);
  transition: transform 0.2s; position: relative;
}
#chat-bubble:hover { transform: scale(1.08); }

.chat-notif {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px; background: #E24B4A; border-radius: 50%;
  font-size: 10px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

#chat-box {
  position: absolute; bottom: 64px; right: 0;
  width: 320px; height: 440px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
  overflow: hidden; border: 0.5px solid rgba(0,0,0,0.08);
}

.chat-header {
  background: #534AB7; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-left { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.chat-name { font-size: 13px; font-weight: 600; color: #fff; }
.chat-status { font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 1px; }
.chat-close { background: transparent; border: none; color: rgba(255,255,255,0.8); font-size: 16px; cursor: pointer; padding: 4px; line-height: 1; }
.chat-close:hover { color: #fff; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
  background: #f8f7fc;
}

.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.bot { justify-content: flex-start; }

.chat-bubble-msg {
  max-width: 78%; padding: 9px 13px;
  border-radius: 12px; font-size: 13px; line-height: 1.5;
}
.chat-msg.user .chat-bubble-msg { background: #534AB7; color: #fff; border-radius: 12px 12px 2px 12px; }
.chat-msg.bot .chat-bubble-msg { background: #fff; color: #1a1a1a; border: 0.5px solid rgba(0,0,0,0.08); border-radius: 12px 12px 12px 2px; }

.chat-typing { display: flex; align-items: center; gap: 4px; padding: 12px 16px !important; }
.chat-typing span { width: 7px; height: 7px; background: #aaa; border-radius: 50%; animation: bounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px)} }

.chat-input-area {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-top: 0.5px solid rgba(0,0,0,0.08);
  background: #fff; flex-shrink: 0;
}
#chat-input {
  flex: 1; border: 0.5px solid rgba(0,0,0,0.12); border-radius: 20px;
  padding: 9px 14px; font-size: 13px; font-family: inherit; outline: none;
  transition: border-color 0.15s;
}
#chat-input:focus { border-color: #534AB7; }
.chat-send {
  width: 34px; height: 34px; background: #534AB7; color: #fff;
  border: none; border-radius: 50%; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s; flex-shrink: 0;
}
.chat-send:hover { background: #3C3489; }
