/* ============================================================
   Agent Engineering — Main Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--fg-0);
  background: var(--bg-0);
  font-size: var(--fs-16);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }

/* Typography ---------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--fg-0); margin: 0; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-12);
  text-transform: uppercase; letter-spacing: 0.10em;
  font-weight: 500; color: var(--fg-3);
}
.eyebrow-dot {
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--positive); box-shadow: 0 0 0 4px rgba(21,128,61,0.10);
}
.mono { font-family: var(--font-mono); }

/* Container ---------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Section padding */
.section { padding: 112px 0; }
.section--tight { padding: 96px 0; }
.section--alt { background: var(--bg-1); border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); }
.section--dark {
  background: var(--bg-inv-0); color: var(--fg-on-dark-0);
  position: relative; overflow: hidden;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--fg-on-dark-0); }

/* Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: var(--fs-15);
  font-weight: 500; letter-spacing: -0.005em;
  padding: 13px 20px; border: 0; border-radius: 6px;
  cursor: pointer; text-decoration: none;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
  box-shadow: 0 1px 2px rgba(10,10,10,0.06);
}
.btn-primary { background: var(--fg-0); color: var(--bg-0); }
.btn-primary:hover { background: #262626; }
.btn-secondary {
  background: var(--bg-0); color: var(--fg-0);
  border: 1px solid var(--line-2);
}
.btn-secondary:hover { border-color: var(--fg-2); }
.btn-on-dark-primary { background: var(--bg-0); color: var(--fg-0); }
.btn-on-dark-secondary { background: transparent; color: var(--fg-on-dark-0); border: 1px solid var(--line-on-dark-2); }
.btn-sm { font-size: var(--fs-14); padding: 9px 14px; }

/* Nav ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-0);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), padding var(--dur-2) var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  backdrop-filter: blur(10px) saturate(180%);
  border-bottom-color: var(--line-1);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 40px;
  transition: padding var(--dur-2) var(--ease-out);
}
.nav.is-scrolled .nav-inner { padding: 10px 32px; }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--fg-0);
}
.nav-brand img { height: 24px; width: 24px; }
.nav-brand-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; letter-spacing: -0.015em;
}
.nav-links {
  display: flex; gap: 24px;
  list-style: none; margin: 0 0 0 8px; padding: 0;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--fg-2); text-decoration: none;
  letterspacing: -0.005em;
  padding: 6px 0;
  transition: color var(--dur-1) var(--ease-out);
}
.nav-links a:hover { color: var(--fg-0); }
.nav-cta-wrap {
  margin-left: auto; display: flex; gap: 10px; align-items: center;
}
.nav-phone {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--fg-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur-1) var(--ease-out);
}
.nav-phone:hover { color: var(--fg-0); }
.nav-burger {
  display: none; background: transparent; border: 0;
  padding: 8px; cursor: pointer; color: var(--fg-0);
}

/* Hero ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-1);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    linear-gradient(var(--line-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-1) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 50%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 50%, black 0%, transparent 75%);
}
.hero-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 88px 32px 104px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px; align-items: center;
  position: relative;
}
.hero--centered .hero-inner { grid-template-columns: 1fr; }
.hero--centered .hero-text { max-width: 880px; margin: 0 auto; text-align: left; }
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 76px);
  letter-spacing: -0.035em; line-height: 1.0;
  text-wrap: balance;
}
.hero h1 .hl {
  position: relative; display: inline-block; white-space: nowrap;
}
.hero h1 .hl::after {
  content: ''; position: absolute; left: -2px; right: -2px;
  bottom: 0.10em; height: 0.18em;
  background: var(--fg-0); opacity: 0.12;
  border-radius: 2px; z-index: -1;
}
.hero h1 .muted { color: var(--fg-3); }
.hero-sub {
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5; color: var(--fg-2);
  letter-spacing: -0.008em; max-width: 580px;
  text-wrap: pretty;
}
.hero-sub strong { color: var(--fg-0); font-weight: 500; }
.hero-ctas {
  margin-top: 36px; display: flex; gap: 10px;
  align-items: center; flex-wrap: wrap;
}
.hero-trust {
  margin-top: 40px;
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-3); letter-spacing: -0.005em;
}
.hero-trust > span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .sep { color: var(--line-2); }

/* Live Agent Panel */
.agent-panel {
  background: var(--bg-0);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(10,10,10,0.04), 0 8px 24px -8px rgba(10,10,10,0.08);
  overflow: hidden;
  font-family: var(--font-mono);
  position: relative;
}
.agent-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-1);
  background: var(--bg-1);
}
.agent-status {
  display: flex; align-items: center; gap: 8px;
}
.agent-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 4px rgba(21,128,61,0.12);
  animation: aePulse 2s ease-in-out infinite;
}
@keyframes aePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(21,128,61,0.12); }
  50%      { box-shadow: 0 0 0 7px rgba(21,128,61,0.06); }
}
.agent-label {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--fg-1); font-weight: 500;
}
.agent-region { font-size: 11px; color: var(--fg-3); }
.agent-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line-1);
}
.agent-metric {
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--line-1);
}
.agent-metric:last-child { border-right: 0; }
.agent-metric-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--fg-3); font-weight: 500;
}
.agent-metric-value {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  letter-spacing: -0.018em; color: var(--fg-0);
  line-height: 1.05; font-variant-numeric: tabular-nums;
}
.agent-metric-sub { font-size: 11px; color: var(--fg-3); }
.agent-runs > div {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--line-1);
  align-items: center;
}
.agent-runs > div:last-child { border-bottom: 0; }
.agent-runs > div:first-child { background: var(--bg-1); }
.run-time { font-size: 11px; color: var(--fg-3); }
.run-task { font-size: 12.5px; color: var(--fg-0); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-src { font-size: 11px; color: var(--fg-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--positive);
  background: var(--positive-bg);
  padding: 3px 8px; border-radius: 999px; font-weight: 500;
}
.run-status::before {
  content: ''; width: 4px; height: 4px;
  border-radius: 50%; background: var(--positive);
}
.proof-badge {
  position: absolute; left: -24px; bottom: -28px;
  background: var(--bg-inv-0); color: var(--fg-on-dark-0);
  border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 12px 32px -8px rgba(10,10,10,0.28), 0 1px 2px rgba(10,10,10,0.10);
  display: flex; align-items: center; gap: 12px; min-width: 220px;
}
.proof-badge-num {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 600; letter-spacing: -0.025em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.proof-badge-text { font-size: 12px; line-height: 1.35; color: var(--fg-on-dark-2); }
.proof-badge-text strong { color: var(--fg-on-dark-1); font-weight: 500; }

/* Section header (shared) -------------------------------------- */
.section-head { margin-bottom: 56px; max-width: 880px; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: -0.032em; line-height: 1.05;
  text-wrap: balance;
}
.section-head .lead {
  margin-top: 20px; font-size: 18px; line-height: 1.55;
  color: var(--fg-2); max-width: 640px; text-wrap: pretty;
}
.section-head--split {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px; align-items: end; max-width: none;
}
.section-head--split .head-text { max-width: 720px; }
.section-head--split .head-text h2 { margin: 0; }
.section-head--split .head-aside {
  font-size: 17px; line-height: 1.55; color: var(--fg-2);
  margin: 0; text-wrap: pretty; padding-bottom: 6px;
}

/* Pain Cards --------------------------------------------------- */
.pain-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.pain-card {
  background: var(--bg-0); border: 1px solid var(--line-1);
  border-radius: 14px; padding: 32px 32px 28px;
  display: grid; grid-template-columns: auto 1fr;
  gap: 22px 24px; align-items: start;
  box-shadow: 0 1px 2px rgba(10,10,10,0.04);
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.pain-card:hover {
  box-shadow: 0 4px 12px rgba(10,10,10,0.05), 0 1px 2px rgba(10,10,10,0.04);
  transform: translateY(-2px);
}
.pain-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-2); color: var(--fg-0);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pain-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pain-head { display: flex; align-items: center; gap: 10px; }
.pain-head h3 {
  font-size: 22px; letter-spacing: -0.018em; line-height: 1.2;
  flex: 1; margin: 0;
}
.tag {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--fg-3); font-weight: 500;
  padding: 3px 8px; border: 1px solid var(--line-1);
  border-radius: 999px; flex-shrink: 0;
}
.pain-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }

