:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef6f7;
  --ink: #142033;
  --muted: #657084;
  --line: #d9e1ea;
  --navy: #10243e;
  --blue: #1769e0;
  --teal: #0f9f9a;
  --amber: #c98510;
  --violet: #6c55d9;
  --shadow: 0 18px 60px rgba(19, 40, 70, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(238, 246, 247, 0.84), rgba(247, 249, 252, 0) 420px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 225, 234, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100% - 40px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 204px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.96), rgba(15, 159, 154, 0.96)),
    var(--blue);
  box-shadow: 0 12px 28px rgba(23, 105, 224, 0.2);
  letter-spacing: 0;
}

.brand-name {
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand-note {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 13px;
  color: #2e3d52;
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: #eef4fb;
  color: var(--navy);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
  content: "";
}

.mobile-toggle span::before {
  transform: translateY(-6px);
}

.mobile-toggle span::after {
  transform: translateY(4px);
}

.mobile-toggle[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span::before {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span::after {
  transform: translateY(-2px) rotate(-90deg);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease,
    background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 14px 34px rgba(23, 105, 224, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #115bcb;
  box-shadow: 0 16px 38px rgba(23, 105, 224, 0.3);
}

.btn-secondary {
  color: var(--navy);
  background: #ffffff;
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: #b9c8d8;
  box-shadow: 0 12px 26px rgba(16, 36, 62, 0.1);
}

.btn-ghost {
  min-height: 38px;
  padding: 0;
  color: var(--blue);
  background: transparent;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  display: flex;
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid rgba(217, 225, 234, 0.78);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(rgba(16, 36, 62, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 36, 62, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 92%);
}

.hero::after {
  position: absolute;
  right: -120px;
  top: 76px;
  z-index: -2;
  width: 760px;
  height: 520px;
  border: 1px solid rgba(23, 105, 224, 0.18);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.1), rgba(15, 159, 154, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36));
  transform: rotate(-5deg);
  content: "";
}

.hero-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 86px 0 78px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.74fr);
  align-items: center;
  gap: 54px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: 3.55rem;
  line-height: 1.03;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: 3.2rem;
}

.lead {
  max-width: 760px;
  margin-bottom: 30px;
  color: #4e5d70;
  font-size: 1.18rem;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.visual-panel {
  position: relative;
  min-height: 420px;
  padding: 30px;
}

.visual-panel::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217, 225, 234, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  content: "";
}

.dashboard {
  position: relative;
  display: grid;
  gap: 16px;
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dash-card {
  min-height: 108px;
  border: 1px solid rgba(217, 225, 234, 0.92);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.dash-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-metric {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.dash-number {
  color: var(--navy);
  font-size: 1.7rem;
  font-weight: 850;
}

.dash-trend {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 850;
}

.bar-stack {
  display: grid;
  gap: 8px;
}

.bar {
  height: 9px;
  border-radius: 99px;
  background: #d8e4f1;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.funnel {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.funnel-step {
  height: 34px;
  margin: 0 auto;
  border: 1px solid rgba(23, 105, 224, 0.18);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(23, 105, 224, 0.14), rgba(15, 159, 154, 0.16));
}

.funnel-step:nth-child(1) {
  width: 100%;
}

.funnel-step:nth-child(2) {
  width: 82%;
}

.funnel-step:nth-child(3) {
  width: 64%;
}

.funnel-step:nth-child(4) {
  width: 46%;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: #ffffff;
  border-block: 1px solid rgba(217, 225, 234, 0.72);
}

.section.tight {
  padding: 58px 0;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--navy);
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head p {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(19, 40, 70, 0.06);
}

.proof-card {
  min-height: 186px;
  padding: 26px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--navy);
}

.proof-card:nth-child(2) .card-icon,
.service-card:nth-child(2) .card-icon,
.metric-block:nth-child(2) {
  background: var(--teal);
}

.proof-card:nth-child(3) .card-icon,
.service-card:nth-child(3) .card-icon,
.metric-block:nth-child(3) {
  background: var(--amber);
}

.service-card:nth-child(4) .card-icon,
.metric-block:nth-child(4) {
  background: var(--violet);
}

.card h3,
.feature h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.25;
}

.card p,
.feature p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-card {
  min-height: 268px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(23, 105, 224, 0.38);
  box-shadow: 0 18px 46px rgba(19, 40, 70, 0.12);
  outline: none;
}

.service-card .btn-ghost {
  margin-top: auto;
  align-self: flex-start;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.problem-item {
  min-height: 164px;
  padding: 20px;
  border: 1px solid rgba(217, 225, 234, 0.86);
  border-radius: 8px;
  background: #ffffff;
}

.problem-number {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 850;
}

.problem-item p {
  margin: 0;
  color: var(--navy);
  font-weight: 750;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.process-step {
  position: relative;
  min-height: 176px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.step-count {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--navy);
  font-weight: 850;
}

.process-step h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--navy);
  font-weight: 800;
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  padding: 58px;
  background: var(--navy);
  color: #ffffff;
}

.cta-band::after {
  position: absolute;
  right: 36px;
  bottom: -28px;
  width: 340px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: rotate(-4deg);
  content: "";
}

.cta-band h2,
.cta-band p {
  color: #ffffff;
}

.cta-band p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 72px;
  border-bottom: 1px solid rgba(217, 225, 234, 0.82);
  background:
    linear-gradient(rgba(16, 36, 62, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 36, 62, 0.045) 1px, transparent 1px),
    #f7fbfd;
  background-size: 42px 42px, 42px 42px, auto;
}

