/* AI Bot Factory - Global Styles */

/* ==================== CSS Reset & Base ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1A1A1A;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================== CSS Variables ==================== */
:root {
  --primary-color: #6A5ACD;
  --accent-color: #4A90E2;
  --text-dark: #1A1A1A;
  --text-light: #FFFFFF;
  --bg-light-grey: #F3F4F6;
  --bg-white: #FFFFFF;
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  --border-radius: 8px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --max-width: 1200px;
  --whatsapp-green: #25D366;
}

/* ==================== Navigation ==================== */
.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #E5E7EB;
}

.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 3px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* ==================== Hero Sections ==================== */
.hero {
  background: linear-gradient(135deg, #6A5ACD 0%, #4A90E2 100%);
  color: var(--text-light);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.hero.full {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero.compact {
  padding: var(--spacing-lg) var(--spacing-md);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .subheading {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

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

/* ==================== Buttons ==================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
  min-width: 160px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  background-color: #5A4ABD;
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--text-light);
  box-shadow: var(--shadow-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.btn-whatsapp::before {
  content: '💬';
  font-size: 1.2rem;
}

/* ==================== Container & Sections ==================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #6B7280;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ==================== Card Grid ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
  border: 1px solid #E5E7EB;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: #4B5563;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.card .btn {
  width: 100%;
}

/* ==================== Two Column Layout ==================== */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

/* ==================== Demo Placeholder ==================== */
.demo-box {
  background-color: var(--bg-light-grey);
  border: 2px dashed #D1D5DB;
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.demo-box h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.demo-box p {
  color: #6B7280;
  font-size: 0.95rem;
}

.demo-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #9CA3AF;
  font-style: italic;
}

/* ==================== Chat Transcript ==================== */
.chat-transcript {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  margin: 2rem 0;
}

.chat-transcript h4 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.chat-message {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 80%;
}

.chat-message.user {
  background-color: #E0E7FF;
  color: var(--text-dark);
  margin-left: auto;
  text-align: right;
}

.chat-message.bot {
  background-color: var(--bg-light-grey);
  color: var(--text-dark);
}

.chat-message strong {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ==================== Bullet List ==================== */
.bullet-list {
  list-style: none;
  padding: 0;
}

.bullet-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  color: #374151;
  line-height: 1.7;
}

.bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ==================== Pricing Cards ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pricing-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-medium);
  border: 2px solid #E5E7EB;
  transition: all 0.3s ease;
  text-align: center;
}

.pricing-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(106, 90, 205, 0.15);
}

.pricing-card h3 {
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  text-align: left;
  margin: 1.5rem 0;
}

.pricing-card ul li {
  padding: 0.5rem 0;
  color: #4B5563;
  position: relative;
  padding-left: 1.5rem;
}

.pricing-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
}

.price-line {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1.5rem 0;
}

.price-note {
  font-size: 0.875rem;
  color: #9CA3AF;
  margin-bottom: 1.5rem;
}

.old-price {
  font-size: 0.95rem;
  color: #9CA3AF;
  text-decoration: line-through;
  margin: 1rem 0 0.5rem;
}

.new-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0.5rem 0 1.5rem;
}

/* ==================== How It Works Steps ==================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.step p {
  color: #6B7280;
  line-height: 1.7;
}

/* ==================== Call to Action Box ==================== */
.cta-box {
  background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
  border: 2px solid #D1D5DB;
}

.cta-box h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-box p {
  color: #4B5563;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ==================== Contact Section ==================== */
.contact-section {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--bg-light-grey);
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.contact-section h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.contact-section p {
  font-size: 1.1rem;
  color: #6B7280;
  margin-bottom: 2rem;
}

.contact-email {
  color: #6B7280;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.contact-email a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ==================== Footer ==================== */
.footer {
  background-color: var(--text-dark);
  color: #D1D5DB;
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}

.footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
  /* Mobile Navigation */
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow-medium);
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: 1rem 1.5rem;
    width: 100%;
  }

  .nav-link.active::after {
    display: none;
  }

  /* Hero */
  .hero h1 {
    font-size: 2rem;
  }

  .hero .subheading {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

  .section-title {
    font-size: 1.75rem;
  }

  /* Card Grid */
  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing Grid */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Two Column */
  .two-column {
    grid-template-columns: 1fr;
  }

  /* Chat Messages */
  .chat-message {
    max-width: 90%;
  }

  /* Spacing */
  .section {
    padding: var(--spacing-md) 0;
  }

  .hero.full {
    min-height: 500px;
    padding: var(--spacing-lg) var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0.875rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .subheading {
    font-size: 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .pricing-card,
  .card,
  .demo-box {
    padding: 1.5rem;
  }
}

/* ==================== Utility Classes ==================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
