/* UX — Loader + Logo Intro (v2) — add-on only */
.mind-loader{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(68,166,65,.16), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(7,140,3,.12), transparent 65%),
    linear-gradient(180deg, rgba(2,10,12,.96), rgba(2,10,12,.92));
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity .5s ease;
}
.mind-loader.is-hidden{ opacity: 0; pointer-events:none; }

.mind-loader .box{
  width: min(420px, calc(100% - 40px));
  border-radius: 22px;
  border: 1px solid rgba(68,166,65,.25);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  padding: 18px 18px 16px;
}
.mind-loader .brand{
  display:flex; align-items:center; gap:12px;
  margin-bottom: 12px;
}
.mind-loader .brand img{
  width: 46px; height: 46px; object-fit:contain;
  filter: drop-shadow(0 0 18px rgba(68,166,65,.25));
}
.mind-loader .brand b{
  font-size: 18px;
  letter-spacing: -.2px;
  background: linear-gradient(90deg, #d7ffd8, rgba(68,166,65,1), rgba(7,140,3,1));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.mind-loader .bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
}
.mind-loader .bar i{
  display:block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(7,140,3,.85), rgba(68,166,65,.85), #d7ffd8);
  box-shadow: 0 0 22px rgba(68,166,65,.25);
  animation: mindLoad 1.05s ease-in-out infinite;
}
@keyframes mindLoad{
  0%{ transform: translateX(-60%); opacity:.65 }
  50%{ opacity:1 }
  100%{ transform: translateX(220%); opacity:.75 }
}
.mind-loader .hint{
  margin-top: 10px;
  color: rgba(242,242,242,.70);
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

/* Logo intro (header) — safe selectors */
.header .brand img,
nav .brand img{
  transform: translateY(-6px) scale(.98);
  opacity: 0;
  transition: transform .7s cubic-bezier(.2,.9,.2,1), opacity .7s ease;
}
body.mind-ready .header .brand img,
body.mind-ready nav .brand img,
body.mind-ready .brand img{
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce){
  .mind-loader{ display:none !important; }
  .header .brand img, nav .brand img, .brand img{ opacity:1; transform:none; transition:none; }
}
