/* Root Variables - Light Theme */
:root {
  --bg-primary: #EBF5EF;
  --bg-secondary: #F8FDF9;
  --bg-tertiary: #D9EDE1;
  --text-primary: #05170A;
  --text-secondary: #2d5542;
  --accent-primary: #05C73B;
  --accent-hover: #048A31;
  --border-color: #C5DDCE;
  --shadow-sm: 0 2px 8px rgba(5, 118, 106, 0.08);
  --shadow-md: 0 4px 16px rgba(5, 118, 106, 0.12);
  --shadow-lg: 0 8px 32px rgba(5, 118, 106, 0.16);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #05170A;
  --bg-secondary: #1F3123;
  --bg-tertiary: #2d453a;
  --text-primary: #f5f5f7;
  --text-secondary: #a8b5b0;
  --accent-primary: #06EA46;
  --accent-hover: #05C73B;
  --border-color: #2d453a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-tertiary);
}

.theme-icon {
  display: none;
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

/* Show appropriate icon based on theme preference */
[data-theme-preference="light"] .theme-icon-light {
  display: block;
}

[data-theme-preference="dark"] .theme-icon-dark {
  display: block;
}

[data-theme-preference="system"] .theme-icon-system {
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}

/* Gradient fade at bottom of hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.logo {
  max-width: 150px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(var(--shadow-md));
  border-radius: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-icon {
  flex-shrink: 0;
}

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

[data-theme="dark"] .btn-primary {
  color: #000000;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-secondary:hover {
  background-color: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Features Section */
.features {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 8rem;
  padding: 3rem;
  background-color: var(--bg-secondary);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.feature:last-child {
  margin-bottom: 0;
}

.feature-reverse {
  flex-direction: column;
}

.feature-content {
  text-align: center;
  max-width: 800px;
}

.feature-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.feature-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature-content p:last-child {
  margin-bottom: 0;
}

.feature-image {
  width: 100%;
  max-width: 1000px;
}

.placeholder-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  min-height: 400px;
}

/* Video support for feature sections */
.feature-image video {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: block;
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

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

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-primary);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .theme-icon {
    width: 18px;
    height: 18px;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  .logo {
    max-width: 100px;
  }

  .hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .feature {
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem;
  }

  .feature-content h2 {
    font-size: 1.75rem;
  }

  .feature-content p {
    font-size: 1rem;
  }

  .placeholder-image {
    min-height: 250px;
  }

  .feature-image video {
    min-height: 250px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .feature {
    padding: 1.5rem;
  }
}
