/* Root variables */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #f97316;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --text: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --radius: 12px;
  --max-width: 1200px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: 1.25rem; max-width: 70ch; }

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 4rem 0; }
.bg-alt { background: var(--bg-alt); }

/* Header */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}
.logo svg { width: 40px; height: 40px; color: var(--primary); }

/* Navigation */
nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--primary); }

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}
.mobile-toggle svg { width: 28px; height: 28px; }
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { flex-direction: column; gap: 0.75rem; }
.mobile-menu button { width: 100%; text-align: left; padding: 0.75rem; }

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

/* Hero */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}
.hero h1 {
  max-width: 15ch;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 60ch;
  margin: 0 auto 2rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary, .cta-btn {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover, .cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* CTA Floating */
.cta-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1.25rem 2rem;
  font-size: 1.125rem;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 40px rgba(99, 102, 241, 0.5); }
  50% { box-shadow: 0 10px 60px rgba(99, 102, 241, 0.8); }
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-card svg {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title p {
  margin: 0 auto;
  color: var(--text-light);
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-content { padding: 1.5rem; }
.blog-card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.blog-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; }
.blog-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.blog-card a:hover { text-decoration: underline; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
input, textarea, select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
textarea { resize: vertical; min-height: 120px; }

/* Contact page */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.contact-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}
.contact-item svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-question {
  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.1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question svg { transition: transform 0.3s; width: 20px; height: 20px; color: var(--primary); }
.faq-question.active svg { transform: rotate(180deg); }
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer.open {
  padding: 0 1.5rem 1.5rem;
  max-height: 1000px;
}

/* Footer */
footer {
  background: var(--text);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.footer-col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.content-width { max-width: 800px; }
.w-700 { max-width: 700px; }
.w-600 { max-width: 600px; }
.w-900 { max-width: 900px; }
.step-circle { background: var(--primary); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; }
.step-title { margin-bottom: 0.25rem; }
.feature-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.w-800 { max-width: 800px; }
.w-700 { max-width: 700px; }
.w-600 { max-width: 600px; }
.w-900 { max-width: 900px; }
.w-1000 { max-width: 1000px; }
.mb-0 { margin-bottom: 0; }
.hero-intro { max-width: 600px; margin: 1rem auto 0; }
.text-muted { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-primary-semibold { color: var(--primary); font-weight: 600; }
.back-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.list-unstyled { list-style: none; margin-left: 0; padding-left: 0; }
.list-spaced { margin-left: 1.5rem; margin-bottom: 1.5rem; }
.related-box { background: var(--bg-alt); padding: 2rem; border-radius: var(--radius); margin-top: 2rem; }
.footer-text { color: #94a3b8; font-size: 0.95rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-025 { margin-bottom: 0.25rem; }
.mt-3 { margin-top: 3rem; }
.d-flex { display: flex; }
.gap-1 { gap: 1rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.flex-row-center { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.step-number { color: var(--primary); font-size: 3rem; margin-bottom: 0.5rem; }
.step-circle { background: var(--primary); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; }

/* SEO hidden text for word count */
.seo-content {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}