/* Raysor Technologies flagship command-page Liquid Glass layer.
   Loaded only by the company capability/work/platform/labs surfaces so dense
   operational storytelling can evolve without changing protected admin chrome. */

.command-page {
  --command-glass-radius: clamp(24px, 3vw, 38px);
  --command-control-height: 54px;
  --command-edge: rgba(210, 232, 249, .18);
  --command-edge-strong: rgba(220, 240, 255, .32);
  --command-ice: #dff2ff;
  --command-muted: #9eb4c7;
  --command-depth: 0 32px 100px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .10);
  --command-hero-inset: clamp(26px, 3.4vw, 46px);
  background:
    radial-gradient(circle at 76% 9%, rgba(94, 146, 194, .17), transparent 30rem),
    radial-gradient(circle at 9% 38%, rgba(164, 203, 232, .075), transparent 26rem),
    linear-gradient(150deg, #03070d, #06101b 46%, #091523 72%, #03070d);
}

.command-page .page-hero {
  position: relative;
  isolation: isolate;
  min-inline-size: 0;
  margin-top: clamp(28px, 3.4vw, 48px);
  padding-top: clamp(76px, 8.5vw, 118px);
  padding-right: var(--command-hero-inset);
  padding-bottom: clamp(46px, 6vw, 82px);
  padding-left: var(--command-hero-inset);
  overflow: visible;
}

.command-page .page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: clamp(24px, 3.4vw, 42px) 0 0;
  border: 1px solid var(--command-edge);
  border-radius: clamp(30px, 4vw, 52px);
  pointer-events: none;
  background:
    radial-gradient(circle at var(--liquid-x, 72%) var(--liquid-y, 18%), rgba(214, 238, 255, .13), transparent 18rem),
    linear-gradient(145deg, rgba(255,255,255,.075), transparent 32%),
    rgba(7, 17, 29, .62);
  box-shadow: 0 38px 120px rgba(0,0,0,.31), inset 0 1px rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}

.command-page .page-hero > * {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.command-page .page-hero h1 {
  width: min(100%, 18ch);
  max-width: 18ch;
  margin-block: clamp(16px, 2vw, 24px);
  color: #f4faff;
  font-size: clamp(2.8rem, 6.3vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.06em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.command-page .page-hero .lede {
  width: min(100%, 70ch);
  max-width: 70ch;
  color: #b6cada;
  font-size: clamp(1.08rem, 1.6vw, 1.34rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.command-page .breadcrumbs {
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(205, 230, 248, .12);
  border-radius: 999px;
  background: rgba(208, 235, 255, .045);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.command-page .command-layout {
  container-type: inline-size;
  container-name: command-layout;
  align-items: start;
  gap: clamp(18px, 2.7vw, 34px);
  min-inline-size: 0;
}

.command-page .command-grid {
  gap: clamp(16px, 2.2vw, 28px);
}

.command-page .command-panel,
.command-page .command-rail,
.command-page .system-map,
.command-page .card,
.command-page .timeline,
.command-page .cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--command-edge);
  border-radius: var(--command-glass-radius);
  background:
    radial-gradient(circle at var(--liquid-x, 78%) var(--liquid-y, 10%), rgba(220, 241, 255, .11), transparent 16rem),
    linear-gradient(145deg, rgba(255,255,255,.065), transparent 34%),
    linear-gradient(135deg, rgba(64, 104, 140, .08), transparent 58%),
    rgba(6, 15, 26, .72);
  box-shadow: var(--command-depth);
  -webkit-backdrop-filter: blur(30px) saturate(155%);
  backdrop-filter: blur(30px) saturate(155%);
}

.command-page .command-panel::before,
.command-page .command-rail::before,
.command-page .system-map::before,
.command-page .card::before,
.command-page .timeline::before,
.command-page .cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,.13), transparent 18%, transparent 72%, rgba(184,219,244,.045));
  opacity: .7;
}

.command-page .command-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  transform: translateZ(0);
  transition:
    transform 360ms cubic-bezier(.2,.8,.2,1),
    border-color 260ms ease,
    box-shadow 360ms ease,
    background 300ms ease;
}

.command-page .command-panel[data-span="wide"] {
  min-height: 0;
  padding-block: clamp(34px, 5vw, 62px);
}

@media (hover: hover) and (pointer: fine) {
  .command-page .command-panel:hover,
  .command-page .card:hover,
  .command-page .system-node:hover {
    transform: translateY(-6px) scale(1.008);
    border-color: var(--command-edge-strong);
    box-shadow: 0 42px 120px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.14);
  }

  .command-page .command-panel:active,
  .command-page .card:active,
  .command-page .command-rail a:active {
    transform: translateY(-1px) scale(.992);
    transition-duration: 90ms;
  }
}

.command-page .panel-code,
.command-page .card-index {
  width: fit-content;
  max-width: 100%;
  margin-bottom: clamp(18px, 3vw, 34px);
  color: #89b4d3;
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .115em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.command-page .command-panel h2,
.command-page .card h2,
.command-page .card h3 {
  color: #f0f8ff;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.command-page .command-panel h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -.038em;
}

.command-page .command-panel .muted,
.command-page .command-panel .lede,
.command-page .card .muted,
.command-page .timeline .muted {
  color: var(--command-muted);
  line-height: 1.66;
  overflow-wrap: anywhere;
}

.command-page .command-rail {
  padding: clamp(16px, 2vw, 22px);
  position: sticky;
  top: clamp(82px, 10vh, 112px);
}

.command-page .command-rail > a,
.command-page .signal-row {
  min-height: var(--command-control-height);
  border: 1px solid rgba(205, 231, 249, .095);
  border-radius: 18px;
  background: rgba(208, 235, 255, .035);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), border-color 180ms ease, background 180ms ease;
}

