/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #4A7C6F;
  --primary-foreground: #ffffff;
  --secondary: #f5f0eb;
  --secondary-foreground: #1a1a1a;
  --background: #faf9f7;
  --foreground: #1a1a1a;
  --muted: #f0ebe5;
  --muted-foreground: #6b6b6b;
  --border: #e5e0da;
  --accent: #6B9AC4;
  --accent-foreground: #ffffff;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container-narrow {
  max-width: 800px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: #3d6a5e;
  text-decoration: none;
}

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

.btn-secondary:hover {
  background-color: var(--muted);
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--muted);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Section Labels */
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-description {
  color: var(--muted-foreground);
  max-width: 600px;
}

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

.section-header .section-description {
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--foreground);
}

.logo:hover {
  text-decoration: none;
}

.logo svg {
  color: var(--primary);
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--foreground);
  text-decoration: none;
}

.btn-header {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  
  .btn-header {
    display: inline-flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.3s, opacity 0.3s;
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s, opacity 0.3s;
}

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.mobile-menu-content {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  max-width: 80%;
  background-color: var(--card);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-header .logo-text {
  font-weight: 600;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--muted-foreground);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  border-radius: var(--radius);
}

.mobile-nav a:hover {
  background-color: var(--muted);
  text-decoration: none;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  order: 2;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 1rem 0;
  text-wrap: balance;
}

.hero-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image-wrapper {
  order: 1;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/3;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-image-wrapper {
    order: 2;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

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

/* Disclaimer */
.disclaimer-section {
  padding: 0 0 3rem;
}

.disclaimer-box {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: var(--radius);
}

.disclaimer-icon {
  flex-shrink: 0;
  color: #D97706;
}

.disclaimer-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: #92400E;
}

.disclaimer-text {
  font-size: 0.875rem;
  color: #92400E;
}

/* Article Section */
.article-section {
  padding: 4rem 0;
  background-color: var(--card);
}

.article-content {
  margin-top: 2rem;
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.article-note {
  padding: 1rem;
  background-color: var(--muted);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

/* Product Section */
.product-section {
  padding: 4rem 0;
}

.product-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.product-image {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 1;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

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

.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.product-features svg {
  color: var(--primary);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .product-title {
    font-size: 2rem;
  }
}

/* Benefits Section */
.benefits-section {
  padding: 4rem 0;
  background-color: var(--card);
}

.benefits-grid {
  display: grid;
  gap: 1.5rem;
}

.benefit-card {
  padding: 1.5rem;
  background-color: var(--background);
  border-radius: var(--radius);
  text-align: center;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--muted);
  border-radius: 50%;
  color: var(--primary);
  margin-bottom: 1rem;
}

.benefit-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

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

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

/* Usage Section */
.usage-section {
  padding: 4rem 0;
}

.usage-steps {
  margin-top: 2rem;
}

.usage-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  font-weight: 600;
  flex-shrink: 0;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

.usage-warning {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background-color: #FEE2E2;
  border: 1px solid #EF4444;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.usage-warning svg {
  flex-shrink: 0;
  color: #DC2626;
}

.usage-warning p {
  font-size: 0.875rem;
  color: #991B1B;
}

/* Tips Section */
.tips-section {
  padding: 4rem 0;
  background-color: var(--card);
}

.tips-grid {
  display: grid;
  gap: 1rem;
}

.tip-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--background);
  border-radius: var(--radius);
}

.tip-card svg {
  color: var(--primary);
  flex-shrink: 0;
}

.tip-card span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

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

/* Trust Section */
.trust-section {
  padding: 4rem 0;
}

.trust-grid {
  display: grid;
  gap: 1.5rem;
}

.trust-card {
  padding: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--muted);
  border-radius: 50%;
  color: var(--primary);
  margin-bottom: 1rem;
}

.trust-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

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

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background-color: var(--card);
}

.faq-list {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question span {
  flex: 1;
}

.faq-icon {
  transition: transform 0.2s;
  color: var(--muted-foreground);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding-bottom: 1rem;
}

.faq-answer p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

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

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

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
}

.contact-detail svg {
  color: var(--primary);
}

.contact-form-wrapper {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.form-checkbox input {
  margin-top: 0.25rem;
}

.form-checkbox label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.form-success svg {
  color: var(--primary);
  margin-bottom: 1rem;
}

.form-success h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .contact-title {
    font-size: 2rem;
  }
}

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

.footer-disclaimer {
  margin-bottom: 2rem;
}

.footer-disclaimer p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem;
  z-index: 150;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-text h3 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cookie-text p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .cookie-buttons {
    flex-shrink: 0;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.3s, opacity 0.3s;
}

.modal.open {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s, opacity 0.3s;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background-color: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--muted-foreground);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* Cookie Options */
.cookie-option {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cookie-option-header h4 {
  font-weight: 500;
}

.cookie-required {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.cookie-option p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Toggle */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border);
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
  background-color: var(--primary);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Legal Pages */
.legal-page {
  padding: 4rem 0;
}

.legal-content {
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.legal-content ul {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}
