:root {
  color-scheme: dark;
  --bg: #090b0e;
  --panel: #131820;
  --ink: #f6f3e8;
  --muted: #aeb6bf;
  --line: #2d3642;
  --amber: #ffb347;
  --cyan: #63d4ff;
  --green: #6ee7a3;
  --red: #ff6b6b;
  --violet: #d8a2ff;
}

.workbench-body {
  background:
    linear-gradient(90deg, rgba(255, 179, 71, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(99, 212, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 78% 12%, rgba(255, 179, 71, 0.14), transparent 24%),
    var(--bg);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

.workbench-shell {
  padding-bottom: 60px;
}

.workbench-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: end;
  padding: 50px 0 28px;
}

.perf-card {
  border: 1px solid rgba(99, 212, 255, 0.28);
  border-radius: 8px;
  padding: 18px;
  background: rgba(9, 11, 14, 0.78);
}

.perf-card span,
.stage-toolbar span,
.chooser-card span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.perf-card strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 34px;
  line-height: 1;
}

.perf-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.chooser-card button {
  width: 100%;
  min-height: 132px;
  display: grid;
  gap: 8px;
  justify-items: start;
  align-content: start;
  border: 1px solid rgba(246, 243, 232, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(19, 24, 32, 0.82);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.chooser-card button:hover,
.chooser-card.is-active button {
  border-color: var(--amber);
  background: rgba(255, 179, 71, 0.12);
}

.chooser-card strong {
  font-size: 18px;
  line-height: 1.1;
}

.chooser-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.workbench-stage {
  border: 1px solid rgba(246, 243, 232, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 11, 14, 0.92);
}

.stage-toolbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(246, 243, 232, 0.12);
}

.stage-toolbar strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.stage-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-toggles label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(99, 212, 255, 0.24);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stage-toggles input {
  accent-color: var(--amber);
}

.stage-preview {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(99, 212, 255, 0.16), transparent 27%),
    linear-gradient(90deg, rgba(99, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 179, 71, 0.06) 1px, transparent 1px),
    #07090c;
  background-size: auto, 56px 56px, 56px 56px, auto;
}

.lcars-rail {
  position: absolute;
  background: var(--amber);
  box-shadow: 0 0 24px rgba(255, 179, 71, 0.22);
}

.rail-left {
  left: 28px;
  top: 42px;
  width: 42px;
  height: 420px;
  border-radius: 20px 0 0 20px;
}

.rail-top {
  left: 70px;
  top: 42px;
  right: 88px;
  height: 42px;
  border-radius: 0 20px 20px 0;
  background: linear-gradient(90deg, var(--amber) 0 24%, var(--cyan) 24% 58%, var(--violet) 58% 78%, var(--green) 78%);
}

.preview-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-routes path {
  fill: none;
  stroke: rgba(99, 212, 255, 0.72);
  stroke-width: 3;
  stroke-dasharray: 10 10;
  filter: drop-shadow(0 0 6px rgba(99, 212, 255, 0.35));
  animation: route-drift 1.2s linear infinite;
}

.preview-pulses circle {
  fill: var(--amber);
  filter: drop-shadow(0 0 10px rgba(255, 179, 71, 0.85));
}

.preview-node {
  position: absolute;
  width: 176px;
  min-height: 86px;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 10px;
  align-content: center;
  border: 1px solid rgba(246, 243, 232, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(19, 24, 32, 0.9);
}

.preview-node span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--cyan);
  color: #07131a;
  font-size: 13px;
  font-weight: 900;
}

.preview-node strong {
  font-size: 16px;
}

.preview-node em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.preview-control {
  left: calc(50% - 88px);
  top: 214px;
  border-color: rgba(255, 179, 71, 0.7);
}

.preview-control span {
  background: var(--amber);
}

.preview-location {
  left: 130px;
  top: 178px;
}

.preview-dev {
  left: 150px;
  bottom: 88px;
}

.preview-people {
  right: 128px;
  top: 168px;
}

.preview-customers {
  right: 138px;
  bottom: 84px;
}

.mini-hud {
  position: absolute;
  left: 96px;
  bottom: 28px;
  min-width: 280px;
  border-left: 8px solid var(--green);
  padding: 12px 14px;
  background: rgba(9, 11, 14, 0.86);
}

.mini-hud span,
.mini-hud em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.mini-hud strong {
  display: block;
  margin: 4px 0;
  font-size: 20px;
}

.workbench-stage[data-stage="lcars"] .stage-preview {
  background:
    linear-gradient(90deg, rgba(255, 179, 71, 0.16) 0 8%, transparent 8%),
    linear-gradient(0deg, rgba(216, 162, 255, 0.11) 1px, transparent 1px),
    #06070a;
  background-size: auto, 48px 48px, auto;
}

.workbench-stage[data-stage="game"] .preview-node {
  box-shadow: 0 0 0 1px rgba(99, 212, 255, 0.15), 0 14px 30px rgba(0, 0, 0, 0.32);
}

.workbench-stage[data-stage="game"] .mini-hud {
  border-left-color: var(--amber);
}

.workbench-stage[data-stage="cutaway"] .stage-preview {
  background:
    linear-gradient(0deg, rgba(110, 231, 163, 0.12) 0 26%, transparent 26%),
    linear-gradient(90deg, rgba(255, 179, 71, 0.08) 1px, transparent 1px),
    #07090c;
  background-size: auto, 72px 72px, auto;
}

.hide-routes .preview-routes,
.hide-motion .preview-pulses,
.hide-motion .preview-routes path {
  animation: none;
}

