:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --secondary: #3b82f6;
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --text: #111827;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --max-width: 1200px;
}

[data-theme="dark"] {
  --primary: #34d399;
  --primary-dark: #10b981;
  --secondary: #60a5fa;
  --bg: #111827;
  --bg-secondary: #1f2937;
  --text: #f9fafb;
  --text-secondary: #9ca3af;
  --border: #374151;
  --shadow: rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

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

nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.25rem;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.theme-toggle {
  background: var(--bg-secondary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  min-width: 40px;
  min-height: 40px;
}

.theme-toggle:hover {
  background: var(--primary);
  transform: scale(1.05);
}

.theme-toggle:hover svg {
  color: white;
}

.theme-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sun-icon, .moon-icon {
  display: none;
  color: var(--primary);
}

[data-theme="light"] .sun-icon,
[data-theme="dark"] .moon-icon {
  display: block;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.hero {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.newsletter-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--shadow);
}

.newsletter-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.newsletter-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
}

.checkbox-group a {
  color: var(--primary);
}

.primary-btn, .secondary-btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 0.5rem;
}

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

.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

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

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

.form-message {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
  font-weight: 500;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

.form-message.success {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  display: block;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.form-message.success::before {
  content: '\2713';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  margin-right: 0.75rem;
  font-weight: bold;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  display: block;
  border-left: 4px solid #dc2626;
}

.form-message.error::before {
  content: '\26a0';
  margin-right: 0.5rem;
  font-weight: bold;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-theme="dark"] .form-message.success {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.15);
}

.hero-images {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px var(--shadow);
  object-fit: contain;
}

.features {
  padding: 4rem 0;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

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

.feature-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius);
  transition: transform 0.2s;
}

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

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.feature-matrix {
  margin-top: 3rem;
}

.feature-matrix h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.feature-matrix table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-matrix th,
.feature-matrix td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.feature-matrix th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.feature-matrix tr:last-child td {
  border-bottom: none;
}

.screenshots {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.screenshots h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.screenshots-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px var(--shadow);
  transition: transform 0.2s;
}

.screenshots-grid img:hover {
  transform: scale(1.05);
}

.faq {
  padding: 4rem 0;
}

.faq h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.success-checkmark {
  display: inline-block;
  animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(-45deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

details {
  background: var(--bg-secondary);
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
}

summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: var(--primary);
}

details[open] summary::after {
  content: "-";
}

details p {
  margin-top: 1rem;
  color: var(--text-secondary);
}

footer {
  background: var(--bg-secondary);
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.legal-page {
  padding: 4rem 0;
  min-height: 80vh;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.last-updated {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.legal-page section {
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.legal-page h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
}

.legal-page ul {
  margin-left: 2rem;
  margin-top: 0.5rem;
}

.legal-page a {
  color: var(--primary);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.875rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-images {
    display: flex;
    margin-top: 2rem;
  }
  
  .hero-img {
    max-width: 300px;
  }
  
  footer .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}