/* Midfleet public look-and-feel approval build.
   Visual-only: production copy, routes, section order, and conversion logic remain unchanged. */

:root {
  --bg: #050914;
  --bg-deep: #030711;
  --bg-panel: #0f172a;
  --surface: #1e293b;
  --panel: #0b1220;
  --border: #1e293b;
  --border-mid: #334155;
  --line: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --subtle: #64748b;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --max: 1320px;
  --r: 8px;
  --lf-ease: cubic-bezier(.22, .61, .36, 1);
}

body {
  background: var(--bg);
  color: var(--text);
}

body::before,
body::after {
  display: none;
}

.shell {
  width: min(var(--max), calc(100% - 64px));
}

.kicker {
  color: #818cf8;
  letter-spacing: 0.11em;
}

.kicker::before {
  width: 12px;
  background: #818cf8;
  opacity: 0.8;
}

.display,
.hero-copy h1,
.page-hero h1 {
  font-size: clamp(3.1rem, 4.25vw, 4.25rem);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -0.048em;
  color: #f1f5f9;
}

.display span {
  color: #cbd5e1;
}

.title {
  font-size: clamp(2.25rem, 3.4vw, 3.5rem);
  font-weight: 520;
  line-height: 1.06;
  letter-spacing: -0.045em;
  max-width: 17em;
}

.heading {
  font-size: 1.15rem;
  font-weight: 600;
}

.lede {
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #94a3b8;
}

.copy {
  font-size: 1rem;
  line-height: 1.68;
}

.btn {
  border-radius: 6px;
  min-height: 40px;
  padding-inline: 16px;
  box-shadow: none;
  transition: transform 180ms var(--lf-ease), color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-primary:hover {
  background: #6366f1;
  border-color: #6366f1;
  box-shadow: none;
}

.btn-secondary {
  background: #0b1220;
  border-color: #334155;
  backdrop-filter: none;
}

.btn-secondary:hover {
  background: #111827;
  border-color: #475569;
}

.btn-lg {
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 6px;
}

.hero {
  min-height: calc(100vh - 64px);
  padding: 96px 0 108px;
  display: flex;
  align-items: center;
  background: #050914;
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

.hero-grid {
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 35rem;
  gap: 22px;
}

.hero-actions {
  margin-top: 8px;
}

.hero-compat {
  color: #64748b;
  letter-spacing: 0.015em;
}

.hero-visual {
  min-width: 0;
}

.mf-product-frame {
  width: min(760px, 100%);
  margin-left: auto;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  color: #e2e8f0;
  font-family: "Manrope", system-ui, sans-serif;
  animation: mf-frame-in 760ms var(--lf-ease) both;
}

.mf-product-frame button {
  font-family: inherit;
}

.mf-product-topbar {
  min-height: 48px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  background: #0f172a;
  font-size: 10px;
}

.mf-product-brand,
.proof-app-topbar > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
}

.proof-brand-lockup {
  display: block;
  width: 70px;
  height: 20px;
  object-fit: contain;
  object-position: left center;
}

.mf-product-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.mf-product-tabs b,
.proof-app-topbar b {
  padding: 5px 8px;
  border-radius: 5px;
  color: #64748b;
  font-weight: 500;
}

.mf-product-tabs .is-active,
.proof-app-topbar .is-active {
  background: #1e293b;
  color: #e2e8f0;
}

.mf-product-online {
  color: #a5b4fc;
  white-space: nowrap;
}

.mf-product-online i,
.proof-app-topbar > span:last-child i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #4ade80;
}

.mf-product-intro {
  min-height: 72px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #1e293b;
}

.mf-product-intro > span:first-child {
  display: grid;
  gap: 5px;
}

.mf-product-intro > span:first-child b,
.mf-product-run-head small,
.mf-product-work > small,
.mf-product-runs-head,
.mf-product-foot,
.proof-app-foot,
.proof-run-list > div {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #64748b;
}

.mf-product-intro > span:first-child strong {
  font-size: 18px;
  letter-spacing: -0.025em;
}

.mf-product-summary {
  color: #fbbf24;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 9px;
}

.mf-product-summary b {
  font-size: 16px;
  margin-right: 4px;
}

.mf-product-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 430px;
}

.mf-product-runs {
  padding: 12px;
  border-right: 1px solid #1e293b;
  background: #0b1220;
}

.mf-product-runs-head,
.proof-run-list > div {
  display: flex;
  justify-content: space-between;
  margin: 2px 2px 10px;
}

.mf-run-row,
.proof-run-list button {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 11px;
  margin-bottom: 8px;
  text-align: left;
  border: 1px solid #1e293b;
  border-radius: 6px;
  background: #0f172a;
  color: #94a3b8;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms var(--lf-ease);
}

.mf-run-row:hover,
.proof-run-list button:hover {
  transform: translateY(-1px);
  border-color: #475569;
}

.mf-run-row.is-selected,
.proof-run-list button.is-selected {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(129, 140, 248, 0.5);
}

.mf-run-row strong,
.proof-run-list button strong {
  color: #e2e8f0;
  font-size: 11px;
  line-height: 1.35;
}

.mf-run-row small,
.proof-run-list button span {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 8px;
  color: #64748b;
}

