/* ============================================================
   RESET & BASE
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f8f6fd;
  color: #1a142b;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   NAVBAR (Glassmorphism)
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 11, 26, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108, 74, 255, 0.25);
  padding: 0.8rem 0;
}

.navbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-area a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(108, 74, 255, 0.3);
}

/* FIX #1: Added standard 'color' fallback before vendor prefix (line 74) */
.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 60%, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.company-name span {
  -webkit-text-fill-color: #a78bfa;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  font-weight: 500;
}

.nav-menu a {
  color: #d4cdf0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.25s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #6c4aff;
  transition: width 0.25s;
}

.nav-menu a:hover {
  color: #ffffff;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: #ffffff;
}

.nav-cta {
  background: linear-gradient(135deg, #6c4aff, #5437e0);
  padding: 0.5rem 1.4rem;
  border-radius: 60px;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(108, 74, 255, 0.3);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 74, 255, 0.5);
}

/* ============================================================
   BUTTONS & CARDS
   ============================================================ */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #6c4aff, #5437e0);
  color: white;
  font-weight: 600;
  padding: 0.8rem 2.2rem;
  border-radius: 60px;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(108, 74, 255, 0.25);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 74, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid #6c4aff;
  color: #6c4aff;
  box-shadow: none;
}

.btn-outline:hover {
  background: #6c4aff;
  color: white;
  box-shadow: 0 8px 30px rgba(108, 74, 255, 0.3);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(108, 74, 255, 0.08);
  border-color: rgba(108, 74, 255, 0.2);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: #6c4aff;
  font-size: 2.2rem;
}

/* ============================================================
   OPTIONAL BADGE
   ============================================================ */
.optional-badge {
  background: #e5deff;
  padding: 0.2rem 1.2rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3c2a7a;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 5rem 0 6rem;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(108, 74, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 80%, rgba(108, 74, 255, 0.04) 0%, transparent 50%);
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(135deg, #6c4aff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  color: #3a3250;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: radial-gradient(ellipse at 30% 20%, rgba(108, 74, 255, 0.06) 0%, transparent 60%);
}

.page-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero h1 span {
  color: #6c4aff;
}

.page-hero p {
  font-size: 1.2rem;
  color: #4a4260;
  max-width: 550px;
  margin: 0.5rem auto 0;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

section:last-of-type {
  border-bottom: none;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #1a142b;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #e6dfef;
  border-radius: 16px;
  font-size: 1rem;
  background: white;
  transition: 0.25s;
}

.form-control:focus {
  outline: none;
  border-color: #6c4aff;
  box-shadow: 0 0 0 4px rgba(108, 74, 255, 0.12);
}

.form-control.error {
  border-color: #e74c3c;
}

.error-msg {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

.error-msg.show {
  display: block;
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-card {
  background: white;
  border-radius: 32px;
  padding: 2.5rem 2rem;
  border: 2px solid #edeaf5;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(108, 74, 255, 0.08);
}

.pricing-card.popular {
  border-color: #6c4aff;
  background: #faf8ff;
}

.pricing-card.popular::before {
  content: '⭐ Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6c4aff, #5437e0);
  color: white;
  padding: 0.2rem 1.6rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(108, 74, 255, 0.3);
}

.price {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: #1a142b;
}

.price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: #6a6280;
  display: block;
  margin-top: 0.2rem;
}

.feature-list {
  list-style: none;
  text-align: left;
  margin: 1.8rem 0;
}

.feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.feature-list i {
  color: #6c4aff;
  width: 1.4rem;
}

/* ============================================================
   CONTACT & CONSULTATION
   ============================================================ */
.contact-info {
  background: white;
  padding: 2.5rem;
  border-radius: 28px;
  border: 1px solid #edeaf5;
}

.contact-info a {
  color: #6c4aff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

#consultation .card {
  margin-top: 0;
}

#consultation ul {
  list-style: none;
}

#consultation ul li {
  padding: 0.5rem 0;
}

#consultation ul li i {
  color: #6c4aff;
  margin-right: 0.6rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid #edeaf5;
  color: #6c4aff;
  font-size: 1.3rem;
  transition: all 0.3s;
}

