:root {
  --primary-green: #43b649;
  --primary-black: #000000;
  --text-dark: #1a1a1a;
  --text-gray: #6b7280;
  --background-light: #fafafa;
  --white: #ffffff;
  --border-light: #e5e7eb;
  --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);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-green: #4ade80;
    --primary-black: #ffffff;
    --text-dark: #f9fafb;
    --text-gray: #9ca3af;
    --background-light: #111827;
    --white: #1f2937;
    --border-light: #374151;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.2);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  }
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

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

.header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.logo-link {
  display: block;
  color: #000000;
}

.logo {
  max-width: 300px;
  height: auto;
  width: 100%;
}

.hero {
  text-align: center;
  padding: 2rem 0 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-gray);
  line-height: 1.7;
  font-weight: 400;
}

.features {
  padding: 4rem 0;
  background-color: var(--white);
  border-radius: 1rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

.cta {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-green) 0%, #2d8b35 100%);
  border-radius: 1rem;
  margin: 3rem 0;
  color: var(--white);
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--white);
  color: var(--primary-green);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #2d8b35;
}

.button-icon {
  transition: transform 0.2s ease;
}

.cta-button:hover .button-icon {
  transform: translateX(4px);
}

.footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  margin-top: 2rem;
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-copyright {
  color: var(--text-gray);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.footer-subtitle {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .header {
    padding: 2rem 0 1rem;
  }
  
  .logo {
    max-width: 250px;
  }
  
  .hero {
    padding: 1.5rem 0 3rem;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .cta {
    padding: 3rem 1.5rem;
    margin: 2rem 0;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
  
  .cta p {
    font-size: 1.125rem;
  }
  
  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 200px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .cta h2 {
    font-size: 1.75rem;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
  }
}

/* Terms of Service Styles */
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.terms-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-black);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.privacy-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-style: italic;
}

.terms-section {
  background-color: var(--white);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
}

.terms-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-green);
  padding-bottom: 0.5rem;
}

.terms-section ul {
  list-style: none;
  padding: 0;
}

.terms-section li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.terms-section li:last-child {
  border-bottom: none;
}

.terms-section li::before {
  content: "•";
  color: var(--primary-green);
  font-weight: bold;
  margin-right: 0.75rem;
}

.terms-note {
  font-style: italic;
  color: var(--text-gray);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.terms-back {
  text-align: center;
  margin: 3rem 0;
}

.back-button {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-green);
  color: var(--white);
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.back-button:hover {
  background-color: #2d8b35;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 480px) {
  .footer-links a {
    display: block;
    margin: 0.5rem 0;
  }
}

/* About page specific styles */
.philosophy-text {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--primary-green);
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(67, 182, 73, 0.1) 0%, rgba(45, 139, 53, 0.1) 100%);
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-green);
}

.testimonial {
  background-color: var(--background-light);
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
  border-left: 3px solid var(--primary-green);
}

.testimonial p:first-child {
  margin-bottom: 0.5rem;
  font-style: italic;
  color: var(--text-dark);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-green);
  text-align: right;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-green) 0%, #2d8b35 100%);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  border-bottom: 2px solid var(--white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.cta-section .cta-button {
  background-color: var(--white);
  color: var(--primary-green);
}

@media (max-width: 768px) {
  .terms-title {
    font-size: 2rem;
  }
  
  .terms-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .terms-section h2 {
    font-size: 1.25rem;
  }
  
  .philosophy-text {
    font-size: 1rem;
    padding: 1rem;
  }
  
  .testimonial {
    padding: 1rem;
  }
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
  .cta {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  }
  
  .cta-section {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  }
  
  .cta h2,
  .cta-section h2 {
    color: #1f2937;
    border-bottom-color: #1f2937;
  }
  
  .cta p,
  .cta-section p {
    color: #374151;
  }
  
  .philosophy-text {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(4, 120, 87, 0.2) 100%);
    border-left-color: #4ade80;
  }
  
  .testimonial {
    background-color: #374151;
    border-left-color: #4ade80;
  }
  
  .terms-section li::before {
    color: #4ade80;
  }
  
  .back-button:hover {
    background-color: #047857;
  }
  
  .cta-button:hover {
    color: #047857;
  }
  
  .logo-link {
    color: #ffffff;
  }
}

/* 404 Error Page Styles */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 4rem 0;
}

.error-content {
  text-align: center;
  max-width: 500px;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.error-title {
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1rem;
  line-height: 1;
}

.error-subtitle {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.error-description {
  font-size: 1.125rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Responsive adjustments for error page */
@media (max-width: 768px) {
  .error-title {
    font-size: 4rem;
  }
  
  .error-subtitle {
    font-size: 1.5rem;
  }
  
  .error-description {
    font-size: 1rem;
  }
  
  .error-icon {
    font-size: 3rem;
  }
}