/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

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

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #1f2937;
}
.logo img {
  width: 40px;
  height: 40px;
}
.logo span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Navigation */
nav { display: flex; gap: 2rem; align-items: center; }
nav a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: #2563eb; }

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-menu-btn img { width: 24px; height: 24px; }
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: #4b5563;
  text-decoration: none;
  border-bottom: 1px solid #e5e7eb;
}
.mobile-menu a:last-child { border-bottom: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
  border-radius: 0 0 2rem 2rem;
  margin-bottom: 3rem;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
}

/* CTA Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
.cta-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Sections */
section { padding: 4rem 0; }
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #1f2937;
}
.section-subtitle {
  text-align: center;
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: #2563eb;
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}
.card p { color: #6b7280; line-height: 1.7; }

/* Features */
.features {
  background: white;
  border-radius: 2rem;
  padding: 4rem;
  margin: 0 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* How It Works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: center;
}
.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}
.step h3 { margin-bottom: 0.75rem; color: #1f2937; }
.step p { color: #6b7280; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.blog-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-content { padding: 1.5rem; }
.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1f2937;
}
.blog-content p { color: #6b7280; font-size: 0.95rem; margin-bottom: 1rem; }
.read-more {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* Article */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.125rem;
}
.article-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
}
.article-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: #1f2937;
}
.article-content p { margin-bottom: 1.5rem; color: #374151; }
.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: #374151;
}
.article-content li { margin-bottom: 0.5rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 2rem;
}
.back-link:hover { text-decoration: underline; }

/* Footer */
footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}
textarea { resize: vertical; min-height: 150px; }

/* FAQ */
.faq-item {
  background: white;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}
.faq-question.active img { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #4b5563;
  line-height: 1.7;
}
.faq-answer.active {
  padding: 0 1.25rem 1.25rem;
  max-height: 1000px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.125rem; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  nav.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .cta-floating {
    bottom: 1rem;
    right: 1rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
  .features { padding: 2rem 1.5rem; }
}

/* Utility classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.my-2 { margin-top: 2rem; margin-bottom: 2rem; }
.my-3 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.m-1 { margin: 1rem; }

/* Tips section (used in How It Works and Safety Tips) */
.tips-container {
  max-width: 800px;
  margin: 3rem auto;
  line-height: 1.8;
}
.tips-heading {
  text-align: center;
  margin-bottom: 2rem;
}
.tips-list {
  list-style: none;
  padding: 0;
}
.tips-item {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}
.tips-icon {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  flex-shrink: 0;
}
.text-green { color: #10b981; }
.text-blue { color: #2563eb; }

/* Footer paragraph */
.footer-col p {
  color: #9ca3af;
  line-height: 1.7;
}
