/* Enterprise AI Hub additions for the corporate story. */

.hub-hero-subtitle {
  max-width: 620px;
  margin: 0 0 14px;
  color: #eaf4f8;
  font: 600 clamp(20px, 1.8vw, 25px)/1.25 SBDisplay, Arial, sans-serif;
}

.corp-actions .btn svg {
  width: 17px;
  height: 17px;
}

.hub-model-map,
.hub-routing-story,
.hub-contract-story {
  width: calc(100% - 64px);
  max-width: 1312px;
  margin: 0 auto;
}

.hub-model-map {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: center;
  padding: 95px 0 105px;
  border-top: 1px solid #d7e1e7;
}

.hub-model-map-copy h3,
.hub-routing-copy h3,
.hub-contract-copy h3 {
  max-width: 610px;
  margin: 0 0 17px;
  color: #142331;
  font: 700 clamp(36px, 3.25vw, 52px)/1.02 SBDisplay, Arial, sans-serif;
}

.hub-model-map-copy > p:not(.corp-eyebrow),
.hub-routing-copy > p:not(.corp-eyebrow),
.hub-contract-copy > p:not(.corp-eyebrow) {
  max-width: 550px;
  margin: 0;
  color: #687b87;
  font-size: 17px;
  line-height: 1.48;
}

.hub-inline-link,
.hub-inline-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 25px;
  color: #087f8e;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #a8cacc;
  text-underline-offset: 5px;
}

.hub-inline-link svg,
.hub-inline-button svg {
  width: 15px;
  height: 15px;
}

.hub-inline-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hub-model-map-stage,
.hub-routing-console,
.hub-contract-board {
  overflow: hidden;
  border: 1px solid #2b4657;
  border-radius: 14px;
  background: #132431;
  box-shadow: 0 23px 54px rgba(24, 54, 76, 0.18);
  color: #fff;
}

.hub-model-map-bar,
.hub-routing-console-bar,
.hub-contract-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid #2c4657;
  color: #cfe5ea;
  font-size: 11px;
}

.hub-model-map-bar > span,
.hub-model-map-bar > em,
.hub-routing-console-bar > span,
.hub-routing-console-bar > em,
.hub-contract-board-head > span,
.hub-contract-board-head > em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hub-model-map-bar svg,
.hub-routing-console-bar svg,
.hub-contract-board-head svg {
  width: 14px;
  height: 14px;
  color: #63d8d6;
}

.hub-model-map-bar em,
.hub-routing-console-bar em,
.hub-contract-board-head em {
  color: #72cbb4;
  font: 9px ui-monospace, SFMono-Regular, Consolas, monospace;
  font-style: normal;
  white-space: nowrap;
}

.hub-model-map-bar em i,
.hub-routing-console-bar em i,
.hub-contract-board-head em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38d8aa;
  box-shadow: 0 0 0 4px rgba(56, 216, 170, 0.12);
}

.hub-model-map-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 17px;
}

.hub-model-lane {
  display: flex;
  min-height: 234px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #314e5e;
  border-radius: 10px;
  background: #162a38;
}

.hub-model-lane header {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 13px;
  border-bottom: 1px solid #2c4656;
}

.hub-model-lane header > span {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 8px;
  background: #233f53;
  color: #63d8d6;
}

.hub-model-lane header > span svg {
  width: 17px;
  height: 17px;
}

.hub-model-lane header div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.hub-model-lane header b {
  overflow: hidden;
  color: #e8f5f8;
  font: 600 13px/1.1 SBDisplay, Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-model-lane header small {
  overflow: hidden;
  color: #7f98a7;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-model-lane header em {
  padding: 4px 5px;
  border-radius: 4px;
  background: #203746;
  color: #9fbdc7;
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.hub-model-lane-local {
  border-color: #348485;
  background: linear-gradient(155deg, #15323a, #162a38 72%);
}

.hub-model-lane-local header > span {
  background: #174b4e;
  color: #7ce4da;
}

.hub-model-lane-local header em {
  background: #1c4b4c;
  color: #8ee1d4;
}

.hub-model-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 16px 13px;
}

.hub-model-provider-grid span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 0 7px;
  border: 1px solid #355163;
  border-radius: 7px;
  background: #1a3040;
  color: #c4d7df;
  font: 600 10px SBText, Arial, sans-serif;
}

.hub-model-lane footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 11px 13px;
  border-top: 1px solid #2c4656;
  color: #86a5b0;
  font-size: 9px;
}

.hub-model-lane footer svg {
  width: 13px;
  height: 13px;
  color: #65d8ca;
}

