:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-mid: #334155;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --sky: #0ea5e9;
  --sky-light: #38bdf8;
  --sky-dark: #0284c7;
  --emerald: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f9fafb;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-800: #1e293b;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --max-w: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sky); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.logo span { color: var(--sky); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 2; }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}
.main-nav a {
  color: var(--slate-light);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav-cta {
  background: var(--sky) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem !important;
}
.nav-cta:hover { background: var(--sky-dark) !important; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0c2d4a 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(14,165,233,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(16,185,129,.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 720px; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.125rem;
  color: var(--slate-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--sky); color: var(--white); }
.btn-primary:hover { background: var(--sky-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.btn-outline:hover { background: rgba(255,255,255,.08); color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-light); color: var(--white); }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--navy); color: var(--white); }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.7;
}
.section-dark .section-header p { color: var(--slate-light); }

/* ── Grid ── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  background: rgba(14,165,233,.1);
  color: var(--sky);
}
.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.7;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sky-dark);
}
.card-link:hover { color: var(--sky); }
.card-link::after { content: " \2192"; }

/* ── Service page ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.0625rem;
  color: var(--slate-light);
  max-width: 640px;
  line-height: 1.8;
}
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--slate);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--slate-light); }
.breadcrumb a:hover { color: var(--white); }

.content-page { padding: 4rem 0; }
.content-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.content-page h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.content-page p { margin-bottom: 1rem; color: var(--navy); }
.content-page ul, .content-page ol {
  margin: 0.75rem 0 1.5rem 1.5rem;
  color: var(--navy);
}
.content-page li { margin-bottom: 0.5rem; }
.content-page li::marker { color: var(--sky); }

/* ── Checklist ── */
.checklist { list-style: none; margin-left: 0; }
.checklist li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
}
.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
  font-size: 1rem;
}

/* ── Pricing ── */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--sky);
  box-shadow: 0 0 0 1px var(--sky), var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sky);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: 999px;
}
.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.pricing-card .price-note {
  font-size: 0.8125rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
}
.pricing-card ul {
  list-style: none;
  margin: 0 0 2rem;
  flex: 1;
}
.pricing-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9375rem;
  color: var(--navy);
  padding-left: 1.5rem;
  position: relative;
}
.pricing-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 600;
}

/* ── Contact Form ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--slate);
}
.form-consent input { margin-top: 3px; }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 0;
}
.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--sky);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin-top: 0.75rem;
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── Findings / Report ── */
.finding {
  border-left: 4px solid var(--gray-200);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.finding.critical { border-left-color: var(--red); }
.finding.high { border-left-color: var(--amber); }
.finding.medium { border-left-color: var(--sky); }
.finding.low { border-left-color: var(--emerald); }
.finding h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.375rem; }
.finding-meta {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.finding.critical .finding-meta { color: var(--red); }
.finding.high .finding-meta { color: var(--amber); }
.finding.medium .finding-meta { color: var(--sky); }
.finding.low .finding-meta { color: var(--emerald); }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0c2d4a 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta-banner p {
  color: var(--slate-light);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}
.cta-banner .btn { margin: 0 0.5rem; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: var(--slate-light);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  color: var(--slate);
  line-height: 1.7;
  margin-top: 0.75rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--slate-light); }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--slate);
}
.footer-bottom a { color: var(--slate); }
.footer-bottom a:hover { color: var(--slate-light); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.25rem; }
  .main-nav a { display: block; padding: 0.75rem 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-actions { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-card { margin-bottom: 1rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Skip to content ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.75rem 1.5rem;
  background: var(--sky);
  color: var(--white);
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── Prose (markdown content) ── */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose p + p { margin-top: 1rem; }