/* Process Steps ------------------------------------------------ */
.process-head {
  margin-bottom: 64px;
  display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.process-head > div { flex: 1 1 460px; max-width: 720px; }
.process-head > p { flex: 1 1 320px; max-width: 420px; font-size: 17px; line-height: 1.55; color: var(--fg-2); margin: 0; text-wrap: pretty; }
.process-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line-1); border-radius: 14px;
  overflow: hidden; background: var(--bg-0); position: relative;
}
.process-step {
  padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 16px;
  position: relative; background: var(--bg-0);
  border-right: 1px solid var(--line-1);
}
.process-step:last-child { border-right: 0; }
.process-step-arrow {
  position: absolute; top: 50%; right: -13px;
  transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-0); border: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-2); z-index: 2;
}
.process-step:last-child .process-step-arrow { display: none; }
.process-step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--fg-0); color: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
}
.step-n { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); font-weight: 500; letter-spacing: 0.02em; }
.process-step h3 { font-size: 26px; letter-spacing: -0.022em; line-height: 1.15; margin: 0; }
.step-duration {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--fg-3); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.process-step p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; flex: 1; }
.step-deliverable {
  margin-top: 12px; padding-top: 16px;
  border-top: 1px solid var(--line-1);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-1); font-weight: 500;
}
.step-deliverable svg { color: var(--fg-3); }

