/* Root variables */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --dark: #1e293b;
  --light: #f1f5f9;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --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;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}

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

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

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

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

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

.nav {
  display: flex;
  gap: 32px;
}

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

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

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

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

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 16px;
}

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

.mobile-menu a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 120px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  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;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

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

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

.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.cta-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  padding: 18px 36px;
  font-size: 1.1rem;
  animation: pulse 2s infinite;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

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

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

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

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

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

.feature-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

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

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* How It Works */
.how-it-works {
  background: white;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.step-card {
  text-align: center;
  padding: 30px;
}

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

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

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

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

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 4rem;
  color: var(--gray-light);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  margin-bottom: 24px;
  font-style: italic;
  color: var(--gray);
  position: relative;
  z-index: 1;
}

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

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

.author-name {
  font-weight: 600;
}

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

/* CTA Section */
.cta-section {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 100px 0;
}

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

.cta-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.95;
}

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

/* FAQ Section */
.faq-section {
  background: white;
}

.faq-list {
  max-width: 800px;
  margin: 60px auto 0;
}

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

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

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--gray);
  line-height: 1.7;
}

.faq-answer.active {
  max-height: 500px;
  padding-bottom: 24px;
}

/* Blog */
.blog-section {
  background: var(--light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

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

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

.blog-image {
  height: 220px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image svg {
  width: 80px;
  height: 80px;
  color: white;
  opacity: 0.7;
}

.blog-content {
  padding: 30px;
}

.blog-tag {
  display: inline-block;
  background: var(--gray-light);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

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

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

.blog-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 60px auto 0;
  background: white;
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  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 {
  min-height: 150px;
  resize: vertical;
}

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

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

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
}

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

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

.footer-col a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #334155;
  color: var(--gray-light);
  font-size: 0.9rem;
}

/* Page Header */
.page-header {
  background: var(--gradient);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

/* Content Sections */
.content-section {
  padding: 60px 0;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

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

.content-section ul {
  margin: 20px 0;
  padding-left: 24px;
}

.content-section li {
  margin-bottom: 12px;
  color: var(--gray);
}

/* Blog Article */
.blog-article {
  background: white;
}

.blog-article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  color: var(--gray);
  font-size: 0.9rem;
}

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

.back-link:hover {
  text-decoration: underline;
}

.article-content {
  line-height: 1.9;
  font-size: 1.1rem;
}

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

.article-content h3 {
  font-size: 1.4rem;
  margin: 30px 0 16px;
}

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

.article-content ul {
  margin: 20px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 12px;
}

.article-content strong {
  color: var(--dark);
}

/* Utility classes */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.w-100 { width: 100%; }
.narrow-container { max-width: 800px; margin: 0 auto; }
.info-box { background: var(--light); padding: 30px; border-radius: var(--radius); }
.info-box h3 { margin-bottom: 16px; }
.card { background: white; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.footer-col p { color: var(--gray-light); line-height: 1.6; }
.content-section a { color: var(--primary); }
.fs-1-2 { font-size: 1.2rem; }
.text-gray { color: var(--gray); }

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

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

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

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

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

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

  .cta-floating {
    position: static;
    margin: 30px auto;
    display: inline-block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

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

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

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

  section {
    padding: 60px 0;
  }
}