.mf-run-state,
.proof-run-list button small {
  width: fit-content;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mf-run-state.is-warning,
.proof-run-list button:first-of-type small { color: #fbbf24; }
.mf-run-state.is-live,
.proof-run-list button:nth-of-type(2) small { color: #818cf8; }
.mf-run-state.is-complete,
.proof-run-list button:nth-of-type(3) small { color: #4ade80; }

.mf-product-run {
  min-width: 0;
  padding: 16px;
  background: #0f172a;
}

.mf-product-run-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.mf-product-run-head > span:first-child {
  display: grid;
  gap: 5px;
}

.mf-product-run-head strong {
  font-size: 16px;
  letter-spacing: -0.025em;
}

.mf-product-attention {
  padding-left: 10px;
  border-left: 2px solid #fbbf24;
  color: #fbbf24;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.mf-product-attention.is-running { color: #818cf8; border-color: #818cf8; }
.mf-product-attention.is-complete { color: #4ade80; border-color: #4ade80; }

.mf-product-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: start;
  margin: 24px 4px;
}

.mf-product-progress span {
  width: 54px;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.mf-product-progress i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid #475569;
  border-radius: 50%;
  color: #64748b;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 8px;
  font-style: normal;
}

.mf-product-progress b { font-size: 8px; }
.mf-product-progress small { color: #64748b; font-size: 7px; }
.mf-product-progress em { height: 1px; margin-top: 11px; background: #334155; }
.mf-product-progress .is-done i { border-color: #4ade80; color: #4ade80; }
.mf-product-progress .is-done small { color: #4ade80; }
.mf-product-progress .is-active i { border-color: #fbbf24; color: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.08); }
.mf-product-progress .is-active small { color: #fbbf24; }

.mf-product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(180px, .92fr);
  gap: 10px;
}

.mf-product-work,
.mf-product-gate {
  min-width: 0;
  padding: 13px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: #0b1220;
}

.mf-product-work > strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.mf-product-work > p,
.mf-product-gate p {
  margin: 4px 0 12px;
  color: #64748b;
  font-size: 9px;
  line-height: 1.5;
}

.mf-product-event {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #1e293b;
}

.mf-product-event > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.mf-product-event > span { display: grid; }
.mf-product-event b { font-size: 9px; }
.mf-product-event small { color: #64748b; font-size: 7px; }
.mf-product-event em { color: #4ade80; font-size: 7px; font-style: normal; }
.mf-product-event em.is-warning { color: #fbbf24; }

.mf-product-gate {
  border-color: rgba(251, 191, 36, 0.46);
  transition: border-color 220ms ease, background 220ms ease;
}

.mf-product-gate.is-inspected {
  border-color: rgba(129, 140, 248, 0.72);
  background: rgba(99, 102, 241, 0.08);
}

.mf-product-gate-label {
  color: #fbbf24;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 7px;
}

.mf-product-gate > strong {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.45;
}

.mf-product-gate button {
  width: 100%;
  min-height: 30px;
  border-radius: 4px;
  background: #6366f1;
  color: #fff;
  font-size: 9px;
}

.mf-product-foot,
.proof-app-foot {
  min-height: 38px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #1e293b;
  background: #0b1220;
}

.mf-neutral-run {
  min-height: 430px;
  padding: 14px 16px 16px;
  background: #0f172a;
}

.mf-neutral-run-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.mf-neutral-run-head > span:first-child {
  display: grid;
  gap: 5px;
}

.mf-neutral-run-head small,
.mf-neutral-run-head > span:last-child,
.mf-handoff-ledger-head,
.mf-neutral-boundary > span {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.07em;
  color: #64748b;
}

.mf-neutral-run-head strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.mf-neutral-run-head > span:last-child {
  padding: 5px 8px;
  border: 1px solid rgba(129, 140, 248, 0.24);
  border-radius: 999px;
  color: #a5b4fc;
  text-transform: uppercase;
  white-space: nowrap;
}

.mf-agent-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}

.mf-agent-node {
  position: relative;
  min-width: 0;
  min-height: 96px;
  padding: 10px;
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-areas:
    "avatar eyebrow"
    "avatar role"
    "status status";
  gap: 2px 7px;
  align-items: center;
  text-align: left;
  border: 1px solid #1e293b;
  border-radius: 6px;
  background: #0b1220;
  color: #94a3b8;
  cursor: pointer;
  transition: transform 180ms var(--lf-ease), border-color 180ms ease, background 180ms ease;
}

.mf-agent-node::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 29px;
  right: -11px;
  width: 10px;
  border-top: 1px solid #334155;
}

.mf-agent-node:last-child::after { display: none; }
.mf-agent-node:hover { transform: translateY(-1px); border-color: #475569; }
.mf-agent-node:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }

.mf-agent-node.is-selected {
  border-color: rgba(129, 140, 248, 0.72);
  background: rgba(99, 102, 241, 0.1);
}

.mf-agent-node.is-blocked.is-selected {
  border-color: rgba(251, 191, 36, 0.72);
  background: rgba(251, 191, 36, 0.045);
}

.mf-agent-node.is-done::after,
.mf-agent-node.is-active::after { border-color: #6366f1; }
.mf-agent-node.is-blocked::after { border-color: #fbbf24; }

.mf-agent-avatar {
  grid-area: avatar;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #475569;
  border-radius: 50%;
  background: #111827;
  color: #cbd5e1;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 9px;
}

.mf-agent-node small {
  grid-area: eyebrow;
  color: #64748b;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 7px;
  text-transform: uppercase;
}

.mf-agent-node strong {
  grid-area: role;
  min-width: 0;
  overflow: hidden;
  color: #e2e8f0;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-agent-node em {
  grid-area: status;
  width: fit-content;
  margin-top: 8px;
  padding: 3px 6px;
  border: 1px solid #334155;
  border-radius: 999px;
  color: #64748b;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 7px;
  font-style: normal;
  text-transform: uppercase;
}

.mf-agent-node.is-done em { color: #4ade80; border-color: rgba(74, 222, 128, 0.24); }
.mf-agent-node.is-active em,
.mf-agent-node.is-claimed em { color: #a5b4fc; border-color: rgba(129, 140, 248, 0.34); }
.mf-agent-node.is-blocked em { color: #fbbf24; border-color: rgba(251, 191, 36, 0.32); }

.mf-agent-node.is-active .mf-agent-avatar {
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.mf-agent-node.is-blocked .mf-agent-avatar { border-color: #fbbf24; color: #fbbf24; }

.mf-neutral-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(210px, .95fr);
  gap: 12px;
}

.mf-handoff-ledger,
.mf-neutral-boundary {
  min-width: 0;
  border: 1px solid #1e293b;
  border-radius: 6px;
  background: #0b1220;
}

.mf-handoff-ledger { padding: 11px; }

.mf-handoff-ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.mf-handoff-ledger-head b { color: #a5b4fc; font-weight: 500; }

.mf-handoff-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(51, 65, 85, 0.58);
  transition: background 180ms ease;
}

.mf-handoff-row.is-focus {
  margin-inline: -6px;
  padding-inline: 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.07);
}

.mf-handoff-row.is-blocked.is-focus { background: rgba(251, 191, 36, 0.06); }

.mf-handoff-row time,
.mf-handoff-row em {
  color: #64748b;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 7px;
  font-style: normal;
}

.mf-handoff-row > span { min-width: 0; display: grid; gap: 2px; }
.mf-handoff-row b { overflow: hidden; color: #cbd5e1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mf-handoff-row small { color: #64748b; font-size: 7px; }
.mf-handoff-row.is-complete em { color: #4ade80; }
.mf-handoff-row.is-active em { color: #a5b4fc; }
.mf-handoff-row.is-blocked em { color: #fbbf24; }

.mf-neutral-boundary {
  padding: 12px;
  border-color: rgba(129, 140, 248, 0.34);
  transition: border-color 180ms ease, background 180ms ease;
}

.mf-neutral-boundary.is-blocked {
  border-color: rgba(251, 191, 36, 0.46);
  background: rgba(251, 191, 36, 0.025);
}

.mf-neutral-boundary > span { color: #a5b4fc; }
.mf-neutral-boundary.is-blocked > span { color: #fbbf24; }

.mf-neutral-boundary > strong {
  display: block;
  margin-top: 9px;
  color: #e2e8f0;
  font-size: 11px;
  line-height: 1.42;
}

.mf-neutral-boundary > p {
  min-height: 42px;
  margin: 7px 0 11px;
  color: #64748b;
  font-size: 8px;
  line-height: 1.48;
}

.mf-neutral-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: #64748b;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mf-neutral-progress-copy b {
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0;
  text-align: right;
}

.mf-neutral-meter {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #1e293b;
}

.mf-neutral-meter i {
  display: block;
  width: var(--agent-progress, 40%);
  height: 100%;
  border-radius: inherit;
  background: #6366f1;
  transition: width 520ms var(--lf-ease), background 180ms ease;
}

.mf-neutral-boundary.is-blocked .mf-neutral-meter i { background: #fbbf24; }

.mf-neutral-holds {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.mf-neutral-holds span {
  padding: 4px 6px;
  border: 1px solid #1e293b;
  border-radius: 4px;
  color: #94a3b8;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 6px;
  text-transform: uppercase;
}

.section {
  padding: 132px 0;
  background: #050914;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.section-alt {
  background: #070c18;
}

.section-head {
  max-width: 800px;
  margin-bottom: 56px;
}

.section-head .title {
  margin-top: 16px;
}

.section-head .copy {
  margin-top: 18px;
  max-width: 46rem;
}

.control-gap-grid {
  gap: 76px;
}

.control-gap-title {
  font-size: clamp(2.35rem, 3.4vw, 3.5rem);
  font-weight: 520;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.control-gap-bridge {
  border-radius: 6px;
  background: #0b1220;
  border-color: #334155;
  box-shadow: none;
}

.control-gap-bridge {
  border-left-color: #818cf8;
}

.control-gap-drift-path,
.control-gap-drift-action,
.control-gap-drift-prompt {
  filter: none;
}

.mf-how-glow { display: none; }

.mf-how-window,
.mf-how-carousel,
.mf-how-scene,
.mf-how-rail,
.mf-how-topbar {
  box-shadow: none !important;
}

.mf-how-window {
  border-color: #334155 !important;
  border-radius: 8px !important;
  background: #0f172a !important;
}

.mf-how-topbar,
.mf-how-rail {
  background: #0b1220 !important;
  border-color: #1e293b !important;
}

.mf-how-traffic { display: none !important; }

.mf-how-scene {
  background: #0f172a !important;
}

.proof-app {
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.proof-app-topbar {
  min-height: 52px;
  padding: 8px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  background: #0f172a;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 10px;
}

.proof-app-topbar > span:nth-child(2) {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.proof-app-topbar > span:last-child {
  color: #a5b4fc;
  font-family: "Geist Mono", ui-monospace, monospace;
}

.proof-app-topbar > span:last-child i {
  animation: proof-ready-pulse 2.8s ease-in-out infinite;
}

.proof-app-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.proof-run-list {
  padding: 16px;
  border-right: 1px solid #1e293b;
  background: #0b1220;
}

.proof-run-list button {
  padding: 14px;
  margin-bottom: 10px;
}

.proof-run-list button strong { font-size: 12px; }

.proof-app.is-motion-ready .proof-app-topbar > span,
.proof-app.is-motion-ready .proof-run-list > div,
.proof-app.is-motion-ready .proof-run-list button {
  opacity: 0;
}

.proof-app.is-motion-ready .proof-app-topbar > span,
.proof-app.is-motion-ready .proof-run-list > div {
  transform: translateY(6px);
}

.proof-app.is-motion-ready .proof-run-list button {
  transform: translateX(-9px);
}

.proof-app.is-motion-ready.is-in-view .proof-app-topbar > span,
.proof-app.is-motion-ready.is-in-view .proof-run-list > div,
.proof-app.is-motion-ready.is-in-view .proof-run-list button {
  opacity: 1;
  transform: translate(0, 0);
  transition: opacity 440ms var(--lf-ease), transform 520ms var(--lf-ease);
}

.proof-app.is-in-view .proof-app-topbar > span:first-child { transition-delay: 60ms; }
.proof-app.is-in-view .proof-app-topbar > span:nth-child(2) { transition-delay: 110ms; }
.proof-app.is-in-view .proof-app-topbar > span:last-child { transition-delay: 160ms; }
.proof-app.is-in-view .proof-run-list > div { transition-delay: 220ms; }
.proof-app.is-in-view .proof-run-list button:nth-of-type(1) { transition-delay: 290ms; }
.proof-app.is-in-view .proof-run-list button:nth-of-type(2) { transition-delay: 360ms; }
.proof-app.is-in-view .proof-run-list button:nth-of-type(3) { transition-delay: 430ms; }

.proof-app.is-in-view .proof-run-list button.is-selected {
  animation: proof-selected-settle 900ms 720ms var(--lf-ease) 1 both;
}

.epic {
  border: 0;
  border-radius: 0;
  background: #0f172a;
  box-shadow: none;
}

.epic-head,
.epic-body {
  border-color: #1e293b;
}

.epic-head {
  align-items: start;
  padding: 20px 20px 18px;
}

.epic-title {
  max-width: 46em;
  font-size: 16px;
  line-height: 1.38;
  letter-spacing: -0.018em;
}

.epic-sub {
  color: #64748b;
}

.epic-status {
  min-width: 142px;
  gap: 2px;
  border-left-width: 2px;
  border-top: 1px solid #263246;
  border-right: 1px solid #263246;
  border-bottom: 1px solid #263246;
  border-radius: 0 6px 6px 0;
  background: #0b1220;
  padding: 10px 12px;
}

.epic-status .state {
  color: #71809a;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.epic-status .attn {
  font-size: 12px;
}

.epic-status .age {
  margin-top: 4px;
  font-size: 9px;
}

.epic-body {
  padding: 18px 20px 20px;
}

.epic-run-step {
  margin-bottom: 22px;
}

.pipe-step,
.pipe-line,
.epic-status,
.epic-run-label,
.epic-run-step,
.epic-foot {
  opacity: 0;
}

.pipe-step,
.epic-status,
.epic-run-label,
.epic-run-step,
.epic-foot {
  transform: translateY(7px);
}

.pipe-line {
  transform: scaleX(0);
  transform-origin: left center;
}

.epic.is-in-view .epic-status,
.epic.is-in-view .epic-run-label,
.epic.is-in-view .epic-run-step,
.epic.is-in-view .pipe-step,
.epic.is-in-view .epic-foot {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 440ms var(--lf-ease), transform 440ms var(--lf-ease);
}

.epic.is-in-view .pipe-line {
  opacity: .72;
  transform: scaleX(1);
  transition: opacity 360ms ease, transform 560ms var(--lf-ease);
}

.epic.is-in-view .epic-status { transition-delay: 100ms; }
.epic.is-in-view .epic-run-label { transition-delay: 150ms; }
.epic.is-in-view .epic-run-step { transition-delay: 210ms; }
.epic.is-in-view .pipeline > :nth-child(1) { transition-delay: 280ms; }
.epic.is-in-view .pipeline > :nth-child(2) { transition-delay: 400ms; }
.epic.is-in-view .pipeline > :nth-child(3) { transition-delay: 470ms; }
.epic.is-in-view .pipeline > :nth-child(4) { transition-delay: 590ms; }
.epic.is-in-view .pipeline > :nth-child(5) { transition-delay: 660ms; }
.epic.is-in-view .pipeline > :nth-child(6) { transition-delay: 780ms; }
.epic.is-in-view .pipeline > :nth-child(7) { transition-delay: 850ms; }
.epic.is-in-view .epic-foot { transition-delay: 940ms; }

.epic.is-in-view .pipe-step .pipe-node {
  animation: proof-node-pop 520ms var(--lf-ease) both;
}

.epic.is-in-view .pipeline > :nth-child(1) .pipe-node { animation-delay: 310ms; }
.epic.is-in-view .pipeline > :nth-child(3) .pipe-node { animation-delay: 500ms; }
.epic.is-in-view .pipeline > :nth-child(5) .pipe-node { animation-delay: 690ms; }
.epic.is-in-view .pipeline > :nth-child(7) .pipe-node { animation-delay: 880ms; }

.epic.is-in-view .pipe-step .pipe-node.active {
  animation:
    proof-node-pop 520ms 690ms var(--lf-ease) both,
    mf-attention-breathe 1800ms 1.45s ease-in-out 2;
}

.pipe-line.partial {
  position: relative;
  overflow: hidden;
}

.pipe-line.partial::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(165, 180, 252, .88), transparent);
  transform: translateX(-140%);
}

.epic.is-in-view .pipe-line.partial::after {
  animation: proof-line-scan 2.6s 1.15s ease-in-out 2;
}

.epic.is-in-view .epic-status {
  animation: proof-blocker-breathe 3.4s 1.2s ease-in-out infinite;
}

@keyframes proof-ready-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
  50% { opacity: .72; box-shadow: 0 0 0 4px rgba(74, 222, 128, .08); }
}

@keyframes proof-selected-settle {
  0% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0); }
  45% { box-shadow: 0 0 0 3px rgba(129, 140, 248, .09); }
  100% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0); }
}

@keyframes proof-node-pop {
  0% { transform: scale(.76); }
  68% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes proof-line-scan {
  0%, 18% { transform: translateX(-140%); opacity: 0; }
  36% { opacity: 1; }
  72%, 100% { transform: translateX(280%); opacity: 0; }
}

@keyframes proof-blocker-breathe {
  0%, 100% { border-left-color: #f59e0b; }
  50% { border-left-color: #fbbf24; box-shadow: -8px 0 22px -18px rgba(251, 191, 36, .7); }
}

/* Marketing proof: one governed run, with the progression as the primary read. */
.proof-run {
  padding: 0;
  font-family: "Manrope", system-ui, sans-serif;
}

.proof-run-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 32px 26px;
  border-bottom: 1px solid #1e293b;
}

.proof-run-head > div:first-child { max-width: 680px; }
.proof-run-kicker {
  margin-bottom: 10px;
  color: #818cf8;
  font: 700 9px "Geist Mono", ui-monospace, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.proof-run-head h3 {
  color: #f1f5f9;
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 560;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.proof-run-head > div:first-child > p:last-child {
  margin-top: 9px;
  color: #8492a8;
  font-size: 13px;
  line-height: 1.55;
}
.proof-run-summary {
  min-width: 118px;
  padding-left: 22px;
  border-left: 1px solid #334155;
  text-align: right;
}
.proof-run-summary strong,
.proof-run-summary span { display: block; }
.proof-run-summary strong { color: #e2e8f0; font-size: 22px; font-weight: 560; }
.proof-run-summary span { margin-top: 4px; color: #64748b; font: 8px "Geist Mono", ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; }

.proof-flow {
  display: grid;
  grid-template-columns: minmax(0,1fr) 50px minmax(0,1fr) 50px minmax(0,1fr) 50px minmax(0,1fr);
  align-items: center;
  padding: 32px;
}
.proof-stage {
  position: relative;
  min-height: 150px;
  padding: 20px;
  border: 1px solid #27344a;
  border-radius: 8px;
  background: #0b1220;
}
.proof-stage-index,
.proof-stage-state {
  font: 700 8px "Geist Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.proof-stage-index { color: #52617a; }
.proof-stage-state { float: right; color: #64748b; }
.proof-stage h4 { margin-top: 26px; color: #dbe4f3; font-size: 14px; font-weight: 600; }
.proof-stage p { margin-top: 5px; color: #8492a8; font-size: 11px; }
.proof-stage small { display: block; margin-top: 14px; color: #64748b; font: 8px/1.4 "Geist Mono", ui-monospace, monospace; }
.proof-stage.is-done { border-color: rgba(74,222,128,.22); }
.proof-stage.is-done .proof-stage-state,
.proof-stage.is-done small { color: #4ade80; }
.proof-stage.is-current {
  border-color: rgba(251,191,36,.64);
  background: rgba(251,191,36,.045);
  box-shadow: 0 0 0 1px rgba(251,191,36,.05), 0 20px 40px -34px rgba(251,191,36,.8);
}
.proof-stage.is-current .proof-stage-index,
.proof-stage.is-current .proof-stage-state,
.proof-stage.is-current small { color: #fbbf24; }
.proof-flow-line { height: 1px; background: #334155; transform-origin: left center; }
.proof-flow-line.is-done { background: #4ade80; opacity: .66; }
.proof-flow-line.is-current { background: linear-gradient(90deg,#4ade80,#fbbf24); opacity: .75; }

.proof-focus {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(260px,.7fr);
  gap: 12px;
  margin: 0 32px;
  padding: 12px;
  border: 1px solid #27344a;
  border-radius: 10px;
  background: #0b1220;
}
.proof-focus-copy { padding: 16px 18px; }
.proof-focus-copy > span,
.proof-action-needed > span,
.proof-evidence > span {
  color: #818cf8;
  font: 700 8px "Geist Mono", ui-monospace, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.proof-focus-copy h4 { margin-top: 9px; color: #e2e8f0; font-size: 16px; font-weight: 560; line-height: 1.35; }
.proof-focus-copy p { margin-top: 7px; max-width: 56em; color: #8492a8; font-size: 11px; line-height: 1.55; }
.proof-action-needed {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 17px 18px;
  border-left: 2px solid #fbbf24;
  border-radius: 6px;
  background: rgba(251,191,36,.055);
}
.proof-action-needed > span { color: #fbbf24; }
.proof-action-needed strong { color: #f8fafc; font-size: 13px; }
.proof-action-needed small { color: #7f8da3; font-size: 9px; line-height: 1.45; }

.proof-evidence {
  display: grid;
  grid-template-columns: 1.35fr repeat(4,1fr);
  align-items: stretch;
  margin: 12px 32px 30px;
  border: 1px solid #27344a;
  border-radius: 8px;
  overflow: hidden;
}
.proof-evidence > span { display: flex; align-items: center; padding: 14px 16px; }
.proof-evidence > div { padding: 12px 14px; border-left: 1px solid #27344a; }
.proof-evidence strong,
.proof-evidence small { display: block; }
.proof-evidence strong { color: #cbd5e1; font-size: 10px; }
.proof-evidence small { margin-top: 3px; color: #4ade80; font: 8px "Geist Mono", ui-monospace, monospace; }
.proof-evidence .is-pending small { color: #fbbf24; }

.proof-app.is-motion-ready .proof-run-head,
.proof-app.is-motion-ready .proof-stage,
.proof-app.is-motion-ready .proof-flow-line,
.proof-app.is-motion-ready .proof-focus,
.proof-app.is-motion-ready .proof-evidence { opacity: 0; }
.proof-app.is-motion-ready .proof-run-head,
.proof-app.is-motion-ready .proof-stage,
.proof-app.is-motion-ready .proof-focus,
.proof-app.is-motion-ready .proof-evidence { transform: translateY(8px); }
.proof-app.is-motion-ready .proof-flow-line { transform: scaleX(0); }
.proof-app.is-motion-ready.is-in-view .proof-run-head,
.proof-app.is-motion-ready.is-in-view .proof-stage,
.proof-app.is-motion-ready.is-in-view .proof-focus,
.proof-app.is-motion-ready.is-in-view .proof-evidence {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 440ms var(--lf-ease), transform 520ms var(--lf-ease);
}
.proof-app.is-motion-ready.is-in-view .proof-flow-line {
  opacity: .72;
  transform: scaleX(1);
  transition: opacity 360ms ease, transform 520ms var(--lf-ease);
}
.proof-app.is-in-view .proof-run-head { transition-delay: 180ms; }
.proof-app.is-in-view .proof-flow > :nth-child(1) { transition-delay: 360ms; }
.proof-app.is-in-view .proof-flow > :nth-child(2) { transition-delay: 520ms; }
.proof-app.is-in-view .proof-flow > :nth-child(3) { transition-delay: 610ms; }
.proof-app.is-in-view .proof-flow > :nth-child(4) { transition-delay: 770ms; }
.proof-app.is-in-view .proof-flow > :nth-child(5) { transition-delay: 860ms; }
.proof-app.is-in-view .proof-flow > :nth-child(6) { transition-delay: 1020ms; }
.proof-app.is-in-view .proof-flow > :nth-child(7) { transition-delay: 1110ms; }
.proof-app.is-in-view .proof-focus { transition-delay: 1260ms; }
.proof-app.is-in-view .proof-evidence { transition-delay: 1420ms; }
.proof-app.is-in-view .proof-stage.is-current { animation: proof-current-hold 2.8s 1.6s ease-in-out infinite; }

@keyframes proof-current-hold {
  0%,100% { border-color: rgba(251,191,36,.52); }
  50% { border-color: rgba(251,191,36,.82); box-shadow: 0 0 0 1px rgba(251,191,36,.06),0 20px 46px -32px rgba(251,191,36,.75); }
}

/* Scope gate: the boundary, proposal, and enforcement decision in one readable sequence. */
.scope-gate-demo {
  overflow: hidden;
  width: min(100%, 650px);
  margin-inline: auto;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0b1220;
  box-shadow: 0 28px 70px rgba(0,0,0,.26);
  color: #e2e8f0;
  font-family: "Manrope", system-ui, sans-serif;
}
.scope-gate-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  border-bottom: 1px solid #1e293b;
  background: #0f172a;
  font: 8px "Geist Mono", ui-monospace, monospace;
  color: #64748b;
}
.scope-gate-head > span:first-child { display: flex; align-items: center; gap: 8px; }
.scope-gate-head b { color: #cbd5e1; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.scope-gate-head small { color: #52617a; font-size: 7px; }
.scope-gate-head > span:last-child { color: #86efac; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.scope-gate-head i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,.55); }

.scope-contract { padding: 20px 22px 18px; border-bottom: 1px solid #1e293b; }
.scope-gate-label { color: #818cf8; font: 700 7px "Geist Mono", ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.scope-contract h3 { margin-top: 8px; color: #f1f5f9; font-size: 17px; font-weight: 560; letter-spacing: -.025em; line-height: 1.35; }
.scope-contract > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.scope-contract > div > span { padding: 10px 11px; border: 1px solid #27344a; border-radius: 6px; background: #0f172a; }
.scope-contract small,.scope-contract strong { display: block; }
.scope-contract small { color: #64748b; font: 7px "Geist Mono", ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; }
.scope-contract strong { margin-top: 4px; color: #cbd5e1; font-size: 10px; font-weight: 600; }
.scope-contract > div > span:last-child { border-color: rgba(129,140,248,.38); background: rgba(99,102,241,.07); }
.scope-contract > div > span:last-child strong { color: #c7d2fe; }

.scope-check-flow {
  display: grid;
  grid-template-columns: minmax(96px,1fr) 34px minmax(96px,1fr) 34px minmax(96px,1fr);
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid #1e293b;
}
.scope-check-node { display: grid; grid-template-columns: 26px minmax(0,1fr); column-gap: 8px; align-items: center; }
.scope-check-node > span { grid-row: 1 / 3; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #475569; border-radius: 50%; color: #64748b; font: 700 7px "Geist Mono", ui-monospace, monospace; }
.scope-check-node strong { color: #cbd5e1; font-size: 9px; font-weight: 600; line-height: 1.3; }
.scope-check-node small { color: #64748b; font: 7px "Geist Mono", ui-monospace, monospace; line-height: 1.35; }
.scope-check-node.is-complete > span { border-color: rgba(74,222,128,.55); color: #4ade80; }
.scope-check-node.is-active > span { border-color: rgba(129,140,248,.7); color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99,102,241,.08); }
.scope-check-node.is-blocked > span { border-color: rgba(248,113,113,.7); color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.07); }
.scope-check-node.is-blocked small { color: #fca5a5; }
.scope-check-line { position: relative; height: 1px; background: #334155; }
.scope-check-line.is-complete { background: rgba(74,222,128,.65); }
.scope-check-line.is-blocked { background: linear-gradient(90deg,#818cf8,#f87171); }
.scope-check-line.is-blocked i { position: absolute; top: -3px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: #a5b4fc; box-shadow: 0 0 9px rgba(129,140,248,.8); animation: scope-gate-scan 4.8s cubic-bezier(.4,0,.2,1) infinite; }

.scope-result-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10px; padding: 18px 22px 22px; }
.scope-proposal,.scope-decision { min-width: 0; padding: 14px 15px; border: 1px solid #27344a; border-radius: 7px; background: #0f172a; }
.scope-proposal p { margin-top: 10px; color: #7f8da3; font-size: 10px; }
.scope-proposal > strong { display: block; margin-top: 3px; color: #e2e8f0; font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.scope-decision { border-color: rgba(248,113,113,.42); background: rgba(248,113,113,.045); animation: scope-gate-blocked 4.8s ease-in-out infinite; }
.scope-decision .scope-gate-label { color: #fca5a5; }
.scope-decision > strong { display: block; margin-top: 9px; color: #f8fafc; font-size: 13px; font-weight: 650; }
.scope-decision p { margin-top: 6px; color: #8b98ad; font-size: 9px; line-height: 1.5; }
.scope-decision p b { color: #fca5a5; font-weight: 600; }
@keyframes scope-gate-scan { 0%,14%{left:-3px;opacity:0}22%{opacity:1}62%{left:calc(100% - 3px);background:#a5b4fc;opacity:1}70%,100%{left:calc(100% - 3px);background:#f87171;opacity:0} }
@keyframes scope-gate-blocked { 0%,56%,100%{border-color:rgba(248,113,113,.3);box-shadow:none}68%,84%{border-color:rgba(248,113,113,.65);box-shadow:0 18px 38px -30px rgba(248,113,113,.85)} }

@media (max-width: 620px) {
  .scope-contract { padding-inline: 16px; }
  .scope-contract > div { grid-template-columns: 1fr; }
  .scope-check-flow { grid-template-columns: 1fr; gap: 0; padding-inline: 16px; }
  .scope-check-line { width: 1px; height: 16px; margin-left: 13px; }
  .scope-check-line.is-blocked { background: linear-gradient(180deg,#818cf8,#f87171); }
  .scope-check-line.is-blocked i { display: none; }
  .scope-result-grid { grid-template-columns: 1fr; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .scope-check-line.is-blocked i,.scope-decision { animation: none; }
  .scope-check-line.is-blocked i { left: calc(100% - 3px); background: #f87171; opacity: 1; }
}

/* Native hero composition: copy leads; the film belongs to the page rather than a player. */
.hero {
  min-height: 0;
  padding: clamp(5.5rem, 10vw, 8.5rem) 0 clamp(5rem, 9vw, 7.5rem);
  align-items: flex-start;
  overflow: clip;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(3.25rem, 6vw, 5.75rem);
  }
}

.hero-copy {
  max-width: 61rem;
  margin-inline: auto;
  align-items: center;
  text-align: center;
}

.hero-copy .display { max-width: 13em; }
.hero-copy .lede { max-width: 47rem; }
.hero-actions { justify-content: center; }
.hero-compat { max-width: 46rem; }

.hero-visual {
  width: 100%;
  display: block;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 13% 10% -2%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, .14), transparent 67%);
  filter: blur(42px);
  opacity: .8;
}

.hero-film {
  width: min(1240px, 100%);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.hero-film__viewport {
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background-color: #030711;
  box-shadow:
    0 42px 120px rgba(0, 0, 0, .46),
    0 0 0 1px rgba(129, 140, 248, .19),
    0 0 90px rgba(99, 102, 241, .075);
}

.hero-film__viewport::after {
  border-color: rgba(226, 232, 240, .045);
  border-radius: inherit;
}

.hero-film figcaption { display: none; }

@media (max-width: 820px) {
  .hero-copy { align-items: flex-start; text-align: left; }
  .hero-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .hero { padding-top: 50px; }
  .hero-grid { gap: 42px; }
  .hero-film__viewport {
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    background-image: url('/assets/midfleet-boundary-workflow-poster-mobile.png?v=20260809-brand-lockup-7');
  }
  .hero-visual { margin-inline: -8px; width: calc(100% + 16px); }
}

@media (max-width: 900px) {
  .proof-run-head { align-items: start; }
  .proof-flow {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .proof-stage { min-height: 0; }
  .proof-stage h4 { margin-top: 18px; }
  .proof-flow-line {
    width: 1px;
    height: 18px;
    margin-left: 24px;
    transform-origin: top center;
  }
  .proof-app.is-motion-ready .proof-flow-line { transform: scaleY(0); }
  .proof-app.is-motion-ready.is-in-view .proof-flow-line { transform: scaleY(1); }
  .proof-focus { grid-template-columns: 1fr; margin-inline: 24px; }
  .proof-action-needed { border-top: 2px solid #fbbf24; border-left: 0; }
  .proof-evidence { grid-template-columns: 1fr 1fr; margin-inline: 24px; }
  .proof-evidence > span { grid-column: 1 / -1; border-bottom: 1px solid #27344a; }
  .proof-evidence > div:nth-of-type(odd) { border-left: 0; }
  .proof-evidence > div:nth-of-type(n+3) { border-top: 1px solid #27344a; }
}

@media (max-width: 560px) {
  .proof-run-head { align-items: start; padding: 22px 18px; }
  .proof-run-summary { min-width: 92px; padding-left: 14px; }
  .proof-run-summary strong { font-size: 18px; }
  .proof-flow { padding: 20px 18px; }
  .proof-focus { margin-inline: 18px; }
  .proof-focus-copy { padding: 13px 12px; }
  .proof-evidence { margin: 10px 18px 22px; }
}

.op,
.path {
  border-radius: 6px;
  border-color: #334155;
  background: #0b1220;
  box-shadow: none;
  transition: border-color 180ms ease, transform 180ms var(--lf-ease);
}

.op:hover,
.path:hover {
  transform: translateY(-3px);
  border-color: #475569;
}

.ops .op {
  opacity: 0;
  transform: translateY(12px);
}

.ops.is-in-view .op {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms var(--lf-ease), transform 520ms var(--lf-ease), border-color 180ms ease, background-color 180ms ease;
}

.ops.is-in-view .op:nth-child(2) { transition-delay: 90ms; }
.ops.is-in-view .op:nth-child(3) { transition-delay: 180ms; }

.ops.is-in-view .op:hover {
  transform: translateY(-3px);
  background: #0e1627;
}

.op::before,
.path::before,
.op::after,
.path::after {
  display: none !important;
}

.op-tags span,
.tag {
  border-radius: 4px;
  background: #0f172a;
  border-color: #334155;
}

.fit-section {
  background: #050914;
}

.connected-stack,
.connected-stack__stage,
.connected-stack__source-card,
.connected-stack__control,
.connected-stack__outcome {
  box-shadow: none !important;
}

.connected-stack__stage {
  border-color: #334155 !important;
  background: #070c18 !important;
}

.connected-stack__source-card,
.connected-stack__control,
.connected-stack__outcome {
  border-radius: 6px !important;
  background: #0b1220 !important;
}

.connected-stack__source-card::before,
.connected-stack__source-card::after,
.connected-stack__control::before,
.connected-stack__outcome::before {
  box-shadow: none !important;
}

/* The ecosystem stays neutral here; named integrations live in the section below. */
.connected-stack {
  width: min(1080px, 100%);
}

.connected-stack__stage {
  grid-template-columns: minmax(0, 27%) minmax(300px, 35%) minmax(200px, 20%);
  gap: 9%;
  min-height: 470px;
}

.connected-stack__source-card {
  min-height: 92px;
  padding: 15px 16px 14px;
}

.connected-stack__source-card::after,
.connected-stack__outcome::before { display: none !important; }

.connected-stack__signal-label {
  right: -75px;
  width: 60px;
}

.connected-stack__route {
  stroke-width: 1.25;
  stroke-dasharray: none;
  animation: none;
}

.connected-stack__particle,
.connected-stack__port { display: none !important; }

.connected-stack__description {
  max-width: 24em;
  margin: 7px 0 0;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.45;
}

.connected-stack__control {
  position: relative;
  min-height: 430px;
  padding: 22px 24px;
}

.connected-stack__port {
  position: absolute;
  z-index: 4;
  width: 8px;
  height: 8px;
  border: 2px solid #818cf8;
  border-radius: 999px;
  background: #0b1220;
  box-shadow: 0 0 10px rgba(129, 140, 248, .32);
  pointer-events: none;
}

.connected-stack__port--input {
  left: 0;
  transform: translate(-50%, -50%);
}

.connected-stack__port--input-1 { top: 20.24%; }
.connected-stack__port--input-2 { top: 38.10%; }
.connected-stack__port--input-3 { top: 55.95%; }
.connected-stack__port--input-4 { top: 73.80%; }

.connected-stack__port--output {
  top: 50%;
  right: 0;
  border-color: #4ade80;
  background: #0b171a;
  box-shadow: 0 0 10px rgba(74, 222, 128, .34);
  transform: translate(50%, -50%);
}

.connected-stack__control-summary { max-width: 250px; }
.connected-stack__outcome h3 { font-size: 18px; }

/* Shared compatibility matrix for public feature and integration surfaces. */
.fit-section + .compatibility-section { padding-top: 64px; }

.compatibility-section {
  overflow: clip;
  padding-bottom: clamp(5rem, 9vw, 7.5rem);
  background:
    radial-gradient(ellipse 64% 72% at 76% 36%, rgba(99, 102, 241, 0.075), transparent 60%),
    radial-gradient(ellipse 44% 60% at 8% 48%, rgba(129, 140, 248, 0.045), transparent 62%),
    #050914;
}

.compatibility-layout {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.5fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: center;
}

.compatibility-copy { max-width: 29rem; }
.compatibility-copy .kicker { color: var(--indigo-light); }
.compatibility-copy .title {
  max-width: 12em;
  margin-top: 18px;
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  line-height: 1.08;
}
.compatibility-copy .copy {
  max-width: 31em;
  margin-top: 22px;
  font-size: 1rem;
  line-height: 1.65;
}

.compatibility-matrix {
  display: grid;
  gap: 34px;
  min-width: 0;
}

.compatibility-row {
  min-width: 0;
  overflow: hidden;
}

.compatibility-row h3 {
  margin: 0 0 14px;
  color: var(--indigo-light);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.compatibility-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 0;
  padding: 1px 3px 5px;
  list-style: none;
  animation: compatibility-drift 14s ease-in-out infinite alternate;
  will-change: transform;
}

.compatibility-row--harnesses .compatibility-track { animation-duration: 16s; }
.compatibility-row--systems .compatibility-track { animation-duration: 18s; }
.compatibility-row:hover .compatibility-track,
.compatibility-row:focus-within .compatibility-track { animation-play-state: paused; }

.compatibility-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #334155;
  border-radius: 6px;
  background: rgba(11, 18, 32, .68);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms var(--lf-ease);
}

.compatibility-chip:hover,
.compatibility-chip:focus-within {
  border-color: #475569;
  background: rgba(15, 23, 42, .92);
  color: #f8fafc;
  transform: translateY(-2px);
}

.compatibility-chip img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: invert(91%) sepia(8%) saturate(389%) hue-rotate(179deg) brightness(102%) contrast(92%);
  opacity: .92;
}

.compatibility-chip--extension {
  border-color: rgba(148, 163, 184, .16);
  color: #64748b;
}

@keyframes compatibility-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-12px); }
}

@media (max-width: 960px) {
  .compatibility-layout { grid-template-columns: 1fr; gap: 42px; }
  .compatibility-copy { max-width: 40rem; }
  .compatibility-copy .title { max-width: 14em; }
  .compatibility-matrix { gap: 28px; }
}

@media (max-width: 920px) {
  .connected-stack__stage { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .connected-stack__routes { display: none; }
  .connected-stack__sources,
  .connected-stack__control,
  .connected-stack__outcome { position: relative; }
  .connected-stack__source-list { grid-template-columns: 1fr 1fr; }
  .connected-stack__source-card::after,
  .connected-stack__signal-label,
  .connected-stack__port,
  .connected-stack__outcome::before,
  .connected-stack__control::before { display: none; }
  .connected-stack__control,
  .connected-stack__outcome { width: 100%; min-height: 0; }
  .connected-stack__adds ul { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .compatibility-section { padding-top: 56px; }
  .compatibility-layout { gap: 34px; }
  .compatibility-copy .title { font-size: clamp(2rem, 11vw, 3rem); }
  .compatibility-copy .copy { font-size: .95rem; }
  .compatibility-row { overflow-x: auto; mask-image: none; scrollbar-width: none; }
  .compatibility-row::-webkit-scrollbar { display: none; }
  .compatibility-track { animation: none; padding-right: 16px; }
  .compatibility-chip { min-height: 44px; padding-inline: 15px; font-size: 12px; }
}

@media (max-width: 560px) {
  .section.fit-section { padding-top: 56px; }
  .connected-stack__source-list,
  .connected-stack__adds ul { grid-template-columns: 1fr; }
  .connected-stack__stage { padding: 16px; }
  .connected-stack__source-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .compatibility-track { animation: none; }
  .compatibility-chip { transition: none; }
}

.compatibility-section + #deploy.section { padding-top: 72px; }

#deploy.section {
  padding-top: 132px;
  padding-bottom: 132px;
}

.deploy-grid {
  gap: 12px;
}

.path {
  min-height: 220px;
  padding: 28px;
}

.path .btn {
  margin-top: auto;
}

.mf-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms var(--lf-ease), transform 640ms var(--lf-ease);
}

.mf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes mf-frame-in {
  from { opacity: 0; transform: translateY(18px) scale(.988); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mf-attention-breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(248, 113, 113, 0.035); }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(430px, .74fr) minmax(0, 1.26fr);
    gap: 48px;
  }
}

@media (max-width: 1100px) {
  .hero {
    min-height: 0;
    padding-top: 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy { max-width: 48rem; }
  .mf-product-frame { width: 100%; margin: 8px 0 0; }
}

@media (max-width: 820px) {
  .shell { width: min(var(--max), calc(100% - 40px)); }
  .section { padding: 96px 0; }
  .display, .hero-copy h1 { font-size: clamp(2.7rem, 11vw, 3.7rem); }
  .title, .control-gap-title { font-size: clamp(2rem, 8vw, 3rem); }
  .mf-product-layout { grid-template-columns: 1fr; }
  .mf-product-runs { border-right: 0; border-bottom: 1px solid #1e293b; }
  .mf-product-runs .mf-run-row:not(.is-selected) { display: none; }
  .mf-product-detail-grid { grid-template-columns: 1fr; }
  .mf-agent-path {
    grid-template-columns: repeat(5, minmax(104px, 1fr));
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .proof-app-body { grid-template-columns: 1fr; }
  .proof-run-list { border-right: 0; border-bottom: 1px solid #1e293b; }
  .proof-run-list button:not(.is-selected) { display: none; }
}

@media (max-width: 720px) {
  .epic-status {
    border: 1px solid #263246;
    border-top: 2px solid #f59e0b;
    border-radius: 6px;
    padding: 10px 12px;
  }

  .pipeline {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
  }

  .pipe-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    min-width: 0;
    padding: 7px 0;
    text-align: left;
  }

  .pipe-node {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
  }

  .pipe-name { grid-column: 2; grid-row: 1; }
  .pipe-agent { grid-column: 2; grid-row: 2; margin-top: 2px; word-break: normal; }
  .pipe-state { grid-column: 3; grid-row: 1 / 3; margin: 0; text-align: right; }

  .pipe-line {
    width: 2px;
    height: 14px;
    margin: 0 0 0 13px;
    transform: scaleY(0);
    transform-origin: top center;
  }

  .epic.is-in-view .pipe-line { transform: scaleY(1); }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .hero { padding: 64px 0 80px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .mf-product-tabs { display: none; }
  .mf-product-topbar { grid-template-columns: 1fr auto; }
  .mf-product-intro { align-items: start; }
  .mf-product-progress { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .mf-product-progress em { display: none; }
  .mf-product-progress span { width: auto; }
  .mf-neutral-run { padding-inline: 12px; }
  .mf-neutral-detail-grid { grid-template-columns: 1fr; }
  .mf-neutral-run-head { align-items: start; }
  .mf-neutral-run-head > span:last-child { white-space: normal; text-align: right; }
  .mf-product-foot, .proof-app-foot { flex-direction: column; }
  .proof-app-topbar { grid-template-columns: 1fr auto; }
  .proof-app-topbar > span:nth-child(2) { display: none; }
}

/* Mobile refinement: keep the same system, with tighter rhythm and touch-sized controls. */
@media (max-width: 620px) {
  html { scroll-padding-top: 64px; }

  .shell { width: calc(100% - 32px); }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 34px; }
  .section-head .title { margin-top: 14px; }
  .section-head .copy { margin-top: 16px; }
  .display,
  .hero-copy h1 { font-size: clamp(2.65rem, 12vw, 3.3rem); }
  .title,
  .control-gap-title { font-size: clamp(2rem, 9vw, 2.7rem); }
  .lede,
  .copy { font-size: .96rem; line-height: 1.65; }
  .kicker { line-height: 1.35; }

  .hero {
    padding: 48px 0 68px;
    align-items: start;
  }
  .hero-grid { gap: 32px; }
  .hero-copy { gap: 18px; }
  .hero-actions { gap: 10px; margin-top: 4px; }
  .hero-actions .btn { min-height: 48px; }
  .hero-compat { margin-top: 0; line-height: 1.5; }
  .hero-visual { align-items: start; }
  .mf-product-frame { margin-top: 0; }
  .mf-product-topbar { min-height: 44px; padding-inline: 10px; }
  .mf-product-intro {
    min-height: 0;
    padding: 12px;
    align-items: start;
  }
  .mf-product-intro > span:first-child strong { font-size: 16px; }
  .mf-product-summary { max-width: 92px; line-height: 1.4; text-align: right; }
  .mf-neutral-run { min-height: 0; padding: 12px 10px; }
  .mf-neutral-run-head { gap: 10px; }
  .mf-neutral-run-head > span:last-child { max-width: 112px; line-height: 1.35; }
  .mf-agent-path {
    margin: 14px 0 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #475569 #0b1220;
    overscroll-behavior-inline: contain;
  }
  .mf-agent-node { min-height: 90px; scroll-snap-align: start; }
  .mf-neutral-detail-grid { gap: 10px; }
  .mf-handoff-ledger { padding: 9px; }
  .mf-handoff-row { min-height: 37px; }
  .mf-neutral-boundary { padding: 10px; }
  .mf-neutral-boundary > p { min-height: 0; }
  .mf-product-foot { display: none; }

  .control-gap-grid { gap: 42px; }
  #how-it-works.section { padding-block: 64px 72px; }
  .how-grid { gap: 38px; }
  .how-legend { gap: 10px; }
  .mf-how-carousel { margin-top: 0; }
  .mf-how-controls button { min-width: 44px; min-height: 44px; }

  #product-proof.section { padding-block: 72px; }
  .proof-app { margin-top: 30px; }
  .proof-run-list { padding: 12px; }
  .epic-head { padding: 16px 16px 14px; }
  .epic-body { padding: 16px; }
  .epic-title { font-size: 15px; }
  .proof-app-foot { display: none; }
  .epic-foot { margin-top: 14px; }

  .ops { gap: 10px; margin-top: 32px; }
  .op { padding: 20px 18px; }

  .section.fit-section { padding-block: 72px; }
  .fit-head { text-align: left; }
  .fit-head .kicker::before { display: inline-block; }
  .fit-head .copy { margin-top: 16px; }
  .connected-stack { margin-top: 32px; }
  .connected-stack__stage { gap: 16px; padding: 14px; }
  .connected-stack__source-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .connected-stack__source-card { min-height: 98px; padding: 13px 12px; }
  .connected-stack__description { margin-top: 5px; font-size: 9px; }
  .connected-stack__control { padding: 18px; }
  .connected-stack__capabilities { gap: 6px; }
  .connected-stack__adds { padding-top: 12px; }
  .connected-stack__adds ul { grid-template-columns: 1fr 1fr; gap: 7px; }
  .connected-stack__adds li { min-height: 44px; }
  .connected-stack__outcome { padding: 18px; }

  .fit-section + .compatibility-section,
  .compatibility-section { padding-top: 72px; }
  .compatibility-section { padding-bottom: 72px; }
  .compatibility-layout { gap: 36px; }
  .compatibility-copy .title { margin-top: 14px; }
  .compatibility-copy .copy { margin-top: 16px; }
  .compatibility-matrix { gap: 26px; }
  .compatibility-row {
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .compatibility-row h3 { position: sticky; left: 0; width: max-content; }
  .compatibility-track { padding-left: 0; padding-bottom: 4px; }
  .compatibility-chip { scroll-snap-align: start; }

  .compatibility-section + #deploy.section,
  #deploy.section { padding-block: 72px; }
  .deploy-grid { margin-top: 30px; }
  .path { min-height: 0; padding: 22px; }
  .path .btn { width: 100%; min-height: 46px; }

}

@media (max-width: 340px) {
  .connected-stack__source-list,
  .connected-stack__adds ul { grid-template-columns: 1fr; }
  .connected-stack__source-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .proof-app.is-in-view .proof-stage.is-current,
  .proof-run-head,
  .proof-stage,
  .proof-flow-line,
  .proof-focus,
  .proof-evidence {
    animation: none !important;
    transition: none !important;
  }

  .mf-product-frame,
  .mf-reveal,
  .mf-run-row,
  .mf-agent-node,
  .mf-neutral-meter i,
  .proof-run-list button,
  .proof-app-topbar > span:last-child i,
  .proof-run-list button.is-selected,
  .pipe-line.partial::after,
  .op,
  .pipe-step,
  .pipe-line,
  .epic-status,
  .epic-run-label,
  .epic-run-step,
  .epic-foot,
  .epic.is-in-view .epic-status,
  .path {
    animation: none !important;
    transition: none !important;
  }

  .mf-reveal,
  .proof-app.is-motion-ready .proof-app-topbar > span,
  .proof-app.is-motion-ready .proof-run-list > div,
  .proof-app.is-motion-ready .proof-run-list button,
  .pipe-step,
  .pipe-line,
  .epic-status,
  .epic-run-label,
  .epic-run-step,
  .epic-foot,
  .ops .op {
    opacity: 1;
    transform: none;
  }
}

/* Annotation refinement: terminal-only CLI and a compact, live governed run. */
.mf-how-carousel.is-cli-active .mf-how-topbar,
.mf-how-carousel.is-cli-active .mf-how-rail {
  display: none !important;
}

.mf-how-carousel.is-cli-active .mf-how-window {
  border-color: #29364e !important;
  border-radius: 9px !important;
  background: #070b12 !important;
}

.mf-how-carousel.is-cli-active .mf-how-workspace {
  grid-template-columns: minmax(0, 1fr);
  min-height: 410px;
}

.mf-how-carousel.is-cli-active .mf-how-scenes,
.mf-how-carousel.is-cli-active .mf-terminal-scene {
  background: #070b12 !important;
}

.mf-how-carousel.is-cli-active .mf-terminal-scene {
  padding: 0 !important;
}

.mf-how-carousel.is-cli-active .mf-terminal-body {
  min-height: 410px;
  padding: 26px 28px 24px;
}

.mf-how-carousel.is-cli-active .mf-terminal-command {
  padding-bottom: 16px;
  font-size: 9px;
}

.mf-how-carousel.is-cli-active .mf-terminal-intent {
  margin-top: 18px;
  padding: 2px 0 2px 13px;
  background: transparent;
  border-left-width: 1px;
}

.mf-how-carousel.is-cli-active .mf-terminal-output {
  margin-top: 18px;
  padding-block: 12px;
}

.mf-how-carousel.is-cli-active .mf-terminal-output p,
.mf-how-carousel.is-cli-active .mf-terminal-decision p {
  padding-block: 5px;
}

.mf-how-carousel.is-cli-active .mf-terminal-ready {
  padding: 10px 1px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 560px) {
  .mf-how-carousel.is-cli-active .mf-how-workspace,
  .mf-how-carousel.is-cli-active .mf-terminal-body {
    min-height: 430px;
  }

  .mf-how-carousel.is-cli-active .mf-terminal-body {
    padding: 22px 16px 20px;
  }
}

/* Connected delivery path: ecosystem signals converge in Midfleet, then leave as one verified outcome. */
.connected-stack__pulse {
  fill: none;
  stroke: #a5b4fc;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: .045 .955;
  stroke-dashoffset: 1;
  opacity: 0;
  filter: url(#route-glow);
  animation: connected-stack-input-pulse 5.2s linear infinite;
  animation-play-state: paused;
}

.connected-stack.is-in-view .connected-stack__pulse {
  animation-play-state: running;
}

.connected-stack__pulse--2 { animation-delay: .25s; }
.connected-stack__pulse--3 { animation-delay: .5s; }
.connected-stack__pulse--4 { animation-delay: .75s; }

.connected-stack__pulse--delivery {
  stroke: #4ade80;
  stroke-width: 4;
  stroke-dasharray: .18 .82;
  filter: drop-shadow(0 0 4px rgba(74, 222, 128, .95)) drop-shadow(0 0 10px rgba(74, 222, 128, .45));
  animation-name: connected-stack-output-pulse;
  animation-delay: 2.55s;
}

@keyframes connected-stack-input-pulse {
  0%, 4% { stroke-dashoffset: 1; opacity: 0; }
  8% { opacity: 1; }
  38% { stroke-dashoffset: 0; opacity: 1; }
  46%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes connected-stack-output-pulse {
  0%, 4% { stroke-dashoffset: 1; opacity: 0; }
  8% { opacity: 1; }
  34% { stroke-dashoffset: 0; opacity: 1; }
  43%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@media (max-width: 920px) {
  .connected-stack__pulse { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .connected-stack__pulse { display: none; }
}

/* Hero film: the CLI boundary resolves into the same agent workflow shown by the product. */
.hero-film {
  width: min(840px, 100%);
  margin: 0 0 0 auto;
  position: relative;
  border: 1px solid rgba(129, 140, 248, 0.32);
  border-radius: 10px;
  overflow: hidden;
  background: #050914;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(15, 23, 42, 0.8),
    0 0 72px rgba(99, 102, 241, 0.1);
  animation: mf-hero-film-in 900ms var(--lf-ease) 100ms both;
}

.hero-film__viewport {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #030711 url('/assets/midfleet-boundary-workflow-poster.png?v=20260809-brand-lockup-7') center / cover no-repeat;
}

.hero-film__viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(226, 232, 240, 0.035);
  box-shadow: inset 0 0 56px rgba(2, 6, 23, 0.26);
}

.hero-film video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #030711;
}

.hero-film figcaption {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  color: #64748b;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hero-film figcaption span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.hero-film figcaption i {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, .72);
  animation: mf-live-dot 2.4s ease-in-out infinite;
}

.hero-film.is-reduced video {
  opacity: 0;
}

@keyframes mf-hero-film-in {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mf-live-dot {
  0%, 100% { opacity: .58; transform: scale(.78); }
  45% { opacity: 1; transform: scale(1); }
}

/* Factory-like micro-motion, expressed with the quieter Midfleet system. */
.motion-ready .kicker.mf-kicker-motion {
  opacity: 0;
  transform: translateY(9px);
  transition:
    opacity 420ms ease,
    transform 620ms var(--lf-ease);
}

.motion-ready .kicker.mf-kicker-motion.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.kicker.mf-kicker-motion::before {
  transform-origin: left center;
}

.motion-ready .kicker.mf-kicker-motion.is-visible::before {
  animation: mf-kicker-signal 3.8s ease-in-out 420ms infinite;
}

@keyframes mf-kicker-signal {
  0%, 13%, 100% { opacity: .64; transform: scaleX(.72); box-shadow: none; }
  5% { opacity: 1; transform: scaleX(1); box-shadow: 0 0 12px rgba(129, 140, 248, .75); }
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -2px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-28%);
  background: repeating-linear-gradient(112deg, transparent 0 12px, rgba(255, 255, 255, .16) 12px 13px, transparent 13px 24px);
  transition: opacity 180ms ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  opacity: .7;
  animation: mf-cta-scan 1.1s linear infinite;
}

@keyframes mf-cta-scan {
  to { transform: translateX(28%); }
}

@media (max-width: 1100px) {
  .hero-film { width: 100%; margin: 8px 0 0; }
}

@media (max-width: 620px) {
  .hero-film { margin-top: 0; border-radius: 8px; }
  .hero-film figcaption {
    min-height: 34px;
    justify-content: flex-start;
    gap: 7px;
    overflow: hidden;
    padding-inline: 10px;
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-film,
  .hero-film figcaption i,
  .motion-ready .kicker.mf-kicker-motion,
  .motion-ready .kicker.mf-kicker-motion.is-visible,
  .motion-ready .kicker.mf-kicker-motion.is-visible::before,
  .btn::after,
  .btn:hover::after,
  .btn:focus-visible::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .motion-ready .kicker.mf-kicker-motion {
    opacity: 1;
    clip-path: none;
  }
}

/* Native hero wins after the legacy two-column and player-frame rules. */
.hero { min-height: 0; padding: 64px 0 96px; align-items: flex-start; }
.hero-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
.hero-copy { max-width: 61rem; margin-inline: auto; gap: 18px; align-items: center; text-align: center; }
.hero-copy .display { max-width: 13em; }
.hero-copy .lede { max-width: 47rem; }
.hero-actions { justify-content: center; }
.hero-copy .kicker { justify-content: center; text-align: center; }
.hero-compat { max-width: 46rem; margin-inline: auto; justify-content: center; text-align: center; }
.hero-visual { width: 100%; display: block; position: relative; }
.hero-visual::before { display: none; }
.hero-film { width: min(1240px, 100%); margin: 0 auto; border: 0; border-radius: 0; overflow: visible; background: transparent; box-shadow: none; }
.hero-film__viewport { border-radius: 0; overflow: hidden; background: transparent; box-shadow: none; }
.hero-film__viewport::after { display: none; }
.hero-film figcaption { display: none; }

@media (max-width: 820px) {
  .hero-copy { align-items: center; text-align: center; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 620px) {
  .hero { padding-top: 50px; }
  .hero-grid { gap: 42px; }
  .hero-film__viewport { aspect-ratio: 3 / 2; border-radius: 0; }
  .hero-visual { margin-inline: -8px; width: calc(100% + 16px); }
}

/* Editorial compression: benefits read as an operating ledger, not another card wall. */
@media (min-width: 721px) {
  .section,
  #how-it-works.section,
  #product-proof.section,
  .section.fit-section,
  .compatibility-section,
  .compatibility-section + #deploy.section,
  #deploy.section {
    padding-block: 108px;
  }

  .control-gap-section { padding-block: 96px; }

  .compatibility-section { padding-bottom: 72px; }
  .compatibility-section + #deploy.section { padding-top: 96px; }
}

.ops,
.paths { gap: 0; border-top: 1px solid #334155; border-bottom: 1px solid #334155; }
.op,
.path { min-height: 0; border: 0; border-right: 1px solid #334155; border-radius: 0; background: transparent; }
.op { padding: 32px clamp(1.5rem, 3vw, 2.5rem); }
.deploy-grid .path {
  display: grid;
  grid-template-rows: auto minmax(3em, auto) auto;
  align-content: start;
}
.deploy-grid .path .copy-sm { flex: none; }
.deploy-grid .path .btn {
  margin-top: 24px;
  justify-self: start;
}
.op:last-child,
.path:last-child { border-right: 0; }
.op-tags { margin-top: 24px; }

@media (max-width: 720px) {
  .ops,
  .paths { border-bottom: 0; }
  .op,
  .path { border-right: 0; border-bottom: 1px solid #334155; }
}

/* Final visual refinement: a tighter editorial rhythm and a readable run surface. */
.proof-app {
  width: min(1180px, 100%);
  margin: 38px auto 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
}

.proof-run-head { padding: 24px 26px 22px; }
.proof-flow {
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  padding: 26px;
}
.proof-stage {
  min-height: 128px;
  padding: 17px;
}
.proof-stage h4 { margin-top: 20px; }
.proof-stage small { margin-top: 11px; }
.proof-focus { margin-inline: 26px; }
.proof-evidence { margin: 10px 26px 24px; }

@media (min-width: 721px) {
  .hero { padding-bottom: 80px; }
  .control-gap-section { padding-block: 84px; }
  #how-it-works.section { padding-block: 88px; }
  #product-proof.section { padding: 88px 0 80px; }
  .operator-surface-section { padding: 84px 0 80px; }
  .section.fit-section { padding: 84px 0 72px; }
  .fit-section + .compatibility-section,
  .compatibility-section { padding: 72px 0 48px; }
  .compatibility-section + #deploy.section,
  #deploy.section { padding: 72px 0 92px; }
}

@media (max-width: 900px) {
  .proof-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    padding: 18px;
  }
  .proof-flow-line { display: none; }
  .proof-stage { min-height: 128px; padding: 14px; }
  .proof-stage h4 { margin-top: 15px; }
  .proof-focus { margin-inline: 18px; }
  .proof-evidence { margin-inline: 18px; }
}

@media (max-width: 720px) {
  .hero { padding-bottom: 60px; }
  .control-gap-section,
  #how-it-works.section,
  #product-proof.section,
  .operator-surface-section,
  .section.fit-section,
  .fit-section + .compatibility-section,
  .compatibility-section,
  .compatibility-section + #deploy.section,
  #deploy.section { padding-block: 64px; }

  .proof-app { margin-top: 28px; }
  .proof-run-head { padding: 20px 18px 18px; }
  .proof-run-head h3 { font-size: 20px; }
  .proof-flow { padding: 16px; }
  .proof-focus { margin-inline: 16px; }
  .proof-evidence { margin: 10px 16px 18px; }
}

@media (max-width: 390px) {
  .proof-stage { min-height: 118px; padding: 12px; }
  .proof-stage h4 { margin-top: 13px; font-size: 12px; }
  .proof-stage p { font-size: 10px; }
  .proof-stage small { margin-top: 8px; }
}

/* Move to the stacked delivery diagram before the desktop columns can clip. */
@media (min-width: 621px) and (max-width: 1120px) {
  .connected-stack__stage {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .connected-stack__routes { display: none; }
  .connected-stack__sources,
  .connected-stack__control,
  .connected-stack__outcome { position: relative; }
  .connected-stack__sources::after,
  .connected-stack__control::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -21px;
    width: 2px;
    height: 22px;
    background: linear-gradient(to bottom, rgba(129, 140, 248, .16), #818cf8, rgba(129, 140, 248, .16));
    background-size: 100% 200%;
    box-shadow: 0 0 8px rgba(129, 140, 248, .38);
    transform: translateX(-50%);
    animation: connected-mobile-route 1.8s linear infinite;
  }
  .connected-stack__control::after {
    background: linear-gradient(to bottom, rgba(74, 222, 128, .16), #4ade80, rgba(74, 222, 128, .16));
    background-size: 100% 200%;
    box-shadow: 0 0 8px rgba(74, 222, 128, .42);
  }
  .connected-stack__source-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connected-stack__source-card::after,
  .connected-stack__signal-label,
  .connected-stack__port,
  .connected-stack__outcome::before,
  .connected-stack__control::before { display: none !important; }
  .connected-stack__control,
  .connected-stack__outcome { width: 100%; min-height: 0; }
  .connected-stack__adds ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .compatibility-row { overflow: visible; }
  .compatibility-track {
    width: auto;
    flex-wrap: wrap;
    animation: none;
  }
}
