/* ============================================================
   NEONFLUX — HERO v3
   Volumetric atmosphere + typographic upgrade.
   Loaded after neonflux-landing.css (overrides hero rules).
   Layers: aurora → beams → perspective floor → dust canvas →
           scan sweep → orbs → scanlines → grain → cursor spot
   ============================================================ */

.nf-hero{
  background:transparent;
}
.nf-hero::before,.nf-hero::after{
  content:"";position:absolute;width:22px;height:22px;z-index:2;pointer-events:none;
  border:1px solid rgba(77,232,244,.26);
}
.nf-hero::before{left:0;top:20px;border-right:0;border-bottom:0}
.nf-hero::after{right:0;bottom:20px;border-left:0;border-top:0}

.nf-amb{
  position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden;isolation:isolate;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 15%,#000 85%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 15%,#000 85%,transparent 100%);
}
.nf-amb > *{position:absolute;display:block}
/* key light: all of the hero glow lives here so it shares one soft edge */
.nf-amb::before{
  content:"";position:absolute;inset:0;z-index:0;
  background:
    radial-gradient(1100px 660px at 14% -12%,rgba(77,232,244,.20),rgba(77,232,244,0) 62%),
    radial-gradient(900px 600px at 96% 4%,rgba(139,123,255,.19),rgba(139,123,255,0) 60%),
    radial-gradient(760px 460px at 52% 116%,rgba(255,77,157,.09),rgba(255,77,157,0) 72%);
}
.nf-amb::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:92px;z-index:5;
  background:linear-gradient(180deg,rgba(5,6,10,0),rgba(5,6,10,.92) 96%);
  pointer-events:none;
}

/* --- aurora --- */
.nf-aurora{
  left:50%;top:-52%;width:1560px;height:1180px;margin-left:-780px;border-radius:50%;
  background:conic-gradient(from 205deg at 50% 50%,
    rgba(77,232,244,0) 0deg,
    rgba(77,232,244,.20) 38deg,
    rgba(77,232,244,0) 104deg,
    rgba(139,123,255,.22) 190deg,
    rgba(139,123,255,0) 258deg,
    rgba(255,77,157,.13) 318deg,
    rgba(255,77,157,0) 360deg);
  filter:blur(58px);
  opacity:.82;
  will-change:transform;
  animation:nf-aurora 68s linear infinite;
}
@keyframes nf-aurora{from{transform:rotate(0)}to{transform:rotate(360deg)}}

/* --- light shafts --- */
.nf-beams{inset:-18% -6% 0}
.nf-beams i{
  position:absolute;top:-40%;width:2px;height:170%;
  background:linear-gradient(180deg,rgba(77,232,244,0),rgba(77,232,244,.55) 46%,rgba(77,232,244,0) 88%);
  filter:blur(6px);opacity:0;transform:rotate(15deg);
  will-change:transform,opacity;
  animation:nf-beam 15s linear infinite;
}
.nf-beams i:nth-child(1){left:9%;animation-delay:-1s}
.nf-beams i:nth-child(2){
  left:47%;height:190%;
  background:linear-gradient(180deg,rgba(139,123,255,0),rgba(139,123,255,.55) 44%,rgba(139,123,255,0) 86%);
  animation-delay:-6.5s;animation-duration:19s;
}
.nf-beams i:nth-child(3){left:82%;animation-delay:-11s;animation-duration:17s}
@keyframes nf-beam{
  0%{transform:translate3d(0,-26%,0) rotate(15deg);opacity:0}
  14%{opacity:.42}
  78%{opacity:.34}
  100%{transform:translate3d(70px,42%,0) rotate(15deg);opacity:0}
}

