/*
 * Bastion Command premium product layer
 * Active website authority: apps/api/static
 * This file intentionally loads after the page-specific styles.
 */

:root {
  --b-ink-0: #03080b;
  --b-ink-1: #071116;
  --b-ink-2: #0b181e;
  --b-ink-3: #102129;
  --b-panel: rgba(12, 26, 32, .88);
  --b-panel-solid: #0c1a20;
  --b-line: rgba(190, 224, 236, .14);
  --b-line-strong: rgba(190, 231, 244, .27);
  --b-text: #f4f8f9;
  --b-muted: #9aadb5;
  --b-cyan: #6ee7f8;
  --b-teal: #3ed7bc;
  --b-green: #50d890;
  --b-amber: #f4b65a;
  --b-red: #ff6b7b;
  --b-radius-sm: 12px;
  --b-radius-md: 18px;
  --b-radius-lg: 26px;
  --b-shadow-soft: 0 24px 70px rgba(0, 0, 0, .18);
  --b-shadow-deep: 0 48px 130px rgba(0, 0, 0, .4);
  --b-ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

html { background: var(--b-ink-0); }
body {
  background:
    radial-gradient(circle at 78% -12%, rgba(66, 207, 229, .09), transparent 31rem),
    radial-gradient(circle at -8% 70%, rgba(37, 186, 132, .05), transparent 35rem),
    linear-gradient(180deg, var(--b-ink-0), var(--b-ink-1) 42%, #050d11);
}
body::before {
  opacity: .1;
  background-size: 88px 88px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

a, button, input, select, textarea { transition-duration: .24s; transition-timing-function: var(--b-ease); }
button, a { touch-action: manipulation; }
input, select, textarea { caret-color: var(--b-cyan); }
input::placeholder, textarea::placeholder { color: #61757e; opacity: 1; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--b-cyan);
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(110, 231, 248, .09);
}

.eyebrow, .section-kicker, .section-label {
  color: var(--b-cyan);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
}

.primary-cta, .primary-button, .primary {
  color: #031114;
  background: linear-gradient(135deg, #8cecff 0%, #54dfca 58%, #54df9b 100%);
  border: 0;
  box-shadow: 0 18px 48px rgba(40, 201, 178, .14), inset 0 1px rgba(255, 255, 255, .5);
}
.primary-cta:hover, .primary-button:hover, .primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 62px rgba(40, 201, 178, .21), inset 0 1px rgba(255, 255, 255, .55);
}
.secondary-cta, .quiet-link, .secondary-link, .text-link { text-underline-offset: 4px; }

/* Public product experience */
body[data-page="home"] .home-header {
  min-height: 84px;
  border-bottom-color: rgba(190, 224, 236, .1);
  background: rgba(3, 8, 11, .75);
  backdrop-filter: blur(28px) saturate(140%);
}
body[data-page="home"] .home-header nav { gap: 30px; }
body[data-page="home"] .home-header nav a {
  position: relative;
  color: #aabac1;
  font-size: 12px;
  font-weight: 650;
}
body[data-page="home"] .home-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  background: var(--b-cyan);
  opacity: 0;
  transform: scaleX(.4);
}
body[data-page="home"] .home-header nav a:hover::after { opacity: .7; transform: scaleX(1); }
body[data-page="home"] .home-brand b { font-size: 15px; }
body[data-page="home"] .home-brand small { font-size: 8px; }
body[data-page="home"] .header-cta {
  min-height: 44px;
  padding: 0 16px;
  border-color: var(--b-line-strong);
  border-radius: 13px;
  background: rgba(12, 26, 32, .72);
  font-size: 10px;
}
body[data-page="home"] .header-cta:hover { border-color: rgba(110, 231, 248, .46); background: rgba(110, 231, 248, .07); }
body[data-page="home"] .header-cta-mobile { display: none; }

body[data-page="home"] .hero {
  grid-template-columns: minmax(430px, .86fr) minmax(520px, 1.14fr);
  gap: clamp(38px, 5vw, 78px);
  min-height: 780px;
  padding: 82px 0 98px;
}
body[data-page="home"] .hero-copy { position: relative; z-index: 4; }
body[data-page="home"] .hero-kicker { font-size: 10px; letter-spacing: .18em; }
body[data-page="home"] .hero h1 {
  max-width: 720px;
  margin: 25px 0 27px;
  font-size: clamp(62px, 6.3vw, 96px);
  line-height: .91;
  letter-spacing: -.071em;
}
body[data-page="home"] .hero h1 em {
  padding-bottom: .08em;
  background: linear-gradient(92deg, #a7effd 0%, #62dfcf 60%, #72dea1 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
body[data-page="home"] .hero-copy > p {
  max-width: 610px;
  color: #adbdc4;
  font-size: 18px;
  line-height: 1.68;
}
body[data-page="home"] .hero-actions { gap: 20px; margin-top: 36px; }
body[data-page="home"] .primary-cta { min-height: 56px; padding-inline: 20px; border-radius: 15px; font-size: 11px; }
body[data-page="home"] .secondary-cta { font-size: 11px; }
body[data-page="home"] .trust-row { gap: 20px; margin-top: 30px; }
body[data-page="home"] .trust-row span { color: #93a6ae; font-size: 10px; }
body[data-page="home"] .trust-row i { width: 19px; height: 19px; font-size: 9px; }

.hero-system { position: relative; min-width: 0; min-height: 620px; }
.industrial-hero {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(190, 231, 244, .2);
  border-radius: 30px;
  background: #081116;
  box-shadow: var(--b-shadow-deep), 0 0 0 9px rgba(110, 231, 248, .018);
}
.industrial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 8, 11, .56), transparent 38%),
    linear-gradient(0deg, rgba(3, 8, 11, .67), transparent 35%);
}
.industrial-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle 260px at var(--hero-x, 72%) var(--hero-y, 55%), rgba(110, 231, 248, .12), transparent 68%);
  mix-blend-mode: screen;
  transition: background-position .18s ease;
}
.industrial-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; filter: saturate(.9) contrast(1.04); }
.image-wash {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 72% 62%, rgba(87, 226, 241, .05), transparent 28%);
}
.render-disclosure {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  padding: 7px 9px;
  color: #b7c5ca;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(3, 8, 11, .62);
  backdrop-filter: blur(10px);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .12em;
}
.hero-signal-rail {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 7px;
  border: 1px solid rgba(190, 231, 244, .17);
  border-radius: 15px;
  background: rgba(3, 10, 13, .72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px) saturate(130%);
}
.hero-signal-rail > span {
  display: grid;
  grid-template-columns: 28px auto;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 7px;
}
.hero-signal-rail b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #061115;
  border-radius: 9px;
  background: linear-gradient(135deg, #91edff, #45dcb9);
  font-size: 8px;
  letter-spacing: .06em;
}
.hero-signal-rail small { color: #c9d7dc; font-size: 6px; font-weight: 850; letter-spacing: .1em; white-space: nowrap; }
.hero-signal-rail > i {
  position: relative;
  width: clamp(14px, 2.1vw, 31px);
  height: 1px;
  overflow: hidden;
  background: rgba(110, 231, 248, .2);
}
.hero-signal-rail > i em {
  position: absolute;
  top: -1px;
  left: -8px;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: var(--b-cyan);
  box-shadow: 0 0 10px rgba(110, 231, 248, .9);
  animation: signalTravel 2.4s cubic-bezier(.45, 0, .55, 1) infinite;
}
.hero-signal-rail > i:nth-of-type(2) em { animation-delay: 1.2s; }
.industrial-hero figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 238px;
  padding: 12px 14px;
  border: 1px solid rgba(190, 231, 244, .17);
  border-radius: 14px;
  background: rgba(3, 10, 13, .72);
  backdrop-filter: blur(16px);
}
.industrial-hero figcaption b, .industrial-hero figcaption small { display: block; }
.industrial-hero figcaption b { font-size: 11px; }
.industrial-hero figcaption small { margin-top: 4px; color: #91a5ad; font-size: 8px; }
.product-pulse { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--b-cyan); box-shadow: 0 0 18px rgba(110, 231, 248, .75); }