.hide-routes .preview-routes,
.hide-pins .preview-node span,
.hide-hud .mini-hud {
  display: none;
}

.hide-pins .preview-node {
  grid-template-columns: 1fr;
}

.feature-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.feature-notes article {
  border: 1px solid rgba(246, 243, 232, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(19, 24, 32, 0.7);
}

.feature-notes h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-notes p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.demo-lab {
  margin-top: 24px;
}

.demo-heading {
  max-width: 820px;
  margin-bottom: 14px;
}

.demo-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.demo-heading p:last-child {
  color: var(--muted);
  line-height: 1.45;
}

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

.demo-card {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  border: 1px solid rgba(246, 243, 232, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(19, 24, 32, 0.76);
}

.demo-card-head span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-card-head strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.demo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.demo-card button {
  min-height: 36px;
  justify-self: start;
  border: 1px solid rgba(255, 179, 71, 0.45);
  border-radius: 4px;
  padding: 0 12px;
  background: rgba(255, 179, 71, 0.12);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.mini-route-demo,
.mini-lcars-demo,
.mini-mission-demo,
.mini-cutaway-demo,
.mini-sms-demo,
.mini-phone-demo {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  border: 1px solid rgba(99, 212, 255, 0.16);
  border-radius: 6px;
  background: rgba(5, 7, 10, 0.72);
}

.mini-route-demo i {
  position: absolute;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--amber), transparent);
  animation: route-scan 1.35s linear infinite;
}

.mini-route-demo i:nth-child(1) {
  top: 28px;
}

.mini-route-demo i:nth-child(2) {
  top: 54px;
  animation-delay: -0.45s;
}

.mini-route-demo i:nth-child(3) {
  top: 80px;
  animation-delay: -0.9s;
}

.mini-lcars-demo {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}

.mini-lcars-demo b {
  border-radius: 16px 4px 4px 16px;
  background: var(--amber);
}

.mini-lcars-demo b:nth-child(2) {
  background: var(--cyan);
}

.mini-lcars-demo b:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 2;
  border-radius: 4px 18px 18px 4px;
  background: var(--violet);
}

.mini-lcars-demo b:nth-child(4) {
  grid-column: 2;
  grid-row: 3 / span 2;
  border-radius: 4px 18px 18px 4px;
  background: var(--green);
}

.mini-mission-demo {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(99, 212, 255, 0.12) 1px, transparent 1px),
    rgba(5, 7, 10, 0.72);
  background-size: 22px 22px, auto;
}

.mini-mission-demo span,
.mini-mission-demo em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.mini-mission-demo strong {
  color: var(--green);
  font-size: 26px;
}

.mini-cutaway-demo {
  background:
    linear-gradient(0deg, rgba(110, 231, 163, 0.16) 0 30%, transparent 30%),
    rgba(5, 7, 10, 0.72);
}

.mini-cutaway-demo span {
  position: absolute;
  display: block;
}

.mini-cutaway-demo .lane {
  left: 20px;
  right: 20px;
  bottom: 22px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.32);
}

.mini-cutaway-demo .terminal {
  left: 28px;
  top: 26px;
  width: 50px;
  height: 42px;
  border-radius: 4px;
  background: var(--cyan);
}

.mini-cutaway-demo .camera {
  left: 132px;
  top: 36px;
  width: 34px;
  height: 22px;
  border-radius: 4px 10px 10px 4px;
  background: var(--green);
}

.mini-cutaway-demo .person {
  right: 34px;
  top: 26px;
  width: 34px;
  height: 52px;
  border-radius: 18px 18px 8px 8px;
  background: var(--violet);
}

.mini-sms-demo {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 14px;
}

.mini-sms-demo span {
  width: fit-content;
  max-width: 92%;
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(99, 212, 255, 0.16);
  color: var(--ink);
  font-size: 13px;
}

.mini-sms-demo span:nth-child(2) {
  justify-self: end;
  background: rgba(255, 179, 71, 0.16);
}

.mini-phone-demo {
  width: 92px;
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  align-content: start;
  gap: 8px;
  border-radius: 14px;
  padding: 14px 10px;
}

.mini-phone-demo b,
.mini-phone-demo span {
  font-size: 12px;
}

.mini-phone-demo i {
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
}

.motion-lab {
  margin-top: 28px;
}

.advanced-lab {
  margin-top: 34px;
}

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

.advanced-card {
  min-height: 310px;
  border: 1px solid rgba(246, 243, 232, 0.14);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(19, 24, 32, 0.92), rgba(6, 8, 11, 0.94));
}

.advanced-card.wide {
  grid-column: span 3;
  min-height: 420px;
}

.advanced-card div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.advanced-card span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.advanced-card strong {
  color: var(--ink);
  font-size: 18px;
}

.advanced-card canvas {
  width: 100%;
  height: 236px;
  display: block;
  border: 1px solid rgba(99, 212, 255, 0.18);
  border-radius: 6px;
  background: #05070a;
}

.canvas-fallback {
  width: 100%;
  height: 236px;
  border: 1px solid rgba(99, 212, 255, 0.18);
  border-radius: 6px;
  overflow: hidden;
  background: #05070a;
}

.canvas-fallback svg {
  width: 100%;
  height: 100%;
  display: block;
}

.advanced-card.wide canvas {
  height: 330px;
}

.advanced-card.wide .canvas-fallback {
  height: 330px;
}

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

