:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #10b981;
  --dark: #1f2937;
  --light: #f9fafb;
  --gray: #6b7280;
  --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;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--dark);
}

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

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

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

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 80px 0;
}

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

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

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

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

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

.feature-card svg {
  width: 48px;
  height: 48px;
  fill: var(--primary);
  margin-bottom: 20px;
}

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

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

.cta-section {
  background: var(--primary);
  color: white;
  text-align: center;
  border-radius: var(--radius);
  padding: 60px 40px;
  margin: 60px 0;
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.cta-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 18px 35px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

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

/* Utility classes */
.d-flex { display: flex; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 30px; }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--gray); font-size: 0.95rem; }
.fw-bold { font-weight: 700; }
.fst-italic { font-style: italic; }

.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mt-60 { margin-top: 60px; }
.mt-80 { margin-top: 80px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.w-100 { width: 100%; }

/* Component: Step number (used in index) */
.step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

/* Component: Avatar */
.avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

/* Component: Background gradient light (for sections) */
.bg-gradient-light {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

/* Component: Tip box (light gradient with padding) */
.tip-box {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  padding: 25px;
  border-radius: var(--radius);
  margin: 30px 0;
}

/* Component: Important note (white with left border) */
.important-note {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  margin: 30px 0;
  border-left: 4px solid var(--primary);
}

/* Component: Highlight box (large gradient container) */
.highlight-box {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  padding: 50px;
  border-radius: var(--radius);
  margin-top: 80px;
}

/* Component: Step circle (used in how-it-works) */
.step-circle {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
}

/* Component: CTA button light variant (white background, primary text) */
.cta-btn--light {
  background: white;
  color: var(--primary);
}

/* Testimonial specific */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-quote {
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Page content links */
.page-content a {
  color: var(--primary);
  text-decoration: none;
}
.page-content a:hover {
  text-decoration: underline;
}

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

/* Divider with border */
.section-divider {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

/* CTA section variants */
.cta-section--mt-40 { margin-top: 40px; }
.cta-section--mt-60 { margin-top: 60px; }

/* Layout helpers */
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}
.steps-grid {
  display: grid;
  gap: 60px;
  margin-top: 50px;
}
.step-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: center;
}

/* CTA section gradient variant */
.cta-section--gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}



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

.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-card-content {
  padding: 25px;
}

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

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

.blog-meta {
  font-size: 0.9rem;
  color: var(--gray);
}

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

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: white;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  transition: transform 0.3s;
}

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

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

.faq-answer.active {
  padding: 0 25px 25px;
  max-height: 500px;
}

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

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

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

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

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 h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s;
}

footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 60px;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.page-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.page-content h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: var(--dark);
}

.page-content ul {
  margin: 20px 0 20px 25px;
}

.page-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

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

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

  nav ul.active {
    display: flex;
  }

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

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

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

  .cta-floating {
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    font-size: 1rem;
  }
}
