/* ============================================
   AI IMPLEMENTATION LANDING PAGE - STYLES
   ============================================ */

/* CSS Variables - Design System */
:root {
  /* Colors */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --secondary: #7C3AED;
  --success: #10B981;
  --warning: #F59E0B;
  --bg-white: #FFFFFF;
  --bg-alt: #F9FAFB;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --border-light: #E5E7EB;
  
  /* Typography */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --section-padding: 80px;
  --section-padding-mobile: 48px;
  --container-max: 1200px;
  --grid-gap: 32px;
  --grid-gap-mobile: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
}

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

h1 {
  font-size: 48px;
  font-weight: 800;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

/* Container & Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding) 0;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  padding: 16px 0;
}

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

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.btn-secondary:hover {
  background: var(--bg-alt);
}

.btn-large {
  padding: 20px 40px;
  font-size: 18px;
}

/* Hero Section */
#hero {
  text-align: center;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, white 100%);
}

.trust-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--success);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

#hero h1 {
  max-width: 900px;
  margin: 0 auto 24px;
}

#hero h2 {
  max-width: 800px;
  margin: 0 auto 24px;
  font-weight: 600;
  color: var(--text-secondary);
}

.supporting-copy {
  max-width: 700px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tertiary-link {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Credibility Strip */
#credibility {
  background: white;
  border-bottom: 1px solid var(--border-light);
}

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

.stat-card {
  text-align: center;
  padding: 24px;
}

.stat-card .icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.stat-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.stat-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Problem Section */
#problem {
  background: var(--bg-alt);
}

#problem .container {
  max-width: 800px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.pain-points {
  list-style: none;
  margin: 24px 0;
}

.pain-points li {
  padding: 12px 0;
  font-size: 18px;
}

.emphasis {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0;
  padding: 24px;
  background: white;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
}

.transition {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

/* Demo Showcase */
#demos {
  background: white;
}

#demos h2 {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 16px;
}

.subheadline {
  text-align: center;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 48px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  margin-bottom: 48px;
}

.demo-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
}

.demo-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--warning);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.demo-card h3 {
  margin-bottom: 8px;
}

.demo-card h4 {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.demo-preview {
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-alt);
  padding: 12px;
  border-radius: 6px;
  margin: 16px 0;
}

.demo-cta {
  width: 100%;
  margin-top: 16px;
}

.coming-soon {
  background: var(--text-secondary);
}

.coming-soon:hover {
  background: var(--text-primary);
}

.demo-footer-cta {
  text-align: center;
  padding: 48px 0 0;
  border-top: 1px solid var(--border-light);
}

.alternative {
  margin-top: 16px;
  color: var(--text-secondary);
}

/* Lead Magnet Section */
#lead-magnet {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

#lead-magnet .eyebrow {
  color: white;
  opacity: 0.9;
}

#lead-magnet h2 {
  color: white;
}

#lead-magnet .subheadline {
  color: rgba(255, 255, 255, 0.9);
}

#lead-magnet p {
  color: rgba(255, 255, 255, 0.9);
}

.benefits, .how-it-works {
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 8px;
  margin: 24px 0;
}

.benefits ul, .how-it-works ol {
  margin-left: 20px;
  margin-top: 12px;
}

.external-link {
  display: inline-block;
  padding: 16px 32px;
  background: white;
  color: var(--primary);
  font-weight: 700;
  border-radius: 8px;
  margin: 24px 0;
}

.external-link:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.proof-quote {
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 8px;
  font-style: italic;
  margin-top: 32px;
}

/* How It Works Section */
#how-it-works {
  background: var(--bg-alt);
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-bottom: 48px;
}

.path-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 32px;
  position: relative;
}

.path-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warning);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.path-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.coming-soon-label {
  color: var(--warning);
  font-size: 14px;
  font-weight: 600;
}

.path-features {
  list-style: none;
  margin: 24px 0;
}

.path-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.path-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.best-for, .pricing {
  margin: 16px 0 8px;
}

.path-cta {
  width: 100%;
  margin-top: 24px;
}

.decision-helper {
  text-align: center;
  padding: 32px;
  background: white;
  border-radius: 12px;
}

/* Differentiation Section */
#differentiation {
  background: white;
}

.comparison-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  margin-bottom: 48px;
}

.comparison-column {
  padding: 32px;
  border-radius: 12px;
}

.comparison-column.bad {
  background: #FEE2E2;
  border: 2px solid #EF4444;
}

.comparison-column.good {
  background: #D1FAE5;
  border: 2px solid var(--success);
}

.comparison-column ul {
  list-style: none;
}

.comparison-column li {
  padding: 12px 0;
  font-size: 16px;
}

.founder-proof {
  background: var(--bg-alt);
  padding: 48px;
  border-radius: 12px;
  text-align: center;
}

blockquote {
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-weight: 600;
  color: var(--text-secondary);
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
}

/* Case Studies Section */
#case-studies {
  background: var(--bg-alt);
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-bottom: 48px;
}

.case-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.status-badge.active {
  background: var(--success);
  color: white;
}

.industry {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.beta-cta {
  text-align: center;
  padding: 48px;
  background: white;
  border-radius: 12px;
}

/* FAQ Section */
#faq {
  background: white;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: var(--bg-alt);
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #E5E7EB;
}

.faq-answer {
  padding: 20px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Final CTA Section */
#final-cta {
  background: var(--bg-alt);
  text-align: center;
}

.final-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-bottom: 48px;
}

.cta-option {
  background: white;
  padding: 40px;
  border-radius: 12px;
  border: 2px solid var(--border-light);
}

.cta-option.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.cta-option h3 {
  margin-bottom: 16px;
}

.small {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 16px;
}

.trust-footer {
  padding: 32px;
  background: white;
  border-radius: 12px;
  color: var(--text-secondary);
}

/* Footer */
footer {
  background: var(--text-primary);
  color: white;
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  margin-bottom: 48px;
}

.footer-column h4 {
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 12px;
}

/* Sticky CTA Bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-bar .btn {
  padding: 12px 24px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-success {
  background: #D1FAE5;
  color: var(--success);
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
}

.form-error {
  background: #FEE2E2;
  color: #EF4444;
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
}

/* Exit Intent Popup */
.exit-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  max-width: 500px;
  width: 90%;
  display: none;
}

.exit-popup.active {
  display: block;
}

.exit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
}

.exit-overlay.active {
  display: block;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  .demo-grid,
  .paths-grid,
  .case-study-grid,
  .final-cta-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-table {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  body {
    font-size: 16px;
  }
  
  section {
    padding: var(--section-padding-mobile) 0;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .cta-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .sticky-bar {
    flex-direction: column;
    gap: 8px;
  }
  
  .sticky-bar .btn {
    width: 100%;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}