.motion-card {
  min-height: 168px;
  border: 1px solid rgba(246, 243, 232, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(12, 16, 22, 0.82);
}

.motion-card strong {
  display: block;
  min-height: 18px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
}

.motion-card div {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(99, 212, 255, 0.13);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(99, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 179, 71, 0.05) 1px, transparent 1px),
    rgba(4, 6, 9, 0.88);
  background-size: 22px 22px, 22px 22px, auto;
}

.motion-card i {
  position: absolute;
  display: block;
}

.m-dash i {
  left: 16px;
  right: 16px;
  top: 52px;
  height: 4px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 12px, transparent 12px 22px);
  animation: dash-run 0.9s linear infinite;
}

.m-pulse i,
.m-dual i,
.m-lane i,
.m-flight i {
  left: 18px;
  right: 18px;
  top: 54px;
  height: 3px;
  border-radius: 999px;
  background: rgba(99, 212, 255, 0.28);
}

.m-pulse i::after,
.m-dual i::after,
.m-lane i::after,
.m-flight i::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(255, 179, 71, 0.85);
  animation: packet-run 1.8s ease-in-out infinite;
}

.m-dual i:nth-child(2) {
  top: 72px;
}

.m-dual i:nth-child(2)::after {
  animation-direction: reverse;
  background: var(--green);
}

.m-lcars-flow div {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 14px;
}

.m-lcars-flow i {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--cyan), var(--violet), var(--green));
  background-size: 220% 100%;
  animation: lcars-slide 1.4s linear infinite;
}

.m-radar i {
  left: calc(50% - 42px);
  top: calc(50% - 42px);
  width: 84px;
  height: 84px;
  border: 1px solid rgba(99, 212, 255, 0.45);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(110, 231, 163, 0.5), transparent 34%);
  animation: spin 2s linear infinite;
}

.m-orbit i:first-child {
  left: calc(50% - 10px);
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
}

.m-orbit i:nth-child(2) {
  left: calc(50% - 46px);
  top: calc(50% - 46px);
  width: 92px;
  height: 92px;
  border: 1px solid rgba(99, 212, 255, 0.42);
  border-radius: 50%;
  animation: orbit-ring 2.4s linear infinite;
}

.m-orbit i:nth-child(2)::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
}

.m-grid-scan i,
.m-alert i {
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(99, 212, 255, 0.4), transparent);
  animation: scan-down 1.6s ease-in-out infinite;
}

.m-node-ping i,
.m-gateway i,
.m-map-pin i,
.m-constellation i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
}

.m-node-ping i:nth-child(1) { left: 24px; top: 26px; }
.m-node-ping i:nth-child(2) { right: 32px; top: 42px; animation-delay: -0.4s; }
.m-node-ping i:nth-child(3) { left: 50%; bottom: 24px; animation-delay: -0.8s; }
.m-node-ping i { animation: ping-node 1.5s ease-out infinite; }

.m-lane i:first-child {
  top: 38px;
}

.m-lane i:nth-child(2) {
  top: 72px;
}

.m-gateway i:nth-child(1) { left: 22px; top: 46px; background: var(--green); }
.m-gateway i:nth-child(2) { left: calc(50% - 9px); top: 46px; background: var(--amber); animation: gateway-pop 1s ease-in-out infinite; }
.m-gateway i:nth-child(3) { right: 22px; top: 46px; background: var(--cyan); }

.m-sms i {
  width: 64px;
  height: 26px;
  border-radius: 8px;
  background: rgba(99, 212, 255, 0.22);
  animation: bubble-in 2s ease-in-out infinite;
}

.m-sms i:first-child {
  left: 18px;
  top: 28px;
}

.m-sms i:nth-child(2) {
  right: 18px;
  bottom: 28px;
  background: rgba(255, 179, 71, 0.24);
  animation-delay: -1s;
}

.m-terminal i {
  left: 22px;
  top: 26px;
  width: 120px;
  height: 60px;
  border-left: 4px solid var(--green);
}

.m-terminal i::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  width: 10px;
  height: 20px;
  background: var(--green);
  animation: cursor-blink 0.8s steps(1) infinite;
}

.m-map-pin i {
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  animation: pin-drop 1.9s ease-in-out infinite;
}

.m-map-pin i:nth-child(1) { left: 26px; top: 24px; }
.m-map-pin i:nth-child(2) { left: 50%; top: 50px; animation-delay: -0.55s; background: var(--amber); }
.m-map-pin i:nth-child(3) { right: 28px; top: 32px; animation-delay: -1s; background: var(--green); }

.m-energy i {
  left: 22px;
  right: 22px;
  top: 28px;
  height: 66px;
  border-top: 4px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 -10px 24px rgba(99, 212, 255, 0.2);
  animation: energy-arc 1.2s ease-in-out infinite;
}

.m-check i {
  left: calc(50% - 34px);
  top: calc(50% - 34px);
  width: 68px;
  height: 68px;
  border: 3px solid var(--green);
  border-radius: 50%;
  animation: check-pop 1.6s ease-in-out infinite;
}

.m-check i::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 14px;
  border-left: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  transform: rotate(-45deg);
}

.m-alert i {
  background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.45), transparent);
  animation: alert-sweep 1.1s linear infinite;
}

.m-stack div {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.m-stack i {
  position: relative;
  height: 12px;
  border-radius: 3px;
  background: var(--cyan);
  animation: stack-fill 1.6s ease-in-out infinite;
}

.m-stack i:nth-child(2) { animation-delay: -0.3s; background: var(--green); }
.m-stack i:nth-child(3) { animation-delay: -0.6s; background: var(--amber); }
.m-stack i:nth-child(4) { animation-delay: -0.9s; background: var(--violet); }

.m-flight i {
  transform: rotate(-12deg);
}

.m-flight i::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  width: 0;
  height: 0;
  border-left: 16px solid var(--amber);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  animation: flight-run 2s ease-in-out infinite;
}

