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

:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --secondary: #10B981;
  --accent: #F59E0B;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --bg-light: #F9FAFB;
  --bg-white: #FFFFFF;
  --border: #E5E7EB;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

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 1.5rem;
}

/* Header */
header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.logo svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

nav a:hover {
  text-decoration: none;
  border-bottom-color: var(--primary);
}

/* Mobile navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    width: 100%;
  }

  nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  nav a:hover {
    background: var(--bg-light);
  }
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #7C3AED 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.95;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

/* CTA Buttons (for affiliate) */
.cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
  background: var(--accent);
  color: white;
}

.cta-btn:hover {
  background: #D97706;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  padding: 1.25rem 2rem;
  font-size: 1.25rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Features grid with icons */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.feature-item svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  color: var(--text-light);
  font-size: 1.125rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.blog-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.blog-card-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card-link:hover {
  text-decoration: underline;
}

/* Article */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-dark);
}

.article-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-light);
}

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

.article-content a {
  color: var(--primary);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  font-weight: 500;
}

.article-back:hover {
  color: var(--primary);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: white;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: #9CA3AF;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.875rem;
}

/* FAQ Accordion */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

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

.accordion-header svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: transform 0.3s;
}

.accordion-header.active svg {
  transform: rotate(180deg);
}

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

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

.accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Utility classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.ml-1 { margin-left: 1rem; }
.ml-2 { margin-left: 2rem; }
.mr-1 { margin-right: 1rem; }
.fst-italic { font-style: italic; }

/* Typography utilities */
.lead-text {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.lead-text-lg {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.lead {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.text-muted {
  color: var(--text-light);
  line-height: 1.7;
}

.location-text {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Testimonial section */
.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

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

.testimonial-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.testimonial-avatar-circle.primary { background: var(--primary); }
.testimonial-avatar-circle.secondary { background: var(--secondary); }
.testimonial-avatar-circle.accent { background: var(--accent); }

.testimonial-info {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* CTAs */
.btn-secondary-enhanced {
  background: var(--secondary);
  color: white;
}

.btn-secondary-enhanced:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

/* Flex utilities */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 1rem; }
.gap-1-5 { gap: 1.5rem; }
.gap-2 { gap: 2rem; }

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

/* Post metadata */
.post-meta {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Button variants */
.btn-secondary-enhanced {
  background: var(--secondary);
  color: white;
}

.btn-secondary-enhanced:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

/* Testimonial avatars */
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.testimonial-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
}

/* Steps grid */
.steps-grid {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

/* Layout utilities */
.article-container {
  max-width: 800px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 600px;
  margin: 0 auto;
}

/* Avatar badges */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
}

.avatar-primary {
  background: var(--primary);
}

.avatar-secondary {
  background: var(--secondary);
}

.avatar-accent {
  background: var(--accent);
}

.avatar-gradient-1 {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.avatar-gradient-2 {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.avatar-gradient-3 {
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.avatar-gradient-4 {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.avatar-gradient-5 {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Step numbers */
.step-number {
  background: var(--primary);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Button full width */
.btn-full-width {
  width: 100%;
}

/* Flex helpers */
.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.gap-1 {
  gap: 1rem;
}

.gap-1-5 {
  gap: 1.5rem;
}

/* Box styling */
.bg-light {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 3rem 0;
}

.bg-light h3 {
  margin-bottom: 1rem;
}

/* List styling inside articles */
.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-light);
}

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

.article-content a {
  color: var(--primary);
}

.article-content h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-dark);
}

.article-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

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

  .card-grid,
  .features-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .cta-floating {
    position: static;
    text-align: center;
    margin: 2rem auto;
    display: block;
    max-width: 300px;
  }
}
