:root {
  --brand-primary: #10a37f;
  --brand-accent: #0d8c6d;
  --brand-light: #eef9f5;
  --brand-dark: #1a1a2e;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  background: var(--bg-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-accent); }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-lg); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--text-primary); }
.logo img { width: 36px; height: 36px; border-radius: 8px; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: .925rem; font-weight: 500; color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
}
.main-nav > li > a:hover { background: var(--brand-light); color: var(--brand-primary); }
.nav-arrow { font-size: .7em; transition: transform var(--transition); }
.main-nav > li:hover .nav-arrow { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 580px; padding: 24px;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}
.main-nav > li:hover .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.mega-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mega-menu-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); margin-bottom: 10px; }
.mega-menu-col a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text-primary);
}
.mega-menu-col a:hover { background: var(--brand-light); color: var(--brand-primary); }

.header-cta {
  display: inline-flex; align-items: center; padding: 10px 22px;
  background: var(--brand-primary); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
.header-cta:hover { background: var(--brand-accent); color: #fff; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; width: 100%; height: calc(100vh - 72px);
  background: var(--bg-white); z-index: 999; overflow-y: auto; padding: 24px;
}
.mobile-nav.active { display: block; }
.mobile-nav a {
  display: block; padding: 14px 0; font-size: 1.05rem; color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--brand-primary); }
.mobile-nav-section { margin-bottom: 16px; }
.mobile-nav-section h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); margin-bottom: 4px; }

