/* =========================================
   LIGHT MODE AUTOMATION SAAS SYSTEM 
   Theme: ChatPion ZapDM Inspired
========================================= */

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

:root {
  /* Color Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-primary: #4f46e5;
  /* Electric Indigo */
  --accent-primary-hover: #4338ca;
  --accent-secondary: #0ea5e9;
  /* Vibrant Sky Blue */
  --accent-success: #10b981;
  /* Emerald Green for WooCommerce */

  --border-subtle: #e2e8f0;

  /* Drop Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.15);

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Base Body Styles */
body.light-saas {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

body.light-saas h1,
body.light-saas h2,
body.light-saas h3,
body.light-saas h4,
body.light-saas h5,
body.light-saas h6 {
  font-family: var(--font-family);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

body.light-saas p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* =========================================
   COMPONENTS
========================================= */

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn-primary-light {
  background-color: var(--accent-primary);
  color: #ffffff !important;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.btn-primary-light:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
  color: #ffffff !important;
}

.btn-success-light {
  background-color: var(--accent-success);
  color: #ffffff !important;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
  text-decoration: none !important;
}

.btn-success-light:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.23);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-outline-light:hover {
  background-color: var(--bg-tertiary);
  border-color: #cbd5e1;
}

.btn-outline-sm {
  background-color: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-decoration: none !important;
  display: inline-block;
  margin-top: 0.5rem;
}

.btn-outline-sm:hover {
  background-color: var(--bg-tertiary);
  border-color: #cbd5e1;
}

/* Custom Swiper Arrows */
.swiper-button-next,
.swiper-button-prev {
  background-color: var(--bg-primary) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  box-shadow: var(--shadow-md) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  box-shadow: var(--shadow-lg) !important;
  color: var(--accent-primary) !important;
  transform: translateY(-2px);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.25rem !important;
  font-weight: 800;
}

/* Inputs */
.light-input {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  font-family: var(--font-family);
  width: 100%;
}

.light-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Cards */
.light-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}

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

/* =========================================
   LAYOUT BLOCKS
========================================= */

/* Floating Navbar */
.nav-light {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-full);
  z-index: 1000;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

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

.nav-links-container a {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

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

/* Hero Section */
.hero-light {
  min-height: 100vh;
  padding: 10rem 0 3rem;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
}

.hero-light::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-pill {
  display: inline-block;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-image-wrapper {
  position: relative;
  margin-top: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image-wrapper img {
  width: 100%;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
  mix-blend-mode: darken; /* Removes white backgrounds to make standard images transparent */
}

/* Feature Layout */
.feature-section {
  padding: 120px 0;
  background-color: var(--bg-primary);
}

.feature-section.alt {
  background-color: var(--bg-secondary);
}

.feature-tag {
  color: var(--accent-primary);
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature-img {
  width: 100%;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.1));
  mix-blend-mode: darken;
  transition: transform 0.3s ease;
}

.feature-img:hover {
  transform: translateY(-10px);
}

/* CTA Footer Block */
.cta-massive {
  padding: 120px 0 60px;
  background: var(--bg-primary);
}

.cta-box {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid var(--border-subtle);
  border-radius: 2rem;
  padding: 6rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 1000px;
  margin: 0 auto 4rem;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* =========================================
   AUTHENTICATION SPLIT LAYOUT (LIGHT MODE)
========================================= */
.auth-split-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

.auth-split-visual {
  flex: 1;
  background: var(--bg-secondary);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border-subtle);
}

@media (min-width: 992px) {
  .auth-split-visual {
    display: flex;
  }
}

.auth-split-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 24px 24px;
}

.auth-split-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  max-width: 550px;
  margin: 0 auto;
  width: 100%;
}

.auth-brand {
  margin-bottom: 3rem;
}

.auth-badge {
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-primary);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-block;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Misc Utilities */
.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.w-100 {
  width: 100% !important;
}

/* =========================================
   MOBILE RESPONSIVENESS AND UTILS
========================================= */
@media (max-width: 991px) {
  .auth-split-form {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  /* Navbar logic */
  .nav-light {
    width: 95%;
    padding: 0.5rem 1rem;
    top: 10px;
  }
  
  .nav-links-container {
    display: none; /* Hide standard links on very small mobile for now, or implement a hamburger */
  }

  /* Hero Adjustments */
  .hero-light {
    padding: 8rem 1rem 3rem;
    min-height: auto; /* Fallback from 100vh on small devices */
  }

  .hero-title {
    font-size: 2.5rem; /* Drastically reduce from 4.5rem */
    margin-bottom: 1rem;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  .hero-image-wrapper {
    margin-top: 2rem;
  }

  /* Feature Sections */
  .feature-section {
    padding: 60px 1rem;
  }
  
  .feature-title {
    font-size: 2rem;
  }

  /* Pricing */
  .cta-massive {
    padding: 60px 1rem 30px;
  }
  
  .cta-box {
    padding: 3rem 1.5rem;
  }
  
  .cta-box h2 {
    font-size: 2rem !important;
  }
}