/* ═══════════════════════════════════════════════════════════
   SENTINEL AI · neon.css
   Shared neon glow effects, grid backgrounds, shared chrome.
   Loaded on every page for a consistent flagship feel.
   ═══════════════════════════════════════════════════════════ */

/* ─── GLOBAL NEON BACKDROP (use on every page) ───────────── */
.fx-backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.fx-grid-floor {
  position: absolute; inset: 0;
}
.fx-grid-floor::before {
  content: ''; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 80%;
  background-image:
    linear-gradient(rgba(99,102,241,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.10) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(420px) rotateX(68deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black, transparent 75%);
  -webkit-mask-image: linear-gradient(to top, black, transparent 75%);
  animation: grid-march 16s linear infinite;
}
@keyframes grid-march { from { background-position: 0 0; } to { background-position: 0 50px; } }

.fx-glow-top {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 80%; height: 50%;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.14), transparent 70%);
}
.fx-glow-orb {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5;
  animation: orb-pan 18s ease-in-out infinite alternate;
}
.fx-glow-orb.indigo { width: 500px; height: 500px; background: rgba(99,102,241,0.18); top: 10%; left: -10%; }
.fx-glow-orb.sky    { width: 400px; height: 400px; background: rgba(56,189,248,0.14); bottom: 5%; right: -8%; animation-delay: -9s; }
@keyframes orb-pan { from { transform: translate(0,0); } to { transform: translate(60px,40px); } }

.fx-scanlines {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent, transparent 3px, rgba(99,102,241,0.014) 3px, rgba(99,102,241,0.014) 4px);
}

.fx-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 200px rgba(0,0,0,0.6);
}

/* ─── NEON TEXT ──────────────────────────────────────────── */
.neon-glow { text-shadow: var(--neon-text-indigo); }
.neon-glow-sky { text-shadow: var(--neon-text-sky); }

/* ─── NEON BORDER PULSE ──────────────────────────────────── */
.neon-border {
  position: relative;
}
.neon-border::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(99,102,241,0.6), rgba(56,189,248,0.3), rgba(99,102,241,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Animated travelling border light */
.neon-trace {
  position: relative; overflow: hidden;
}
.neon-trace::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, var(--c-sky), transparent);
  animation: trace-x 3s linear infinite;
}
@keyframes trace-x { to { left: 100%; } }

/* ─── GLOW CHIP ──────────────────────────────────────────── */
.glow-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 100px;
  font-size: var(--text-xs); font-weight: 600;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em;
  background: var(--c-indigo-dim); border: 1px solid var(--c-indigo-border);
  color: var(--c-indigo-light); box-shadow: var(--neon-indigo);
}

/* ─── HERO 3D SHELL (shared) ─────────────────────────────── */
.hero3d {
  position: relative; width: 100%; aspect-ratio: 1; max-width: 520px; margin: 0 auto;
}
.hero3d-canvas { width: 100%; height: 100%; display: block; }
.hero3d-ring-label {
  position: absolute; font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--c-sky); text-shadow: var(--neon-text-sky); pointer-events: none;
  letter-spacing: 0.1em;
}

/* ─── STAT PILL (live numbers) ───────────────────────────── */
.stat-pill {
  display: flex; flex-direction: column; gap: 2px;
}
.stat-pill-num {
  font-size: 28px; font-weight: 900; font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.04em; line-height: 1;
}
.stat-pill-label { font-size: var(--text-xs); color: var(--t-3); font-weight: 500; }

/* ─── HOVER GLOW CARD ────────────────────────────────────── */
.glow-card {
  background: var(--c-card); border: 1px solid var(--b-dim);
  border-radius: var(--r-lg); position: relative;
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.glow-card:hover {
  transform: translateY(-4px); border-color: var(--b-mid);
  box-shadow: var(--shadow-raised), 0 0 40px rgba(99,102,241,0.12);
}

/* ─── MARQUEE LOGOS / PLATFORMS ──────────────────────────── */
.platform-marquee { display: flex; gap: 48px; align-items: center; opacity: 0.5; }
.platform-marquee span { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: var(--t-2); }
