:root {
  --red: #c81e28;
  --red-dark: #9f1721;
  --charcoal: #2b2b2b;
  --ink: #111827;
  --ink-2: #172033;
  --muted: #6b7280;
  --line: #d9dee7;
  --line-dark: rgba(255, 255, 255, 0.14);
  --panel: #182231;
  --panel-2: #202b3b;
  --light: #f3f4f6;
  --off-white: #fafaf8;
  --white: #ffffff;
  --blue: #2563eb;
  --green: #16a34a;
  --amber: #d97706;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--off-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 248, 0.94);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 188px;
}

.brand img {
  width: 34px;
  height: 42px;
  object-fit: contain;
}

.brand span,
.footer-brand span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.05;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a,
.header-cta,
.button {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
  color: var(--red);
}

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  color: var(--red);
  background: transparent;
  border: 1px solid rgba(200, 30, 40, 0.32);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.header-cta:hover {
  border-color: var(--red);
  background: rgba(200, 30, 40, 0.06);
}

.hero {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(24, 34, 49, 0.96)),
    radial-gradient(circle at top right, rgba(200, 30, 40, 0.24), transparent 32%);
  overflow: hidden;
}

.hero-grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 54px;
  align-items: center;
  padding: 72px 0 82px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #f87171;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 8vw, 106px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 18px;
  color: #f9fafb;
  font-size: clamp(26px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.04;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 32px;
  color: #cbd5e1;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
}

.button.primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
}

.button.tertiary {
  color: #374151;
  background: var(--white);
  border: 1px solid var(--line);
}

.button.tertiary:hover {
  border-color: #b8c0cf;
  background: #f9fafb;
}

.operations-panel {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(24, 34, 49, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-titlebar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  color: #e5e7eb;
  background: rgba(17, 24, 39, 0.6);
  border-bottom: 1px solid var(--line-dark);
  font-size: 13px;
  font-weight: 900;
}

.status-dot {
  color: #bbf7d0;
}

.mesh-visual {
  position: relative;
  min-height: 380px;
  margin: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #141f2e;
  background-size: 34px 34px;
  overflow: hidden;
}

.mesh-visual::before,
.mesh-visual::after {
  content: "";
  position: absolute;
  inset: 26% 9%;
  border: 1px solid rgba(200, 30, 40, 0.28);
  transform: skew(-9deg);
}

.mesh-visual::after {
  inset: 16% 19%;
  border-color: rgba(37, 99, 235, 0.26);
  transform: skew(9deg);
}

.mesh-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  transform: translate(-50%, -50%);
}

