:root {
  /* Primary Color Palette - Based on #5D305C and #171738 */
  --primary-color: #5D305C;
  --primary-hover: #4A2649;
  --secondary-color: #171738;
  --secondary-hover: #0F0F25;

  /* Light Mode Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #faf9fb;
  --bg-accent: #f5f3f6;
  --bg-purple-light: #f3f0f3;
  --bg-navy-light: #f0f0f4;
  --bg-gradient-purple: linear-gradient(135deg, #5D305C 0%, #7A4A77 100%);
  --bg-gradient-navy: linear-gradient(135deg, #171738 0%, #2A2A50 100%);

  /* Text Colors */
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-light: #666666;
  --text-white: #ffffff;

  /* Border and Shadow */
  --border-color: #E8E1E7;
  --shadow-sm: 0 1px 2px 0 rgba(93, 48, 92, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(93, 48, 92, 0.1), 0 2px 4px -1px rgba(23, 23, 56, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(93, 48, 92, 0.1), 0 4px 6px -2px rgba(23, 23, 56, 0.05);

  /* Spacing and Layout */
  --container-max-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  /* Dark Mode Backgrounds - Purple Themed */
  --bg-primary: #2a1d29;
  --bg-secondary: #3d2b3c;
  --bg-accent: #4a3349;
  --bg-purple-light: #2e1d2d;
  --bg-navy-light: #261d2a;
  --bg-gradient-purple: #3d2b3c;
  --bg-gradient-navy: #2a1d29;

  /* Dark Mode Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-light: #b0b0b0;

  /* Dark Mode Borders and Shadows - Purple Tinted */
  --border-color: #5a4059;
  --shadow-sm: 0 1px 2px 0 rgba(42, 29, 41, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(42, 29, 41, 0.5), 0 2px 4px -1px rgba(42, 29, 41, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(42, 29, 41, 0.5), 0 4px 6px -2px rgba(42, 29, 41, 0.3);
}

/* Dark Mode Section Overrides */
[data-theme="dark"] .hero {
  background: var(--bg-secondary) !important;
}

[data-theme="dark"] .hero::before {
  background: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .features {
  background: var(--bg-primary) !important;
}

[data-theme="dark"] .features::before {
  background: rgba(0, 0, 0, 0.1) !important;
}

.controls-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-container h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.language-toggle {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.lang-btn.active,
.lang-btn:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--text-white);
}

/* Theme Buttons - Match Language Button Styling */
.theme-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 1rem;
}

.theme-btn.active,
.theme-btn:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--text-white);
}

/* Hero Section */
.hero {
  background: var(--bg-gradient-purple);
  padding: 4rem 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

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

.hero-content h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

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

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

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

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

/* Features Section */
.features {
  padding: 5rem 0;
  background: var(--bg-gradient-navy);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1;
}

.features .container {
  position: relative;
  z-index: 2;
}

.features h3 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background-color: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer */
footer {
  background: var(--bg-purple-light);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

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

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

  .features h3 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

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

  .hero {
    padding: 3rem 0;
  }

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

  .features {
    padding: 3rem 0;
  }
}