.motion-ready .reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .75, .25, 1) var(--reveal-delay, 0ms), transform .7s cubic-bezier(.2, .75, .25, 1) var(--reveal-delay, 0ms);
}
.motion-ready .reveal-ready.revealed { opacity: 1; transform: translateY(0); }

body[data-page="home"] .hero-system .command-preview {
  position: absolute;
  z-index: 6;
  bottom: 34px;
  left: -54px;
  width: min(490px, 84%);
  padding: 15px;
  border-radius: 19px;
  background: linear-gradient(150deg, rgba(15, 31, 38, .94), rgba(5, 13, 17, .96));
  box-shadow: 0 35px 90px rgba(0, 0, 0, .53), 0 0 0 1px rgba(110, 231, 248, .08);
  backdrop-filter: blur(18px);
  transform: none;
}
body[data-page="home"] .hero-system .command-preview::after { display: none; }
body[data-page="home"] .hero-system .preview-kpis { margin: 12px 0; }
body[data-page="home"] .hero-system .preview-kpis > span { padding: 9px 10px; }
body[data-page="home"] .hero-system .preview-kpis b { margin-top: 5px; font-size: 17px; }
body[data-page="home"] .hero-system .factory-map { padding: 11px; }
body[data-page="home"] .hero-system .map-label { padding: 8px 10px; }
body[data-page="home"] .hero-system .machine-grid { margin-top: 8px; }
body[data-page="home"] .hero-system .machine-grid > div { padding: 7px; }
body[data-page="home"] .hero-system .preview-scan { margin-top: 8px; padding: 8px; }
body[data-page="home"] .live-status.demo {
  color: var(--b-cyan);
  border-color: rgba(110, 231, 248, .24);
  background: rgba(110, 231, 248, .07);
}
body[data-page="home"] .live-status.demo i { background: var(--b-cyan); box-shadow: 0 0 8px rgba(110, 231, 248, .72); }

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -23px 0 36px;
  overflow: hidden;
  border: 1px solid var(--b-line);
  border-radius: 18px;
  background: var(--b-line);
  box-shadow: var(--b-shadow-soft);
}
.evidence-strip > div {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 17px 19px;
  background: rgba(8, 19, 24, .96);
}
.evidence-strip p { min-width: 0; margin: 0; }
.evidence-strip small, .evidence-strip b { display: block; }
.evidence-strip small { color: #6f858e; font-size: 7px; font-weight: 850; letter-spacing: .15em; }
.evidence-strip b { margin-top: 6px; overflow: hidden; color: #c6d1d5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.evidence-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; color: var(--b-cyan); border: 1px solid rgba(110, 231, 248, .19); border-radius: 11px; background: rgba(110, 231, 248, .055); font-size: 8px; font-weight: 900; }
.evidence-icon.data::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--b-amber); box-shadow: 0 0 13px rgba(244, 182, 90, .55); }
.evidence-icon.route { color: var(--b-green); border-color: rgba(80, 216, 144, .2); background: rgba(80, 216, 144, .055); }

