/* ZappCRM Landing Page Premium Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
  /* Colors - Light Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --primary-color: #4f46e5; /* Indigo */
  --primary-glow: rgba(79, 70, 229, 0.12);
  --accent-color: #10b981; /* WhatsApp Green */
  --accent-glow: rgba(16, 185, 129, 0.12);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-subtle: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(79, 70, 229, 0.08);
  --glass-border-focus: rgba(79, 70, 229, 0.3);
  --header-bg: rgba(248, 250, 252, 0.8);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(79, 70, 229, 0.05), 0 8px 10px -6px rgba(79, 70, 229, 0.05);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.15);
  
  /* Transitions & Curves */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

[data-theme="dark"] {
  /* Colors - Dark Theme */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --primary-color: #6366f1; /* Lighter Indigo for Dark Mode */
  --primary-glow: rgba(99, 102, 241, 0.25);
  --accent-color: #34d399; /* Lighter WhatsApp Green */
  --accent-glow: rgba(52, 211, 153, 0.25);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-subtle: #1f2937;
  --glass-bg: rgba(17, 24, 39, 0.6);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-focus: rgba(99, 102, 241, 0.4);
  --header-bg: rgba(11, 15, 25, 0.8);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Custom Components & Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #6366f1 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  opacity: 0.95;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--text-light);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-glow);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  transition: background 0.3s, border-color 0.3s;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

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

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

/* Language and Theme Switchers */
.theme-toggle-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-main);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--border-subtle);
}

.lang-select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lang-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px;
  background: radial-gradient(circle at 10% 20%, var(--primary-glow) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, var(--accent-glow) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Interactive Kanban Simulator */
.simulator-wrapper {
  width: 100%;
}

.simulator-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 24px;
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.sim-header h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.sim-badge-live {
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  animation: pulse 1.5s infinite;
}

.sim-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sim-pill {
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sim-pill.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.sim-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: rgba(0, 0, 0, 0.02);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
}

.sim-column {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 12px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.sim-column-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.sim-lead-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: grab;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-lead-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.sim-lead-header {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.sim-lead-meta {
  font-size: 11px;
  color: var(--text-light);
}

.sim-note-box {
  margin-top: 20px;
  background: var(--primary-glow);
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
}

.sim-note-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.sim-note-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* Features Section */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 38px;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-glow);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* How It Works Section */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.how-card {
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
}

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

.how-step-num {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-glow);
}

.how-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.how-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Pricing Section */
.pricing-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.pricing-toggle-container .toggle-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
}

.pricing-toggle-container .toggle-label.active {
  color: var(--primary-color);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-subtle);
  transition: .3s;
  border: 1px solid var(--border-subtle);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  box-shadow: var(--shadow-sm);
}

input:checked + .slider {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.discount-badge {
  background: var(--accent-color);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-slow);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card.pro {
  background: var(--bg-secondary);
  border: 2px solid var(--primary-color);
  transform: scale(1.03);
  box-shadow: var(--shadow-glow);
}

.pricing-card.pro:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-header .plan-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.price {
  font-size: 48px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-main);
}

.price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-light);
  text-decoration: line-through;
}

.pricing-features li.disabled svg {
  color: var(--text-light);
}

/* Footer Section */
.footer {
  background: #0b0f19;
  color: #94a3b8;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  max-width: 320px;
}

.footer-links-col {
  display: flex;
  gap: 40px;
  justify-content: flex-end;
}

.footer-links-col a {
  font-size: 14px;
  color: #94a3b8;
}

.footer-links-col a:hover {
  color: white;
}

.copyright {
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  text-align: center;
}

/* Scroll Animation Styles */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
  0% { filter: drop-shadow(0 0 2px var(--primary-glow)); }
  50% { filter: drop-shadow(0 0 10px var(--primary-color)); }
  100% { filter: drop-shadow(0 0 2px var(--primary-glow)); }
}

/* FAQ Accordion */
.faq-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary-color);
}

.faq-question {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 {
  font-size: 16px;
  color: var(--text-main);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.faq-icon {
  font-size: 20px;
  color: var(--text-light);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  padding: 0 24px 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* limits auto expand */
}

/* Responsive Rules */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 40px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-links-col {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 38px;
  }
  .pricing-card.pro {
    transform: none;
  }
  .pricing-card.pro:hover {
    transform: translateY(-4px);
  }
  .sim-board {
    grid-template-columns: 1fr;
  }
}