.m-hud i {
  width: 28px;
  height: 28px;
  border-color: var(--amber);
}

.m-hud i:nth-child(1) { left: 22px; top: 22px; border-left: 3px solid; border-top: 3px solid; }
.m-hud i:nth-child(2) { right: 22px; top: 22px; border-right: 3px solid; border-top: 3px solid; }
.m-hud i:nth-child(3) { left: 22px; bottom: 22px; border-left: 3px solid; border-bottom: 3px solid; }
.m-hud i:nth-child(4) { right: 22px; bottom: 22px; border-right: 3px solid; border-bottom: 3px solid; }
.m-hud i { animation: hud-lock 1.8s ease-in-out infinite; }

.m-constellation i:nth-child(1) { left: 24px; top: 26px; }
.m-constellation i:nth-child(2) { left: 76px; top: 64px; background: var(--green); }
.m-constellation i:nth-child(3) { right: 42px; top: 30px; background: var(--amber); }
.m-constellation i:nth-child(4) { right: 28px; bottom: 24px; background: var(--violet); }
.m-constellation i:nth-child(5) { left: 38px; bottom: 30px; background: var(--cyan); }
.m-constellation i { animation: constellation 1.7s ease-in-out infinite; }

@keyframes route-drift {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -40;
  }
}

@keyframes dash-run {
  to { background-position: 32px 0; }
}

@keyframes packet-run {
  from { left: 0; transform: translateX(-50%); }
  to { left: 100%; transform: translateX(-50%); }
}

