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

:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --secondary: #10B981;
  --accent: #F59E0B;
  --dark: #111827;
  --gray-900: #1F2937;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

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

.logo img {
  width: 40px;
  height: 40px;
}

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

.nav-menu a {
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s;
  padding: 8px 0;
  position: relative;
}

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

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  padding: 8px;
}

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

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-500);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* CTA Button */
.cta-btn {
  background: var(--gradient);
  color: var(--white);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
  transition: all 0.3s;
  border: none;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}

.cta-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  padding: 16px 32px;
  font-size: 1.1rem;
  animation: pulse 2s infinite;
  border-radius: 50px;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25); }
  50% { box-shadow: 0 6px 30px rgba(59, 130, 246, 0.45); }
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

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

/* Stats */
.stats {
  background: var(--gradient);
  padding: 80px 0;
  color: var(--white);
}

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

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* How It Works */
.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  text-align: center;
  position: relative;
}

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

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.step p {
  color: var(--gray-500);
}

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

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

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

.blog-card-content {
  padding: 32px;
}

.blog-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--gray-500);
  margin-bottom: 20px;
}

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

/* Testimonials */
.testimonials {
  background: var(--gray-100);
}

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

.testimonial-text {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 24px;
  line-height: 1.8;
}

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

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
}

.author-name {
  font-weight: 600;
  color: var(--dark);
}

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

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

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

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

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
  color: var(--primary);
}

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

.faq-answer {
  padding: 0 24px 24px;
  color: var(--gray-500);
  line-height: 1.7;
  display: none;
}

.faq-answer.active {
  display: block;
}

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

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

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

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

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

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

/* Footer */
footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 80px 0 32px;
}

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

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

.footer-links h4 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 20px;
}

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

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

.footer-links a {
  color: var(--gray-300);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--gray-700);
  text-align: center;
  font-size: 0.875rem;
}

/* Content Typography */
.content-heading {
  font-size: 1.75rem;
  margin: 48px 0 24px;
  color: var(--dark);
}

.content-heading--large {
  font-size: 2rem;
  margin: 48px 0 24px;
  color: var(--dark);
}

.content-heading--xl {
  font-size: 2.5rem;
  margin: 48px 0 24px;
  color: var(--dark);
}

.content-paragraph {
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 20px;
}

.content-paragraph--intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 32px;
}

.content-list {
  list-style-position: inside;
  margin-bottom: 32px;
  color: var(--gray-700);
  line-height: 2;
}

.info-box {
  background: var(--gray-100);
  padding: 32px;
  border-radius: var(--radius);
  margin: 48px 0;
}

.info-box-sm {
  background: var(--gray-100);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.info-box h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.info-box p {
  color: var(--gray-700);
  line-height: 1.7;
}

.info-box--highlight {
  background: var(--gray-100);
  padding: 32px;
  border-radius: 12px;
  margin: 48px 0;
}

.info-box--highlight h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.info-box--highlight p {
  color: var(--gray-700);
  line-height: 1.7;
}

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

.article-content > p {
  font-size: 1.125rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 32px;
}

.article-content ul {
  list-style-position: inside;
  margin-bottom: 32px;
  color: var(--gray-700);
  line-height: 2;
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 48px 0 24px;
  color: var(--dark);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 32px 0 16px;
  color: var(--dark);
}

/* Section with background */
.section-gray {
  background: var(--gray-100);
  padding: 80px 0;
  text-align: center;
}

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

.footer .logo {
  color: white;
}

/* Feature Card Modifiers */
.feature-card--left {
  text-align: left;
  margin-bottom: 24px;
}

.feature-card--left h3 {
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-card--left p {
  color: var(--gray-700);
}

.feature-card--compact {
  text-align: left;
  margin-bottom: 16px;
}

.feature-card--compact h4 {
  color: var(--dark);
  margin-bottom: 8px;
  font-weight: 600;
}

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

/* Inline icons */
.icon-inline {
  display: inline;
  vertical-align: middle;
  width: 28px;
  height: 28px;
  margin-right: 8px;
}

/* CTA container */
.cta-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

/* Article navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-300);
}

.nav-group {
  display: flex;
  gap: 12px;
}

/* Utility Links */
.link-primary {
  color: var(--primary);
  text-decoration: underline;
}

.link-primary:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

.mx-auto {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
}

.w-full {
  width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .content-heading,
  .content-heading--large,
  .content-heading--xl {
    font-size: 1.5rem;
    margin: 32px 0 16px;
  }

  .article-content > p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .info-box,
  .info-box--highlight {
    padding: 24px;
    margin: 32px 0;
  }
}

@media (max-width: 480px) {
  .content-heading,
  .content-heading--large,
  .content-heading--xl {
    font-size: 1.25rem;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 16px;
}

.mobile-menu a {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--dark);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .btn {
    padding: 14px 24px;
    font-size: 1rem;
  }
}
