:root {
  --primary: #0B1F3A;
  --primary-hover: #143054;
  --accent: #00C2A8;
  --accent-hover: #00A690;
  --accent-alt: #F4B400;
  --bg-light: #F7F9FC;
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --border: #E2E8F0;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,.08);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: var(--space-4);
}

h1 { font-size: 3.052rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2.441rem; letter-spacing: -0.01em; }
h3 { font-size: 1.953rem; }
h4 { font-size: 1.563rem; }
h5 { font-size: 1.25rem; }

p { margin-bottom: var(--space-4); }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-7); }
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  background: var(--primary);
  color: var(--bg-white);
  padding: var(--space-4) 0;
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-link {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--bg-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-link svg { height: 28px; margin-right: 8px; }
.logo-seo { color: var(--accent); }

.nav-links {
  display: none;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  color: var(--bg-white);
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-ghost:hover {
  background: var(--bg-light);
}
.btn-ghost-white {
  background: transparent;
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.1);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--primary);
  padding: var(--space-5);
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-md);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: white; font-size: 1.1rem; }

/* Sections */
.section { padding: var(--space-9) 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--primary); color: var(--bg-white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark p { color: var(--bg-white); }
.section-dark .text-muted { color: #94A3B8; }

.text-center { text-align: center; }

/* Hero */
.hero {
  padding: var(--space-10) 0 var(--space-8);
  background: var(--bg-light);
  text-align: center;
}
.hero h1 {
  max-width: 900px;
  margin: 0 auto var(--space-4);
}
.hero .subhead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto var(--space-6);
}
.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-7);
}
@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; }
}

.trust-bar {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grids */
.grid-2 { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-3 { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }

/* Stat Strip */
.stat-strip {
  background: var(--primary);
  color: var(--bg-white);
  padding: var(--space-8) 0;
  text-align: center;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-alt);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: #CBD5E1;
}

/* Testimonials */
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stars { color: var(--accent-alt); margin-bottom: var(--space-3); }
.quote { font-size: 1.1rem; font-style: italic; margin-bottom: var(--space-4); }
.attribution { font-weight: 600; color: var(--primary); }

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-align: left;
  padding: var(--space-2) 0;
}
.faq-icon {
  transition: transform 0.3s;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-answer-inner {
  padding-top: var(--space-3);
  padding-bottom: var(--space-2);
  color: var(--text-muted);
}

/* Process Steps */
.process-step {
  display: flex;
  gap: var(--space-4);
}
.step-number {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--accent-alt);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}

/* CTA Banner */
.cta-banner {
  background: var(--primary);
  color: var(--bg-white);
  text-align: center;
  padding: var(--space-9) var(--space-5);
  border-radius: var(--radius-md);
  margin: var(--space-8) 0;
}
.cta-banner h2 { color: var(--bg-white); margin-bottom: var(--space-4); }
.cta-banner p { color: #CBD5E1; margin-bottom: var(--space-6); font-size: 1.25rem; }

/* Forms */
.form-group { margin-bottom: var(--space-4); }
.form-label { display: block; font-weight: 600; margin-bottom: var(--space-2); }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,194,168,0.2);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* Mobile Bottom CTA */
.mobile-bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.mobile-bottom-cta.visible { transform: translateY(0); }
@media (min-width: 768px) {
  .mobile-bottom-cta { display: none; }
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #CBD5E1;
  padding: var(--space-8) 0 var(--space-4);
}
.footer-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-8);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-title {
  color: var(--bg-white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a { color: #CBD5E1; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Blog */
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}
.category-pill {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.blog-meta {
  display: flex;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

/* Article */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}
.article-content h2 { margin-top: var(--space-8); margin-bottom: var(--space-4); }
.article-content h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); }
.article-content p { margin-bottom: var(--space-4); font-size: 1.1rem; color: var(--text-dark); }
.article-content ul { margin-bottom: var(--space-4); padding-left: var(--space-5); }
.article-content li { margin-bottom: var(--space-2); font-size: 1.1rem; }
.callout {
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  padding: var(--space-4);
  margin: var(--space-5) 0;
  font-weight: 500;
}

/* Article TOC */
.article-toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.toc-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.toc-list {
  list-style: decimal;
  padding-left: 24px;
  margin: 0;
}
.toc-list li { margin-bottom: 6px; }
.toc-link {
  color: var(--text-dark);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}
.toc-link:hover, .toc-link.active { color: var(--accent); }
