/* ==========================================================================
   SlideCraft AI - Main CSS
   Professional color palette with excellent readability
   ========================================================================== */

/* CSS Custom Properties (Variables) - Updated for hero text visibility */
:root {
  /* Primary Colors - High contrast blue theme */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Neutral Colors - Improved contrast */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --success-500: #10b981;
  --success-600: #059669;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --error-500: #ef4444;
  --error-600: #dc2626;

  /* Background Gradients */
  --hero-gradient: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
  --hero-overlay: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-xl {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-gradient {
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}


/* ==========================================================================
   Navigation
   ========================================================================== */

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  color: var(--primary-600);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.nav-links {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

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

/* Mobile Navigation */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-nav-menu {
  background: white;
  border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Cards and Components
   ========================================================================== */


.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--spacing-md);
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  display: block;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-xl);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: var(--spacing-xs);
}

.btn-primary {
  background: var(--primary-600);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: 1.125rem;
}

/* ==========================================================================
   Grid System
   ========================================================================== */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */

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

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

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

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: block;
  }
  
  .feature-card {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .container {
    padding: 0 var(--spacing-xs);
  }
  
  .feature-card {
    padding: var(--spacing-md);
  }
}

/* ==========================================================================
   Animation and Transitions
   ========================================================================== */

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

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


/* ==========================================================================
   Landing Page Specific Styles (moved from inline CSS)
   ========================================================================== */

/* Hero Section Overrides */
.hero-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(59, 130, 246, 0.95) 100%);
  position: relative;
  z-index: 2;
}

/* App Gradient Background (shared with app.html) */
.gradient-bg {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  min-height: 100vh;
  background-attachment: fixed;
}

.hero-title,
h1.hero-title,
.hero-title * {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.1 !important;
  text-shadow: 0 8px 16px rgba(0, 0, 0, 1), 0 4px 8px rgba(0, 0, 0, 1) !important;
  position: relative !important;
  z-index: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-subtitle,
p.hero-subtitle,
.hero-subtitle * {
  font-size: 1.5rem !important;
  color: #ffffff !important;
  max-width: 800px !important;
  margin: 0 auto 3rem !important;
  text-shadow: 0 8px 16px rgba(0, 0, 0, 1), 0 4px 8px rgba(0, 0, 0, 1) !important;
  position: relative !important;
  z-index: 100 !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Feature Cards Enhanced */
.feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

/* Testimonial Cards */
.testimonial-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
  padding: 2rem;
}

/* Stats Counter */
.stats-counter {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-600);
}

/* Waitlist Form */
.waitlist-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.floating-shapes .shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.floating-shapes .shape:nth-child(1) {
  top: 10%;
  left: 10%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.floating-shapes .shape:nth-child(2) {
  top: 20%;
  right: 10%;
  width: 60px;
  height: 60px;
  animation-delay: 2s;
}

.floating-shapes .shape:nth-child(3) {
  bottom: 30%;
  left: 20%;
  width: 40px;
  height: 40px;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Section Spacing */
.section-spacing {
  padding: 100px 0;
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Notification Banner */
.notification-banner {
  background: #1e40af;
  color: white;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

/* CTA Button Enhanced */
.cta-button {
  background: #3b82f6;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  font-weight: 600;
  display: inline-block;
  padding: 1rem 2rem;
  color: white;
  text-decoration: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Hero CTA Container */
.hero-cta-container {
  position: relative;
  z-index: 20;
  margin-bottom: 4rem;
}

/* Hero CTA Buttons */
#heroCtaBtn,
.hero-cta-container button {
  position: relative;
  z-index: 15;
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Social Proof */
.social-proof-logos {
  filter: grayscale(1);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.social-proof-logos:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Success Animation */
@keyframes checkmark {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-checkmark {
  animation: checkmark 0.6s ease-in-out;
}

/* Fade In Animation */
.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation Enhancements */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-menu {
  display: none;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 1rem 0;
}

/* ==========================================================================
   Enhanced Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  /* Container adjustments */
  .ds-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Navigation mobile */
  .nav-desktop {
    display: none !important;
  }
  
  .nav-mobile-toggle {
    display: block !important;
  }
  
  /* Hero section mobile */
  .hero-title {
    font-size: 2.2rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
    padding: 0 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    padding: 0 1rem;
    margin-bottom: 2rem !important;
  }
  
  /* Stats counter mobile */
  .stats-counter {
    font-size: 1.8rem !important;
  }
  
  /* Feature cards mobile */
  .feature-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem !important;
  }
  
  .feature-card h3 {
    font-size: 1.25rem !important;
  }
  
  .feature-card p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  
  /* Waitlist form mobile */
  .waitlist-form {
    padding: 1.5rem !important;
    margin: 0 1rem;
  }
  
  .waitlist-form h3 {
    font-size: 1.5rem !important;
  }
  
  .waitlist-form p {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Button mobile */
  .cta-button {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    margin-top: 1rem;
    text-align: center;
  }
  
  /* Testimonial mobile */
  .testimonial-card {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem;
  }
  
  .testimonial-card p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }
  
  /* Hide floating shapes on mobile */
  .floating-shapes {
    display: none;
  }
  
  /* Sections padding */
  section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Grid mobile */
  .grid-cols-2, .grid-cols-3, .ds-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile devices */
  .hero-title {
    font-size: 1.8rem !important;
    padding: 0 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    padding: 0 0.5rem;
  }
  
  .notification-banner {
    font-size: 0.85rem !important;
    padding: 0.5rem !important;
  }
  
  .ds-container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  .waitlist-form {
    margin: 0 0.5rem;
    padding: 1rem !important;
  }
  
  .feature-card {
    padding: 1rem !important;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .nav-mobile-toggle,
  .mobile-nav-menu {
    display: none;
  }
  
  .hero-gradient {
    background: var(--gray-100) !important;
    color: var(--gray-900) !important;
  }
  
  .hero-title,
  .hero-subtitle {
    color: #ffffff !important;
    text-shadow: 0 8px 16px rgba(0, 0, 0, 1), 0 4px 8px rgba(0, 0, 0, 1) !important;
  }
}