/* Inferencia.ai — static site styles
   BUILD: v8  (images -> WebP)
   Check which version you are viewing: grep "BUILD:" on this file,
   or look for the version marker in the page footer. */

:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --accent: #1d4ed8;
  --accent-dark: #1e3a8a;
  --accent-tint: #eff6ff;
  --radius: 10px;
  --wrap: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 650;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.07rem, 4.68vw, 3.11rem); }
h2 { font-size: clamp(1.55rem, 3.11vw, 2.18rem); }
h3 { font-size: 1.30rem; }
h4 { font-size: 1.09rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.5em; }
strong { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 999;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 90px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 48px; width: auto; }
.brand-text {
  font-size: 1.42rem; font-weight: 680; color: var(--ink); letter-spacing: -0.03em;
}
.brand-text span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-soft); font-size: 1.02rem; font-weight: 500;
  padding: 9px 14px; border-radius: 7px; text-decoration: none;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--accent); background: var(--accent-tint); }
.nav a.cta {
  background: var(--ink); color: #fff; margin-left: 8px; padding: 10px 18px;
}
.nav a.cta:hover { background: var(--accent); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 7px; padding: 9px 11px; cursor: pointer; line-height: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 7px; }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.alt { background: var(--bg-alt); }
/* Dark sections — every text style must be re-declared for contrast.
   .lede, .small and .eyebrow all default to dark colors that vanish here. */
.section.ink { background: var(--ink); color: #e2e8f0; }
.section.ink h1, .section.ink h2, .section.ink h3,
.section.ink h4, .section.ink strong { color: #fff; }
.section.ink p,
.section.ink li,
.section.ink .lede { color: #e2e8f0; }
.section.ink .small { color: #cbd5e1; }
.section.ink .eyebrow { color: #93c5fd; }
.section.ink a { color: #93c5fd; }
.section.ink .checklist li::before { background: #60a5fa; }

.eyebrow {
  display: inline-block; font-size: 1.08rem; font-weight: 650;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: 1.32rem; color: var(--ink-soft); max-width: 68ch; }
.measure { max-width: 72ch; }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 72px; background: linear-gradient(180deg, var(--accent-tint) 0%, #fff 100%); }
.hero h1 { max-width: 20ch; }
.hero .lede { font-size: 1.38rem; margin-bottom: 28px; }

.btn {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight: 560; font-size: 1rem; text-decoration: none;
  border: 1px solid var(--ink);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Grid & cards ---------- */

.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 28px;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-tint); color: var(--accent);
  font-weight: 680; font-size: 0.95rem; margin-bottom: 14px;
}

.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: 0.85em;
}
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

.photo { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; }

.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.pill-grid li {
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 18px; font-size: 0.93rem;
  color: var(--ink); margin: 0;
}

/* ---------- Job / long-form blocks ---------- */

.job {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 32px; background: #fff; margin-bottom: 28px;
}
.job-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none;
}
.job-meta li {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 6px; padding: 5px 12px; font-size: 0.85rem;
  color: var(--muted); margin: 0;
}
.job h4 { margin-top: 1.6em; }
.job h4:first-of-type { margin-top: 0; }

.phase { border-left: 3px solid var(--accent); padding-left: 22px; margin-bottom: 34px; }
.phase h3 { margin-bottom: 0.8em; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  position: relative; padding-left: 46px; margin-bottom: 1.2em;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 650;
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; }
.contact-list li {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px;
}
.contact-list .label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 650; display: block; margin-bottom: 3px;
}
.contact-list .value { color: var(--ink); font-size: 1.05rem; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-size: 0.88rem; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font); font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #94a3b8; padding: 60px 0 28px; }
.site-footer h4 {
  color: #fff; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.09em; margin-bottom: 16px; font-weight: 650;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: 0.95rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 53px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.95rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid #1e293b; margin-top: 44px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.88rem;
}

/* ---------- Utility ---------- */

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small { font-size: 1.02rem; color: var(--muted); }