body[data-page="home"] .live-ribbon {
  min-height: 118px;
  margin: 0;
  border-color: var(--b-line);
  background: linear-gradient(90deg, rgba(110, 231, 248, .045), transparent 30%), rgba(8, 19, 24, .82);
}
body[data-page="home"] .ribbon-lead b { max-width: 310px; color: #bfccd1; font-size: 11px; line-height: 1.45; }
body[data-page="home"] .live-ribbon.data-unavailable .signal-orbit i:first-child { background: #71858d; box-shadow: none; }
body[data-page="home"] .live-ribbon.data-unavailable .ribbon-metrics { opacity: .66; }

.system-story { padding: 112px 0; border-top: 1px solid var(--b-line); }
.system-story-head {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 70px;
}
.system-story-head h2 {
  max-width: 760px;
  margin: 15px 0 0;
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: .98;
  letter-spacing: -.057em;
}
.system-story-head > p { margin: 0 0 6px; color: var(--b-muted); font-size: 14px; line-height: 1.7; }
.system-rail {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr;
  align-items: stretch;
  margin-top: 57px;
}
.system-rail article {
  position: relative;
  display: grid;
  grid-template-rows: auto 86px 1fr;
  min-width: 0;
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--b-line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(15, 31, 38, .94), rgba(7, 17, 21, .9));
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}
.system-rail article > span { justify-self: end; color: #51666f; font-size: 8px; font-weight: 850; }
.system-rail article > i { position: relative; display: grid; place-items: center; width: 62px; height: 62px; align-self: center; color: var(--b-cyan); border: 1px solid rgba(110, 231, 248, .18); border-radius: 18px; background: rgba(110, 231, 248, .05); font-style: normal; }
.system-rail article small { color: #718891; font-size: 7px; font-weight: 850; letter-spacing: .14em; }
.system-rail article h3 { margin: 8px 0 8px; font-size: 18px; letter-spacing: -.025em; }
.system-rail article p { margin: 0; color: var(--b-muted); font-size: 10px; line-height: 1.55; }
.rail-arrow { display: grid; place-items: center; color: #4e6a75; font-size: 15px; }
.rail-sensor::before { content: ""; width: 29px; height: 24px; border: 1px solid currentColor; border-radius: 7px; box-shadow: inset 0 0 0 5px rgba(110, 231, 248, .05); }
.rail-sensor::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--b-green); box-shadow: 0 0 9px rgba(80, 216, 144, .8); }
.rail-gateway::before { content: "B"; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid currentColor; border-radius: 9px; font-size: 11px; font-weight: 900; }
.rail-gateway::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(110, 231, 248, .13); border-radius: 50%; }
.rail-cloud::before { content: ""; width: 33px; height: 18px; border: 1px solid currentColor; border-radius: 11px; }
.rail-cloud::after { content: ""; position: absolute; top: 21px; width: 17px; height: 17px; border: 1px solid currentColor; border-bottom: 0; border-radius: 50% 50% 0 0; background: var(--b-ink-2); }
.rail-action { color: var(--b-green) !important; border-color: rgba(80, 216, 144, .2) !important; background: rgba(80, 216, 144, .055) !important; font-size: 19px; }
.integrity-note {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 17px 19px;
  border: 1px solid var(--b-line);
  border-radius: 16px;
  background: rgba(9, 20, 25, .78);
}
.integrity-note > span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--b-cyan); border: 1px solid var(--b-line-strong); border-radius: 11px; font-size: 11px; font-weight: 850; }
.integrity-note p { margin: 0; }
.integrity-note b, .integrity-note small { display: block; }
.integrity-note b { font-size: 11px; }
.integrity-note small { margin-top: 5px; color: var(--b-muted); font-size: 9px; line-height: 1.5; }
.integrity-note a { color: var(--b-cyan); text-decoration: none; font-size: 9px; font-weight: 800; }