@keyframes lcars-slide {
  to { background-position: 220% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit-ring {
  to { transform: rotate(360deg); }
}

@keyframes scan-down {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

@keyframes ping-node {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 212, 255, 0.65); }
  60% { box-shadow: 0 0 0 18px rgba(99, 212, 255, 0); }
}

@keyframes gateway-pop {
  50% { transform: scale(1.45); box-shadow: 0 0 22px rgba(255, 179, 71, 0.8); }
}

@keyframes bubble-in {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

@keyframes pin-drop {
  0%, 100% { transform: translateY(0) rotate(-45deg); }
  45% { transform: translateY(12px) rotate(-45deg); }
}

@keyframes energy-arc {
  50% { transform: translateY(-8px) scaleX(1.08); opacity: 0.68; }
}

@keyframes check-pop {
  50% { transform: scale(1.08); box-shadow: 0 0 24px rgba(110, 231, 163, 0.38); }
}

@keyframes alert-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes stack-fill {
  0%, 100% { transform: scaleX(0.35); transform-origin: left; opacity: 0.55; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes flight-run {
  from { left: 0; }
  to { left: calc(100% - 16px); }
}

@keyframes hud-lock {
  50% { transform: scale(0.78); border-color: var(--cyan); }
}

@keyframes constellation {
  50% { transform: scale(1.25); filter: drop-shadow(0 0 12px currentColor); }
}

@keyframes route-scan {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(110%);
  }
}

@media (max-width: 980px) {
  .workbench-hero,
  .chooser-grid,
  .advanced-grid,
  .demo-grid,
  .motion-grid,
  .feature-notes {
    grid-template-columns: 1fr;
  }

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

  .stage-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage-preview {
    min-height: 720px;
  }

  .preview-control,
  .preview-location,
  .preview-dev,
  .preview-people,
  .preview-customers {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .preview-control { top: 118px; }
  .preview-location { top: 244px; }
  .preview-dev { top: 360px; bottom: auto; }
  .preview-people { top: 476px; }
  .preview-customers { top: 592px; bottom: auto; }

  .preview-routes {
    display: none;
  }

  .mini-hud {
    left: 20px;
    right: 20px;
    bottom: 20px;
    min-width: 0;
  }
}

.legal-page h2 {
  margin: 30px 0 10px;
  font-size: 24px;
}

.consent-proof {
  margin: 28px 0;
  border: 1px solid rgba(99, 212, 255, 0.26);
  border-radius: 8px;
  padding: 22px;
  background: rgba(19, 24, 32, 0.78);
}

.consent-proof h2 {
  margin-top: 0;
}

.consent-checkbox {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink);
  line-height: 1.45;
}

.consent-checkbox input {
  margin-top: 3px;
  accent-color: var(--amber);
}

.consent-demo-button {
  min-height: 42px;
  margin-top: 18px;
  border: 0;
  border-radius: 4px;
  padding: 0 16px;
  background: var(--cyan);
  color: #06131a;
  font-weight: 900;
}

.consent-note {
  color: var(--muted);
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(90deg, rgba(99, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 179, 71, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--ink);
}

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

.shell {
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  background: var(--amber);
  color: #16110a;
  font-weight: 900;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: minmax(340px, 0.62fr) minmax(820px, 1.38fr);
  align-items: center;
  gap: 44px;
  padding: 56px 0 36px;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0 0 16px;
}

h1 {
  margin: 0;
  font-size: clamp(50px, 5.6vw, 76px);
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  margin: 24px 0 0;
}

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

.primary-action,
.secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 4px;
  font-weight: 800;
}

.primary-action {
  background: var(--cyan);
  color: #06131a;
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
}

.ops-visual {
  min-height: 900px;
  background:
    linear-gradient(145deg, rgba(19, 24, 32, 0.98), rgba(9, 11, 14, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.map-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.mission-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mission-id {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 179, 71, 0.45);
  border-radius: 4px;
  background: rgba(255, 179, 71, 0.12);
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-header strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}

.map-kicker,
.map-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-kicker {
  color: var(--muted);
}

.map-status {
  padding: 0 10px;
  border-radius: 4px;
  background: var(--green);
  color: #06140d;
}

.route-map {
  position: relative;
  height: 780px;
  border: 1px solid #26313d;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(99, 212, 255, 0.2), transparent 26%),
    radial-gradient(circle at 22% 56%, rgba(110, 231, 163, 0.13), transparent 22%),
    radial-gradient(circle at 84% 54%, rgba(255, 179, 71, 0.12), transparent 24%),
    linear-gradient(145deg, rgba(16, 24, 32, 0.94), rgba(8, 11, 14, 0.98));
}

.map-plate {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(99, 212, 255, 0.16);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(99, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 179, 71, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.78;
}

.route-label {
  position: absolute;
  color: rgba(246, 243, 232, 0.38);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.label-west {
  left: 22px;
  top: 22px;
}

.label-east {
  right: 22px;
  top: 22px;
}

.label-south {
  left: 22px;
  bottom: 22px;
}

.flight-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.flight-paths path {
  fill: none;
  stroke: url("#arcGradient");
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(99, 212, 255, 0.32));
  opacity: 0.72;
  stroke-dasharray: 10 16;
  animation: routePulse 3.8s linear infinite;
}

.flight-paths .route-main {
  stroke-width: 5;
  opacity: 0.9;
}

.flight-paths .route-dim {
  stroke-width: 2;
  opacity: 0.48;
}

.plane-trail {
  stroke: rgba(246, 243, 232, 0.72) !important;
  stroke-dasharray: 5 8;
  stroke-width: 2 !important;
  animation-duration: 2.2s !important;
}

.plane {
  position: absolute;
  left: 35%;
  top: 14%;
  width: 38px;
  height: 18px;
  z-index: 3;
  transform: rotate(-24deg);
  filter: drop-shadow(0 0 14px rgba(246, 243, 232, 0.42));
  animation: planeDrift 4.5s ease-in-out infinite;
}

.plane::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
}

.plane::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 0;
  width: 17px;
  height: 18px;
  background: var(--ink);
  clip-path: polygon(0 42%, 100% 0, 68% 50%, 100% 100%, 0 58%);
}

.map-item {
  position: absolute;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.pin {
  position: relative;
  width: 78px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50% 50% 50% 0;
  font: inherit;
  color: #071018;
  background: var(--amber);
  box-shadow:
    0 18px 26px rgba(0, 0, 0, 0.38),
    inset 0 0 0 7px rgba(255, 255, 255, 0.16);
  z-index: 2;
  cursor: default;
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
}

.pin::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(7, 16, 24, 0.16);
}

.pin::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 8px;
  left: -2px;
  bottom: -12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(2px);
  transform: rotate(45deg);
}

.map-item .pin::after {
  left: -4px;
  bottom: -12px;
}

.pin span,
.pin small {
  position: relative;
  z-index: 1;
  transform: rotate(45deg);
  text-align: center;
}

.pin span {
  max-width: 62px;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

.pin small {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.78;
  text-transform: uppercase;
  line-height: 1;
}

.pin-control {
  width: 96px;
  height: 96px;
  background: var(--cyan);
  box-shadow:
    0 20px 34px rgba(0, 0, 0, 0.46),
    0 0 38px rgba(99, 212, 255, 0.36),
    inset 0 0 0 8px rgba(255, 255, 255, 0.18);
}

.pin-control span {
  max-width: 76px;
  font-size: 30px;
}

.pin-gateway {
  background: var(--green);
}

.pin-sms {
  background: var(--green);
}

.pin-pos,
.pin-lane,
.pin-camera,
.pin-device,
.pin-gateway {
  width: 66px;
  height: 66px;
}

.pin-pos {
  background: #ffcf68;
}

.pin-lane {
  background: var(--violet);
}

.pin-camera {
  background: #f3f0df;
}

.pin-device {
  background: #ff8f8f;
}

.item-control {
  left: calc(50% - 110px);
  top: 24px;
  width: 220px;
}

.item-gateway {
  left: calc(50% - 84px);
  top: 168px;
  width: 168px;
}

.item-manda {
  left: calc(50% - 64px);
  top: 610px;
  width: 128px;
}

.asset {
  width: 100%;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 9px;
  border: 1px solid rgba(246, 243, 232, 0.16);
  border-radius: 6px;
  background: rgba(8, 11, 14, 0.72);
  color: var(--ink);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.location-node {
  position: absolute;
  z-index: 2;
  width: 330px;
  min-height: 365px;
  padding: 16px;
  border: 1px solid rgba(255, 179, 71, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(18, 31, 43, 0.92), rgba(8, 11, 14, 0.78)),
    radial-gradient(circle at 18% 20%, rgba(255, 179, 71, 0.14), transparent 28%);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.location-sd {
  left: 28px;
  top: 295px;
}

.location-ch {
  right: 28px;
  top: 295px;
}

.location-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.location-title strong {
  font-size: 14px;
  line-height: 1.1;
}

.location-title span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--amber);
  color: #15110a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lane-bed {
  position: relative;
  height: 112px;
  border: 1px solid rgba(246, 243, 232, 0.14);
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 179, 71, 0.16), rgba(99, 212, 255, 0.1)),
    linear-gradient(0deg, rgba(246, 243, 232, 0.09) 1px, transparent 1px);
  background-size: auto, 100% 28px;
}

.lane-rail {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 52px;
  height: 10px;
  border-radius: 999px;
  background: rgba(99, 212, 255, 0.28);
  box-shadow: 0 0 18px rgba(99, 212, 255, 0.26);
}

.lane-board {
  position: absolute;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: rgba(246, 243, 232, 0.16);
}

.lane-board-a {
  left: 38%;
}

.lane-board-b {
  right: 28%;
}

.pins-rack {
  position: absolute;
  right: 20px;
  top: 29px;
  width: 52px;
  height: 52px;
}

.pins-rack::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, var(--ink) 0 4px, transparent 5px),
    radial-gradient(circle at 35% 34%, var(--ink) 0 4px, transparent 5px),
    radial-gradient(circle at 65% 34%, var(--ink) 0 4px, transparent 5px),
    radial-gradient(circle at 20% 60%, var(--ink) 0 4px, transparent 5px),
    radial-gradient(circle at 50% 60%, var(--ink) 0 4px, transparent 5px),
    radial-gradient(circle at 80% 60%, var(--ink) 0 4px, transparent 5px);
}