.social-links a:hover {
  background: #6c4aff;
  color: white;
  border-color: #6c4aff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(108, 74, 255, 0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0f0b1a;
  color: #cdc4e6;
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

.footer a {
  color: #b7abdf;
  text-decoration: none;
  transition: 0.2s;
}

.footer a:hover {
  color: white;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  margin: 2rem 0;
}

.footer-links a {
  display: block;
  margin: 0.4rem 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #2a2340;
  color: #b7abdf;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.footer-social a:hover {
  color: white;
  border-color: #6c4aff;
  background: #6c4aff;
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid #2a2340;
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #0f0b1a;
  color: white;
  padding: 1rem 2rem;
  border-radius: 18px;
  border-left: 6px solid #6c4aff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  max-width: 420px;
  font-size: 0.95rem;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left-color: #2ecc71;
}

.toast.error {
  border-left-color: #e74c3c;
}

.toast i {
  margin-right: 0.75rem;
}

/* ============================================================
   CHATBOT
   ============================================================ */
.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-height: 560px;
  background: white;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  border: 1px solid #edeaf5;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

.chatbot-container.open {
  display: flex;
}

.chatbot-header {
  background: linear-gradient(135deg, #0f0b1a, #1a1430);
  color: white;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #6c4aff;
}

.chatbot-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chatbot-header h3 i {
  color: #6c4aff;
}

.chat-status {
  font-size: 0.7rem;
  color: #2ecc71;
  font-weight: 400;
}

.close-chat {
  cursor: pointer;
  font-size: 1.3rem;
  opacity: 0.6;
  transition: 0.2s;
}

.close-chat:hover {
  opacity: 1;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  background: #f8f6fc;
  min-height: 300px;
  max-height: 350px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 5px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #6c4aff;
  border-radius: 10px;
}

.chat-msg {
  margin-bottom: 0.8rem;
  max-width: 85%;
  padding: 0.7rem 1.2rem;
  border-radius: 20px;
  line-height: 1.4;
  font-size: 0.9rem;
  animation: fadeInMsg 0.3s ease;
}

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

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

.chat-msg.bot {
  background: white;
  border: 1px solid #edeaf5;
  border-bottom-left-radius: 4px;
  color: #1e1b2b;
}

.chat-msg.user {
  background: #6c4aff;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-msg .msg-time {
  font-size: 0.6rem;
  opacity: 0.6;
  display: block;
  margin-top: 0.2rem;
}

.chat-msg .quick-reply {
  display: inline-block;
  background: #f3f0fc;
  color: #6c4aff;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  margin: 0.2rem 0.2rem 0 0;
  cursor: pointer;
  border: 1px solid #edeaf5;
  transition: 0.2s;
}

.chat-msg .quick-reply:hover {
  background: #6c4aff;
  color: white;
  border-color: #6c4aff;
}

.typing-indicator {
  display: none;
  padding: 0.5rem 1.2rem;
  background: white;
  border-radius: 30px;
  border: 1px solid #edeaf5;
  width: fit-content;
  margin: 0 1.2rem 0.8rem;
}

.typing-indicator span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6c4aff;
  margin: 0 2px;
  -webkit-animation: typing 1.4s infinite both;
  animation: typing 1.4s infinite both;
}

/* FIX #2: Fixed animation timing (line 275) */
.typing-indicator span:nth-child(2) {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}

@-webkit-keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.chatbot-input-area {
  padding: 0.8rem 1.2rem;
  border-top: 1px solid #edeaf5;
  display: flex;
  gap: 0.6rem;
  background: white;
}

.chatbot-input-area input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 2px solid #e6dfef;
  border-radius: 40px;
  font-size: 0.9rem;
  outline: none;
  transition: 0.2s;
}

.chatbot-input-area input:focus {
  border-color: #6c4aff;
  box-shadow: 0 0 0 4px rgba(108, 74, 255, 0.08);
}

.chatbot-input-area button {
  background: linear-gradient(135deg, #6c4aff, #5437e0);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.chatbot-input-area button:hover {
  transform: scale(1.02);
}

.chat-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #6c4aff, #5437e0);
  color: white;
  border: none;
  border-radius: 60px;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(108, 74, 255, 0.4);
  transition: all 0.3s;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-toggle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(108, 74, 255, 0.5);
}

.notification-dot {
  background: #e74c3c;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  -webkit-animation: pulse 1.5s infinite;
  animation: pulse 1.5s infinite;
}

@-webkit-keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .page-hero h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 0.8rem;
  }
  .nav-menu {
    justify-content: center;
    gap: 0.8rem 1.2rem;
  }
  .nav-menu a {
    font-size: 0.85rem;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .page-hero h1 {
    font-size: 2.2rem;
  }
  .chatbot-container {
    width: calc(100% - 32px);
    right: 16px;
    bottom: 80px;
    max-height: 450px;
  }
  .chat-toggle-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    bottom: 16px;
    right: 16px;
  }
  .logo-img {
    height: 34px;
  }
  .company-name {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 1.2rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero {
    padding: 3rem 0 4rem;
  }
  .btn {
    padding: 0.7rem 1.6rem;
    font-size: 0.9rem;
  }
  .pricing-card {
    padding: 1.8rem 1.2rem;
  }
  .contact-info {
    padding: 1.5rem;
  }
}