.hub-local-visual {
  position: relative;
  display: flex;
  min-height: 108px;
  flex: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hub-local-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #78ddd5;
  border-radius: 13px;
  background: #1c6465;
  box-shadow: 0 0 0 7px rgba(61, 210, 202, 0.08);
  color: #b6f8f0;
}

.hub-local-core svg {
  width: 22px;
  height: 22px;
}

.hub-local-visual > b {
  position: relative;
  z-index: 2;
  margin-left: 12px;
  color: #ccefe9;
  font: 600 13px SBDisplay, Arial, sans-serif;
}

.hub-local-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(100, 223, 212, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: hub-local-breathe 3.5s ease-in-out infinite;
}

.hub-local-pulse.pulse-b {
  width: 132px;
  height: 132px;
  border-color: rgba(100, 223, 212, 0.16);
  animation-delay: 0.5s;
}

@keyframes hub-local-breathe {
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.45; }
}

.hub-model-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 17px;
  border-top: 1px solid #2c4657;
  color: #8ba8b2;
  font-size: 9px;
}

.hub-model-map-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hub-model-map-footer svg {
  width: 13px;
  height: 13px;
  color: #63d8d6;
}

.hub-model-map-footer b {
  color: #c8e8e5;
  font-size: 10px;
}

.hub-routing-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.77fr) minmax(0, 1.23fr);
  gap: 72px;
  align-items: center;
  padding: 96px 0 105px;
}

.hub-routing-notes {
  display: grid;
  gap: 10px;
  margin-top: 27px;
}

.hub-routing-notes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #536e7b;
  font-size: 13px;
}

.hub-routing-notes svg {
  width: 16px;
  height: 16px;
  color: #09959b;
}

.hub-routing-request {
  margin: 18px 18px 0;
  padding: 14px 15px;
  border: 1px solid #314e5e;
  border-radius: 9px;
  background: #162a38;
}

.hub-routing-request > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aac2cc;
  font-size: 10px;
}

.hub-routing-request > span svg {
  width: 14px;
  height: 14px;
  color: #63d8d6;
}

.hub-routing-request p {
  margin: 10px 0 11px;
  color: #ecf6f8;
  font: 500 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.hub-routing-request mark {
  padding: 2px 3px;
  border-radius: 3px;
  background: #624f28;
  color: #ffe08a;
}

.hub-routing-request > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-routing-request b {
  padding: 4px 6px;
  border-radius: 4px;
  background: #233d4d;
  color: #a8bec8;
  font-size: 8px;
  font-weight: 500;
}

.hub-routing-request b.is-sensitive {
  background: #563140;
  color: #f3acb9;
}

.hub-routing-decision {
  position: relative;
  display: flex;
  min-height: 95px;
  align-items: center;
  justify-content: center;
}

.hub-routing-router {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 29px auto;
  column-gap: 7px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid #397f89;
  border-radius: 8px;
  background: #16404a;
  color: #e1f8f4;
}

.hub-routing-router svg {
  grid-row: span 2;
  width: 17px;
  height: 17px;
  color: #79e2dd;
}

.hub-routing-router b {
  font: 600 11px SBDisplay, Arial, sans-serif;
}

.hub-routing-router small {
  color: #8fb9ba;
  font-size: 8px;
}

.hub-route-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 29px;
  background: #477080;
}

.hub-route-line.is-bottom {
  top: auto;
  bottom: 0;
  height: 30px;
}

.hub-route-line i {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 2px;
  height: 12px;
  background: #52d6d2;
  box-shadow: 0 0 8px rgba(82, 214, 210, 0.55);
  transform: translateX(-50%);
  animation: hub-route-signal 2.2s linear infinite;
}

.hub-route-line.is-bottom i {
  animation-delay: 0.6s;
}

@keyframes hub-route-signal {
  to { top: 62%; opacity: 0.25; }
}

.hub-routing-outputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 18px;
}

.hub-routing-outputs article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 7px;
  align-items: center;
  min-height: 85px;
  padding: 10px;
  border: 1px solid #304d5e;
  border-radius: 8px;
  background: #162a38;
}

.hub-routing-outputs article.is-local {
  border-color: #367f7e;
  background: #15343a;
}

.hub-routing-outputs article.is-blocked {
  border-color: #684153;
  background: #2a2531;
}

.hub-routing-output-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: #233f53;
  color: #67d8db;
}

.hub-routing-output-icon svg {
  width: 15px;
  height: 15px;
}