/* ── Hero ── */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--brand-light) 0%, #fff 50%, #f0f4ff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; color: var(--text-primary); }
.hero h1 span { color: var(--brand-primary); }
.hero p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img img { width: 100%; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
}
.btn-primary { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.btn-primary:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
.btn-white { background: #fff; color: var(--brand-primary); border-color: var(--border); }
.btn-white:hover { border-color: var(--brand-primary); }
.btn-outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: #fff; }
.btn-accent { background: var(--brand-accent); color: #fff; border-color: var(--brand-accent); }
.btn-accent:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-light { background: var(--bg-gray); }
.section-accent { background: var(--brand-light); }
.section-dark { background: var(--brand-dark); color: #fff; }
.section-dark .text-secondary { color: #cbd5e1; }
.brand-banner { background: var(--brand-primary); color: #fff; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-header h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; color: var(--text-secondary); }
.section-dark .section-header p { color: #cbd5e1; }

/* ── Cards ── */
.card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-secondary); font-size: .95rem; }
.card-dark {
  background: var(--brand-dark); border-color: rgba(255,255,255,.08); color: #fff;
}
.card-dark p { color: #cbd5e1; }
.card-dark:hover { border-color: var(--brand-primary); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--brand-light); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.card-dark .card-icon { background: rgba(16,163,127,.15); }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Stats / Counter ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.stat-item p { font-size: .95rem; opacity: .85; }
.brand-banner .stat-item h3 { color: #fff; }

/* ── Image-Text Alternating ── */
.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 48px 0; }
.feature-block:nth-child(even) .feature-media { order: -1; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-content h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 14px; }
.feature-content p { color: var(--text-secondary); margin-bottom: 14px; }

/* ── Logo Cloud / Trust ── */
.trust-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap; padding: 40px 0;
}
.trust-logos img { height: 44px; opacity: .5; filter: grayscale(1); transition: all var(--transition); }
.trust-logos img:hover { opacity: 1; filter: grayscale(0); }

/* ── Comparison Table ── */
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.comparison-table th {
  background: var(--brand-primary); color: #fff;
  padding: 14px 18px; text-align: left; font-weight: 600; font-size: .95rem;
}
.comparison-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: .95rem; }
.comparison-table tr:nth-child(even) td { background: var(--bg-gray); }
.comparison-table tr:hover td { background: var(--brand-light); }

/* ── Data Table ── */
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.data-table th {
  background: var(--brand-primary); color: #fff;
  padding: 14px 18px; text-align: left; font-weight: 600; font-size: .9rem;
}
.data-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.data-table tr:nth-child(even) td { background: var(--bg-gray); }

/* ── AI Summary ── */
.ai-chunk {
  border-left: 4px solid var(--brand-primary);
  background: var(--brand-light);
  padding: 24px 28px; margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.ai-chunk h3 { font-size: 1rem; font-weight: 700; color: var(--brand-primary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.ai-chunk p { font-size: .95rem; color: var(--text-primary); line-height: 1.7; }

/* ── FAQ Accordion ── */
.accordion-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 8px; overflow: hidden;
}
.accordion-item summary {
  padding: 18px 24px; font-weight: 600; font-size: 1rem;
  cursor: pointer; list-style: none; display: flex;
  align-items: center; justify-content: space-between;
  transition: background var(--transition);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: '+'; font-size: 1.3rem; color: var(--brand-primary); font-weight: 700; transition: transform var(--transition); }
.accordion-item[open] summary::after { content: '\2212'; }
.accordion-item[open] summary { background: var(--brand-light); }
.accordion-item .accordion-body { padding: 0 24px 20px; color: var(--text-secondary); line-height: 1.7; }

/* ── Breadcrumbs ── */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px; padding: 16px 0;
  font-size: .875rem; color: var(--text-light);
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--brand-primary); }
.breadcrumbs span { color: var(--text-light); }

/* ── CTA Block ── */
.cta-block {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  color: #fff; text-align: center; padding: 64px 24px; border-radius: var(--radius);
  margin: 0 auto; max-width: var(--max-w);
}
.cta-block h2 { font-size: 2rem; font-weight: 700; margin-bottom: 14px; }
.cta-block p { font-size: 1.05rem; opacity: .9; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-block .btn-white { color: var(--brand-primary); }

/* ── Testimonials ── */
.testimonial-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; position: relative;
}
.testimonial-card::before { content: '\201C'; font-size: 4rem; color: var(--brand-light); position: absolute; top: 12px; left: 20px; font-family: Georgia, serif; line-height: 1; }
.testimonial-card p { font-size: .95rem; color: var(--text-secondary); margin-bottom: 18px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author strong { font-size: .9rem; color: var(--text-primary); display: block; }
.testimonial-author span { font-size: .8rem; color: var(--text-light); }

/* ── HowTo Steps ── */
.howto-steps { counter-reset: step; }
.howto-step {
  display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start;
}
.howto-step::before {
  counter-increment: step; content: counter(step);
  min-width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.howto-step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.howto-step-content p { color: var(--text-secondary); font-size: .95rem; }

/* ── Related Services ── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  display: block; padding: 20px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.related-card:hover { border-color: var(--brand-primary); background: var(--brand-light); }
.related-card h4 { font-size: .95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.related-card p { font-size: .85rem; color: var(--text-secondary); }

/* ── Footer ── */
.site-footer {
  background: var(--brand-dark); color: #cbd5e1; padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-top: 12px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: #94a3b8; font-size: .9rem; transition: color var(--transition); }
.site-footer ul a:hover { color: var(--brand-primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: .85rem; color: #64748b; }
.footer-badges { display: flex; gap: 16px; align-items: center; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); font-size: .75rem; color: #94a3b8;
}

/* ── Content / Prose ── */
.prose h2 { font-size: 1.75rem; font-weight: 700; margin: 40px 0 16px; }
.prose h3 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; color: var(--text-secondary); }
.prose ul, .prose ol { margin: 16px 0; padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; color: var(--text-secondary); }
.prose strong { color: var(--text-primary); }

/* ── Page Header ── */
.page-header {
  padding: 120px 0 48px;
  background: linear-gradient(135deg, var(--brand-light) 0%, #fff 100%);
}
.page-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 14px; }
.page-header p { font-size: 1.1rem; color: var(--text-secondary); max-width: 640px; }

/* ── Lighthouse / Perf ── */
content-visibility: auto;

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

*:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

@media print {
  .site-header, .site-footer, .mobile-nav, .cta-block { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid, .feature-block { grid-template-columns: 1fr; gap: 32px; }
  .feature-block:nth-child(even) .feature-media { order: 0; }
  .hero h1 { font-size: 2.4rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-menu { min-width: 420px; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 110px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 1.75rem; }
  .grid-2, .grid-3, .related-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-item h3 { font-size: 2rem; }
  .page-header { padding: 100px 0 36px; }
  .page-header h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-logos { gap: 20px; }
  .trust-logos img { height: 32px; }
}