.mesh-node {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 38px;
  padding: 8px 12px;
  color: #f9fafb;
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.node-erp {
  left: 9%;
  top: 18%;
}

.node-plm {
  right: 11%;
  top: 16%;
}

.node-mes {
  left: 8%;
  bottom: 20%;
  border-color: rgba(200, 30, 40, 0.65);
}

.node-sql {
  right: 13%;
  bottom: 21%;
}

.node-ignition {
  left: 39%;
  top: 11%;
}

.node-reporting {
  left: 37%;
  bottom: 10%;
  border-color: rgba(37, 99, 235, 0.62);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}

.telemetry-grid div {
  min-height: 96px;
  padding: 18px;
  border-right: 1px solid var(--line-dark);
}

.telemetry-grid div:last-child {
  border-right: 0;
}

.telemetry-grid span,
.flow-step small,
.metric-block span,
.case-card small {
  display: block;
  margin-bottom: 6px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.telemetry-grid strong {
  color: #f9fafb;
  font-size: 14px;
  line-height: 1.25;
}

.positioning {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.positioning-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  padding: 34px 0;
}

.positioning p:last-child {
  margin: 0;
  color: #374151;
  font-size: clamp(20px, 2.6vw, 31px);
  font-weight: 760;
  line-height: 1.22;
}

.section {
  padding: 92px 0;
}

.band-light {
  background: var(--off-white);
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head.compact {
  margin: 0;
}

.section-head h2,
.consulting-head h2,
.contact-grid h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-head p:not(.section-kicker),
.consulting-head p,
.contact-grid p {
  color: #4b5563;
  font-size: 17px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.focus-card,
.case-card {
  min-height: 264px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.focus-card.wide {
  grid-column: span 2;
}

.focus-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  color: var(--red);
  border: 1px solid rgba(200, 30, 40, 0.28);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.focus-card h3,
.case-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.focus-card p,
.case-card p {
  margin: 0;
  color: #4b5563;
}

.system-section {
  color: var(--white);
  background: #121b28;
}

.system-section .section-kicker,
.contact-band .section-kicker {
  color: #fb7185;
}

.system-section h2,
.system-section .section-head p:not(.section-kicker) {
  color: var(--white);
}

.system-section .section-head p:not(.section-kicker) {
  color: #cbd5e1;
}

.flow-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 38px;
  align-items: start;
}

.flow-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.flow-step {
  min-height: 180px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.flow-step.accent {
  border-color: rgba(200, 30, 40, 0.56);
  background: #221f2a;
}

.flow-step strong {
  display: block;
  margin-bottom: 18px;
  color: #f9fafb;
  font-size: 20px;
  line-height: 1.12;
}

.flow-step span {
  color: #cbd5e1;
  font-size: 14px;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fda4af;
  font-weight: 900;
}

.dashboard-strip {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-block {
  padding: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.metric-block strong {
  display: block;
  min-height: 44px;
  margin-bottom: 18px;
  color: #f9fafb;
  font-size: 16px;
  line-height: 1.25;
}

.bar {
  height: 7px;
  border-radius: 999px;
}

.bar-red {
  width: 78%;
  background: var(--red);
}

.bar-blue {
  width: 64%;
  background: var(--blue);
}

.bar-green {
  width: 86%;
  background: var(--green);
}

.consulting-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.consulting-head {
  max-width: 900px;
}

.consulting-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}

.consultation-model-panel {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.model-panel-head {
  min-height: 82px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.model-panel-head span,
.consulting-benefits span {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.model-panel-head strong {
  max-width: 340px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.18;
  text-align: right;
}

.model-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.model-steps li:last-child {
  border-bottom: 0;
}

.model-steps li > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: var(--white);
  border: 1px solid rgba(200, 30, 40, 0.28);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.model-steps strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.18;
}

.model-steps p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

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

.consulting-benefits article {
  min-height: 182px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.consulting-benefits span {
  margin-bottom: 18px;
}

.consulting-benefits h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.18;
}

.consulting-benefits p {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.case-card {
  min-height: 248px;
}

.case-card small {
  color: var(--red);
}

.contact-band {
  padding: 64px 0;
  color: var(--white);
  background: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.contact-grid h2,
.contact-grid p {
  color: var(--white);
}

.contact-grid p {
  max-width: 760px;
  color: #cbd5e1;
}

.site-footer {
  padding: 34px 0;
  color: #d1d5db;
  background: #0b111b;
}

.footer-inner {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 40px;
  height: 50px;
  object-fit: contain;
  padding: 5px;
  background: var(--white);
  border-radius: 6px;
}

.footer-brand span {
  color: var(--white);
}

.footer-inner p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
}

.consultation-modal[hidden] {
  display: none;
}

.consultation-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.consultation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 27, 0.72);
}

.consultation-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  overflow: auto;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.35);
}

.modal-intro {
  position: relative;
  padding: 34px;
  color: var(--white);
  background: #111827;
}

.modal-intro h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.04;
  letter-spacing: 0;
}

.modal-intro p:not(.section-kicker) {
  color: #cbd5e1;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  min-height: 36px;
  padding: 8px 10px;
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.consultation-steps {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.consultation-steps span {
  padding: 10px 12px;
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.consultation-form {
  display: grid;
  gap: 18px;
  padding: 34px;
}

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

.consultation-form label {
  display: grid;
  gap: 7px;
}

.consultation-form label span {
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  font: inherit;
}

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

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
  outline: 3px solid rgba(200, 30, 40, 0.16);
  border-color: var(--red);
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  font-weight: 800;
}

.form-status.is-success {
  color: #15803d;
}

.form-status.is-error {
  color: var(--red);
}

@media (max-width: 1080px) {
  .hero-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .operations-panel {
    max-width: 760px;
  }

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

  .dashboard-strip {
    grid-column: auto;
  }
}

@media (max-width: 840px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid {
    padding-top: 48px;
  }

  .positioning-grid,
  .consulting-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .consulting-benefits {
    grid-template-columns: 1fr;
  }

  .consultation-dialog {
    grid-template-columns: 1fr;
  }

  .modal-intro {
    padding-top: 62px;
  }

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

  .flow-arrow {
    min-height: 28px;
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    min-width: auto;
  }

  .brand img {
    width: 30px;
    height: 38px;
  }

  .brand span {
    max-width: 86px;
    font-size: 13px;
  }

  .header-cta {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }

  h1 {
    font-size: clamp(48px, 17vw, 72px);
  }

  .hero-subtitle {
    font-size: 30px;
  }

  .hero-text {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .operations-panel {
    margin: 0 -2px;
  }

  .mesh-visual {
    min-height: 330px;
    margin: 12px;
  }

  .mesh-logo {
    width: 98px;
    height: 98px;
    padding: 15px;
  }

  .mesh-node {
    min-width: 78px;
    min-height: 34px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .node-erp {
    left: 5%;
    top: 15%;
  }

  .node-plm {
    right: 5%;
    top: 15%;
  }

  .node-mes {
    left: 5%;
    bottom: 19%;
  }

  .node-sql {
    right: 7%;
    bottom: 19%;
  }

  .node-ignition {
    left: 34%;
    top: 8%;
  }

  .node-reporting {
    left: 28%;
    bottom: 8%;
  }

  .telemetry-grid,
  .focus-grid,
  .case-grid,
  .dashboard-strip,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .telemetry-grid div {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .telemetry-grid div:last-child {
    border-bottom: 0;
  }

  .focus-card.wide {
    grid-column: auto;
  }

  .section {
    padding: 64px 0;
  }

  .model-panel-head {
    display: block;
  }

  .model-panel-head strong {
    display: block;
    margin-top: 8px;
    text-align: left;
  }

  .consultation-modal {
    padding: 12px;
  }

  .consultation-dialog {
    max-height: calc(100vh - 24px);
  }

  .modal-intro,
  .consultation-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .form-actions .button {
    width: 100%;
  }
}