.device-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  min-height: 112px;
}

.location-node .map-item {
  position: relative;
  width: 92px;
}

.location-node .pin {
  width: 52px;
  height: 52px;
}

.location-node .pin span {
  max-width: 42px;
  font-size: 11px;
}

.location-node .pin small {
  font-size: 8px;
}

.location-node .asset {
  min-height: 45px;
  padding: 7px;
}

.location-node .asset strong {
  font-size: 10px;
}

.item-lanepc {
  position: relative;
  width: 108px;
  margin: 8px auto 0;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 179, 71, 0.3);
}

.status-strip span {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 4px;
  background: rgba(99, 212, 255, 0.13);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset strong {
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.asset em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.control-asset {
  min-height: 64px;
  border-color: rgba(99, 212, 255, 0.36);
  background: rgba(20, 58, 78, 0.42);
}

.gateway-asset {
  border-color: rgba(110, 231, 163, 0.4);
}

.gateway-asset span,
.computer-asset span,
.terminal-asset span,
.camera-asset span,
.plc-asset span,
.person-asset span {
  display: block;
  position: relative;
}

.gateway-asset span {
  width: 42px;
  height: 22px;
  border-radius: 4px;
  background: var(--green);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
}

.gateway-asset span::before,
.gateway-asset span::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #071018;
}

.gateway-asset span::before {
  left: 9px;
}

.gateway-asset span::after {
  right: 9px;
}

.person-asset span {
  width: 34px;
  height: 42px;
  border-radius: 16px 16px 8px 8px;
  background: var(--green);
}

.person-asset span::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -14px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f6d8bf;
}

.terminal-asset span,
.computer-asset span {
  width: 50px;
  height: 34px;
  border: 3px solid var(--ink);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(99, 212, 255, 0.36), rgba(8, 11, 14, 0.9));
}

.terminal-asset span::after,
.computer-asset span::after {
  content: "";
  position: absolute;
  left: 17px;
  bottom: -12px;
  width: 16px;
  height: 10px;
  border-radius: 0 0 4px 4px;
  background: var(--ink);
}

.camera-asset span {
  width: 46px;
  height: 28px;
  border-radius: 5px;
  background: var(--ink);
}

.camera-asset span::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: inset 0 0 0 4px rgba(8, 11, 14, 0.72);
}

.camera-asset span::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 9px;
  border-left: 14px solid var(--ink);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.plc-asset span {
  width: 44px;
  height: 38px;
  border-radius: 4px;
  background: #ff8f8f;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16);
}

.plc-asset span::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 9px;
  height: 4px;
  background: #071018;
  box-shadow: 0 8px 0 #071018, 0 16px 0 #071018;
}

.route-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.route-board div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.route-board span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.route-board strong {
  display: block;
  font-size: 18px;
}

.topology-map {
  height: 680px;
  box-shadow:
    inset 0 0 0 1px rgba(99, 212, 255, 0.08),
    inset 0 0 90px rgba(99, 212, 255, 0.08);
}

.radar-sweep {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 2;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, rgba(99, 212, 255, 0.28), transparent 16%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.45;
  animation: radarSpin 8s linear infinite;
}

.signal-cloud span {
  position: absolute;
  z-index: 4;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(99, 212, 255, 0.82);
  opacity: 0.85;
  animation: signalBlink 2.6s ease-in-out infinite;
}

.signal-cloud span:nth-child(1) {
  left: 20%;
  top: 24%;
}

.signal-cloud span:nth-child(2) {
  left: 36%;
  top: 67%;
  animation-delay: 0.4s;
}

.signal-cloud span:nth-child(3) {
  left: 62%;
  top: 28%;
  animation-delay: 0.8s;
}

.signal-cloud span:nth-child(4) {
  left: 78%;
  top: 60%;
  animation-delay: 1.2s;
}

.signal-cloud span:nth-child(5) {
  left: 51%;
  top: 78%;
  animation-delay: 1.6s;
}

.topology-map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(180deg, transparent 0 48%, rgba(99, 212, 255, 0.1) 50%, transparent 52% 100%);
  background-size: 100% 46px;
  opacity: 0.28;
}

.topology-map::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  z-index: 5;
  border: 1px solid rgba(99, 212, 255, 0.18);
  border-radius: 5px;
  box-shadow: inset 0 0 28px rgba(99, 212, 255, 0.08);
}

.game-hud {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(99, 212, 255, 0.22);
  border-radius: 4px;
  background: rgba(8, 11, 14, 0.72);
  backdrop-filter: blur(8px);
}