/* Case Studies ------------------------------------------------- */
.case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.case-card {
  background: var(--bg-0); border: 1px solid var(--line-1);
  border-radius: 14px; padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 1px 2px rgba(10,10,10,0.04);
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.case-card:hover {
  box-shadow: 0 4px 12px rgba(10,10,10,0.05), 0 1px 2px rgba(10,10,10,0.04);
  transform: translateY(-2px);
}
.case-visual {
  margin: -28px -28px 0; border-radius: 14px 14px 0 0; overflow: hidden;
  border-bottom: 1px solid var(--line-1);
}
.case-card h3 { font-size: 22px; letter-spacing: -0.018em; line-height: 1.2; margin: 0; }
.case-metric { display: flex; align-items: baseline; gap: 10px; padding-top: 4px; }
.case-metric-num {
  font-family: var(--font-display); font-size: 60px; font-weight: 600;
  letter-spacing: -0.035em; color: var(--fg-0); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.case-metric-label { font-size: 14px; color: var(--fg-3); letter-spacing: -0.005em; line-height: 1.3; }
.case-card > p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fg-2); flex: 1; }
.case-ba {
  margin-top: 4px; background: var(--bg-1);
  border: 1px solid var(--line-1); border-radius: 8px;
  padding: 12px 14px; display: flex; flex-direction: column;
  gap: 8px; font-family: var(--font-mono); font-size: 12px;
}
.case-ba > div { display: flex; gap: 10px; align-items: flex-start; }
.case-ba .lbl { min-width: 56px; text-transform: uppercase; font-size: 10px; letter-spacing: 0.10em; padding-top: 1px; }
.case-ba .before-lbl { color: var(--fg-3); }
.case-ba .after-lbl  { color: var(--fg-0); font-weight: 600; }
.case-ba .before-v   { color: var(--fg-2); flex: 1; }
.case-ba .after-v    { color: var(--fg-0); flex: 1; font-weight: 500; }
.tool-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-chip {
  font-family: var(--font-mono); font-size: 11px;
  padding: 3px 8px; background: var(--bg-2);
  color: var(--fg-1); border-radius: 4px; font-weight: 500;
}

