/* ═══════════════════════════════════════════════════════════════
   NXP Premium Layer — Neural × Pulse visual upgrades
   Load on every page AFTER the base NXP styles.
   ═══════════════════════════════════════════════════════════════ */

/* ── ANIMATED GRADIENT BORDERS ── */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes borderSpin { to { --angle: 360deg; } }

.pc.pop, .ve-card:hover, .update-item:hover, .sec-card:hover {
  border-image: conic-gradient(from var(--angle), rgba(232,35,74,.3), rgba(159,108,247,.2), rgba(0,194,240,.15), rgba(232,35,74,.3)) 1;
  animation: borderSpin 6s linear infinite;
}

/* ── CARD HOVER GLOW ── */
.ac:hover, .pc:hover, .sec-card:hover, .c-card:hover, .doc-card:hover,
.blog-card:hover, .val:hover, .av-item:hover, .cap-card:hover, .pillar:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.3), 0 0 60px rgba(232,35,74,.03);
}

/* ── GLASSMORPHISM ENHANCEMENT ── */
nav, .rail {
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  backdrop-filter: blur(32px) saturate(1.6);
}

/* ── BUTTON MICRO-INTERACTIONS ── */
.bp, .bo, .btn-white, .pcard-btn, .df-submit, .ob-btn {
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.bp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(232,35,74,.35), 0 0 60px rgba(232,35,74,.08);
}
.bp:active { transform: translateY(0) scale(.98); }
.bo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

/* ── GRADIENT TEXT SHIMMER ── */
@keyframes gradShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.gr, h1 .accent {
  background-size: 200% auto;
  animation: gradShimmer 8s linear infinite;
}

/* ── CARD REVEAL STAGGER ── */
.rv:nth-child(1) { transition-delay: 0s; }
.rv:nth-child(2) { transition-delay: .06s; }
.rv:nth-child(3) { transition-delay: .12s; }
.rv:nth-child(4) { transition-delay: .18s; }
.rv:nth-child(5) { transition-delay: .24s; }
.rv:nth-child(6) { transition-delay: .30s; }
.rv:nth-child(7) { transition-delay: .36s; }
.rv:nth-child(8) { transition-delay: .42s; }
.rv:nth-child(9) { transition-delay: .48s; }

/* ── SMOOTH GLOW DIVIDER ── */
.glow-divider {
  position: relative;
  overflow: visible;
}
.glow-divider::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(232,35,74,.01) 15%,
    rgba(232,35,74,.3) 35%,
    rgba(159,108,247,.25) 50%,
    rgba(0,194,240,.2) 65%,
    rgba(232,35,74,.01) 85%,
    transparent 100%
  );
  filter: blur(1px);
}

/* ── PREMIUM SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.08);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.14); }

/* ── LINK HOVER UNDERLINE ANIMATION ── */
.nm a, .fr a, .nav-links a:not(.nav-cta) {
  position: relative;
}
.nm a::after, .fr a::after, .nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%; right: 50%;
  height: 1px;
  background: var(--c);
  transition: left .25s cubic-bezier(.16,1,.3,1), right .25s cubic-bezier(.16,1,.3,1);
}
.nm a:hover::after, .fr a:hover::after, .nav-links a:not(.nav-cta):hover::after {
  left: 0; right: 0;
}

/* ── TABLE PREMIUM ── */
.data-table tbody tr {
  transition: background .15s;
}
.data-table tbody tr:hover {
  background: rgba(232,35,74,.02);
}

/* ── KPI PULSE ON UPDATE ── */
@keyframes kpiFlash {
  0% { color: var(--g); text-shadow: 0 0 12px rgba(45,212,168,.4); }
  100% { color: var(--t1); text-shadow: none; }
}
.kpi-flash {
  animation: kpiFlash .8s ease-out;
}

/* ── DOCK CARD PREMIUM UNDERGLOW ── */
.dock-card:hover, .dc:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 -2px 12px rgba(232,35,74,.06) inset;
}

/* ── LOADING SHIMMER ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--s2) 0%, var(--s3) 40%, var(--s2) 80%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--r);
}
.skeleton-line {
  height: 12px;
  margin-bottom: 8px;
  border-radius: 6px;
}
.skeleton-card {
  height: 120px;
  border-radius: var(--rl);
}

/* ── TOAST ENHANCEMENT ── */
.toast {
  backdrop-filter: blur(12px);
}

/* ── FOCUS RING ── */
*:focus-visible {
  outline: 2px solid var(--cf);
  outline-offset: 2px;
  border-radius: var(--r);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--cf);
  outline-offset: 1px;
}

/* ── SELECTION ── */
::selection {
  background: rgba(232,35,74,.15);
  color: var(--w);
}

/* ── PRICING CARD GLOW (recommended) ── */
.pc.pop {
  box-shadow: 0 0 40px rgba(232,35,74,.06), 0 8px 32px rgba(0,0,0,.3);
}
.pc.pop:hover {
  box-shadow: 0 0 60px rgba(232,35,74,.1), 0 12px 40px rgba(0,0,0,.4);
}

/* ── STATUS DOT PREMIUM ── */
.status-dot, .svc .svc-status.svc-up::before {
  box-shadow: 0 0 8px rgba(45,212,168,.4), 0 0 24px rgba(45,212,168,.15);
}

/* ── HERO STAT COUNTERS ── */
.metric-num, .hs-num, .stat-val, .kpi-val {
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}

/* ── SMOOTH PAGE TRANSITIONS ── */
body {
  opacity: 0;
  animation: pageIn .4s ease forwards;
}
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── FOOTER PREMIUM ── */
footer {
  background: linear-gradient(to top, rgba(3,3,5,.5), transparent);
}
