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

:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --secondary: #10B981;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #1E293B;
  --text-light: #64748B;
  --border: #E2E8F0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

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

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

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

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

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-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
  color: var(--text);
}

/* Main content */
main {
  flex: 1;
  padding: 48px 0;
}

/* Sections */
section {
  margin-bottom: 64px;
}

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

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: 3rem;
  margin-bottom: 24px;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}

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

p {
  margin-bottom: 16px;
  color: var(--text-light);
}

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

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

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

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

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.cta-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  padding: 16px 32px;
  border-radius: 50px;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
  animation: pulse 2s infinite;
}

.btn-inverse {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-inverse:hover {
  background: var(--bg);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

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

/* Features */
.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 16px;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input, textarea, select {
  padding: 14px 16px;
  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(59, 130, 246, 0.1);
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: auto;
}

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

footer h4 {
  font-size: 1rem;
  margin-bottom: 16px;
}

footer a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

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

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

/* Blog list */
.blog-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

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

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

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

/* FAQ accordion */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  font-size: 1.5rem;
  color: var(--primary);
}

details[open] summary::after {
  content: '−';
}

details p {
  padding: 0 24px 24px;
  margin: 0;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

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

  nav ul {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  nav ul.show {
    display: flex;
  }

  .cta-floating {
    position: static;
    margin: 24px 0;
    text-align: center;
  }
}

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

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.ml-24 { margin-left: 24px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Text utilities */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-light); }
.text-white { color: white; }
.text-white-90 { color: rgba(255,255,255,0.9); }
.text-white-20 { color: rgba(255,255,255,0.2); }

/* Font size utilities */
.fs-875 { font-size: 0.875rem; }
.fs-1125 { font-size: 1.125rem; }
.fs-125 { font-size: 1.25rem; }
.fs-15 { font-size: 1.5rem; }
.fs-25 { font-size: 2.5rem; }
.fs-3 { font-size: 3rem; }
.fw-500 { font-weight: 500; }
.fw-700 { font-weight: 700; }
.fst-italic { font-style: italic; }

/* Max width utilities */
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.max-w-1000 { max-width: 1000px; }

/* Layout utilities */
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-48 { gap: 48px; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* Border & background */
.border-top { border-top: 1px solid var(--border); }
.pt-32 { padding-top: 32px; }
.pb-32 { padding-bottom: 32px; }

.gradient-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: white;
}

.card-promo {
  background: var(--surface);
  padding: 64px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Specific component helpers */
.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 16px;
}

.back-link {
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
}

.list-spaced {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--text-light);
}

.related-list {
  margin-left: 24px;
  margin-top: 8px;
}

.section-divider {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.decorative-icon {
  width: 300px;
  height: 300px;
  color: rgba(255,255,255,0.2);
}

.content-narrow {
  max-width: 700px;
  margin: 0 auto;
}

.content-narrow-lg {
  max-width: 800px;
  margin: 0 auto;
}

.form-width {
  max-width: 600px;
  margin: 0 auto;
}

.content-wide {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 32px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 24px;
  color: white;
}

/* Schema markup hidden */
[itemscope] { margin: 0; }