/* Pricing ------------------------------------------------------ */
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tier {
  background: var(--bg-0); color: var(--fg-0);
  border: 1px solid var(--line-1); border-radius: 14px;
  padding: 26px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 1px 2px rgba(10,10,10,0.04);
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  position: relative;
}
.tier:hover { box-shadow: 0 6px 16px rgba(10,10,10,0.06), 0 1px 2px rgba(10,10,10,0.04); transform: translateY(-2px); }
.tier--accent { background: var(--bg-inv-0); color: var(--fg-on-dark-0); border-color: var(--bg-inv-0); }
.tier--accent h3 { color: var(--fg-on-dark-0); }
.tier-top { display: flex; align-items: center; justify-content: space-between; }
.tier-eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--fg-3); font-weight: 500;
}
.tier--accent .tier-eyebrow { color: var(--fg-on-dark-2); }
.tier-popular {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.10em;
  padding: 3px 8px; border-radius: 999px;
  background: var(--bg-0); color: var(--fg-0); font-weight: 600;
}
.tier h3 { font-size: 26px; letter-spacing: -0.022em; line-height: 1.15; margin: 0 0 8px; }
.tier-sub { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.tier--accent .tier-sub { color: var(--fg-on-dark-1); }
.tier-price-wrap {
  padding: 18px 0;
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  display: flex; flex-direction: column; gap: 4px;
}
.tier--accent .tier-price-wrap { border-color: var(--line-on-dark-1); }
.tier-price {
  font-family: var(--font-display); font-size: 34px; font-weight: 600;
  letter-spacing: -0.028em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.tier-price-sub { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.tier--accent .tier-price-sub { color: var(--fg-on-dark-2); }
.tier-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tier-items li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--fg-1); }
.tier--accent .tier-items li { color: var(--fg-on-dark-1); }
.tier-items svg { flex-shrink: 0; margin-top: 3px; color: var(--fg-0); }
.tier--accent .tier-items svg { color: var(--fg-on-dark-0); }
.tier .btn { width: 100%; justify-content: center; margin-top: 6px; }
.tier--accent .btn-primary { background: var(--bg-0); color: var(--fg-0); }
.guarantee {
  margin-top: 32px; padding: 18px 22px;
  border: 1px dashed var(--line-2); border-radius: 10px;
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-1);
}
.guarantee svg { color: var(--fg-1); flex-shrink: 0; }
.guarantee span { font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.guarantee strong { color: var(--fg-0); font-weight: 600; }

/* Social Proof (dark) ----------------------------------------- */
.proof-dark-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 50%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 50%, black 0%, transparent 70%);
}
.section--dark .container { position: relative; }
.section--dark .section-head .eyebrow { color: var(--fg-on-dark-2); }
.section--dark .section-head .lead { color: var(--fg-on-dark-2); }
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-on-dark-2); border-radius: 14px;
  overflow: hidden; background: var(--bg-inv-1);
  margin-bottom: 56px;
}
.stat {
  padding: 32px 28px; display: flex; flex-direction: column; gap: 8px;
  border-right: 1px solid var(--line-on-dark-2);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px);
  font-weight: 600; letter-spacing: -0.035em;
  color: var(--fg-on-dark-0); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-lbl { font-size: 14px; color: var(--fg-on-dark-2); letter-spacing: -0.005em; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.quote {
  background: var(--bg-inv-1); border: 1px solid var(--line-on-dark-2);
  border-radius: 14px; padding: 28px;
  display: flex; flex-direction: column; gap: 22px;
}
.quote .eyebrow { color: var(--fg-on-dark-2); }
.quote-text {
  margin: 0; font-family: var(--font-display);
  font-size: 18px; line-height: 1.45; color: var(--fg-on-dark-0);
  letter-spacing: -0.012em; flex: 1; text-wrap: pretty;
}
.quote-attr {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--line-on-dark-1);
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-inv-2); color: var(--fg-on-dark-0);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px;
  font-weight: 500; letter-spacing: 0.02em; flex-shrink: 0;
  border: 1px solid var(--line-on-dark-2);
}
.quote-name { font-size: 14px; font-weight: 500; color: var(--fg-on-dark-0); letter-spacing: -0.005em; }
.quote-role { font-size: 12.5px; color: var(--fg-on-dark-2); letter-spacing: -0.005em; }
.logo-strip-wrap {
  padding-top: 32px; border-top: 1px solid var(--line-on-dark-1);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.logo-strip-label {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--fg-on-dark-2); font-weight: 500; flex-shrink: 0;
}
.logo-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; flex: 1; min-width: 0;
}
.logo-strip > span {
  padding: 8px 12px; border-right: 1px solid var(--line-on-dark-1);
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  color: var(--fg-on-dark-1); letter-spacing: -0.01em;
  text-align: center; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.logo-strip > span:last-child { border-right: 0; }

/* About / Team ------------------------------------------------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 64px; align-items: start;
}
.about-text h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.032em; line-height: 1.05; text-wrap: balance; }
.pullquote {
  margin-top: 28px; padding: 24px 0 24px 24px;
  border-left: 2px solid var(--fg-0);
  font-family: var(--font-display); font-size: 22px; line-height: 1.4;
  color: var(--fg-0); letter-spacing: -0.015em;
  font-weight: 500; text-wrap: pretty;
}
.about-text p { margin: 28px 0 0; font-size: 16px; line-height: 1.65; color: var(--fg-2); max-width: 520px; text-wrap: pretty; }
.about-text p + p { margin-top: 16px; }
.about-stats {
  margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1);
}
.about-stat {
  padding: 20px 18px; display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--line-1);
}
.about-stat:last-child { border-right: 0; }
.about-stat-n {
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  letter-spacing: -0.025em; color: var(--fg-0); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.about-stat-l { font-size: 12.5px; color: var(--fg-3); }
.founders { display: flex; flex-direction: column; gap: 16px; }
.founder-card {
  background: var(--bg-0); border: 1px solid var(--line-1);
  border-radius: 14px; padding: 24px;
  display: grid; grid-template-columns: auto 1fr;
  gap: 4px 22px;
  box-shadow: 0 1px 2px rgba(10,10,10,0.04);
  transition: box-shadow var(--dur-2) var(--ease-out);
}
.founder-card:hover { box-shadow: 0 4px 12px rgba(10,10,10,0.05), 0 1px 2px rgba(10,10,10,0.04); }
.founder-avatar {
  grid-row: 1 / 4; width: 72px; height: 72px;
  border-radius: 12px; background: var(--bg-2);
  color: var(--fg-0);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 22px; font-weight: 500;
  letter-spacing: 0.02em; border: 1px solid var(--line-1);
  flex-shrink: 0; position: relative; overflow: hidden;
}
.founder-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.15; color: var(--fg-0); margin: 0; }
.founder-role { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: -0.005em; margin-top: 4px; }
.founder-bio { grid-column: 2 / 3; margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.founder-tags { grid-column: 2 / 3; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.location-card {
  background: var(--bg-1); border: 1px solid var(--line-1);
  border-radius: 14px; padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
}
.location-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-2); color: var(--fg-0);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.location-line { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--fg-0); letter-spacing: -0.01em; }
.location-sub { font-size: 13px; color: var(--fg-3); margin-top: 2px; }

/* FAQ ---------------------------------------------------------- */
.faq-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px; align-items: start;
}
.faq-aside { position: sticky; top: 96px; }
.faq-aside h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.032em; line-height: 1.05; text-wrap: balance; }
.faq-aside p { margin-top: 20px; font-size: 16px; line-height: 1.6; color: var(--fg-2); max-width: 400px; text-wrap: pretty; }
.faq-aside a { color: var(--fg-0); text-decoration: underline; text-underline-offset: 2px; }
.faq-aside-call {
  margin-top: 32px; padding: 20px 22px;
  background: var(--bg-0); border: 1px solid var(--line-1);
  border-radius: 12px;
  display: flex; align-items: center; gap: 14px;
}
.faq-aside-call svg { color: var(--fg-1); flex-shrink: 0; }
.faq-aside-call .lbl { font-size: 13px; color: var(--fg-3); }
.faq-aside-call .num {
  font-family: var(--font-mono); font-size: 15px;
  color: var(--fg-0); text-decoration: none;
  font-weight: 500; letter-spacing: -0.005em;
}
.faq-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  background: var(--bg-0); border: 1px solid var(--line-1);
  border-radius: 14px; overflow: hidden;
}
.faq-list li { border-bottom: 1px solid var(--line-1); }
.faq-list li:last-child { border-bottom: 0; }
.faq-q {
  width: 100%; background: transparent; border: 0;
  padding: 22px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; text-align: left;
  font-family: var(--font-display); font-size: 17px;
  font-weight: 500; letter-spacing: -0.012em;
  color: var(--fg-0); line-height: 1.35;
}
.faq-toggle {
  width: 28px; height: 28px; border-radius: 999px;
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-1); flex-shrink: 0;
  transition: background var(--dur-2) var(--ease-out);
}
.faq-q[aria-expanded="true"] .faq-toggle { background: var(--fg-0); color: var(--bg-0); }
.faq-q[aria-expanded="true"] .icon-plus { display: none; }
.faq-q .icon-minus { display: none; }
.faq-q[aria-expanded="true"] .icon-minus { display: inline-block; color: var(--bg-0); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-3) var(--ease-out);
}
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a-inner {
  padding: 0 24px 24px;
  font-size: 15px; line-height: 1.65; color: var(--fg-2);
  max-width: 640px; text-wrap: pretty;
}
.faq-a-inner p { margin: 0; }
.faq-a-inner p + p { margin-top: 12px; }
.faq-a-inner strong { color: var(--fg-0); }

