/* V7 — high-visibility route-reactive WebGL polymorph background. */
#morphCanvas{
  opacity:1!important;
  filter:saturate(1.2) contrast(1.07)!important;
  background:#07080f;
  transition:opacity .35s ease,filter .35s ease;
}
body:not([data-route="overview"]) #morphCanvas{opacity:.62!important;filter:saturate(1.05) contrast(1.03)!important}
#morphCanvas.no-webgl{
  background:
    radial-gradient(circle at 70% 42%,rgba(200,255,71,.88) 0 18%,rgba(200,255,71,.28) 33%,transparent 48%),
    radial-gradient(circle at 73% 48%,rgba(0,209,209,.34),transparent 44%),
    #07080f;
}

.landing-view:before{
  background:
    radial-gradient(circle at 72% 43%,rgba(200,255,71,.10),transparent 31%),
    radial-gradient(circle at 76% 54%,rgba(0,209,209,.18),transparent 37%),
    linear-gradient(90deg,rgba(0,0,0,.80) 0%,rgba(0,0,0,.40) 41%,rgba(0,0,0,.03) 68%,rgba(0,0,0,.18) 100%)!important;
  z-index:1!important;
}
.landing-view:after{
  content:"";
  position:fixed;
  z-index:2;
  pointer-events:none;
  top:calc(var(--top-h) + 7vh);
  right:clamp(2rem,7vw,8rem);
  width:min(50vw,760px);
  aspect-ratio:1;
  border:1px solid rgba(200,255,71,.16);
  border-radius:50%;
  box-shadow:0 0 90px rgba(0,209,209,.07),inset 0 0 90px rgba(200,255,71,.03);
  transform:rotate(-14deg) scaleY(.82);
  mask-image:linear-gradient(110deg,transparent 0 10%,#000 24% 78%,transparent 94%);
  animation:orb-orbit-drift 18s ease-in-out infinite alternate;
}

.hero-grid{
  grid-template-columns:minmax(0,.88fr) minmax(480px,1.12fr)!important;
  align-items:center!important;
  isolation:isolate;
  overflow:visible;
}
.hero-copy-block{
  z-index:7;
  max-width:720px!important;
  background:linear-gradient(145deg,rgba(7,8,15,.93),rgba(9,17,31,.78))!important;
  backdrop-filter:blur(18px) saturate(1.1);
  box-shadow:0 34px 100px rgba(0,0,0,.58),inset 0 0 0 1px rgba(200,255,71,.08)!important;
}
.hero-console{
  position:absolute;
  z-index:8;
  right:clamp(1.1rem,3.4vw,3.8rem);
  bottom:clamp(1.4rem,5vh,4.5rem);
  width:min(430px,31vw);
  min-height:0!important;
  padding:1rem!important;
  margin:0!important;
  border:1px solid rgba(0,209,209,.28)!important;
  border-radius:18px 0 0 18px!important;
  background:linear-gradient(145deg,rgba(0,8,18,.72),rgba(0,20,43,.62))!important;
  backdrop-filter:blur(20px) saturate(1.15);
  box-shadow:0 22px 70px rgba(0,0,0,.48),0 0 42px rgba(0,209,209,.07)!important;
}
.hero-console .architecture-core{padding-top:.7rem}
.hero-console .core-title{padding:.65rem!important;background:rgba(0,8,18,.72)!important}
.hero-console .core-title span{font-size:1.35rem!important}
.hero-console .core-lanes{margin-top:.65rem!important}
.hero-console .core-lanes>div{min-height:82px!important;padding:.62rem!important}
.hero-console .core-lanes small{margin-bottom:.35rem!important}
.hero-console .core-lanes strong{padding:.34rem .48rem!important;margin:.22rem 0!important;font-size:.62rem!important}
.hero-console .runtime-log{margin-top:.65rem!important;padding:.65rem!important;font-size:.57rem!important;line-height:1.45!important}

.hero-scene-caption{
  position:absolute;
  z-index:6;
  right:clamp(2rem,4vw,5rem);
  top:clamp(2rem,5vh,4.5rem);
  display:grid;
  justify-items:end;
  gap:.25rem;
  text-align:right;
  pointer-events:none;
  color:var(--lime);
  text-transform:uppercase;
}
.hero-scene-caption span{font:600 .54rem var(--ui);letter-spacing:.24em;color:#8995a3}
.hero-scene-caption strong{font:400 clamp(1.4rem,2vw,2.2rem) var(--display);letter-spacing:.08em;text-shadow:0 0 30px rgba(200,255,71,.32)}
.hero-scene-caption small{font:300 .52rem var(--ui);letter-spacing:.12em;color:var(--cyan)}
.hero-scene-caption:before{
  content:"";
  width:120px;
  height:3px;
  margin-bottom:.28rem;
  background:linear-gradient(90deg,transparent,var(--cyan),var(--lime));
  box-shadow:0 0 20px rgba(0,209,209,.32);
}

.morph-telemetry{
  background:rgba(4,8,15,.66)!important;
  border-color:rgba(200,255,71,.30)!important;
  box-shadow:0 10px 40px rgba(0,0,0,.35),inset 0 0 0 1px rgba(0,209,209,.04);
}
.shape-legend span,.scene-dot{transition:background .25s ease,color .25s ease,box-shadow .25s ease}

body[data-route="actions"]{--orb-route-color:#00d1d1}
body[data-route="helm"]{--orb-route-color:#f2ef00}
body[data-route="argocd"]{--orb-route-color:#c8ff47}
body[data-route="security"]{--orb-route-color:#ff4d57}

@keyframes orb-orbit-drift{
  0%{transform:rotate(-14deg) scaleY(.82) translate3d(-1.5%,0,0);opacity:.48}
  100%{transform:rotate(8deg) scaleY(.90) translate3d(1.5%,-1.5%,0);opacity:.76}
}

@media(max-width:1180px){
  .hero-grid{grid-template-columns:minmax(0,1fr) minmax(390px,.85fr)!important}
  .hero-console{width:min(390px,34vw)}
}
@media(max-width:980px){
  .landing-view:after{right:-18vw;top:calc(var(--top-h) + 18vh);width:86vw;opacity:.55}
  .hero-grid{grid-template-columns:1fr!important;align-content:start!important;padding-bottom:2rem!important}
  .hero-copy-block{max-width:min(720px,94vw)!important}
  .hero-console{position:relative;right:auto;bottom:auto;width:min(680px,94vw);margin:34vh 0 0 auto!important;border-radius:24px 0 0 24px!important}
  .hero-scene-caption{right:1rem;top:2rem}
}
@media(max-width:620px){
  #morphCanvas{opacity:.78!important}
  body:not([data-route="overview"]) #morphCanvas{opacity:.35!important}
  .landing-view:before{background:linear-gradient(180deg,rgba(0,0,0,.38),rgba(0,0,0,.84) 72%)!important}
  .landing-view:after{display:none}
  .hero-scene-caption{display:none}
  .hero-console{margin-top:28vh!important;width:100%;border-radius:18px 0 0 18px!important}
}
@media(prefers-reduced-motion:reduce){
  .landing-view:after{animation:none}
}
