:root {
  --ink: #15211f;
  --muted: #5d6b67;
  --line: #d7e0dd;
  --paper: #ffffff;
  --mist: #f3f7f6;
  --steel: #e7ecea;
  --teal: #0f8a7a;
  --teal-dark: #075b52;
  --blue: #2f6f93;
  --yellow: #f2b84b;
  --red: #c94f4f;
  --graphite: #27302e;
  --shadow: 0 18px 50px rgba(21, 33, 31, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--teal-dark);
}

.nav-cta,
.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-cta,
.button {
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 10px 24px rgba(7, 91, 82, 0.16);
}

.nav-cta:hover,
.button:hover {
  color: #fff;
  background: var(--teal);
}

.button-secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--teal-dark);
  border-color: var(--teal);
}

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 62px max(32px, calc((100vw - var(--max)) / 2)) 48px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 48%, rgba(243,247,246,0.78) 100%),
    radial-gradient(circle at 82% 20%, rgba(242,184,75,0.18), transparent 28%),
    var(--mist);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--teal), var(--yellow), var(--blue), var(--red));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--yellow);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}

.hero-copy,
.hero-copy p,
.hero h1 {
  min-width: 0;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  max-width: 720px;
}

.metric {
  min-height: 100px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric strong {
  display: block;
  color: var(--teal-dark);
  font-size: 27px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-media {
  align-self: stretch;
  min-width: 0;
  min-height: 520px;
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: contain;
  background: var(--mist);
  border: 1px solid rgba(21, 33, 31, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.section,
.band,
.article-shell,
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 82px 0;
}

.band {
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.content h2,
.resource-main h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.systems-grid,
.industry-grid,
.resource-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.system-card,
.industry-card,
.resource-card,
.case-card {
  min-height: 210px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(21, 33, 31, 0.06);
}

.system-card h3,
.industry-card h3,
.resource-card h3,
.case-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.system-card p,
.industry-card p,
.resource-card p,
.case-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.card-link {
  font-weight: 800;
}

.process-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: center;
  padding: 44px;
  background: var(--graphite);
  color: #fff;
  border-radius: var(--radius);
}

.process-panel h2,
.process-panel p {
  color: #fff;
}

.process-panel p {
  opacity: 0.82;
}

.process-panel img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.16);
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.signal-list span {
  display: block;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.roi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.roi-strip div {
  min-height: 160px;
  padding: 24px;
  background: var(--mist);
  border-right: 1px solid var(--line);
}

.roi-strip div:last-child {
  border-right: 0;
}

.roi-strip strong {
  display: block;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 30px;
  line-height: 1;
}

.roi-strip span {
  color: var(--muted);
  font-weight: 700;
}

.article-hero {
  min-height: 620px;
}

.article-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
  padding: 72px 0;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid rgba(21, 33, 31, 0.08);
}

.toc a:hover {
  color: var(--teal-dark);
}

.toc a.active {
  color: var(--teal-dark);
}

.content {
  min-width: 0;
}

.content > *:first-child {
  margin-top: 0;
}

.content h2 {
  padding-top: 26px;
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.content h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.content p,
.content li {
  color: #33413d;
}

.content p {
  margin: 0 0 18px;
}

.content ul,
.content ol {
  padding-left: 22px;
  margin: 0 0 22px;
}

.content li + li {
  margin-top: 8px;
}

.content code {
  padding: 0.14em 0.35em;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.92em;
}

.content pre {
  overflow: auto;
  padding: 18px;
  color: #f6fffd;
  background: var(--graphite);
  border-radius: var(--radius);
}

.table-scroll {
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--paper);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--ink);
  background: var(--mist);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

.lead-aside {
  position: sticky;
  top: 96px;
}

.lead-form {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(21, 33, 31, 0.08);
}

.lead-form h2,
.lead-form h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.lead-form p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  line-height: 1.4;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.nav-toggle:focus,
.button:focus,
.button-secondary:focus {
  outline: 3px solid rgba(15, 138, 122, 0.22);
  outline-offset: 2px;
  border-color: var(--teal);
}

.form-note {
  display: none;
  margin-top: 12px;
  padding: 12px;
  color: var(--teal-dark);
  background: #e8f5f2;
  border: 1px solid #b9ded7;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.form-note.visible {
  display: block;
}

.diagram-shell {
  margin: 30px 0 34px;
  padding: 22px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.diagram-title {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.flow-node,
.auto-node,
.config-node {
  position: relative;
  min-height: 88px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.35;
}

.flow-node:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-weight: 900;
}

.flow-node small,
.auto-node small,
.config-node small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.automation-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.automation-row.top {
  grid-template-columns: 1fr 1fr;
}

.auto-node.primary {
  border-left-color: var(--yellow);
}

.auto-node.control {
  border-left-color: var(--blue);
}

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

.config-node {
  border-left-color: var(--red);
}

.cta-band {
  padding: 72px 0;
  background: var(--mist);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.cta-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.cta-inner p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.resource-hero {
  min-height: 520px;
}

.resource-main {
  width: min(980px, calc(100% - 48px));
  margin-inline: auto;
  padding: 76px 0;
}

.resource-main p,
.resource-main li {
  color: #33413d;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 34px;
  align-items: start;
}

.mini-specs {
  padding: 22px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-specs h3 {
  margin-top: 0;
}

.site-footer {
  padding: 46px 0 30px;
  color: #dce7e4;
  background: var(--graphite);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 30px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer p {
  margin: 10px 0 0;
  color: #bfcac7;
}

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

.footer-title {
  margin-bottom: 10px;
  color: #fff;
  font-weight: 900;
}

.legal {
  width: min(var(--max), calc(100% - 48px));
  margin: 34px auto 0;
  padding-top: 20px;
  color: #bfcac7;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 13px;
}

@media (max-width: 1080px) {
  .hero,
  .process-panel,
  .cta-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 360px;
  }

  .article-shell {
    grid-template-columns: 1fr;
  }

  .toc,
  .lead-aside {
    position: static;
  }

  .toc {
    display: none;
  }

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

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

  .roi-strip div:nth-child(2) {
    border-right: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 64px;
    padding: 0 18px;
  }

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

  .site-nav {
    position: absolute;
    inset: 64px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 11px 10px;
  }

  .nav-cta {
    margin-top: 6px;
  }

  .hero {
    padding: 42px 24px 36px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .metric-row,
  .systems-grid,
  .industry-grid,
  .resource-grid,
  .case-grid,
  .signal-list,
  .config-map,
  .automation-row,
  .automation-row.top,
  .roi-strip,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .roi-strip div,
  .roi-strip div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .roi-strip div:last-child {
    border-bottom: 0;
  }

  .section,
  .band,
  .article-shell,
  .resource-main {
    width: min(100% - 32px, var(--max));
    padding: 54px 0;
  }

  .process-panel {
    padding: 24px;
  }

  .content h2 {
    font-size: 30px;
  }

  .flow-strip {
    grid-template-columns: 1fr;
  }

  .flow-node:not(:last-child)::after {
    content: "v";
    right: 50%;
    top: auto;
    bottom: -19px;
    transform: translateX(50%);
  }

  table {
    min-width: 640px;
  }
}