/* Contact ------------------------------------------------------ */
.contact-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px; align-items: end; margin-bottom: 56px;
}
.contact-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance;
}
.contact-head > p { font-size: 18px; line-height: 1.55; color: var(--fg-2); margin: 0; max-width: 480px; text-wrap: pretty; padding-bottom: 6px; }
.contact-head strong { color: var(--fg-0); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 16px; align-items: stretch; }
.contact-card {
  background: var(--bg-0); border: 1px solid var(--line-1);
  border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 1px 2px rgba(10,10,10,0.04);
}
.contact-card--dark {
  background: var(--bg-inv-0); color: var(--fg-on-dark-0);
  border-color: var(--bg-inv-0);
}
.contact-card--alt { background: var(--bg-1); }
.contact-head-row { display: flex; align-items: center; gap: 12px; }
.contact-icon-wrap {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-2); color: var(--fg-0);
  display: flex; align-items: center; justify-content: center;
}
.contact-card--dark .contact-icon-wrap { background: var(--bg-inv-2); color: var(--fg-on-dark-0); }
.contact-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.contact-card--dark h3 { color: var(--fg-on-dark-0); }
.contact-card .sub { font-size: 12.5px; color: var(--fg-3); }
.contact-card--dark .sub { color: var(--fg-on-dark-2); }
.contact-card form { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label {
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.10em;
  font-weight: 500; color: var(--fg-3);
}
.contact-card--dark .field-label { color: var(--fg-on-dark-2); }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: 14px;
  color: var(--fg-0); background: var(--bg-0);
  border: 1px solid var(--line-2); border-radius: 6px;
  padding: 9px 12px; outline: none; width: 100%;
  letter-spacing: -0.005em;
}
.field textarea { resize: vertical; min-height: 58px; }
.contact-card--dark .field input,
.contact-card--dark .field textarea {
  background: var(--bg-inv-1); color: var(--fg-on-dark-0);
  border-color: var(--line-on-dark-2);
}
.contact-card--dark .field input::placeholder,
.contact-card--dark .field textarea::placeholder { color: var(--fg-on-dark-3); }
.contact-card .btn { width: 100%; justify-content: center; margin-top: auto; font-size: 14px; padding: 11px 16px; }
.contact-card--dark .btn-primary { background: var(--bg-0); color: var(--fg-0); }
.direct-line { display: block; text-decoration: none; color: inherit; }
.direct-line .lbl {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--fg-3); font-weight: 500; margin-bottom: 6px;
}
.direct-line .num {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  letter-spacing: -0.025em; color: var(--fg-0); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.direct-line .mail {
  font-family: var(--font-mono); font-size: 14.5px;
  color: var(--fg-0); word-break: break-word;
  letter-spacing: -0.005em; font-weight: 500;
}
.direct-sep { height: 1px; background: var(--line-1); }
.direct-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-1);
  font-size: 12.5px; color: var(--fg-3); line-height: 1.55;
}
.direct-foot svg { color: var(--positive); }

