/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-card: #ffffff;
  --ink: #0b0d12;
  --ink-2: #1c1f26;
  --muted: #5b6270;
  --muted-2: #8a8f99;
  --accent: #2b5cff;
  --accent-ink: #ffffff;
  --border: #e7e9ee;
  --border-strong: #d4d7de;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --shadow-sm: 0 1px 2px rgba(11, 13, 18, 0.04);
  --shadow-md: 0 8px 28px rgba(11, 13, 18, 0.06);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

img, svg { max-width: 100%; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}
h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }

p { margin: 0; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
  margin: 0 0 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 28px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 3px;
  background: var(--bg);
  mix-blend-mode: screen;
}
.brand-name { font-size: 16px; }
.brand-name em {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.site-header nav a {
  color: var(--muted);
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.site-header nav a:hover { color: var(--ink); background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.button.primary:hover { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.button.ghost:hover { border-color: var(--ink); color: var(--ink); }
.button.small { padding: 10px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(43, 92, 255, 0.06), transparent 60%),
    radial-gradient(50% 40% at 0% 20%, rgba(11, 13, 18, 0.04), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 880px; }
.hero h1 { margin-bottom: 24px; max-width: 18ch; }
.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 36px;
}
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.trust-line {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13.5px;
}
.trust-line li {
  display: inline-flex;
  align-items: center;
}
.trust-line li::after {
  content: "·";
  margin-left: 14px;
  color: var(--border-strong);
}
.trust-line li:last-child::after { display: none; }

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.section.alt { background: var(--bg-alt); }

.section-head {
  max-width: 760px;
  margin: 0 0 56px;
}
.section-head h2 { max-width: 22ch; }
.section-lead {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
  max-width: 62ch;
}

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

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

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}
.card.service h3 { margin-top: 4px; }
.card.service p { color: var(--muted); }
.card-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.bullets {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.bullets li {
  position: relative;
  padding: 6px 0 6px 20px;
  color: var(--ink-2);
  font-size: 14.5px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1px;
  background: var(--ink);
}

.card.proof h3 { margin-bottom: 8px; }
.card.proof p { color: var(--muted); }

/* ---------- Approach steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.steps li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.steps li:hover { border-color: var(--ink); transform: translateY(-2px); }
.step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 14.5px; }

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Tag grid ---------- */
.tag-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tag-grid li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 15px;
  color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.tag-grid li:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.tag-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) { .tag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .tag-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tag-grid, .tag-grid.cols-3 { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats {
  list-style: none;
  margin: 56px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stats strong {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stats span { color: var(--muted); font-size: 14px; line-height: 1.45; }

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

/* ---------- Contact ---------- */
.contact { text-align: center; max-width: 720px; margin: 0 auto; }
.contact .kicker { color: var(--muted-2); }
.contact h2 { margin: 0 auto; max-width: 18ch; }
.contact .section-lead { margin: 20px auto 36px; }
.contact-actions {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.email-link {
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}
.email-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.footer-nav { display: flex; gap: 22px; justify-content: center; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--ink); }
.copyright {
  color: var(--muted-2);
  font-size: 13px;
  text-align: right;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-nav { justify-content: center; }
  .copyright { text-align: center; }
}

/* ---------- Responsive header ---------- */
@media (max-width: 720px) {
  .site-header nav { display: none; }
  .nav { gap: 12px; }
}

/* ---------- Span-full card (used inside grid for featured outcome) ---------- */
.card.span-full { grid-column: 1 / -1; }

/* ---------- Data flow component ---------- */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: stretch;
}
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.flow-step:hover { border-color: var(--ink); transform: translateY(-2px); }
.flow-step h3 {
  font-size: 14.5px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.flow-step p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.flow-step + .flow-step::before {
  content: "→";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}
@media (max-width: 980px) {
  .flow { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .flow-step + .flow-step::before { display: none; }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
}

/* ---------- Inline criteria callout ---------- */
.criteria {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 28px;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 0 32px;
}
.criteria strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