.top-hud {
  left: 22px;
  top: 18px;
}

.game-hud span,
.command-hud span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-hud span {
  color: var(--cyan);
}

.game-hud strong {
  font-size: 12px;
}

.topology-lines {
  opacity: 0.9;
}

.topology-control {
  position: absolute;
  left: calc(50% - 140px);
  top: 178px;
  z-index: 4;
  width: 280px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.topology-control .pin {
  width: 104px;
  height: 104px;
}

.control-plate {
  width: 100%;
  min-height: 88px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(99, 212, 255, 0.46);
  border-radius: 8px;
  background: rgba(20, 58, 78, 0.62);
  box-shadow: 0 0 44px rgba(99, 212, 255, 0.2);
  text-align: center;
}

.control-plate strong {
  font-size: 19px;
}

.control-plate span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.topology-zone {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 14px;
}

.zone-assets {
  left: 28px;
  top: 86px;
  width: 300px;
}

.zone-customers {
  right: 28px;
  top: 86px;
  width: 300px;
}

.topology-card {
  padding: 14px;
  border: 1px solid rgba(255, 179, 71, 0.28);
  border-radius: 8px;
  background: rgba(13, 21, 30, 0.88);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
}

.topology-card,
.control-plate,
.scope-list,
.route-board div {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.topology-card:hover,
.control-plate:hover,
.route-board div:hover {
  border-color: rgba(99, 212, 255, 0.5);
  box-shadow: 0 0 30px rgba(99, 212, 255, 0.13), 0 22px 42px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.is-selected .control-plate,
.topology-card.is-selected,
.topology-asset.is-selected {
  border-color: rgba(110, 231, 163, 0.78);
  box-shadow:
    0 0 0 1px rgba(110, 231, 163, 0.2),
    0 0 34px rgba(110, 231, 163, 0.22),
    0 22px 42px rgba(0, 0, 0, 0.3);
}

.is-selected .pin,
.topology-asset.is-selected .pin {
  animation: selectedPulse 1.6s ease-in-out infinite;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-title strong {
  font-size: 16px;
  line-height: 1.1;
}

.card-title span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--amber);
  color: #15110a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.gateway-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.mini-gateway,
.employee-node,
.customer-person {
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 5px;
  border: 1px solid rgba(246, 243, 232, 0.12);
  border-radius: 6px;
  background: rgba(8, 11, 14, 0.6);
  text-align: center;
}

.mini-gateway span {
  width: 42px;
  height: 22px;
  border-radius: 4px;
  background: var(--green);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
}

.employee-node span,
.customer-person span {
  width: 28px;
  height: 34px;
  border-radius: 14px 14px 8px 8px;
  background: var(--green);
  position: relative;
}

.employee-node span::before,
.customer-person span::before {
  content: "";
  position: absolute;
  left: 7px;
  top: -12px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #f6d8bf;
}

.employee-node strong,
.mini-gateway strong,
.customer-person strong {
  font-size: 11px;
}

.employee-node em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.topology-asset {
  position: relative;
  min-height: 112px;
  display: grid;
  place-items: end center;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid rgba(246, 243, 232, 0.12);
  border-radius: 6px;
  background: rgba(8, 11, 14, 0.62);
  text-align: center;
}

.topology-asset:hover .pin,
.topology-control:hover .pin {
  box-shadow:
    0 18px 26px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(255, 179, 71, 0.34),
    inset 0 0 0 7px rgba(255, 255, 255, 0.18);
}

.topology-asset .pin {
  position: absolute;
  left: calc(50% - 24px);
  top: -17px;
  width: 48px;
  height: 48px;
}

.topology-asset .pin span {
  max-width: 38px;
  font-size: 10px;
}

.topology-asset .pin small {
  font-size: 7px;
}

.topology-asset strong {
  font-size: 10px;
}

.lane-wide {
  grid-column: span 3;
  min-height: 86px;
}

.icon-camera,
.icon-computer,
.icon-plc,
.icon-terminal {
  display: block;
  position: relative;
}

.icon-camera {
  width: 44px;
  height: 26px;
  border-radius: 5px;
  background: var(--ink);
}

.icon-camera::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: inset 0 0 0 4px rgba(8, 11, 14, 0.72);
}

.icon-camera::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 8px;
  border-left: 13px solid var(--ink);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.icon-computer,
.icon-terminal {
  width: 48px;
  height: 32px;
  border: 3px solid var(--ink);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(99, 212, 255, 0.36), rgba(8, 11, 14, 0.9));
}

.icon-computer::after,
.icon-terminal::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: -11px;
  width: 14px;
  height: 9px;
  background: var(--ink);
}

.icon-plc {
  width: 42px;
  height: 36px;
  border-radius: 4px;
  background: #ff8f8f;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16);
}

.icon-plc::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 4px;
  background: #071018;
  box-shadow: 0 8px 0 #071018, 0 16px 0 #071018;
}