/* Footer ------------------------------------------------------- */
.footer { background: var(--bg-0); border-top: 1px solid var(--line-1); }
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  padding: 72px 32px 32px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-brand img { height: 28px; width: 28px; }
.footer-brand span {
  font-family: var(--font-display); font-weight: 600;
  font-size: 16px; letter-spacing: -0.015em;
}
.footer-tag { font-size: 14px; line-height: 1.65; color: var(--fg-2); max-width: 340px; margin: 0; }
.footer-social { margin-top: 24px; display: flex; gap: 8px; align-items: center; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-1); text-decoration: none;
  transition: border-color var(--dur-1) var(--ease-out);
}
.footer-social a:hover { border-color: var(--fg-1); }
.footer-col-title {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--fg-3); font-weight: 500; margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--fg-1); text-decoration: none; letter-spacing: -0.005em; }
.footer-col a:hover { color: var(--fg-0); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom {
  max-width: var(--container); margin: 0 auto;
  padding: 24px 32px; border-top: 1px solid var(--line-1);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.status-pill {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  padding: 3px 8px; border: 1px solid var(--line-1); border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.status-pill::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--positive);
}
.footer-legal { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.footer-legal a { font-size: 13px; color: var(--fg-3); text-decoration: none; letter-spacing: -0.005em; }
.footer-legal a:hover { color: var(--fg-0); }

/* Cookie Consent ---------------------------------------------- */
.consent {
  position: fixed; bottom: 24px; left: 24px; right: 24px;
  max-width: 520px; z-index: 90;
  background: var(--bg-0); border: 1px solid var(--line-1);
  border-radius: 14px; padding: 22px 24px;
  box-shadow: 0 24px 48px rgba(10,10,10,0.18), 0 2px 4px rgba(10,10,10,0.06);
  display: none;
}
.consent.is-open { display: block; }
.consent h3 { font-size: 16px; letter-spacing: -0.012em; margin: 0 0 8px; }
.consent p { font-size: 13.5px; line-height: 1.55; color: var(--fg-2); margin: 0 0 16px; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-actions .btn { padding: 9px 14px; font-size: 13px; flex: 1; justify-content: center; min-width: 120px; }
.consent-detail-toggle { background: transparent; border: 0; color: var(--fg-2); font-size: 12.5px; text-decoration: underline; cursor: pointer; margin-top: 12px; padding: 0; font-family: inherit; }
.consent-detail { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-1); }
.consent.is-detail .consent-detail { display: block; }
.consent-cat { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.consent-cat input[type="checkbox"] { margin-top: 3px; }
.consent-cat-name { font-size: 13.5px; font-weight: 500; color: var(--fg-0); }
.consent-cat-desc { font-size: 12px; color: var(--fg-3); line-height: 1.45; }

/* Industries strip (homepage cross-link) ---------------------- */
.industries-section { background: var(--bg-0); }
.industries-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.industry-card {
  background: var(--bg-0); border: 1px solid var(--line-1);
  border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(10,10,10,0.04);
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
  position: relative;
}
.industry-card:hover {
  box-shadow: 0 4px 12px rgba(10,10,10,0.05), 0 1px 2px rgba(10,10,10,0.04);
  transform: translateY(-2px);
  border-color: var(--line-2);
}
.industry-illust {
  height: 120px; border-radius: 10px;
  background: var(--bg-2); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-2);
}
.industry-card h3 { font-size: 18px; letter-spacing: -0.012em; line-height: 1.3; margin: 0; }
.industry-card p { margin: 0; font-size: 14px; color: var(--fg-2); line-height: 1.55; flex: 1; }
.industry-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--fg-0); font-weight: 500;
}

