/* INKCORE · Aurora background partagé (hors /app)
   Même langage visuel que la landing : cadrillage perspective + halo animé.
   Perf-first : calques fixed isolés, animation transform/opacity uniquement. */

:root{
  --aurora-bg:#0a0b12;
  --aurora-bg-2:#0d0e17;
  --aurora-grid:rgba(142,182,155,.14);
  --aurora-grid-soft:rgba(142,182,155,.1);
  --aurora-violet:#235347;
  --aurora-indigo:#2f6b5a;
  --aurora-cyan:#8eb69b;
  --aurora-ease:cubic-bezier(.22,.61,.36,1);
}

html{background:var(--aurora-bg)}
body{
  position:relative;
  isolation:isolate;
  min-height:100vh;
  background:
    radial-gradient(circle at 18% 0%,rgba(142,182,155,.12),transparent 30%),
    radial-gradient(circle at 88% 14%,rgba(142,182,155,.12),transparent 32%),
    linear-gradient(180deg,var(--aurora-bg),var(--aurora-bg-2) 52%,#090a11) !important;
  overflow-x:hidden;
}
body::before,
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  contain:layout paint style;
  transform:translateZ(0);
}
body::before{
  inset:-18%;
  opacity:.34;
  background-image:
    linear-gradient(var(--aurora-grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--aurora-grid-soft) 1px,transparent 1px);
  background-size:72px 72px;
  -webkit-mask-image:radial-gradient(ellipse at 50% 18%,#000 0 36%,transparent 74%);
  mask-image:radial-gradient(ellipse at 50% 18%,#000 0 36%,transparent 74%);
  transform:perspective(900px) rotateX(62deg) translate3d(0,-34px,0);
  will-change:transform;
  animation:sharedAuroraGrid 18s linear infinite;
}
body::after{
  inset:-28vmax;
  opacity:.72;
  background:
    radial-gradient(circle at 8% 0%,rgba(142,182,155,.34) 0 12%,rgba(142,182,155,.13) 31%,transparent 58%),
    radial-gradient(circle at 94% 5%,rgba(142,182,155,.3) 0 12%,rgba(142,182,155,.12) 32%,transparent 60%),
    radial-gradient(circle at 58% 30%,rgba(218,241,222,.15) 0 10%,transparent 38%),
    conic-gradient(from 0deg at 50% -34%,transparent 0deg,rgba(142,182,155,.22) 36deg,transparent 88deg,transparent 248deg,rgba(218,241,222,.14) 302deg,transparent 352deg);
  -webkit-mask-image:linear-gradient(#000 0 74%,transparent 100%);
  mask-image:linear-gradient(#000 0 74%,transparent 100%);
  will-change:transform;
  animation:sharedAuroraSweep 46s linear infinite;
}
body > *{position:relative;z-index:1}

@keyframes sharedAuroraGrid{
  to{transform:perspective(900px) rotateX(62deg) translate3d(0,38px,0)}
}
@keyframes sharedAuroraSweep{
  to{transform:translateZ(0) rotate(1turn)}
}

@media (prefers-reduced-motion: reduce){
  body::before,
  body::after{animation:none !important}
}