/* --- data floor (flat plane, fades toward the horizon) --- */
.nf-floor{
  left:-30%;right:-30%;bottom:0;height:78%;
  background-image:
    linear-gradient(rgba(77,232,244,.34) 1px,transparent 1px),
    linear-gradient(90deg,rgba(77,232,244,.34) 1px,transparent 1px);
  background-size:84px 84px;
  -webkit-mask-image:linear-gradient(to top,#000 0%,rgba(0,0,0,.55) 34%,rgba(0,0,0,.12) 62%,transparent 84%);
  mask-image:linear-gradient(to top,#000 0%,rgba(0,0,0,.55) 34%,rgba(0,0,0,.12) 62%,transparent 84%);
  opacity:.34;
  animation:nf-floor 22s linear infinite;
}
@keyframes nf-floor{from{background-position:0 0,0 0}to{background-position:0 84px,0 0}}

/* --- dust / packet canvas --- */
.nf-dust{inset:0;width:100%;height:100%;opacity:.85}

/* --- sweep --- */
.nf-sweep{
  left:0;right:0;top:0;height:340px;
  background:linear-gradient(180deg,
    rgba(77,232,244,0) 0%,
    rgba(77,232,244,.035) 38%,
    rgba(77,232,244,.09) 50%,
    rgba(77,232,244,.035) 62%,
    rgba(77,232,244,0) 100%);
  will-change:transform;
  animation:nf-sweep 14s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes nf-sweep{
  0%{transform:translate3d(0,-360px,0);opacity:0}
  8%{opacity:1}
  84%{opacity:1}
  100%{transform:translate3d(0,860px,0);opacity:0}
}

/* --- orbs: brighter, screen-blended so they read on black --- */
.nf-orb{filter:blur(86px);opacity:.95}
.nf-orb-a{
  width:620px;height:620px;left:-10%;top:-12%;
  background:radial-gradient(circle,rgba(77,232,244,.34),rgba(77,232,244,0) 66%);
  animation:nf-drift-a 30s var(--ease) infinite alternate;
}
.nf-orb-b{
  width:560px;height:560px;right:-8%;top:-4%;
  background:radial-gradient(circle,rgba(139,123,255,.36),rgba(139,123,255,0) 66%);
  animation:nf-drift-b 36s var(--ease) infinite alternate;
}

/* --- scanlines / grain --- */
.nf-scan{opacity:.42}
.nf-grain{
  inset:0;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23g)'/%3E%3C/svg%3E");
}
.nf-spot{
  width:760px;height:760px;left:0;top:0;margin:-380px 0 0 -380px;
  background:radial-gradient(circle,rgba(77,232,244,.13),rgba(77,232,244,.05) 42%,rgba(77,232,244,0) 68%);
  opacity:0;transition:opacity .6s var(--ease);
  will-change:transform;
  z-index:1;
}
.nf-land.nf-cursor .nf-spot{opacity:1}

/* ---------- typography & surfaces ---------- */
.nf-h1{
  font-size:78px !important;
  line-height:1.06 !important;
  letter-spacing:-.012em !important;
  margin:0 0 24px !important;
  filter:drop-shadow(0 0 44px rgba(77,232,244,.16)) drop-shadow(0 1px 0 rgba(0,0,0,.5));
}
.nf-h1 .nf-clip:nth-child(2) .nf-clip-i{
  background:linear-gradient(96deg,#FFFFFF 0%,#D7ECF8 38%,#86DCEB 74%,#9D8DFF 118%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
.nf-eyebrow{
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.012));
  border-color:rgba(255,255,255,.10);
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset,0 0 30px -12px rgba(77,232,244,.5);
  backdrop-filter:blur(6px);
}
.nf-sub{max-width:560px}
.nf-cta{
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 0 0 1px rgba(77,232,244,.28),
    0 18px 50px -16px rgba(77,232,244,.75),
    0 0 90px -30px rgba(77,232,244,.9);
}
.nf-cta::before{
  content:"";position:absolute;inset:0;border-radius:inherit;z-index:0;
  background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,0) 52%);
  pointer-events:none;
}
.nf-cta > *{position:relative;z-index:1}
.nf-proof{font-size:11.5px;color:#6B7482}
.nf-proof span::before{box-shadow:0 0 8px rgba(77,232,244,.9)}

/* terminal: gradient hairline + bloom */
.nf-term-wrap::after{
  content:"";position:absolute;inset:-1px;border-radius:15px;z-index:0;pointer-events:none;
  padding:1px;
  background:linear-gradient(148deg,rgba(77,232,244,.6),rgba(139,123,255,.42) 34%,rgba(255,255,255,.06) 58%,rgba(77,232,244,.34));
  -webkit-mask:linear-gradient(#000,#000) content-box,linear-gradient(#000,#000);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000,#000) content-box,linear-gradient(#000,#000);
  mask-composite:exclude;
  opacity:.75;
}
.nf-term{
  box-shadow:
    0 40px 90px -50px #000,
    0 0 0 1px rgba(10,14,22,.9),
    0 0 70px -26px rgba(77,232,244,.45),
    0 30px 90px -40px rgba(139,123,255,.35);
}
.nf-term-badge{box-shadow:0 0 18px -6px rgba(77,232,244,.9)}

/* ---------- entry choreography ---------- */
.nf-eyebrow,.nf-sub,.nf-cta-row,.nf-proof,.nf-hero-visual{
  opacity:0;transform:translate3d(0,14px,0);
  transition:opacity .9s var(--ease),transform .9s var(--ease);
}
.nf-land.nf-ready .nf-eyebrow{opacity:1;transform:none;transition-delay:.10s}
.nf-land.nf-ready .nf-sub{opacity:1;transform:none;transition-delay:.30s}
.nf-land.nf-ready .nf-cta-row{opacity:1;transform:none;transition-delay:.42s}
.nf-land.nf-ready .nf-proof{opacity:1;transform:none;transition-delay:.52s}
.nf-land.nf-ready .nf-hero-visual{opacity:1;transform:none;transition-delay:.22s}

@media (max-width:980px){
  .nf-h1{font-size:56px !important}
  .nf-aurora{width:1100px;height:900px;margin-left:-550px;filter:blur(48px)}
  .nf-floor{height:50%;opacity:.32}
  .nf-spot{display:none}
}
@media (max-width:600px){
  .nf-h1{font-size:40px !important;line-height:1.14 !important;letter-spacing:-.005em !important}
  .nf-hero::before,.nf-hero::after{display:none}
  .nf-beams{display:none}
  .nf-floor{opacity:.24}
  .nf-dust{opacity:.6}
}
@media (prefers-reduced-motion:reduce){
  .nf-aurora,.nf-beams i,.nf-floor,.nf-sweep{animation:none !important}
  .nf-sweep{display:none}
  .nf-eyebrow,.nf-sub,.nf-cta-row,.nf-proof,.nf-hero-visual{opacity:1 !important;transform:none !important}
}
