/* Enlighten Landing Page Styles */
/* Color palette: Sage #A3B18A, Cream #EBE0B7, Gold #C5A572, Dark #1A1D1A */

/* === CSS Variables === */
:root {
  /* Colors */
  --sage: #A3B18A;
  --cream: #EBE0B7;
  --gold: #C5A572;
  --paper: #F5F1E8;
  --dark-bg: #1A1D1A;
  --dark-text: #2D3A2E;
  --soft-sage: #D4DED1;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-xxxl: 64px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-button: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-button: 0 4px 12px rgba(163, 177, 138, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--dark-text);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 600;
  color: var(--dark-text);
}

h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
  color: var(--dark-text);
  opacity: 0.9;
}

/* === Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* === Hero Section === */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--paper) 0%, var(--soft-sage) 100%);
  padding: var(--spacing-xxxl) var(--spacing-lg);
}

.logo {
  margin-bottom: var(--spacing-xl);
  animation: fadeIn 1s ease;
}

.logo img {
  filter: drop-shadow(0 4px 12px rgba(163, 177, 138, 0.3));
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: var(--spacing-lg);
  animation: fadeIn 1.2s ease;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--dark-text);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto var(--spacing-xxl);
  animation: fadeIn 1.4s ease;
}

/* === CTA Buttons === */
.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
  animation: fadeIn 1.6s ease;
}

.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-button);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  min-width: 180px;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: #8FA077;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(163, 177, 138, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--sage);
  color: white;
  transform: translateY(-2px);
}

/* === Hero Stats === */
.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1.8s ease;
}

.stat {
  text-align: center;
  padding: var(--spacing-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--dark-text);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === Section Styles === */
section {
  padding: var(--spacing-xxxl) 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xxl);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--dark-text);
  opacity: 0.8;
}

/* === Problem/Solution Section === */
.problem-solution {
  background-color: white;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.column {
  padding: var(--spacing-lg);
  background-color: var(--soft-sage);
  border-radius: var(--radius-lg);
}

.column h3 {
  color: var(--sage);
  margin-bottom: var(--spacing-md);
}

/* === Features Section === */
.features {
  background-color: var(--paper);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  background-color: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-align: center;
}

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

.feature-icon {
  margin-bottom: var(--spacing-md);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--sage);
  stroke-width: 1.5;
}

.feature-card h3 {
  color: var(--sage);
  margin-bottom: var(--spacing-sm);
}

.feature-card p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* === How It Works Section === */
.how-it-works {
  background-color: white;
}

/* === Screenshots Section === */
.screenshots {
  background-color: var(--paper);
  overflow: hidden;
  padding: var(--spacing-xxxl) 0;
}

/* Swiper carousel container */
.screenshot-carousel {
  width: 100%;
  padding: var(--spacing-xxxl) 0;
  overflow: visible;
}

.swiper-wrapper {
  display: flex;
  align-items: center;
}

.swiper-slide {
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.75);
  opacity: 0.5;
  filter: blur(2px);
}

/* Active (centered) slide */
.swiper-slide-active {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
  z-index: 10;
}

.swiper-slide img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.4s ease;
}

.swiper-slide-active img {
  box-shadow: 0 8px 32px rgba(163, 177, 138, 0.4);
}

.screenshot-caption {
  margin-top: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--dark-text);
  opacity: 0.8;
  font-weight: 600;
  transition: all 0.4s ease;
}

.swiper-slide-active .screenshot-caption {
  opacity: 1;
  transform: translateY(4px);
  font-size: 1rem;
}

/* Hide Swiper pagination and navigation for clean look */
.swiper-pagination,
.swiper-button-next,
.swiper-button-prev {
  display: none;
}

.scroll-hint {
  text-align: center;
  margin-top: var(--spacing-lg);
  font-size: 0.875rem;
  color: var(--sage);
  opacity: 0.6;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.step {
  text-align: center;
  padding: var(--spacing-lg);
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--sage);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.step h3 {
  color: var(--dark-text);
  margin-bottom: var(--spacing-sm);
}

.step p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* === Testimonials/Principles Section === */
.testimonials {
  background-color: var(--soft-sage);
}

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.principle {
  text-align: center;
  padding: var(--spacing-lg);
}

.principle h3 {
  color: var(--sage);
  margin-bottom: var(--spacing-sm);
}

.principle p {
  margin-bottom: 0;
}

/* === Download Section === */
.download {
  background: linear-gradient(135deg, var(--sage) 0%, #8FA077 100%);
  color: white;
  text-align: center;
  padding: var(--spacing-xxxl) var(--spacing-lg);
}

.download h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.download-subtitle {
  font-size: 1.25rem;
  color: white;
  opacity: 0.95;
  margin-bottom: var(--spacing-xxl);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.app-store-button {
  display: inline-block;
  transition: all var(--transition-base);
}

.app-store-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.coming-soon {
  color: white;
  opacity: 0.8;
  font-size: 1rem;
  margin-top: var(--spacing-md);
}

/* === Footer === */
.footer {
  background-color: var(--dark-bg);
  color: white;
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--sage);
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

.footer-description {
  color: white;
  opacity: 0.8;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: white;
  opacity: 0.8;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--sage);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: white;
  opacity: 0.6;
  font-size: 0.875rem;
  margin-bottom: 0;
}

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

/* === Responsive Design === */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .feature-grid,
  .steps,
  .principles {
    grid-template-columns: 1fr;
  }

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

  /* Screenshot carousel mobile adjustments */
  .swiper-slide {
    width: 240px;
  }

  .scroll-hint {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
.btn:focus {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
}

/* === Print Styles === */
@media print {
  .cta-buttons,
  .download,
  .footer {
    display: none;
  }
}