.hub-routing-output-icon.local {
  background: #1a5354;
  color: #8ee7dc;
}

.hub-routing-output-icon.blocked {
  background: #593544;
  color: #f5acbb;
}

.hub-routing-outputs article > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.hub-routing-outputs b {
  overflow: hidden;
  color: #e8f6f7;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-routing-outputs small {
  color: #829eab;
  font-size: 8px;
  line-height: 1.25;
}

.hub-routing-outputs em {
  grid-column: 1 / -1;
  margin-top: 7px;
  color: #69d2be;
  font-size: 8px;
  font-style: normal;
}

.hub-routing-outputs .is-blocked em {
  color: #e59ba9;
}

.hub-contract-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.77fr) minmax(0, 1.23fr);
  gap: 72px;
  align-items: center;
  padding: 95px 0 104px;
  border-top: 1px solid #d7e1e7;
}

.hub-contract-board {
  border-color: #c4d9dd;
  background: #fbfdfd;
  box-shadow: 0 20px 45px rgba(32, 61, 82, 0.11);
  color: #1b3545;
}

.hub-contract-board-head {
  border-bottom-color: #dce8e9;
  color: #365564;
}

.hub-contract-board-head svg {
  color: #168f9a;
}

.hub-contract-board-head em {
  color: #16846f;
}

.hub-contract-board-head em i {
  background: #25ba8d;
  box-shadow: 0 0 0 4px rgba(37, 186, 141, 0.12);
}

.hub-contract-documents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 25px 18px;
}

.hub-contract-documents > svg {
  width: 16px;
  height: 16px;
  color: #87a4ae;
}

.hub-contract-documents article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  min-height: 87px;
  padding: 11px;
  border: 1px solid #d5e2e6;
  border-radius: 9px;
  background: #fff;
}

.hub-contract-documents article > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #e4f6f5;
  color: #0e929b;
}

.hub-contract-documents article > span svg {
  width: 16px;
  height: 16px;
}

.hub-contract-documents article > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.hub-contract-documents b {
  color: #244050;
  font: 600 11px SBDisplay, Arial, sans-serif;
}

.hub-contract-documents small {
  color: #748a94;
  font-size: 8px;
  line-height: 1.24;
}

.hub-contract-documents em {
  grid-column: 1 / -1;
  margin-top: 7px;
  color: #16846f;
  font-size: 8px;
  font-style: normal;
}

.hub-contract-board-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 18px;
  border-top: 1px solid #dce8e9;
  color: #65808a;
  font-size: 9px;
}

.hub-contract-board-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hub-contract-board-foot svg {
  width: 13px;
  height: 13px;
  color: #138f91;
}

.hub-launch-visual {
  position: relative;
  min-height: 194px;
  overflow: hidden;
  border: 1px solid #c7dde0;
  border-radius: 14px;
  background: linear-gradient(145deg, #f9ffff, #e7f6f5);
}

.hub-launch-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(15, 157, 164, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: hub-launch-orbit 5s ease-in-out infinite;
}

.hub-launch-orbit.orbit-b {
  width: 170px;
  height: 170px;
  border-color: rgba(15, 157, 164, 0.14);
  animation-delay: 0.7s;
}

@keyframes hub-launch-orbit {
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.46; }
}

.hub-launch-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: #167d8b;
  box-shadow: 0 0 0 8px rgba(21, 179, 182, 0.12), 0 12px 25px rgba(17, 115, 128, 0.21);
  color: #fff;
  transform: translate(-50%, -50%);
}

.hub-launch-core svg {
  width: 24px;
  height: 24px;
}

.hub-launch-label {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid #c8dfe2;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 15px rgba(37, 89, 100, 0.09);
  color: #4b6a76;
  font-size: 9px;
}

.hub-launch-label svg {
  width: 13px;
  height: 13px;
  color: #0e939d;
}

.hub-launch-label.label-top { top: 25px; left: 32px; }
.hub-launch-label.label-right { top: 76px; right: 28px; }
.hub-launch-label.label-bottom { bottom: 20px; left: 54px; }

.route-cloud .route-local {
  border-color: #398783;
  background: #153b42;
  color: #92e2d6;
}

.model-qwen .model-sigil {
  background: #fff0dc;
  color: #b46926;
}

.model-local {
  border-color: #3b7979 !important;
  background: #153239 !important;
}

.model-local .model-sigil {
  background: #d9f4ef;
  color: #147f76;
}

.model-local .model-sigil svg {
  width: 15px;
  height: 15px;
}

.model-local header em {
  background: #21524f;
  color: #8de0d2;
}