.page-hero-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.58fr);
  gap: 44px;
  align-items: center;
}

.page-hero-visual {
  border: 1px solid rgba(217, 225, 234, 0.92);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-metric {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.mini-metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.5rem;
}

.mini-metric span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.42fr);
  gap: 42px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.check {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--teal);
  font-weight: 850;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
}

.panel h3 {
  margin-bottom: 16px;
  color: var(--navy);
}

.simple-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-list li {
  position: relative;
  padding-left: 22px;
  color: #344257;
}

.simple-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  content: "";
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-block {
  min-height: 108px;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  padding: 18px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 850;
  line-height: 1.2;
}

.matrix {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.matrix-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr));
  min-height: 70px;
  border-bottom: 1px solid var(--line);
}

.matrix-row:last-child {
  border-bottom: 0;
}

.matrix-cell {
  display: flex;
  align-items: center;
  padding: 16px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.matrix-cell:last-child {
  border-right: 0;
}

.matrix-head .matrix-cell {
  color: var(--navy);
  background: #f1f6fb;
  font-weight: 850;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fit-card {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 24px;
}

.fit-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.fit-card-head h3 {
  margin: 7px 0 0;
  color: var(--navy);
  font-size: 1.22rem;
}

.fit-index {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef6f7;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
}

.fit-section {
  display: grid;
  gap: 10px;
}

.fit-label {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.question-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: fit-question;
}

.question-list li {
  position: relative;
  min-height: 32px;
  padding-left: 42px;
  color: #2f3f56;
  font-weight: 700;
}

.question-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  counter-increment: fit-question;
  content: counter(fit-question);
  font-size: 0.78rem;
  font-weight: 850;
}

.fit-copy {
  margin: 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.about-visual {
  min-height: 470px;
  display: grid;
  align-content: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.08), rgba(15, 159, 154, 0.1)),
    #ffffff;
}

.node-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.node {
  min-height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 225, 234, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  font-weight: 850;
  text-align: center;
}

.node.primary {
  color: #ffffff;
  background: var(--navy);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(360px, 0.55fr);
  gap: 42px;
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 18px;
}

.contact-card {
  padding: 24px;
}

.form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cdd8e4;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(23, 105, 224, 0.15);
}

.checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.93rem;
}

.checkbox input {
  min-height: 20px;
  margin-top: 3px;
}

.form-message {
  display: none;
  border: 1px solid rgba(15, 159, 154, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(15, 159, 154, 0.1);
  color: #096b68;
  font-weight: 800;
}

.form-message.is-visible {
  display: block;
}

.footer {
  border-top: 1px solid var(--line);
  background: #0e1c30;
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer strong {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer p {
  max-width: 430px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  outline: none;
}

.subfooter {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.subfooter-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .header-inner {
    min-height: 68px;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    justify-content: space-between;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hero-inner,
  .page-hero-inner,
  .content-split,
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 72px 0 64px;
  }

  .visual-panel {
    min-height: 360px;
  }

  .grid-4,
  .fit-grid,
  .problem-list,
  .process-line,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .matrix {
    overflow-x: auto;
  }

  .matrix-row {
    min-width: 880px;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .container,
  .hero-inner,
  .page-hero-inner,
  .footer-inner,
  .subfooter-inner {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    min-width: 0;
  }

  .brand-note {
    display: none;
  }

  h1,
  .page-hero h1 {
    font-size: 2.35rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.85rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .section {
    padding: 62px 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 14px;
  }

  .hero-inner {
    padding-top: 56px;
  }

  .visual-panel {
    padding: 18px;
    min-height: auto;
  }

  .dash-row,
  .grid-2,
  .grid-3,
  .grid-4,
  .fit-grid,
  .problem-list,
  .process-line,
  .metric-grid,
  .field-grid,
  .mini-metrics,
  .node-map,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .cta-band {
    padding: 36px 24px;
  }

  .form {
    padding: 22px;
  }

  .contact-layout {
    gap: 28px;
  }
}
