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

:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --secondary: #10B981;
  --dark: #1F2937;
  --gray: #6B7280;
  --light: #F9FAFB;
  --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(--dark);
  background: var(--light);
  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 20px;
}

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

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

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

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

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  color: var(--gray);
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

nav a:hover {
  color: var(--primary);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}

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

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

/* Sections */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: var(--white);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  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: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-item svg {
  width: 24px;
  height: 24px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
}

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

.stat-label {
  color: var(--gray);
  font-size: 1rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-item h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-item p {
  color: var(--gray);
  line-height: 1.7;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.author-info span {
  color: var(--gray);
  font-size: 0.875rem;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

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

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

.blog-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image svg {
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.3);
}

.blog-content {
  padding: 24px;
}

.blog-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-content p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-more svg {
  width: 16px;
  height: 16px;
}

/* Article Page */
.article-header {
  background: var(--white);
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.article-header .container {
  max-width: 800px;
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-meta {
  color: var(--gray);
  font-size: 0.95rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.375rem;
  margin: 32px 0 16px;
  line-height: 1.3;
}

.article-content p {
  margin-bottom: 20px;
  color: var(--dark);
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
  color: var(--dark);
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 24px;
  text-decoration: none;
}

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

.back-link svg {
  width: 20px;
  height: 20px;
}

/* Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

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

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

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

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

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  background: var(--light);
}

.faq-question svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 0 24px 24px;
  max-height: 1000px;
}

.faq-answer p {
  color: var(--gray);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

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

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

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

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

/* CTA Buttons */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

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

.cta-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 18px 40px;
  font-size: 1.125rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  opacity: 0.95;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: #9CA3AF;
  margin-top: 16px;
  line-height: 1.7;
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--white);
}

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

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--white);
}

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

/* Responsive */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.125rem;
  }
  .mobile-menu-btn {
    display: block;
  }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  nav ul.active {
    display: flex;
  }
  nav li {
    border-bottom: 1px solid var(--border);
  }
  nav a {
    display: block;
    padding: 16px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cta-floating {
    position: static;
    text-align: center;
    margin-top: 32px;
  }
}

/* Article specific */
.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px;
}

.article-body h3 {
  font-size: 1.375rem;
  margin: 32px 0 16px;
}

.article-body ul, .article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-content .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 32px;
  text-decoration: none;
}

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

.article-content .back-link svg {
  width: 20px;
  height: 20px;
}

/* Blog listing */
.blog-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.blog-hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* Utility classes for replacing inline styles */
.bg-white {
  background: var(--white);
}

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

.mt-48 {
  margin-top: 48px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-12 {
  margin-bottom: 12px;
}

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

.pt-32 {
  padding-top: 32px;
}

.border-top {
  border-top: 1px solid var(--border);
}

/* Related articles section */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.related-articles p {
  margin-bottom: 24px;
  color: var(--gray);
}

.related-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
}

/* Related articles read-more link */
.related-articles .read-more {
  font-size: 1.125rem;
}

/* Footer logo color */
.footer-logo {
  color: white;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
}

/* CTA button variants */
.cta-btn-secondary {
  background: white;
  color: var(--primary);
}

.cta-btn-secondary:hover {
  background: var(--light);
  color: var(--primary-dark);
}

/* Width utilities */
.max-width-1200 {
  max-width: 1200px;
}