body[data-page="home"] .manager-story,
body[data-page="home"] .how-section,
body[data-page="home"] .teams-section { padding: 112px 0; }
body[data-page="home"] .story-heading p { font-size: 14px; }
body[data-page="home"] .outcomes article { min-height: 310px; padding: 27px; }
body[data-page="home"] .outcomes h3 { font-size: 21px; }
body[data-page="home"] .outcomes p { font-size: 12px; }
body[data-page="home"] .steps article { padding: 27px; }
body[data-page="home"] .steps h3 { font-size: 20px; }
body[data-page="home"] .steps p { font-size: 11px; }
body[data-page="home"] .team-cards article { min-height: 380px; padding: 34px; }
body[data-page="home"] .team-cards li { font-size: 12px; }
body[data-page="home"] .team-cards article > a { font-size: 10px; }
body[data-page="home"] .final-cta { padding: 62px; border-radius: 28px; }

/* Bastion Command */
body[data-page="command"] .app-shell { width: min(100% - 48px, 1540px); }
body[data-page="command"] .topbar {
  min-height: 82px;
  margin-bottom: 52px;
  background: rgba(3, 8, 11, .82);
  backdrop-filter: blur(28px) saturate(140%);
}
body[data-page="command"] .brand b { font-size: 15px; }
body[data-page="command"] .brand small { font-size: 8px; }
body[data-page="command"] .tabs { border-color: var(--b-line); background: rgba(10, 23, 28, .8); }
body[data-page="command"] .tab { min-height: 42px; padding-inline: 18px; font-size: 12px; }
body[data-page="command"] .tab.active { background: linear-gradient(145deg, #1a333d, #10242b); }
body[data-page="command"] .factory-control { height: 42px; border-color: var(--b-line); }
body[data-page="command"] .factory-control span { font-size: 9px; }
body[data-page="command"] .factory-control select { min-width: 166px; font-size: 12px; }
body[data-page="command"] .live-pill { height: 42px; }
.live-pill.connecting { color: var(--b-amber); border-color: rgba(244, 182, 90, .25); background: rgba(244, 182, 90, .055); }
.live-pill.connecting i { background: var(--b-amber); box-shadow: 0 0 10px rgba(244, 182, 90, .65); animation: premiumPulse 1.8s infinite; }
.live-pill.unavailable { color: #a6b4ba; border-color: var(--b-line); background: rgba(154, 173, 181, .045); }
.live-pill.unavailable i { background: #6d7e85; box-shadow: none; animation: none; }
.live-pill.live { color: var(--b-green); border-color: rgba(80, 216, 144, .23); background: rgba(80, 216, 144, .055); }
.live-pill.demo,.live-pill.simulated,.live-pill.development_hardware,.live-pill.imported,.live-pill.stale,.live-pill.mixed { color: var(--b-amber); border-color: rgba(244, 182, 90, .25); background: rgba(244, 182, 90, .055); }
.live-pill.demo i,.live-pill.simulated i,.live-pill.development_hardware i,.live-pill.imported i,.live-pill.stale i,.live-pill.mixed i { background: var(--b-amber); box-shadow: 0 0 10px rgba(244, 182, 90, .5); animation: none; }
.live-pill.unknown i { background: #6d7e85; box-shadow: none; animation: none; }

body[data-page="command"] .page-head h1 { font-size: clamp(48px, 4.8vw, 72px); }
body[data-page="command"] .page-head p { max-width: 760px; color: #a5b6bd; font-size: 15px; line-height: 1.55; }
body[data-page="command"] .shift-brief { border-radius: 24px; }
body[data-page="command"] .brief-copy p { font-size: 12px; }
body[data-page="command"] .brief-focus b { font-size: 16px; }
body[data-page="command"] .brief-focus span { font-size: 10px; }
body[data-page="command"] .kpi,
body[data-page="command"] .panel,
body[data-page="command"] .plan-kpi-grid article,
body[data-page="command"] .tech-kpi-grid article,
body[data-page="command"] .line-kpi-grid article {
  border-color: var(--b-line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(15, 31, 38, .94), rgba(7, 17, 21, .92));
}
body[data-page="command"] .panel { padding: 23px; }
body[data-page="command"] .panel h2 { font-size: 23px; }
body[data-page="command"] .kpi > small,
body[data-page="command"] .panel .section-kicker,
body[data-page="command"] .plan-kpi-grid small,
body[data-page="command"] .tech-kpi-grid small,
body[data-page="command"] .line-kpi-grid small { font-size: 9px; }
body[data-page="command"] .kpi > span,
body[data-page="command"] .hero-kpi span,
body[data-page="command"] .action small,
body[data-page="command"] .factory-row small,
body[data-page="command"] .gateway-row small { font-size: 10px; }
body[data-page="command"] .action { min-height: 72px; }
body[data-page="command"] .action b { font-size: 13px; }
body[data-page="command"] .action p { font-size: 10px; line-height: 1.5; }
body[data-page="command"] .factory-row b,
body[data-page="command"] .gateway-row b,
body[data-page="command"] .installation-row b,
body[data-page="command"] .tool-panel b { font-size: 12px; }
body[data-page="command"] .line-card { min-height: 74px; }
body[data-page="command"] .line-card div > b { font-size: 12px; }
body[data-page="command"] .line-card div > small { font-size: 9px; }
body[data-page="command"] input,
body[data-page="command"] select,
body[data-page="command"] textarea { min-height: 48px; font-size: 12px; }

body[data-page="command"] .error-view {
  max-width: 690px;
  margin: 10vh auto;
  padding: 44px;
  border: 1px solid var(--b-line);
  border-radius: 26px;
  background: radial-gradient(circle at 0 0, rgba(255, 107, 123, .07), transparent 32%), linear-gradient(150deg, rgba(15, 31, 38, .96), rgba(7, 17, 21, .95));
  box-shadow: var(--b-shadow-deep);
}
body[data-page="command"] .error-view > div:first-child { width: 68px; height: 68px; color: #2a080d; background: var(--b-red); }
body[data-page="command"] .error-view > .section-kicker { display: block; margin-top: 22px; color: var(--b-red); }
body[data-page="command"] .error-view h1 { margin: 12px 0 14px; font-size: clamp(38px, 5vw, 56px); letter-spacing: -.055em; }
body[data-page="command"] .error-view > p { max-width: 540px; margin: 0 auto; font-size: 14px; line-height: 1.65; }
body[data-page="command"] .error-view aside { margin: 24px 0; padding: 16px 18px; border: 1px solid var(--b-line); border-radius: 14px; background: rgba(3, 10, 13, .48); text-align: left; }
body[data-page="command"] .error-view aside b, body[data-page="command"] .error-view aside span { display: block; }
body[data-page="command"] .error-view aside b { color: var(--b-text); font-size: 12px; }
body[data-page="command"] .error-view aside span { margin-top: 6px; color: var(--b-muted); font-size: 10px; line-height: 1.55; }
.error-actions { display: flex; justify-content: center; gap: 10px; }
body[data-page="command"] .error-actions button,
body[data-page="command"] .error-actions a { display: grid; place-items: center; min-height: 46px; padding: 0 18px; border-radius: 12px; font-size: 10px; font-weight: 800; text-decoration: none; }
body[data-page="command"] .error-actions button { color: #031114; background: linear-gradient(135deg, var(--b-cyan), var(--b-teal)); }
body[data-page="command"] .error-actions a { color: var(--b-text); border: 1px solid var(--b-line); }

/* Client inquiry and installation planning */
body[data-page="inquire"] .portal-shell,
body[data-page="planner"] .portal-shell { width: min(100% - 48px, 1320px); }
body[data-page="inquire"] .portal-bar,
body[data-page="planner"] .portal-bar {
  min-height: 84px;
  background: rgba(3, 8, 11, .64);
  backdrop-filter: blur(24px);
}
body[data-page="inquire"] .inquiry-layout { grid-template-columns: minmax(0, 1fr) minmax(500px, 560px); gap: 90px; }
body[data-page="inquire"] .inquiry-copy h1 { font-size: clamp(58px, 6vw, 86px); }
body[data-page="inquire"] .inquiry-copy > p { max-width: 600px; color: #adbdc4; font-size: 17px; }
body[data-page="inquire"] .promise-list > div { min-height: 70px; }
body[data-page="inquire"] .promise-list b { font-size: 13px; }
body[data-page="inquire"] .promise-list small { font-size: 11px; }
.form-card, .preview-card, .workflow-card {
  border-color: var(--b-line);
  border-radius: 25px;
  background: radial-gradient(circle at 100% 0, rgba(110, 231, 248, .045), transparent 30%), linear-gradient(150deg, rgba(15, 31, 38, .97), rgba(7, 17, 21, .96));
}
.form-card { padding: 34px; }
.form-card h2 { font-size: 31px; }
.form-card header p { font-size: 13px; }
.field-grid { gap: 15px; }
.field-grid label, .planner-form label { font-size: 10px; }
.field-grid input, .field-grid select, .field-grid textarea,
.planner-form input, .planner-form select, .planner-form textarea { min-height: 52px; font-size: 14px; }
.field-grid textarea, .planner-form textarea { min-height: 94px; }
body[data-page="inquire"] .scope-snapshot { padding: 16px; }
body[data-page="inquire"] .scope-snapshot b { font-size: 11px; }
body[data-page="inquire"] .scope-snapshot dd { font-size: 8px; }
.fine-print { color: #7d9098; font-size: 9px; }
body[data-page="planner"] .planner-head { padding: 62px 0 36px; }
body[data-page="planner"] .planner-head p { max-width: 680px; color: #adbdc4; font-size: 15px; line-height: 1.65; }
body[data-page="planner"] .planner-layout { grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; }
body[data-page="planner"] .workflow-card { padding: 27px; }
body[data-page="planner"] .step-head h2 { font-size: 24px; }
body[data-page="planner"] .preview-card { top: 24px; }
body[data-page="planner"] .preview-top { padding: 28px; }
body[data-page="planner"] .preview-top h2 { font-size: 28px; }
body[data-page="planner"] .plan-details li { font-size: 10px; }

/* Privacy is a reading surface, not a full-width form. */
body[data-page="privacy"] .portal-shell { width: min(100% - 48px, 980px); }
body[data-page="privacy"] .privacy-card { padding: clamp(28px, 4vw, 52px); }
body[data-page="privacy"] .privacy-card > p { max-width: 820px; color: #a9bbc2; font-size: 13px; line-height: 1.72; }
body[data-page="privacy"] .privacy-card h1 { max-width: 840px; font-size: clamp(36px, 4.2vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
body[data-page="privacy"] .privacy-card h2 { margin-top: 28px; font-size: 22px; }
body[data-page="privacy"] .privacy-card .fine-print { margin-top: 28px; color: #82969e; text-align: left; font-size: 10px; }
body[data-page="privacy"] .privacy-card .primary { width: min(100%, 280px); margin-top: 22px; gap: 28px; }

/* Technician-first installation */
body[data-page="install"] .shell { width: min(100%, 620px); padding-inline: 26px; }
body[data-page="install"] .brandbar { min-height: 54px; margin-bottom: 54px; }
body[data-page="install"] .brand b { font-size: 14px; }
body[data-page="install"] .eyebrow { font-size: 10px; }
body[data-page="install"] h1 { font-size: clamp(52px, 12vw, 72px); }
body[data-page="install"] .lede { max-width: 520px; font-size: 18px; }
body[data-page="install"] .primary { min-height: 62px; border-radius: 16px; font-size: 14px; }
body[data-page="install"] .code-row input,
body[data-page="install"] .code-row button,
body[data-page="install"] select,
body[data-page="install"] textarea { min-height: 54px; font-size: 14px; }
body[data-page="install"] .demo-link { min-height: 44px; font-size: 13px; }
body[data-page="install"] .promise-grid div { min-height: 92px; padding: 16px 13px; }
body[data-page="install"] .promise-grid b { font-size: 14px; }
body[data-page="install"] .promise-grid small { font-size: 9px; line-height: 1.4; }
body[data-page="install"] label, body[data-page="install"] legend { font-size: 12px; }
body[data-page="install"] .gateway-card { min-height: 68px; }
body[data-page="install"] .gateway-card b { font-size: 12px; }
body[data-page="install"] .gateway-card small { font-size: 10px; }
body[data-page="install"] .mount-card { min-height: 84px; }
body[data-page="install"] .mount-card b { font-size: 12px; }
body[data-page="install"] .mount-card small { font-size: 9px; }

@keyframes premiumPulse {
  0%, 100% { opacity: .5; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes signalTravel {
  0% { opacity: 0; transform: translateX(0); }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(39px); }
}

@media (max-width: 1180px) {
  body[data-page="home"] .hero { grid-template-columns: .92fr 1.08fr; }
  body[data-page="home"] .hero-system .command-preview { left: -32px; width: 91%; }
  .system-rail { grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr; }
  body[data-page="command"] .client-link { display: none; }
}

@media (max-width: 1100px) {
  body[data-page="command"] .topbar {
    grid-template-columns: 1fr auto;
    row-gap: 12px;
    padding: 14px 0;
  }
  body[data-page="command"] .tabs {
    grid-row: 2;
    grid-column: 1 / 3;
    justify-self: center;
  }
}

@media (max-width: 980px) {
  body[data-page="home"] .hero { grid-template-columns: 1fr; min-height: 0; }
  body[data-page="home"] .hero-copy { max-width: 780px; }
  .hero-system { min-height: 660px; }
  body[data-page="home"] .hero-system .command-preview { left: 24px; width: min(520px, 76%); }
  .evidence-strip { margin-top: -38px; }
  .system-story-head { grid-template-columns: 1fr; gap: 22px; }
  .system-story-head > p { max-width: 700px; }
  .system-rail { grid-template-columns: 1fr 1fr; gap: 12px; }
  .system-rail .rail-arrow { display: none; }
  body[data-page="inquire"] .inquiry-layout { grid-template-columns: 1fr; gap: 44px; }
  body[data-page="planner"] .planner-layout { grid-template-columns: 1fr; }
  body[data-page="planner"] .preview-card { position: relative; top: auto; grid-row: 1; }
}

@media (max-width: 720px) {
  .language-switch button { min-width: 40px; height: 40px; }
  body[data-page="home"] .home-header, body[data-page="home"] main, body[data-page="home"] footer { width: min(100% - 28px, 1240px); }
  body[data-page="home"] .home-header { width: 100%; }
  body[data-page="home"] .home-actions { gap: 6px; }
  body[data-page="home"] .language-switch button { min-width: 34px; padding-inline: 6px; }
  body[data-page="home"] .language-switch button[data-set-lang="pt-BR"] { min-width: 44px; }
  body[data-page="home"] .header-cta { min-width: 0; min-height: 42px; gap: 7px; padding: 0 10px; }
  body[data-page="home"] .header-cta .header-cta-label { display: none; }
  body[data-page="home"] .header-cta .header-cta-mobile { display: inline; }
  body[data-page="home"] .hero { padding: 58px 0 76px; }
  body[data-page="home"] .hero h1 { font-size: clamp(52px, 15vw, 68px); }
  body[data-page="home"] .hero-copy > p { font-size: 16px; }
  .hero-system { min-height: 0; }
  .industrial-hero { position: relative; height: 480px; border-radius: 23px; }
  .industrial-hero img { object-position: 66% center; }
  .render-disclosure { display: none; }
  .hero-signal-rail { top: 13px; left: 13px; max-width: calc(100% - 26px); padding: 5px; }
  .hero-signal-rail > span { grid-template-columns: 24px auto; gap: 5px; min-height: 27px; padding: 0 5px; }
  .hero-signal-rail b { width: 24px; height: 24px; border-radius: 7px; }
  .hero-signal-rail small { font-size: 5px; }
  .industrial-hero figcaption { right: 13px; bottom: 13px; left: 13px; min-width: 0; }
  body[data-page="home"] .hero-system .command-preview { position: relative; bottom: auto; left: auto; width: calc(100% - 20px); margin: -54px auto 0; }
  .evidence-strip { grid-template-columns: 1fr; margin: -34px 0 22px; }
  .evidence-strip > div { min-height: 69px; }
  body[data-page="home"] .live-ribbon { margin-top: 0; }
  .system-story { padding: 82px 0; }
  .system-story-head h2 { font-size: 43px; }
  .system-rail { grid-template-columns: 1fr; }
  .system-rail article { grid-template-columns: 66px 1fr; grid-template-rows: auto 1fr; min-height: 0; padding: 18px; }
  .system-rail article > span { position: absolute; top: 16px; right: 17px; }
  .system-rail article > i { grid-row: 1 / 3; align-self: center; }
  .system-rail article > div { align-self: center; }
  .integrity-note { grid-template-columns: 34px 1fr; }
  .integrity-note a { grid-column: 2; }
  body[data-page="home"] .manager-story,
  body[data-page="home"] .how-section,
  body[data-page="home"] .teams-section { padding: 82px 0; }
  body[data-page="home"] .final-cta { padding: 34px 25px; }

  body[data-page="command"] .app-shell { width: min(100% - 24px, 1540px); }
  body[data-page="command"] .topbar { backdrop-filter: none; }
  body[data-page="command"] .brand span { display: none; }
  body[data-page="command"] .top-actions .language-switch { display: flex; }
  body[data-page="command"] .top-actions .language-switch button { min-width: 30px; height: 38px; padding-inline: 4px; }
  body[data-page="command"] .top-actions .language-switch button[data-set-lang="pt-BR"] { min-width: 40px; }
  body[data-page="command"] .factory-control select { min-width: 104px; max-width: 120px; }
  body[data-page="command"] .page-head h1 { font-size: 46px; }
  body[data-page="command"] .page-head p { font-size: 13px; }
  body[data-page="command"] .panel { padding: 18px; }
  body[data-page="command"] .error-view { margin: 7vh auto; padding: 28px 20px; }
  .error-actions { flex-direction: column; }
  body[data-page="command"] .error-actions > * { width: 100%; }

  body[data-page="inquire"] .portal-shell,
  body[data-page="planner"] .portal-shell { width: min(100% - 28px, 1320px); }
  body[data-page="inquire"] .ambient,
  body[data-page="planner"] .ambient { width: 300px; height: 300px; }
  body[data-page="inquire"] .ambient.one,
  body[data-page="planner"] .ambient.one { right: 0; }
  body[data-page="inquire"] .ambient.two,
  body[data-page="planner"] .ambient.two { left: 0; }
  body[data-page="inquire"] .inquiry-copy h1 { font-size: 52px; }
  .form-card { padding: 22px; }
  .form-card h2 { font-size: 27px; }
  body[data-page="planner"] .planner-head { padding-top: 42px; }
  body[data-page="planner"] .workflow-card { padding: 21px; }
  body[data-page="install"] .shell { padding-inline: 18px; }
  body[data-page="privacy"] .portal-shell { width: min(100% - 28px, 980px); }
  body[data-page="privacy"] .privacy-card { padding: 28px 22px; }
  body[data-page="privacy"] .privacy-card h1 { font-size: 38px; }
  body[data-page="privacy"] .privacy-card .primary { width: 100%; }
}

@media (max-width: 430px) {
  body[data-page="planner"] .secure-pill,
  body[data-page="install"] .secure-pill { display: none; }

  body[data-page="home"] .hero h1 { font-size: 49px; }
  .industrial-hero { height: 360px; }
  body[data-page="home"] .hero-system .command-preview { width: calc(100% - 12px); padding: 12px; }
  body[data-page="home"] .hero-system .machine-grid { display: none; }
  body[data-page="home"] .hero-system .preview-scan { grid-template-columns: 30px 1fr auto; }
  .system-story-head h2 { font-size: 39px; }
  body[data-page="install"] h1 { font-size: 51px; }
  body[data-page="install"] .promise-grid { grid-template-columns: 1fr; }
  body[data-page="install"] .promise-grid div { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .live-pill.connecting i { animation: none; }
  .hero-signal-rail > i em { animation: none; opacity: 1; transform: translateX(50%); }
  .motion-ready .reveal-ready { opacity: 1; transform: none; transition: none; }
}

@media print {
  .evidence-strip, .render-disclosure { color: #111; background: #fff; }
}
.skip-link { position:fixed; top:8px; left:8px; z-index:10000; padding:11px 15px; color:#071015; background:#f4fbfd; border-radius:9px; font-size:14px; font-weight:800; transform:translateY(-160%); transition:transform .15s ease; }
.skip-link:focus { transform:translateY(0); outline:3px solid #5ddbff; outline-offset:2px; }
