/* KJ Forge — "future stage" background and depth layer.
   Loaded after each page's own <style>, so it only adds atmosphere. */

html { background: linear-gradient(180deg, #0b0b12 0%, #07070b 60%, #050508 100%) fixed #07070b; }
body { background: transparent !important; position: relative; isolation: isolate; }


/* Layer 0: faux spectrum analyzer (drawn by /fx.js) fixed along the bottom */
#kjf-spectrum { position: fixed; left: 0; bottom: 0; z-index: -1; pointer-events: none; opacity: .6;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 25%, #000 70%, transparent 100%);
          mask-image: linear-gradient(to top, transparent 0%, #000 25%, #000 70%, transparent 100%); }
body { z-index: 1; }

/* Layer 1: aurora light (gold key light, cyan and violet rim lights) */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 50% 8%,  rgba(245,197,66,.30), transparent 70%),
    radial-gradient(34vmax 28vmax at 12% 42%, rgba(56,189,248,.22), transparent 70%),
    radial-gradient(36vmax 30vmax at 88% 58%, rgba(168,85,247,.24), transparent 70%),
    radial-gradient(60vmax 40vmax at 50% 110%, rgba(245,197,66,.10), transparent 70%);
  animation: kjf-drift 38s ease-in-out infinite alternate;
}

/* Layer 2: fine grid + film grain, with a glowing perspective floor at the bottom */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 85%);
          mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 85%);
}

.hero { position: relative; }
.hero h1 { text-shadow: 0 0 40px rgba(245,197,66,.18), 0 2px 0 rgba(0,0,0,.4); }
.hero h1 em { text-shadow: 0 0 28px rgba(245,197,66,.55); }

/* Glass header */
header { background: rgba(10,10,16,.62) !important; backdrop-filter: blur(14px) saturate(140%);
         border-bottom: 1px solid rgba(245,197,66,.14) !important; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* Section dividers become light seams instead of flat lines */
section { border-top: 0 !important; position: relative; }
section::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(900px, 90%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,66,.35), rgba(56,189,248,.25), transparent); }

/* Glass cards with a lit top edge and lift on hover */
.card, .tut, .demo, details {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)) , rgba(20,20,30,.55) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 40px -18px rgba(0,0,0,.7);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover, .tut:hover {
  transform: translateY(-3px);
  border-color: rgba(245,197,66,.35) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(245,197,66,.12), 0 24px 50px -16px rgba(245,197,66,.18);
}
.price.hl { background: linear-gradient(180deg, rgba(245,197,66,.16), rgba(20,20,30,.55) 65%) !important;
            border-color: rgba(245,197,66,.6) !important; box-shadow: 0 0 40px -8px rgba(245,197,66,.35); }
.demo { box-shadow: 0 0 0 1px rgba(245,197,66,.18), 0 40px 90px -20px rgba(0,0,0,.8), 0 0 80px -20px rgba(245,197,66,.25) !important; }

/* Buttons glow a little */
.btn:not(.ghost) { box-shadow: 0 0 0 1px rgba(245,197,66,.4), 0 8px 26px -6px rgba(245,197,66,.45); }
.btn.ghost { background: rgba(255,255,255,.03) !important; backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: rgba(245,197,66,.45) !important; }

footer { background: rgba(5,5,9,.6) !important; backdrop-filter: blur(10px); }

@keyframes kjf-drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-3vmax,2vmax,0) scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .card:hover, .tut:hover { transform: none; }
}

/* keep the top menu on one line now that it has more links */
nav { gap: 16px !important; font-size: 14.5px !important; }
nav a, .btn, .brand, .brand span { white-space: nowrap; }
@media (max-width: 1320px) { nav { gap: 12px !important; font-size: 13.5px !important; } }
@media (max-width: 1180px) { nav a[href="#how"], nav a[href="#features"] { display: none; } }
