/* Reset and Base Styles */

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  /* Updated to use design system color tokens */
  color: oklch(0 0 0); /*oklch(0.3 0.08 200);*/
  background-color: oklch(1 0 0);
}

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

/* Updated color variables to match globals.css design system */
:root {
  /* Design system color tokens matching globals.css */
  --background: oklch(1 0 0);
  --foreground: oklch(0.3 0.08 200);
  --card: oklch(0.98 0.02 200);
  --card-foreground: oklch(0.3 0.08 200);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.3 0.08 200);
  --primary: oklch(0.3 0.08 200);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.72 0.19 65); /*oklch(0.65 0.15 35); */
  --secondary-foreground: oklch(1 0 0);
  --muted: oklch(0.96 0 0);
  --muted-foreground: oklch(0.45 0 0);
  --accent: oklch(0.72 0.19 65); /*oklch(0.65 0.15 35);*/
  --accent-foreground: oklch(1 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.9 0 0);
  --input: oklch(0.97 0 0);
  --ring: oklch(0.72 0.19 65 / 0.5); /* oklch(0.65 0.15 35 / 0.5);*/
  --error: oklch(0.6 0.16 30);
  --radius: 0.5rem;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.1 0.02 200);
    --foreground: oklch(0.98 0.02 200);
    --card: oklch(0.15 0.02 200);
    --card-foreground: oklch(0.98 0.02 200);
    --popover: oklch(0.1 0.02 200);
    --popover-foreground: oklch(0.98 0.02 200);
    --primary: oklch(0.98 0.02 200);
    --primary-foreground: oklch(0.1 0.02 200);
    --secondary: oklch(0.72 0.19 65); /*oklch(0.65 0.15 35);*/
    --secondary-foreground: oklch(1 0 0);
    --muted: oklch(0.2 0.02 200);
    --muted-foreground: oklch(0.7 0.02 200);
    --accent: oklch(0.72 0.19 65); /*oklch(0.65 0.15 35);*/
    --accent-foreground: oklch(1 0 0);
    --destructive: oklch(0.577 0.245 27.325);
    --destructive-foreground: oklch(1 0 0);
    --border: oklch(0.2 0.02 200);
    --input: oklch(0.2 0.02 200);
    --ring: oklch(0.72 0.19 65 / 0.5); /*oklch(0.65 0.15 35 / 0.5);*/
    --error: oklch(0.6 0.16 30);
  }

  body {
    color: var(--foreground);
    background-color: var(--background);
  }
}

/* Typography */
.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-error {
  color: var(--error);        
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Updated to use design system background with transparency */
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
/*
h1 { color: lightgreen }
h1 span { color: green }
*/
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  /* Updated to use design system foreground color */
  color: var(--foreground);
}

.logo-text-accent {
  color: var(--accent);
}

.logo-img {
	height: 2.8rem;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  /* Updated hover color to use design system */
  color: var(--foreground);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  /* Updated to use design system foreground color */
  background: var(--foreground);
  transition: all 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  /* Updated border radius to use design system radius */
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

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

.btn-primary:hover {
  /* Updated hover state to use color-mix for consistent darkening */
  background: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-secondary {
  /* Updated to use design system secondary colors */
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  /* Updated hover state */
  background: color-mix(in srgb, var(--secondary) 90%, black);
}

.btn-outline {
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  /* Updated to use design system muted colors */
  background: var(--muted);
  color: var(--foreground);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

/* Hero Section */
.hero {
  padding: 5rem 1rem;
  text-align: center;
  /* Updated gradient to use design system colors */
  background: linear-gradient(to bottom, var(--card), var(--background));
}

.hero-content {
  max-width: 4xl;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  /* Updated to use design system muted colors */
  background: var(--muted);
  color: var(--muted-foreground);
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.badge-icon {
  width: 0.75rem;
  height: 0.75rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-image {
  margin-top: 3rem;
}

.hero-image img {
  width: 100%;
  max-width: 1000px;
  /* Updated border radius to use design system */
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Features Section */
.features {
  padding: 5rem 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-footer {
  text-align: center;
  margin-top: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

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

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  /* Updated to use design system card colors */
  background: var(--card);
  border: 1px solid var(--border);
  /* Updated border radius to use design system */
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--muted-foreground);
}

/* Products Section */
.products {
  padding: 5rem 1rem;
  background: var(--card);
}

.products-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  /* Updated to use design system card colors */
  background: var(--card);
  border: 1px solid var(--border);
  /* Updated border radius to use design system */
  border-radius: var(--radius);
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.product-footer {
  margin-top: 1rem;
}

.product-price-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.product-badge {
  padding: 0.25rem 0.5rem;
  /* Updated border radius to use design system */
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.75rem;
  font-weight: 500;
}

.best-seller {
  /* Updated to use design system accent colors */
  background: var(--accent);
  color: var(--accent-foreground);
}

.popular {
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

.new {
  /* Updated to use design system muted colors */
  background: var(--muted);
  color: var(--muted-foreground);
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 1rem;
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: 1.5rem;
  /* Updated to use design system card colors */
  background: var(--card);
  border: 1px solid var(--border);
  /* Updated border radius to use design system */
  border-radius: var(--radius);
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.star {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.testimonial-text {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  /* Updated to use design system muted colors */
  background: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.author-name {
  font-weight: 600;
}

.author-title {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* CTA Section */
.cta {
  padding: 5rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
}

.cta-content {
  max-width: 4xl;
  margin: 0 auto;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.5rem;
  }
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Added FAQ accordion section styles */
/* FAQ Section */
.faq {
  padding: 5rem 1rem;
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: left;
  transition: background-color 0.2s;
}

.accordion-header:hover {
  background: var(--muted);
}

.accordion-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
}

.accordion-content p {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 5rem 1rem;
  background: var(--card);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: var(--foreground);
  font-size: 0.875rem;
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input);
  color: var(--foreground);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--ring);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  margin-top: 3rem;    
  padding: 3rem 1rem;
  border-top: 1px solid var(--border);
  /* Updated to use design system dark colors */
  /*
  background: color-mix(in srgb, var(--background) 10%, black);
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  */
}

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

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  /* Updated to use design system foreground */
  color: var(--foreground);
}

.footer-description {
  /* Updated to use design system muted foreground */
  color: var(--muted-foreground);
}

.footer-title {
  font-weight: 600;
  /* Updated to use design system foreground */
  color: var(--foreground);
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  /* Updated to use design system muted foreground */
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  /* Updated hover to use design system foreground */
  color: var(--foreground);
}

.footer-bottom {
  /* Updated border to use design system border color */
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  /* Updated to use design system muted foreground */
  color: var(--muted-foreground);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 1rem;
  }
}
