/* Homepage command-centre hero: contained image depth with responsive parallax. */
.hero {
  min-height: 0;
  padding-top: 86px;
}

.hero-grid {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  min-height: 650px;
  gap: clamp(30px, 5vw, 76px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 28px 0 52px;
}

.hero-copy .hero-description { max-width: 620px; }
.hero-actions { gap: 12px; }

.hero-command-visual-upgrade {
  --hero-pointer-x: 0px;
  --hero-pointer-y: 0px;
  position: relative;
  z-index: 2;
  width: min(100%, 660px);
  min-width: 0;
  min-height: 570px;
  margin-left: auto;
  padding: 30px 0 38px;
  isolation: isolate;
  transform: translate3d(var(--hero-pointer-x), var(--hero-pointer-y), 0);
  transition: transform .35s cubic-bezier(.2, .75, .2, 1);
}

.command-shell-upgrade {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  z-index: 3;
  width: 100%;
  max-width: 630px;
  margin: 0 0 0 auto;
  padding: 14px;
  border-color: rgba(159, 219, 255, .32);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(10, 46, 87, .92), rgba(3, 19, 43, .93));
  box-shadow: 0 30px 85px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .1);
}

.command-shell-upgrade::before { opacity: .1; background-size: 38px 38px; }
.command-shell-upgrade::after { right: -86px; bottom: -100px; width: 270px; height: 270px; }
.command-shell-upgrade .command-topbar { margin: 1px 3px 13px; }

.command-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(78, 188, 255, .28);
  border-radius: 50%;
  pointer-events: none;
}

.command-orbit-one { top: 4px; right: 8px; width: 530px; height: 530px; border-left-color: transparent; border-bottom-color: rgba(57, 213, 255, .1); transform: rotate(-18deg); }
.command-orbit-two { right: 82px; bottom: 18px; width: 360px; height: 360px; border-color: rgba(57, 213, 255, .14); border-top-color: transparent; transform: rotate(34deg); }

.command-brand-mark {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 9px;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(137, 218, 255, .3);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(7, 42, 80, .93), rgba(9, 26, 53, .84));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .25);
  backdrop-filter: blur(12px);
}

.command-brand-mark img { width: 48px; height: 48px; border-radius: 15px; }

.command-shell-upgrade .command-media {
  height: auto;
  min-height: 0;
  aspect-ratio: 1.62 / 1;
  border-radius: 22px;
}

.command-shell-upgrade .command-media .hero-slide { object-position: center; }
.command-shell-upgrade .command-media-shade { background: linear-gradient(180deg, rgba(3, 18, 39, .04) 28%, rgba(3, 18, 39, .87)), linear-gradient(90deg, rgba(3, 18, 39, .28), transparent 54%); }
.command-shell-upgrade .command-dots { top: 15px; right: 15px; }
.command-shell-upgrade .command-caption { right: 15px; bottom: 15px; left: 15px; padding: 12px 13px; }
.command-shell-upgrade .command-caption strong { display: block; overflow: hidden; font-size: 16px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.command-shell-upgrade .command-service-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.command-shell-upgrade .command-service-grid span {
  min-width: 0;
  min-height: 61px;
  padding: 8px 5px;
  border-color: rgba(180, 223, 255, .12);
  border-radius: 14px;
  color: #65d8ff;
  background: rgba(255, 255, 255, .05);
}

.command-shell-upgrade .command-service-grid b {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: #d9e9f8;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .015em;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.command-footer-line {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 3px 2px;
  color: #afcce8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.command-footer-line span { display: inline-flex; align-items: center; gap: 7px; }
.command-footer-line i { width: 7px; height: 7px; border-radius: 50%; background: #6ce2b0; box-shadow: 0 0 0 5px rgba(108, 226, 176, .11); }
.command-footer-line strong { color: #dbeeff; font-size: 10px; font-weight: 800; text-align: right; }

.command-idea-card {
  position: absolute;
  z-index: 4;
  bottom: 4px;
  left: -20px;
  display: flex;
  width: min(230px, 42%);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(171, 218, 255, .24);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(7, 42, 80, .92), rgba(4, 23, 49, .9));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  backdrop-filter: blur(15px);
}

.command-idea-card > span { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: #73dbff; background: rgba(57, 213, 255, .13); }
.command-idea-card small, .command-idea-card strong { display: block; }
.command-idea-card small { color: #99bad9; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.command-idea-card strong { margin-top: 3px; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.18; }

@media (max-width: 1040px) {
  .hero { padding-top: 74px; }
  .hero-grid { min-height: 0; }
  .hero-copy { padding-bottom: 12px; }
  .hero-command-visual-upgrade { width: min(100%, 700px); min-height: 560px; margin: 0 auto; padding-top: 34px; }
  .command-shell-upgrade { margin: 0 auto; }
  .command-brand-mark { left: 0; }
  .command-idea-card { left: 0; }
}

@media (max-width: 760px) {
  .hero { padding-top: 57px; }
  .hero-grid { gap: 0; }
  .hero-copy { padding: 18px 0 2px; }
  .hero-command-visual-upgrade { min-height: 0; margin-top: 15px; padding: 33px 0 28px; transform: none; }
  .command-shell-upgrade { max-width: 100%; padding: 10px; border-radius: 23px; }
  .command-shell-upgrade .command-topbar { margin: 1px 3px 10px; font-size: 8px; }
  .command-shell-upgrade .command-topbar em { display: none; }
  .command-shell-upgrade .command-media { aspect-ratio: 1.33 / 1; border-radius: 17px; }
  .command-shell-upgrade .command-caption { right: 10px; bottom: 10px; left: 10px; padding: 10px; }
  .command-shell-upgrade .command-caption strong { font-size: 13px; }
  .command-shell-upgrade .command-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
  .command-shell-upgrade .command-service-grid span { min-height: 54px; padding: 7px 4px; border-radius: 11px; }
  .command-shell-upgrade .command-service-grid b { margin-top: 4px; font-size: 7px; }
  .command-footer-line { display: block; margin: 10px 4px 2px; line-height: 1.5; }
  .command-footer-line strong { display: block; margin-top: 2px; text-align: left; }
  .command-brand-mark { top: 5px; left: -3px; width: 58px; height: 58px; border-radius: 18px; }
  .command-brand-mark img { width: 37px; height: 37px; border-radius: 12px; }
  .command-idea-card { display: none; }
  .command-orbit-one { top: 6px; right: -36px; width: 350px; height: 350px; }
  .command-orbit-two { right: 8px; bottom: 13px; width: 230px; height: 230px; }
}

@media (max-width: 440px) {
  .command-shell-upgrade .command-media { aspect-ratio: 1.17 / 1; }
  .command-shell-upgrade .command-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .command-shell-upgrade .command-service-grid span { min-height: 49px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-command-visual-upgrade { transition: none; }
  .command-orbit { animation: none; }
}