.hub-security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 23px 0 0 !important;
  padding: 12px 13px;
  border: 1px solid #c6e4e1;
  border-radius: 8px;
  background: #edf9f8;
  color: #4e7478 !important;
  font-size: 12px !important;
  line-height: 1.38 !important;
}

.hub-security-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #0a959b;
}

@media (max-width: 1100px) {
  .hub-model-map,
  .hub-routing-story,
  .hub-contract-story {
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
  }

  .hub-model-map,
  .hub-routing-story,
  .hub-contract-story {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hub-model-map-stage,
  .hub-routing-console,
  .hub-contract-board {
    width: 100%;
    max-width: 760px;
  }

  .hub-model-map-stage,
  .hub-routing-console,
  .hub-contract-board {
    justify-self: center;
  }

  .hub-launch-visual { max-width: 430px; }
}

@media (max-width: 700px) {
  .hub-hero-subtitle {
    margin-bottom: 13px;
    font-size: 20px;
    line-height: 1.3;
  }

  .corp-actions .btn { justify-content: center; }

  .dash-metrics div:nth-child(2) strong { font-size: 14px; }

  .hub-model-map,
  .hub-routing-story,
  .hub-contract-story {
    display: block;
    width: 100%;
    max-width: none;
    padding: 60px 16px 67px;
  }

  .hub-model-map-copy,
  .hub-routing-copy,
  .hub-contract-copy { margin-bottom: 29px; }

  .hub-model-map-copy h3,
  .hub-routing-copy h3,
  .hub-contract-copy h3 {
    font-size: 33px;
    line-height: 1.04;
  }

  .hub-model-map-copy > p:not(.corp-eyebrow),
  .hub-routing-copy > p:not(.corp-eyebrow),
  .hub-contract-copy > p:not(.corp-eyebrow) {
    font-size: 15px;
  }

  .hub-model-map-stage,
  .hub-routing-console,
  .hub-contract-board {
    max-width: none;
    border-radius: 12px;
  }

  .hub-model-map-bar,
  .hub-routing-console-bar,
  .hub-contract-board-head {
    min-height: 46px;
    padding: 0 12px;
    font-size: 10px;
  }

  .hub-model-map-bar em,
  .hub-routing-console-bar em,
  .hub-contract-board-head em { font-size: 8px; }

  .hub-model-map-lanes {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .hub-model-lane { min-height: 194px; }
  .hub-model-provider-grid { padding: 12px; }
  .hub-model-provider-grid span { min-height: 36px; }
  .hub-local-visual { min-height: 80px; }
  .hub-local-pulse.pulse-b { display: none; }
  .hub-model-map-footer { flex-direction: column; align-items: flex-start; gap: 7px; padding: 11px 12px; }

  .hub-routing-notes { gap: 8px; margin-top: 21px; }
  .hub-routing-notes span { font-size: 12px; }
  .hub-routing-request { margin: 12px 12px 0; padding: 12px; }
  .hub-routing-request p { font-size: 10px; }
  .hub-routing-decision { min-height: 81px; }
  .hub-routing-outputs { grid-template-columns: 1fr; gap: 7px; padding: 0 12px 12px; }
  .hub-routing-outputs article { min-height: 63px; grid-template-columns: 28px minmax(0, 1fr) auto; }
  .hub-routing-outputs em { grid-column: auto; margin: 0; white-space: nowrap; }

  .hub-contract-documents {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px;
  }

  .hub-contract-documents > svg {
    justify-self: center;
    transform: rotate(90deg);
  }

  .hub-contract-documents article {
    min-height: 66px;
    grid-template-columns: 31px minmax(0, 1fr) auto;
  }

  .hub-contract-documents em {
    grid-column: auto;
    margin: 0;
    white-space: nowrap;
  }

  .hub-contract-board-foot { gap: 8px; padding: 11px 12px; }

  .hub-launch-visual {
    max-width: 340px;
    min-height: 171px;
    margin: 4px auto 26px;
    border-radius: 12px;
  }

  .hub-launch-orbit.orbit-b { width: 142px; height: 142px; }
  .hub-launch-orbit { width: 97px; height: 97px; }
  .hub-launch-label.label-top { top: 20px; left: 19px; }
  .hub-launch-label.label-right { top: 70px; right: 14px; }
  .hub-launch-label.label-bottom { bottom: 16px; left: 31px; }

  .hub-security-note { font-size: 11px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-local-pulse,
  .hub-route-line i,
  .hub-launch-orbit { animation: none !important; }
}