.command-page .command-rail > a {
  position: relative;
  isolation: isolate;
  padding: 13px 14px;
}

.command-page .command-rail > a::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at 18% 20%, rgba(203,232,252,.13), transparent 70%);
  transition: opacity 180ms ease;
}

.command-page .command-rail > a:hover,
.command-page .command-rail > a:focus-visible {
  transform: translateX(4px);
  border-color: rgba(209, 235, 252, .24);
  background: rgba(190, 224, 249, .07);
}

.command-page .command-rail > a:hover::after,
.command-page .command-rail > a:focus-visible::after {
  opacity: 1;
}

.command-page .command-rail small,
.command-page .signal-row small {
  color: #86a0b6;
  line-height: 1.45;
}

.command-page .signal-row {
  padding: 13px 14px;
}

.command-page .system-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 14px;
  padding: clamp(18px, 2.6vw, 30px);
}

.command-page .system-node {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(202,229,248,.10);
  border-radius: 22px;
  background: rgba(213, 237, 255, .035);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background 220ms ease;
}

.command-page .system-node.core-node {
  border-color: rgba(183, 222, 249, .24);
  background:
    radial-gradient(circle at 88% 14%, rgba(177, 218, 247, .14), transparent 10rem),
    rgba(57, 101, 137, .10);
}

.command-page .system-node strong {
  color: var(--command-ice);
  font-size: 1.02rem;
}

.command-page .system-node small {
  color: #87a0b4;
  line-height: 1.5;
}

.command-page .grid {
  gap: clamp(16px, 2.2vw, 28px);
}

.command-page .card {
  min-width: 0;
  min-height: 0;
  padding: clamp(24px, 3vw, 36px);
  transition: transform 340ms cubic-bezier(.2,.8,.2,1), border-color 240ms ease, box-shadow 340ms ease;
}

.command-page .timeline {
  padding: clamp(12px, 2vw, 20px);
}

.command-page .timeline-row {
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
  border-radius: 22px;
  transition: background 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

.command-page .timeline-row + .timeline-row {
  border-top-color: rgba(205,230,248,.09);
}

.command-page .timeline-row:hover {
  background: rgba(210, 235, 252, .045);
  transform: translateX(3px);
}

.command-page .cta-panel {
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: clamp(52px, 7vw, 92px);
}

.command-page .cta-panel .button,
.command-page .command-panel .button {
  min-height: var(--command-control-height);
}

.command-page :is(.command-panel, .command-rail, .card, .system-map, .timeline, .cta-panel) :focus-visible {
  outline: 2px solid rgba(216, 239, 255, .82);
  outline-offset: 4px;
}

@container command-layout (max-width: 54rem) {
  .command-page .command-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .command-page .command-rail {
    position: relative;
    top: auto;
  }
}

@media (max-width: 860px) {
  .command-page .page-hero {
    margin-top: clamp(22px, 4vw, 34px);
    padding-top: clamp(60px, 8vw, 82px);
    padding-inline: clamp(22px, 4vw, 32px);
  }

  .command-page .command-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .command-page .command-rail {
    position: relative;
    top: auto;
  }
}

@media (max-width: 620px) {
  .command-page {
    --command-glass-radius: 26px;
  }

  .command-page .page-hero {
    margin-top: 20px;
    padding-top: 58px;
    padding-inline: 20px;
  }

  .command-page .page-hero h1 {
    font-size: clamp(2.55rem, 12vw, 4.5rem);
    line-height: .97;
  }

  .command-page .page-hero::before {
    inset: 18px 0 0;
  }

  .command-page .command-panel,
  .command-page .card,
  .command-page .cta-panel {
    padding: 22px;
  }

  .command-page .timeline-row {
    grid-template-columns: 1fr;
  }
}

@media (hover: none), (pointer: coarse) {
  .command-page .command-rail > a,
  .command-page .button,
  .command-page .text-link {
    min-height: 56px;
  }

  .command-page .command-panel,
  .command-page .card,
  .command-page .system-node,
  .command-page .timeline-row {
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .command-page .page-hero::before,
  .command-page .command-panel,
  .command-page .command-rail,
  .command-page .system-map,
  .command-page .card,
  .command-page .timeline,
  .command-page .cta-panel {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: #091522 !important;
  }
}

@media (prefers-contrast: more) {
  .command-page {
    --command-edge: rgba(234, 247, 255, .42);
    --command-edge-strong: rgba(244, 250, 255, .74);
    --command-muted: #cfdfeb;
  }

  .command-page .command-rail > a,
  .command-page .signal-row,
  .command-page .system-node {
    border-color: rgba(235, 247, 255, .34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .command-page .command-panel,
  .command-page .command-rail > a,
  .command-page .card,
  .command-page .system-node,
  .command-page .timeline-row {
    transition: none !important;
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .command-page .page-hero::before,
  .command-page .command-panel,
  .command-page .command-rail,
  .command-page .system-map,
  .command-page .card,
  .command-page .timeline,
  .command-page .cta-panel,
  .command-page .system-node,
  .command-page .signal-row {
    border-color: CanvasText !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
  }

  .command-page :is(a, button):focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 2px;
  }
}
