/* ARM / SYSTEM BOOT LOADER
   A distinct, understandable loading animation; the blue optical-prism artwork now belongs to the heroes.
   One compact stage, credible visible progress and a deterministic exit. */

.site-loader.boot-loader {
  position:fixed;inset:0;z-index:1000;
  display:block;isolation:isolate;overflow:hidden;
  width:100%;height:100vh;height:100dvh;
  padding:0;margin:0;
  background:#030509 !important;
  background-image:
    radial-gradient(ellipse 35% 43% at 50% 45%,rgba(16,48,123,.19),transparent 92%) !important;
  color:#fff;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  opacity:1;visibility:visible;pointer-events:auto;
  transition:opacity .58s cubic-bezier(.75,0,.2,1),visibility .58s;
}
.boot-loader,.boot-loader *{box-sizing:border-box;}
.site-loader.boot-loader::before{
  content:"";position:absolute;z-index:0;inset:0;opacity:.40;
  background-image:
    linear-gradient(rgba(123,147,199,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(123,147,199,.035) 1px,transparent 1px);
  background-size:70px 70px;
  -webkit-mask-image:radial-gradient(ellipse 60% 84% at 50% 50%,black,transparent);
  mask-image:radial-gradient(ellipse 60% 84% at 50% 50%,black,transparent);
  pointer-events:none;
}
.boot-loader::after{content:"";position:absolute;z-index:0;bottom:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,#266aff,transparent);opacity:.35;}
.boot-loader__frame{
  position:relative;z-index:2;
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  gap:22px;
  width:100%;height:100%;
  padding:clamp(24px,4vw,68px) clamp(23px,5vw,88px);
}
.boot-loader__top,.boot-loader__bottom{
  display:flex;align-items:center;justify-content:space-between;
  gap:18px;
}
.boot-loader__top{border-bottom:1px solid rgba(160,194,255,.16);padding-bottom:19px;}
.boot-loader__brand{display:inline-flex;align-items:center;gap:12px;color:#e9efff;font-size:clamp(11px,1vw,14px);font-weight:850;letter-spacing:-.045em;}
.boot-loader__brand img{display:block;width:36px;height:36px;border-radius:10px;object-fit:contain;}
.boot-loader__top-code{font-size:10px;font-weight:760;letter-spacing:.18em;text-transform:uppercase;color:#7a9bd8;}
.boot-loader__center{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;gap:0;text-align:center;}
.boot-loader__graphic{
  position:relative;
  width:clamp(142px,15vw,214px);height:clamp(135px,16vw,225px);
  margin:0 auto clamp(26px,3.5vh,49px);
  display:grid;place-items:center;
  transform:translateZ(0);
}
.boot-loader__graphic::before{
  content:"";position:absolute;inset:-20%;
  background:radial-gradient(ellipse at 50% 50%,rgba(16,80,238,.21),transparent 68%);
  filter:blur(27px);pointer-events:none;
}
.boot-loader__rail{
  position:absolute;display:block;width:1px;height:112%;top:-6%;
  background:linear-gradient(180deg,transparent,rgba(93,151,255,.42) 27%,rgba(194,226,255,.9) 46%,rgba(42,111,255,.37) 72%,transparent);
  box-shadow:0 0 25px rgba(58,130,255,.39);
  transform:rotate(31deg);
}
.boot-loader__plate{
  position:absolute;display:block;top:17%;bottom:17%;
  width:22%;border:1px solid rgba(153,210,255,.34);
  background:linear-gradient(140deg,rgba(55,126,253,.02),rgba(69,150,255,.45),rgba(1,25,98,.13));
  box-shadow:5px 6px 22px rgba(4,45,145,.16),inset 0 1px 0 rgba(196,225,255,.22);
  transform:skewX(-22deg);
  animation:bootAssembly 1s cubic-bezier(.14,.84,.2,1) both;
}
.boot-loader__plate:nth-of-type(1){left:15%;animation-delay:.12s;opacity:.48;}
.boot-loader__plate:nth-of-type(2){left:39%;animation-delay:.26s;opacity:.88;}
.boot-loader__plate:nth-of-type(3){left:63%;animation-delay:.40s;opacity:.55;}
.boot-loader__graphic-mark{
  position:absolute;z-index:3;left:50%;top:50%;width:57%;height:57%;
  display:block;object-fit:contain;
  transform:translate(-50%,-50%);
  filter:drop-shadow(0 0 21px rgba(56,138,255,.47));
  animation:bootMarkReveal .9s ease-out .5s both;
}
.boot-loader__micro{position:absolute;z-index:4;bottom:0;left:0;right:0;color:#7898d5;font:780 8px/1.2 monospace;letter-spacing:.17em;}
.boot-loader__headline{display:block;margin:0;color:#f4f8ff;font:940 clamp(55px,9.4vw,148px)/.93 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.08em;text-transform:uppercase;white-space:nowrap;}
.boot-loader__subtitle{
  display:block;margin:17px 0 0;
  color:#bad0f4;font:650 clamp(12px,1.16vw,17px)/1.5 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  letter-spacing:.01em;
}
.boot-loader__bottom{
  display:grid;grid-template-columns:1fr minmax(240px,1.4fr) auto;
  align-items:end;gap:clamp(20px,4vw,70px);
  padding:23px 0 0;border-top:1px solid rgba(160,194,255,.2);
}
.boot-loader__phase-wrap{display:flex;flex-direction:column;gap:8px;}
.boot-loader__phase-caption{color:#7187b1;font:800 9px/1.2 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;}
.boot-loader__phase{color:#d7e5ff;font:760 clamp(10px,.94vw,13px)/1.2 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap;}
.boot-loader__meter{display:flex;align-items:end;gap:0;width:100%;height:34px;padding-bottom:3px;}
.boot-loader__track{position:relative;display:block;width:100%;height:4px;overflow:hidden;background:rgba(101,151,255,.17);border-radius:1px;}
.boot-loader__track-fill{
  display:block;position:absolute;left:0;top:0;bottom:0;width:100%;
  background:linear-gradient(90deg,#0d51ff,#4c9cff 65%,#d3edff);
  box-shadow:0 0 15px rgba(58,130,255,.4);
  transform:scaleX(.02);transform-origin:left center;
  transition:transform .1s linear;
}
.boot-loader__percent{min-width:95px;text-align:right;color:#f3f7ff;font:860 clamp(28px,3.3vw,52px)/.85 -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;letter-spacing:-.07em;}
.site-loader.boot-loader.site-loader-ready{opacity:0;visibility:hidden;pointer-events:none;}
.site-loader.boot-loader.site-loader-ready .boot-loader__graphic{transform:scale(.88);opacity:0;filter:blur(6px);transition:transform .47s ease,opacity .38s,filter .4s;}
.site-loader.boot-loader.site-loader-ready .boot-loader__headline{transform:translateY(-18px);opacity:0;transition:transform .47s ease,opacity .33s;}
@keyframes bootAssembly {from{opacity:0;filter:blur(10px);transform:translateY(75px) skewX(-22deg)}to{opacity:1;filter:blur(0);transform:translateY(0) skewX(-22deg)}}
@keyframes bootMarkReveal {from{opacity:0;filter:blur(14px);transform:translate(-50%,-46%) scale(.82)}to{opacity:1;filter:blur(0);transform:translate(-50%,-50%) scale(1)}}
@media(max-width:760px){
 .boot-loader__frame{padding:24px 21px 31px;}
 .boot-loader__brand{font-size:11px;}
 .boot-loader__brand img{width:32px;height:32px;}
 .boot-loader__top-code{font-size:9px;letter-spacing:.1em;}
 .boot-loader__graphic{width:165px;height:174px;margin-bottom:38px;}
 .boot-loader__headline{font-size:clamp(50px,13.2vw,97px);letter-spacing:-.078em;}
 .boot-loader__subtitle{font-size:12px;}
 .boot-loader__bottom{grid-template-columns:1fr auto;row-gap:15px;column-gap:18px;}
 .boot-loader__phase-wrap{grid-column:1/-1;}
 .boot-loader__meter{height:20px;}
 .boot-loader__percent{min-width:75px;font-size:32px;}
}
@media(max-width:360px){
 .boot-loader__headline{font-size:clamp(42px,12vw,55px);}
 .boot-loader__phase{font-size:9px;}
}
@media(prefers-reduced-motion:reduce){
 .boot-loader *{animation:none!important;transition:none!important;}
 .site-loader.boot-loader{transition:none!important;}
}