.customer-scene {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.channel-list,
.asset-list,
.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.channel-list span,
.asset-list span,
.scope-list span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 4px;
  background: rgba(99, 212, 255, 0.14);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-list {
  display: grid;
}

.asset-list span {
  justify-content: flex-start;
}

.scope-list {
  position: absolute;
  left: calc(50% - 170px);
  bottom: 72px;
  z-index: 4;
  width: 340px;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(99, 212, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 11, 14, 0.72);
}

.scope-list strong {
  width: 100%;
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
}

.command-hud {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.command-hud span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(99, 212, 255, 0.2);
  border-radius: 4px;
  background: rgba(8, 11, 14, 0.74);
  color: var(--muted);
  text-align: center;
}

.mission-briefing {
  position: absolute;
  left: 28px;
  bottom: 160px;
  z-index: 6;
  width: 260px;
  padding: 12px;
  border: 1px solid rgba(110, 231, 163, 0.3);
  border-radius: 8px;
  background: rgba(8, 11, 14, 0.78);
  box-shadow: 0 0 28px rgba(110, 231, 163, 0.12);
}

.mission-briefing span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-briefing strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.mission-briefing p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.brief-bars {
  display: grid;
  grid-template-columns: 1fr 0.7fr 0.45fr;
  gap: 5px;
  margin-top: 10px;
}

.brief-bars i {
  height: 5px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(110, 231, 163, 0.5);
}

@keyframes routePulse {
  to {
    stroke-dashoffset: -52;
  }
}

@keyframes radarSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes signalBlink {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes selectedPulse {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(110, 231, 163, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 26px rgba(110, 231, 163, 0.55));
  }
}

@keyframes planeDrift {
  0%, 100% {
    transform: translate(0, 0) rotate(-24deg);
  }
  50% {
    transform: translate(10px, -6px) rotate(-18deg);
  }
}

.band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.band article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(19, 24, 32, 0.78);
}

.band h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.legal-page {
  max-width: 860px;
  padding: 42px 0 80px;
}

.legal-page h1 {
  font-size: clamp(40px, 7vw, 72px);
}

.legal-page h2 {
  margin-top: 32px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-page a {
  color: var(--cyan);
}

.inline-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(99, 212, 255, 0.38);
  border-radius: 4px;
  padding: 0 12px;
  background: rgba(99, 212, 255, 0.1);
  font-weight: 900;
  text-decoration: none;
}

.sms-optin-form {
  display: grid;
  gap: 16px;
  margin: 28px 0;
  border: 1px solid rgba(246, 243, 232, 0.16);
  border-radius: 8px;
  padding: 22px;
  background: rgba(19, 24, 32, 0.78);
}

.sms-optin-form label {
  display: grid;
  gap: 8px;
}

.sms-optin-form label > span:first-child {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.sms-optin-form input[type="text"],
.sms-optin-form input[type="tel"],
.sms-optin-form input[type="email"] {
  min-height: 44px;
  border: 1px solid rgba(99, 212, 255, 0.24);
  border-radius: 4px;
  padding: 0 12px;
  background: rgba(5, 7, 10, 0.82);
  color: var(--ink);
  font: inherit;
}

.sms-optin-form input:focus {
  outline: 2px solid rgba(255, 179, 71, 0.5);
  outline-offset: 2px;
}

.sms-consent-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  border: 1px solid rgba(110, 231, 163, 0.3);
  border-radius: 6px;
  padding: 14px;
  background: rgba(110, 231, 163, 0.08);
}

.sms-consent-check input {
  margin-top: 5px;
}

.sms-consent-check span {
  color: var(--ink);
  line-height: 1.5;
}

.sms-form-result {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

@media (max-width: 840px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

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

  .hero {
    gap: 28px;
    padding-top: 34px;
  }

  .ops-visual {
    min-height: auto;
  }

  .route-map {
    height: 1220px;
  }

  .route-label {
    display: none;
  }

  .topology-control {
    left: calc(50% - 130px);
    top: 32px;
    width: 260px;
  }

  .zone-assets,
  .zone-customers {
    left: 18px;
    right: auto;
    width: calc(100% - 36px);
  }

  .zone-assets {
    top: 274px;
  }

  .zone-customers {
    top: 805px;
  }

  .topology-card {
    padding: 12px;
  }

  .project-card,
  .compact-card {
    display: none;
  }

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

  .lane-wide {
    grid-column: span 2;
  }

  .scope-list {
    left: 18px;
    bottom: 112px;
    width: calc(100% - 36px);
  }

  .mission-briefing {
    display: none;
  }

  .command-hud {
    left: 18px;
    right: 18px;
    bottom: 20px;
    grid-template-columns: 1fr;
  }

  .pin {
    width: 58px;
    height: 58px;
  }

  .pin span {
    max-width: 48px;
    font-size: 12px;
  }

  .pin small {
    font-size: 9px;
  }

  .pin-control {
    width: 86px;
    height: 86px;
  }

  .pin-control span {
    max-width: 68px;
    font-size: 26px;
  }

  .pin-pos,
  .pin-lane,
  .pin-camera,
  .pin-device,
  .pin-gateway {
    width: 56px;
    height: 56px;
  }

  .map-item {
    width: 108px;
    gap: 7px;
  }

  .item-control {
    left: calc(50% - 86px);
    top: 24px;
    width: 172px;
  }

  .item-gateway {
    left: calc(50% - 70px);
    top: 170px;
    width: 140px;
  }

  .item-manda {
    left: calc(50% - 54px);
    top: 1350px;
    width: 108px;
  }

  .asset {
    min-height: 48px;
    padding: 7px;
  }

  .asset strong {
    font-size: 11px;
  }

  .location-node {
    width: calc(100% - 36px);
    left: 18px;
    right: auto;
    min-height: 430px;
    padding: 12px;
  }

  .location-sd {
    top: 300px;
  }

  .location-ch {
    top: 760px;
  }

  .location-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .device-row {
    gap: 5px;
  }

  .location-node .map-item {
    width: 86px;
  }

  .location-node .pin {
    width: 48px;
    height: 48px;
  }

  .route-board {
    grid-template-columns: 1fr;
  }
}