/* Legal pages -------------------------------------------------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 96px 32px; }
.legal-page h1 { font-size: clamp(36px, 4vw, 48px); letter-spacing: -0.032em; margin-bottom: 32px; }
.legal-page h2 { font-size: 22px; letter-spacing: -0.018em; margin: 40px 0 12px; }
.legal-page h3 { font-size: 17px; letter-spacing: -0.012em; margin: 28px 0 8px; }
.legal-page p, .legal-page li { font-size: 15px; line-height: 1.7; color: var(--fg-2); }
.legal-page p + p { margin-top: 12px; }
.legal-page ul, .legal-page ol { padding-left: 20px; }
.legal-page strong { color: var(--fg-0); }
.legal-page a { color: var(--fg-0); text-decoration: underline; text-underline-offset: 2px; }

/* 404 ---------------------------------------------------------- */
.notfound { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 96px 32px; text-align: center; }
.notfound .num { font-family: var(--font-display); font-size: clamp(96px, 16vw, 240px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--fg-0); }
.notfound h1 { font-size: clamp(28px, 3vw, 40px); margin: 16px 0 12px; }
.notfound p { font-size: 17px; color: var(--fg-2); margin: 0 0 28px; max-width: 480px; }
.notfound .ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Industry hero (subpage variant) ------------------------------ */
.hero--industry .hero-inner { padding: 72px 32px 88px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.hero--industry .industry-illust-large {
  height: 360px; border-radius: 14px;
  border: 1px solid var(--line-1); background: var(--bg-1);
  overflow: hidden; position: relative;
}
.hero--industry h1 { font-size: clamp(36px, 4.6vw, 64px); }
.industry-uses { background: var(--bg-0); }
.uses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.use-card {
  background: var(--bg-0); border: 1px solid var(--line-1);
  border-radius: 14px; padding: 24px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  align-items: start;
}
.use-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-2); color: var(--fg-0);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.use-card h3 { font-size: 17px; letter-spacing: -0.012em; margin: 0 0 6px; }
.use-card p { font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 0; }

/* Responsive --------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .agent-panel { max-width: 560px; margin: 0 auto; }
  .proof-badge { left: 0; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .about-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-head { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .hero--industry .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container, .nav-inner, .hero-inner, .footer-grid { padding-left: 24px; padding-right: 24px; }
  .section, .section--tight { padding: 80px 0; }
  .pain-grid, .process-list, .stats-strip { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--line-1); }
  .process-step:last-child { border-bottom: 0; }
  .process-step-arrow { display: none; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-on-dark-2); }
  .stat:last-child { border-bottom: 0; }
  .tier-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-phone { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .industries-grid, .uses-grid { grid-template-columns: 1fr; }
  .section-head--split { grid-template-columns: 1fr; gap: 24px; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .consent { left: 16px; right: 16px; bottom: 16px; padding: 20px; }
}

/* Skip link ---------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--fg-0); color: var(--bg-0);
  padding: 10px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 100; }
