:root {
  color-scheme: dark;
  --page: #323230;
  --page-deep: #292927;
  --surface: #141412;
  --surface-raised: #1d1d1b;
  --surface-soft: #262624;
  --line: #454541;
  --line-soft: #363633;
  --text: #f4f3ef;
  --muted: #aaa9a2;
  --faint: #7f7f78;
  --green: #4caf8d;
  --green-soft: #183d32;
  --amber: #d79a3c;
  --orange: #d26627;
  --orange-soft: #3b2419;
  --font-sans: "Manrope", "Avenir Next", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 10px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

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

h1,
h2,
h3 {
  line-height: 1.16;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--text);
  color: var(--surface);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #f1bd69;
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #41413d;
  background: rgba(41, 41, 39, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  width: min(calc(100% - 48px), var(--shell));
  min-height: 76px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.025em;
}

.brand small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-mark {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding-block: 26px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

.header-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid #4a4a45;
  border-radius: 99px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.header-demo .status-dot {
  color: var(--green);
}

.monitor {
  padding-block: 38px 56px;
}

.monitor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.monitor-heading h1 {
  margin-bottom: 3px;
  font-size: clamp(27px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.shipment-line {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.prototype-label {
  margin: 15px 0 18px;
  color: #c2c1ba;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.prototype-label span {
  color: var(--faint);
  letter-spacing: 0;
  text-transform: none;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin-top: 5px;
  padding: 5px 11px;
  border: 1px solid #704022;
  border-radius: 99px;
  background: var(--orange-soft);
  color: #e57b3d;
  font-size: 12px;
  font-weight: 700;
}

.risk-badge.safe {
  border-color: #2d6654;
  background: var(--green-soft);
  color: #76d0b2;
}

.risk-badge.offline {
  border-color: #62502c;
  background: #30291a;
  color: #e4b75e;
}

.connection-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #2b2b29;
  color: var(--muted);
  font-size: 12px;
}

.connection-primary {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c6c5be;
}

.connection-primary svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connection-strip.offline .connection-primary svg {
  stroke: var(--amber);
}

.connection-strip strong {
  font-weight: 600;
}

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

.metric-card {
  min-width: 0;
  padding: 20px 22px 18px;
  border: 1px solid #20201e;
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-card h2 {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.metric-value {
  margin-bottom: 1px;
  color: var(--text);
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.055em;
}

.metric-value.warning-value {
  color: var(--orange);
  font-size: clamp(29px, 4vw, 39px);
  font-weight: 600;
}

.metric-value.safe-value {
  color: #76c7ab;
}

.metric-value.viability-value {
  font-size: clamp(25px, 3.3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.metric-caption {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.chart-block {
  padding-block: 34px 22px;
}

.chart-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.chart-heading h2 {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.chart-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.chart-legend,
.model-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}

.chart-legend span,
.model-legend span,
.threshold-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-line {
  display: inline-block;
  width: 23px;
  height: 0;
  border-top: 3px solid;
}

.history-line,
.regression-line {
  border-color: var(--green);
}

.forecast-line {
  border-top-style: dashed;
  border-color: var(--amber);
}

.baseline-line {
  border-top-style: dotted;
  border-color: #92928b;
}

.threshold-line {
  border-top-width: 2px;
  border-top-style: dashed;
  border-color: var(--amber);
}

.chart-wrap {
  position: relative;
  width: 100%;
}

.temperature-chart {
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
}

.chart-grid {
  stroke: #4a4a46;
  stroke-width: 1;
}

.chart-axis-label {
  fill: #deddd6;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
}

.chart-stage-label {
  fill: #e8e7e0;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
}

.chart-time-label {
  fill: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

.now-line {
  stroke: #898982;
  stroke-width: 1.5;
}

.history-path,
.forecast-path,
.action-path,
.buffered-path,
.model-physical-path,
.model-regression-path,
.model-baseline-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.history-path {
  stroke: var(--green);
  stroke-width: 4;
}

.forecast-path {
  stroke: var(--amber);
  stroke-width: 4;
  stroke-dasharray: 10 9;
}

.forecast-path.safe-forecast {
  stroke: var(--green);
}

.action-path {
  stroke: #77d0b0;
  stroke-width: 3.5;
  stroke-dasharray: 8 7;
}

.action-path.applied {
  stroke-width: 4.5;
  stroke-dasharray: none;
}

.buffered-path {
  stroke: #9a9a92;
  stroke-width: 3;
  stroke-dasharray: 4 6;
}

.threshold-path {
  stroke: var(--amber);
  stroke-width: 2;
  stroke-dasharray: 7 7;
  opacity: 0.8;
}

.threshold-label {
  fill: #e0a548;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}

.now-dot {
  fill: var(--green);
  stroke: #6ac3a5;
  stroke-width: 3;
}

.chart-end-label {
  fill: #bdbcb5;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}

.chart-hover-line {
  stroke: #c9c8bf;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  pointer-events: none;
}

.chart-hover-dot {
  fill: var(--text);
  stroke: var(--surface);
  stroke-width: 2;
  pointer-events: none;
}

.chart-hit-area {
  fill: transparent;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 142px;
  padding: 9px 11px;
  border: 1px solid #5a5a53;
  border-radius: 6px;
  background: #11110f;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-size: 11px;
  pointer-events: none;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 12px;
}

.chart-tooltip span {
  display: block;
}

.threshold-key {
  margin-top: -4px;
  color: var(--faint);
  font-size: 11px;
}

.scenario-dock {
  padding: 22px;
  border: 1px solid #41413d;
  border-radius: var(--radius);
  background: #292927;
}

.scenario-dock-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.scenario-dock h2 {
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 600;
}

.scenario-dock-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.stage-label {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid #494943;
  border-radius: 5px;
  color: #c7c6bf;
  font-family: var(--font-mono);
  font-size: 10px;
}

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

.scenario-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #484843;
  border-radius: 7px;
  background: #20201e;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.scenario-button:hover {
  border-color: #74746c;
  color: var(--text);
}

.scenario-button.active {
  border-color: #b47435;
  background: #382a1e;
  color: #f2c281;
}

.scenario-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scenario-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #41413c;
}

.scenario-detail h3 {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
}

.scenario-detail p {
  max-width: 730px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.action-button {
  flex: 0 0 auto;
  max-width: 240px;
  padding: 11px 15px;
  border: 1px solid #58b598;
  border-radius: 7px;
  background: var(--green);
  color: #0c241c;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.action-button:hover {
  background: #6cc4a8;
}

.action-button.secondary {
  border-color: #65655e;
  background: transparent;
  color: var(--text);
}

.recommendation {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid #20201e;
  border-radius: var(--radius);
  background: var(--surface);
}

.recommendation > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recommendation.safe > svg {
  stroke: var(--green);
}

.recommendation h2 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.recommendation p {
  margin-bottom: 0;
  color: #deddd6;
  font-size: 13px;
}

.demo-disclaimer {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.content-section {
  padding-block: 82px;
  border-top: 1px solid #484843;
}

.section-heading {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  column-gap: 32px;
  margin-bottom: 40px;
}

.section-index {
  grid-row: 1 / 3;
  margin: 8px 0 0;
  color: #c5c4bd;
  font-family: var(--font-mono);
  font-size: 12px;
}

.section-heading h2 {
  max-width: 750px;
  margin-bottom: 13px;
  font-size: clamp(29px, 4.5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.section-heading > p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.model-overview {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 36px;
  margin-bottom: 28px;
}

.formula-panel,
.model-explanation {
  padding: 28px;
}

.formula-panel {
  border-radius: var(--radius);
  background: var(--surface);
}

.model-explanation {
  border-top: 2px solid #65655e;
  border-bottom: 1px solid #4b4b46;
}

.formula-panel h3,
.model-explanation h3,
.model-lab h3,
.limitations h3 {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.formula {
  overflow-x: auto;
  margin: 25px 0 28px;
  color: #efbc72;
  font-family: var(--font-mono);
  font-size: clamp(15px, 2.2vw, 21px);
  line-height: 1.7;
  white-space: nowrap;
}

.formula sub,
.formula sup {
  font-size: 0.68em;
}

.formula-definitions,
.training-list {
  margin: 0;
}

.formula-definitions > div,
.training-list > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding-block: 8px;
  border-top: 1px solid #32322f;
}

.formula-definitions dt,
.training-list dt {
  color: #d5d4cd;
  font-size: 12px;
  font-weight: 600;
}

.formula-definitions dd,
.training-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.training-list > div {
  grid-template-columns: 110px 1fr;
  border-color: #454540;
}

.model-explanation > p:not(.panel-note) {
  color: #d0cfc8;
  font-size: 14px;
  line-height: 1.75;
}

.panel-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.model-lab {
  padding: 28px;
  border: 1px solid #494943;
  border-radius: var(--radius);
  background: #292927;
}

.model-lab-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.model-lab-heading h3 {
  margin-bottom: 4px;
}

.model-lab-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.synthetic-chip {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #54544e;
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.model-lab-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.model-controls label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  color: #d6d5ce;
  font-size: 12px;
  font-weight: 600;
}

.model-controls label:first-child {
  margin-top: 0;
}

.model-controls output {
  color: #efbc72;
  font-family: var(--font-mono);
  font-size: 11px;
}

.model-controls input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 18px 0 7px;
  border-radius: 99px;
  background: #53534d;
  accent-color: var(--green);
  cursor: pointer;
}

.model-controls input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #292927;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px #82cbb2;
  -webkit-appearance: none;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 10px;
}

.model-endpoints {
  margin-top: 28px;
  border-top: 1px solid #484842;
}

.model-endpoints > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px solid #3c3c38;
  font-size: 11px;
}

.model-endpoints span {
  color: var(--muted);
}

.model-endpoints strong {
  color: #deddd6;
  font-family: var(--font-mono);
  font-size: 11px;
}

.model-chart-wrap {
  min-width: 0;
}

#model-chart {
  width: 100%;
  height: auto;
}

.model-legend {
  justify-content: center;
  margin-top: 4px;
}

.model-physical-path {
  stroke: var(--amber);
  stroke-width: 3;
}

.model-regression-path {
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-dasharray: 7 5;
}

.model-baseline-path {
  stroke: #92928b;
  stroke-width: 2;
  stroke-dasharray: 2 6;
}

.benchmark-wrap {
  margin-top: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

caption {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

.benchmark-table th,
.benchmark-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #4b4b46;
  font-size: 12px;
}

.benchmark-table thead th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.benchmark-table tbody th {
  width: 24%;
  color: #deddd6;
  font-weight: 600;
}

.benchmark-table td {
  color: var(--muted);
}

.benchmark-table td:last-child {
  width: 100px;
  color: #efbc72;
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
}

.limitations {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #4b4b46;
}

.limitations h3 {
  margin: 0;
  font-size: 16px;
}

.limitations ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 12px;
}

.limitations li + li {
  margin-top: 9px;
}

.architecture-diagram {
  overflow-x: auto;
  border: 1px solid #494943;
  border-radius: var(--radius);
  background: #1b1b19;
}

.architecture-diagram svg {
  width: 100%;
  min-width: 880px;
  height: auto;
}

.diagram-node rect {
  fill: #242422;
  stroke: #51514b;
  stroke-width: 1.2;
}

.diagram-node.sensor-node rect {
  stroke: #467a69;
}

.diagram-node.gateway-node rect {
  fill: #1c3029;
  stroke: #4caf8d;
}

.diagram-node.prediction-node rect {
  fill: #342a1c;
  stroke: #a47637;
}

.diagram-node.warning-node rect {
  fill: #352219;
  stroke: #b35c2a;
}

.diagram-node.action-node rect {
  fill: #1c3029;
  stroke: #4caf8d;
}

.diagram-node.future-node rect {
  fill: #222220;
  stroke: #6c6c64;
  stroke-dasharray: 6 5;
}

.node-kicker,
.node-title,
.node-detail,
.feedback-label,
.diagram-note {
  font-family: var(--font-sans);
}

.node-kicker {
  fill: #a7a69f;
  font-size: 11px;
  font-weight: 600;
}

.node-title {
  fill: #f0efe9;
  font-size: 14px;
  font-weight: 600;
}

.node-detail {
  fill: #a7a69f;
  font-size: 11px;
}

.diagram-arrow,
.future-arrow {
  fill: none;
  stroke: #8b8b82;
  stroke-width: 1.5;
}

.future-arrow {
  stroke: #66665f;
  stroke-dasharray: 5 5;
}

.arrow-head {
  fill: #8b8b82;
}

.muted-arrow {
  fill: #66665f;
}

.feedback-arrow {
  stroke: #4caf8d;
  stroke-dasharray: 4 4;
}

.feedback-label {
  fill: #78bda5;
  font-size: 11px;
}

.diagram-note {
  fill: #7f7f78;
  font-size: 10px;
}

.architecture-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 28px;
}

.architecture-notes > div {
  padding-top: 15px;
  border-top: 1px solid #55554f;
}

.architecture-notes strong {
  font-size: 13px;
  font-weight: 600;
}

.architecture-notes p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hardware-table-wrap {
  overflow-x: auto;
}

.hardware-table {
  min-width: 880px;
}

.hardware-table th,
.hardware-table td {
  padding: 19px 18px;
  border-bottom: 1px solid #4a4a45;
  font-size: 12px;
  line-height: 1.65;
}

.hardware-table thead th {
  padding-top: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.hardware-table tbody th {
  width: 20%;
  font-weight: 600;
}

.hardware-table tbody th a {
  color: #e6e5de;
  text-decoration-color: #797971;
  text-underline-offset: 4px;
}

.hardware-table tbody th a:hover {
  color: #7ed1b4;
}

.hardware-table tbody th > span {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
}

.hardware-table tbody td {
  color: var(--muted);
}

.hardware-table tbody td:nth-child(2) {
  width: 15%;
}

.hardware-table tbody td:nth-child(3) {
  width: 33%;
}

.hardware-table td strong {
  color: #d6d5ce;
  font-weight: 600;
}

.hardware-note {
  max-width: 900px;
  margin: 27px 0 0;
  padding-left: 17px;
  border-left: 2px solid #77776f;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.hardware-note strong {
  color: #d6d5ce;
  font-weight: 600;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 38px;
  border-top: 1px solid #484843;
}

.site-footer strong {
  font-size: 13px;
}

.site-footer p {
  margin: 3px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.site-footer > a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.site-footer > a:hover {
  color: var(--text);
}

@media (min-width: 1000px) {
  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .metric-card {
    padding-inline: 18px;
  }

  .metric-card h2 {
    min-height: 38px;
    margin-bottom: 0;
    font-size: 12px;
  }

  .metric-value {
    font-size: clamp(29px, 3.3vw, 40px);
    white-space: nowrap;
  }

  .metric-value.warning-value {
    font-size: clamp(25px, 2.8vw, 34px);
  }

  .metric-value.viability-value {
    font-size: clamp(20px, 2.2vw, 27px);
  }

  .metric-caption {
    min-height: 38px;
    font-size: 11px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 20px;
    min-height: 68px;
    padding-top: 15px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    gap: 26px;
    margin-top: 7px;
    overflow-x: auto;
  }

  .main-nav a {
    padding: 9px 0 12px;
    white-space: nowrap;
  }

  .header-demo {
    margin-left: auto;
  }

  html {
    scroll-padding-top: 128px;
  }

  .model-overview {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .model-lab-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .model-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }

  .model-controls label:nth-of-type(2) {
    margin-top: 0;
  }

  .model-controls input:nth-of-type(2),
  .model-controls .range-labels:nth-of-type(2) {
    grid-column: 2;
  }

  .model-endpoints {
    grid-column: 1 / -1;
  }

  .limitations {
    grid-template-columns: 140px 1fr;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .header-inner {
    width: min(calc(100% - 28px), var(--shell));
  }

  .monitor {
    padding-top: 26px;
  }

  .monitor-heading {
    gap: 12px;
  }

  .monitor-heading h1 {
    font-size: 27px;
  }

  .shipment-line {
    font-size: 12px;
  }

  .risk-badge {
    padding-inline: 8px;
    font-size: 10px;
  }

  .prototype-label span {
    display: block;
    margin-top: 3px;
  }

  .connection-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .metric-card {
    padding: 16px 14px 14px;
  }

  .metric-card h2 {
    min-height: 34px;
    font-size: 11px;
  }

  .metric-value,
  .metric-value.warning-value {
    font-size: clamp(24px, 7.5vw, 33px);
  }

  .metric-value.viability-value {
    font-size: clamp(19px, 5.5vw, 25px);
  }

  .metric-caption {
    min-height: 34px;
    font-size: 10px;
  }

  .chart-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .chart-legend {
    justify-content: flex-start;
  }

  .threshold-key {
    align-items: flex-start;
    margin-top: 8px;
  }

  .threshold-key .legend-line {
    flex: 0 0 auto;
    margin-top: 7px;
  }

  .scenario-dock {
    padding: 17px 14px;
  }

  .scenario-dock-heading {
    flex-direction: column;
    gap: 10px;
  }

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

  .scenario-detail {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .action-button {
    max-width: none;
  }

  .recommendation {
    padding: 16px 14px;
  }

  .content-section {
    padding-block: 58px;
  }

  .section-heading {
    display: block;
    margin-bottom: 28px;
  }

  .section-index {
    margin-bottom: 15px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .section-heading > p:last-child {
    font-size: 13px;
  }

  .formula-panel,
  .model-explanation,
  .model-lab {
    padding: 21px 17px;
  }

  .model-controls {
    display: block;
  }

  .model-controls label:nth-of-type(2) {
    margin-top: 24px;
  }

  .model-lab-heading {
    flex-direction: column;
    gap: 10px;
  }

  .model-chart-wrap {
    overflow-x: auto;
  }

  #model-chart {
    min-width: 460px;
  }

  .benchmark-table th,
  .benchmark-table td {
    padding-inline: 8px;
  }

  .benchmark-table tbody th {
    width: 34%;
  }

  .benchmark-table td:nth-child(2) {
    display: none;
  }

  .benchmark-table thead th:nth-child(2) {
    display: none;
  }

  .limitations {
    display: block;
  }

  .limitations h3 {
    margin-bottom: 15px;
  }

  .architecture-notes {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
