/* ================================================================
   NEXORA — animations.css  v4.0  (complete, conflict-free rewrite)

   Key fixes in this version:
   - data-reveal values match HTML: fade-up, fade-down, fade-left,
     fade-right, scale-in, fade  (not up/down/left/right/scale)
   - Hero CSS animations removed from elements that also have
     data-reveal attributes — JS IO drives them instead
   - service-card::before removed (styles.css owns ::before)
     spotlight moved to ::after
   - service-card transition overrides use !important selectively
   - float-card animations consolidated (styles.css owns float-card)
   - node-pulse renamed to nx-node-pulse (no conflict)
   - arc-flow renamed to nx-arc-flow (no conflict)
   - btn hover transform only applies to buttons without .btn-lg
     so magnetic buttons have no competing CSS transform
   - wipe: both .wipe-cover and .wipe-reveal always removed after
     their animationend so next page starts clean
   ================================================================ */

:root {
  --nx-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --nx-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nx-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --nx-mag:    cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── 1. SCROLL PROGRESS BAR ─────────────────────────────────── */
#nx-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg,
    var(--blue-600) 0%, var(--blue-400) 55%, var(--blue-300) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 99999;
  pointer-events: none;
  will-change: transform;
}

/* ── 2. PAGE WIPE ───────────────────────────────────────────── */
.nx-wipe {
  position: fixed; inset: 0;
  background: var(--navy-950);
  z-index: 100000;
  pointer-events: none;
  will-change: transform;
  transform: translateX(-101%);
}
.nx-wipe.wipe-cover  { animation: nx-wipe-in  0.40s var(--nx-expo) both; }
.nx-wipe.wipe-reveal { animation: nx-wipe-out 0.46s var(--nx-expo) both; }
@keyframes nx-wipe-in  {
  from { transform: translateX(-101%); }
  to   { transform: translateX(0%); }
}
@keyframes nx-wipe-out {
  from { transform: translateX(0%); }
  to   { transform: translateX(101%); }
}

/* ── 3. CUSTOM CURSOR — removed per user request ────────────── */

/* ── 4. HEADER SCROLL MORPH ─────────────────────────────────── */
.header {
  transition: background 0.30s ease,
              backdrop-filter 0.30s ease,
              box-shadow 0.30s ease;
}
.header.nx-scrolled {
  background: rgba(5, 11, 26, 0.97) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  box-shadow: 0 1px 0 rgba(61,139,255,0.12),
              0 4px 24px rgba(5,11,26,0.5) !important;
}
.nav-item { position: relative; }
.nav-item::after {
  content: ''; position: absolute;
  bottom: 4px; left: 50%; width: 0; height: 2px;
  background: var(--blue-400); border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.24s var(--nx-expo);
}
.nav-item:hover::after,
.nav-item.nav-active::after { width: 55%; }

/* ── 5. MOBILE NAV ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .mobile-toggle {
    display: flex !important; flex-direction: column;
    gap: 5px; padding: 8px;
  }
  .mobile-toggle span {
    display: block; width: 22px; height: 2px;
    background: rgba(255,255,255,0.85); border-radius: 2px;
    will-change: transform;
    transition: transform 0.26s var(--nx-expo), opacity 0.18s ease;
  }
  .mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav {
    position: fixed; top: 116px; left: 0; right: 0;
    background: rgba(5,11,26,0.97); backdrop-filter: blur(24px);
    flex-direction: column; align-items: flex-start;
    padding: 16px 20px 24px; gap: 4px;
    border-top: 1px solid rgba(61,139,255,0.1);
    opacity: 0; transform: translateY(-10px);
    pointer-events: none; z-index: 99;
    will-change: transform, opacity;
    transition: opacity 0.24s ease, transform 0.28s var(--nx-expo);
  }
  .nav.nav-open {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
}

/* ── 6. SCROLL REVEAL ───────────────────────────────────────── */
/*
 * IMPORTANT: Values match what the HTML actually uses:
 * fade-up, fade-down, fade-left, fade-right, scale-in, fade
 * (previous versions used up/down/left/right/scale — nothing matched)
 */
[data-reveal] {
  transition: opacity 0.68s var(--nx-expo), transform 0.68s var(--nx-expo);
}
[data-reveal="fade-up"]    { opacity: 0; transform: translateY(22px); }
[data-reveal="fade-down"]  { opacity: 0; transform: translateY(-18px); }
[data-reveal="fade-left"]  { opacity: 0; transform: translateX(26px); }
[data-reveal="fade-right"] { opacity: 0; transform: translateX(-26px); }
[data-reveal="scale-in"]   { opacity: 0; transform: scale(0.92); }
[data-reveal="fade"]       { opacity: 0; }
/* Visible state: transform:none avoids fighting any hover CSS */
[data-reveal].nx-in {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger grid containers */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.52s var(--nx-expo), transform 0.52s var(--nx-expo);
}
[data-stagger].nx-in > *:nth-child(1)    { opacity:1;transform:none;transition-delay:.03s }
[data-stagger].nx-in > *:nth-child(2)    { opacity:1;transform:none;transition-delay:.09s }
[data-stagger].nx-in > *:nth-child(3)    { opacity:1;transform:none;transition-delay:.15s }
[data-stagger].nx-in > *:nth-child(4)    { opacity:1;transform:none;transition-delay:.21s }
[data-stagger].nx-in > *:nth-child(5)    { opacity:1;transform:none;transition-delay:.27s }
[data-stagger].nx-in > *:nth-child(6)    { opacity:1;transform:none;transition-delay:.33s }
[data-stagger].nx-in > *:nth-child(7)    { opacity:1;transform:none;transition-delay:.39s }
[data-stagger].nx-in > *:nth-child(8)    { opacity:1;transform:none;transition-delay:.45s }
[data-stagger].nx-in > *:nth-child(9)    { opacity:1;transform:none;transition-delay:.51s }
[data-stagger].nx-in > *:nth-child(n+10) { opacity:1;transform:none;transition-delay:.57s }

.hero .hero-title {
  will-change: transform, opacity;
  animation: nx-hero-up 0.80s 0.18s both var(--nx-expo);
}
.hero .hero-sub {
  will-change: transform, opacity;
  animation: nx-hero-up 0.80s 0.30s both var(--nx-expo);
}
@keyframes nx-hero-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
/*
 * HERO-RIGHT: entry animation only, no loop.
 * hero-right is a static container after entry — dashboard-card
 * has its own float. Only ONE translateY per element at any time.
 */
.hero .hero-right {
  animation: nx-hero-right-in 0.85s 0.35s both var(--nx-expo);
}
@keyframes nx-hero-right-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Inner-page hero (scoped to .page-hero so it doesn't bleed) */
.page-hero .page-hero-inner > * {
  animation: nx-hero-up 0.72s both var(--nx-expo);
}
.page-hero .page-hero-inner > *:nth-child(1) { animation-delay: 0.06s; }
.page-hero .page-hero-inner > *:nth-child(2) { animation-delay: 0.16s; }
.page-hero .page-hero-inner > *:nth-child(3) { animation-delay: 0.26s; }
.page-hero .page-hero-inner > *:nth-child(4) { animation-delay: 0.36s; }

/* ── 8. SVG UNDERLINE DRAW ──────────────────────────────────── */
.underline-svg path {
  stroke-dasharray: 350; stroke-dashoffset: 350;
  animation: nx-path-draw 0.90s 0.65s var(--nx-expo) forwards;
}
@keyframes nx-path-draw { to { stroke-dashoffset: 0; } }

/* Title shimmer — translateX only (GPU composited) */
.title-accent { position: relative; display: inline-block; overflow: hidden; }
.title-accent::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(61,139,255,0.20) 50%, transparent 100%);
  transform: translateX(-100%);
  pointer-events: none;
  border-radius: inherit;
  animation: nx-shimmer 4.5s 1.2s ease-in-out infinite;
}
@keyframes nx-shimmer {
  0%   { transform: translateX(-100%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(200%); opacity: 0; }
}

/* ── 9. ORB DRIFT ───────────────────────────────────────────── */
/*
 * styles.css does NOT animate orb-1/orb-2 (only sizes/positions them)
 * Safe to add animations here.
 */
.orb-1 { will-change: transform; animation: nx-orb-a 20s ease-in-out infinite alternate; }
.orb-2 { will-change: transform; animation: nx-orb-b 26s ease-in-out infinite alternate; }
.orb-3 {
  position: absolute; width: 380px; height: 380px;
  border-radius: 50%; filter: blur(52px); pointer-events: none;
  background: radial-gradient(circle, rgba(31,122,255,0.13) 0%, transparent 70%);
  will-change: transform;
  animation: nx-orb-c 32s ease-in-out infinite alternate;
  top: 38%; left: 22%; z-index: 0;
}
@keyframes nx-orb-a {
  0%   { transform: translate(0px, 0px); }
  33%  { transform: translate(52px, -40px); }
  66%  { transform: translate(-26px, 46px); }
  100% { transform: translate(68px, 16px); }
}
@keyframes nx-orb-b {
  0%   { transform: translate(0px, 0px); }
  33%  { transform: translate(-60px, 36px); }
  66%  { transform: translate(42px, -52px); }
  100% { transform: translate(-35px, -26px); }
}
@keyframes nx-orb-c {
  0%   { transform: translate(0px, 0px); }
  50%  { transform: translate(90px, -70px); }
  100% { transform: translate(-52px, 55px); }
}

/* ── 10. PARTICLE CANVAS ────────────────────────────────────── */
#nx-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0; opacity: 0.42;
}

/* ── 11. NETWORK SVG ─────────────────────────────────────────── */
/*
 * Renamed to nx-node-pulse to avoid conflict with styles.css node-pulse
 */
.net-nodes circle {
  animation: nx-node-pulse 3.2s ease-in-out infinite;
}
.net-nodes circle:nth-child(2n) { animation-delay: 0.9s; }
.net-nodes circle:nth-child(3n) { animation-delay: 1.8s; }
@keyframes nx-node-pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/*
 * threat-arc and ping animations are defined in the SOC dashboard
 * section further below (with !important to win over styles.css).
 * This space intentionally left for the node-pulse rule above.
 */

/* ── 12. DASHBOARD ──────────────────────────────────────────── */
/*
 * styles.css already sets overflow:hidden on .dashboard-card — good.
 * Scan line as ::after (styles.css has no ::after on dashboard-card).
 * We use ::after not ::before to avoid conflicts with any future styles.
 */
/* Stat bars */
.stat-fill { transition: width 1.4s 0.2s var(--nx-expo) !important; }

/* ── 13. FLOATING MINI-CARDS ─────────────────────────────────────
 * styles.css declares animation: float-card on both cards.
 * We neutralise with animation-name:none first, then re-apply ours.
 * NO fill-mode, NO delay — avoids snap-at-start glitch.
 * Start each card at a different phase using animation-delay on the
 * CSS animation itself so they feel independent (negative delays
 * put them mid-cycle immediately with no wait period).
 ── */
.float-card-1 {
  will-change: transform;
  animation-name: none;
  animation-name: nx-fc1;
  animation-duration: 7s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: none;
  animation-delay: 0s;
}
.float-card-2 {
  will-change: transform;
  animation-name: none;
  animation-name: nx-fc2;
  animation-duration: 9s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: none;
  animation-delay: -3s; /* start mid-cycle so it's offset from card 1 */
}
@keyframes nx-fc1 {
  0%, 100% { transform: translateY(0px)   rotate(-1.5deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}
@keyframes nx-fc2 {
  0%, 100% { transform: translateY(0px)  rotate(1.5deg); }
  50%      { transform: translateY(10px) rotate(-2deg); }
}
.float-card:hover { animation-play-state: paused !important; }

/* ── 14. SERVICE CARDS ──────────────────────────────────────── */
/*
 * styles.css .service-card::before is a top accent bar (scaleX).
 * We keep that intact and add our spotlight as ::after instead.
 * styles.css already has transition:all on .service-card —
 * we override with a specific list to prevent GPU-unfriendly props.
 */
.service-card {
  transition: transform 0.30s var(--nx-mag),
              box-shadow 0.30s ease,
              border-color 0.22s ease !important;
}
/* Spotlight via ::after (styles.css has no ::after on service-card) */
.service-card::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(61,139,255,0.08) 0%, transparent 65%
  );
  opacity: 0; transition: opacity 0.24s ease;
  pointer-events: none; z-index: 0;
}
.service-card:hover::after { opacity: 1; }

/* Rotating gradient border on featured card
 * styles.css .service-card.featured::after has no content defined
 * so our ::after will show. But .service-card.featured already has
 * its own background in styles.css — we just add the spinning border. */
@property --ba { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.service-card.featured {
  /* Override spotlight ::after with spinning border */
}
.service-card.featured::after {
  background: conic-gradient(
    from var(--ba),
    transparent 0%, rgba(61,139,255,0.40) 20%,
    rgba(107,168,255,0.55) 40%, rgba(61,139,255,0.40) 60%,
    transparent 80%
  ) !important;
  opacity: 1 !important;
  inset: -1px !important;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1 !important;
  will-change: --ba;
  animation: nx-spin-border 6s linear infinite !important;
}
@keyframes nx-spin-border { to { --ba: 360deg; } }

/* ── 15. BUTTONS ─────────────────────────────────────────────── */
/*
 * styles.css has transition:all on .btn — we override to specific props.
 * Hover lift only on non-lg buttons so magnetic .btn-lg is not fighting.
 */
.btn {
  position: relative; overflow: hidden;
  transition: transform 0.18s var(--nx-spring),
              box-shadow 0.18s ease,
              background 0.18s ease,
              color 0.18s ease,
              border-color 0.18s ease !important;
}
/* Hover lift: only on buttons that are NOT btn-lg (those use magnetic JS) */
.btn:not(.btn-lg):hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97) !important; }

/* Shine sweep via ::before — note: styles.css has no ::before on .btn */
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    105deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.48s ease;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(100%); }
.btn .arrow {
  display: inline-block;
  transition: transform 0.18s var(--nx-expo);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Ripple element */
.nx-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.24);
  transform: scale(0);
  will-change: transform, opacity;
  animation: nx-ripple-out 0.48s ease-out forwards;
  pointer-events: none;
}
@keyframes nx-ripple-out { to { transform: scale(4); opacity: 0; } }

/* ── 16. MARQUEE ─────────────────────────────────────────────── */
.marquee:hover .marquee-track { animation-play-state: paused; }
.m-logo {
  transition: color 0.18s ease, transform 0.18s var(--nx-spring);
  will-change: transform;
}
.m-logo:hover { color: var(--blue-400); transform: scale(1.12); }

/* ── 17. EYEBROW BAR ─────────────────────────────────────────── */
.eyebrow-bar {
  width: 0 !important;
  transition: width 0.58s var(--nx-expo);
}

/* ── 18. SECTION DIVIDERS ───────────────────────────────────── */
.nx-divider {
  border: none; height: 1px; margin: 0; pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%, rgba(61,139,255,0.15) 20%,
    rgba(61,139,255,0.45) 50%, rgba(61,139,255,0.15) 80%,
    transparent 100%);
  background-size: 300% 100%;
  animation: nx-divider-flow 6s linear infinite;
}
@keyframes nx-divider-flow {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 19. CARD HOVER LIFTS ────────────────────────────────────── */
/*
 * Many of these have transition:all in styles.css — override to GPU props.
 */
.industry-card {
  transition: transform 0.28s var(--nx-mag), box-shadow 0.28s ease !important;
}
.case-card {
  transition: transform 0.28s var(--nx-mag), box-shadow 0.28s ease !important;
}
.insight-card, .article-card {
  transition: transform 0.28s var(--nx-mag), box-shadow 0.28s ease !important;
}
.office-card {
  transition: transform 0.28s var(--nx-mag), box-shadow 0.28s ease !important;
}
.cert {
  transition: transform 0.28s var(--nx-mag), box-shadow 0.28s ease !important;
}
.quote-block {
  transition: transform 0.28s var(--nx-mag) !important;
}

.industry-card:hover  { transform: translateY(-7px); }
.case-card:hover      { transform: translateY(-6px); }
.insight-card:hover, .article-card:hover { transform: translateY(-7px); }
.office-card:hover    { transform: translateY(-6px); }
.cert:hover           { transform: translateY(-5px) scale(1.03); }
.quote-block:hover    { transform: translateY(-4px); }

.industry-card:hover,
.case-card:hover,
.insight-card:hover {
  box-shadow: 0 18px 40px -10px rgba(8,18,38,0.14),
              0 0 0 1px rgba(61,139,255,0.10) !important;
}
.cert:hover {
  box-shadow: 0 10px 26px -7px rgba(0,102,255,0.22) !important;
}

.ind-arrow {
  display: inline-block;
  transition: transform 0.18s var(--nx-spring);
}
.industry-card:hover .ind-arrow { transform: translateX(6px); }

.insight-card img, .article-card img,
.card-image img, .post-image img {
  transition: transform 0.48s var(--nx-smooth);
  will-change: transform;
}
.insight-card:hover img, .article-card:hover img,
.card-image:hover img { transform: scale(1.05); }

/* ── 20. STATUS DOT GLOW ────────────────────────────────────── */
/* styles.css already animates .status-dot with pulse-dot.
 * We layer a glow on top using !important for specificity. */
.utility-bar .status-dot {
  animation: pulse-dot 2s infinite,
             nx-status-glow 3s ease-in-out infinite !important;
}
@keyframes nx-status-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.40); }
  50%     { box-shadow: 0 0 0 4px rgba(34,197,94,0.12); }
}

/* ── 21. FOOTER ─────────────────────────────────────────────── */
.footer-social a {
  transition: transform 0.24s var(--nx-spring), color 0.18s ease !important;
  will-change: transform;
}
.footer-social a:hover {
  transform: translateY(-4px) scale(1.1) !important;
  color: var(--blue-300) !important;
}
.footer-col a { position: relative; display: inline-block; }
.footer-col a::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 0; height: 1px; background: var(--blue-400);
  transition: width 0.20s var(--nx-expo);
}
.footer-col a:hover::after { width: 100%; }

.service-link { position: relative; display: inline-block; }
.service-link::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 0; height: 1px; background: var(--blue-400);
  transition: width 0.20s var(--nx-expo);
}
.service-link:hover::after { width: 100%; }
.service-link span {
  display: inline-block;
  transition: transform 0.18s var(--nx-spring);
}
.service-link:hover span { transform: translateX(5px); }

/* ── 22. VALUE PILLARS ──────────────────────────────────────── */
.pillar { transition: transform 0.24s var(--nx-spring); }
.pillar:hover { transform: translateX(7px); }
.pillar-num {
  display: inline-block;
  transition: color 0.18s ease, transform 0.24s var(--nx-spring);
}
.pillar:hover .pillar-num { color: var(--blue-400); transform: scale(1.08); }

/* ── 23. TIMELINE ───────────────────────────────────────────── */
.tl-dot { transition: transform 0.28s var(--nx-spring), box-shadow 0.28s ease; }
.tl-row:hover .tl-dot {
  transform: scale(1.6); box-shadow: 0 0 0 5px rgba(61,139,255,0.13);
}
.tl-row { transition: background 0.16s ease; }
.tl-row:hover { background: rgba(61,139,255,0.03); }

/* ── 24. FORM FOCUS ─────────────────────────────────────────── */
.form-field input, .form-field textarea, .form-field select {
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--blue-500) !important;
  box-shadow: 0 0 0 3px rgba(31,122,255,0.12) !important;
  outline: none !important;
}

/* ── 25. TYPED CURSOR ───────────────────────────────────────── */
.nx-typed-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--blue-400); border-radius: 1px;
  vertical-align: middle; margin-left: 2px;
  animation: nx-cursor-blink 1s step-end infinite;
}
@keyframes nx-cursor-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── 26. COUNTER NUMBERS ────────────────────────────────────── */
.meta-item strong, .phm-num, [data-count] {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: transform 0.24s var(--nx-spring), color 0.18s ease;
}
.meta-item:hover strong, .phm-item:hover .phm-num {
  transform: scale(1.1); color: var(--blue-300);
}

/* ── 27. CERT SHIELD ────────────────────────────────────────── */
.cert-shield { transition: background 0.20s ease; }
.cert:hover .cert-shield { background: rgba(0,102,255,0.16) !important; }

/* ── 28. FOOTER BRAND LOGO ──────────────────────────────────── */
.footer .brand-mark {
  transition: transform 0.30s var(--nx-spring),
              box-shadow 0.30s ease, border-color 0.20s ease;
  will-change: transform;
}
.footer .brand:hover .brand-mark {
  transform: rotate(8deg) scale(1.08);
  box-shadow: 0 0 16px rgba(61,139,255,0.24);
  border-color: rgba(61,139,255,0.5);
}

/* ── 29. SECTION BASE ───────────────────────────────────────── */
section { position: relative; }

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], [data-stagger] > * {
    opacity: 1 !important; transform: none !important;
  }
  html, body, a, button, [role="button"] { cursor: auto !important; }
  .nx-cursor, #nx-particles, .orb-3 { display: none !important; }
  .hero .hero-title, .hero .hero-sub, .hero .hero-right,
  .page-hero .page-hero-inner > * {
    animation: none !important;
    opacity: 1 !important; transform: none !important;
  }
  .float-card-1, .float-card-2, .dashboard-card {
    animation: none !important;
  }
}

/* ================================================================
   CTA SECTION — "READY WHEN YOU ARE" redesign
   All new classes prefixed cta- to avoid collisions with styles.css
   ================================================================ */

/* ── Background extras ──────────────────────────────────────── */
.cta-orb-2 {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(61,139,255,0.10), transparent 65%);
  border-radius: 50%;
  filter: blur(60px);
  bottom: -200px; left: -100px;
  pointer-events: none;
  animation: nx-orb-b 28s ease-in-out infinite alternate;
}

/* Fade from previous dark section */
.cta-fade-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--navy-950), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Animated concentric rings (left of centre, behind left copy) */
.cta-rings {
  position: absolute;
  top: 50%; left: 20%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.cta-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(61,139,255,0.12);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta-ring-1 {
  width: 300px; height: 300px;
  animation: nx-ring-pulse 4s ease-in-out infinite;
}
.cta-ring-2 {
  width: 480px; height: 480px;
  animation: nx-ring-pulse 4s 1.3s ease-in-out infinite;
  border-color: rgba(61,139,255,0.07);
}
.cta-ring-3 {
  width: 660px; height: 660px;
  animation: nx-ring-pulse 4s 2.6s ease-in-out infinite;
  border-color: rgba(61,139,255,0.04);
}
@keyframes nx-ring-pulse {
  0%,100% { opacity: 0.4; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.04); }
}

/* Circuit decorative SVG */
.cta-circuit {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.6;
}

/* ── Eyebrow with live badge ─────────────────────────────────── */
.cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: #4ADE80;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 20px;
  padding: 3px 9px 3px 6px;
}
.cta-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  animation: nx-live-blink 2s ease-in-out infinite;
}
@keyframes nx-live-blink {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%     { opacity: 0.7; box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}

/* ── Heading with gradient accent ───────────────────────────── */
.cta-heading {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: white;
  margin: 18px 0 22px;
}
.cta-heading-accent {
  background: linear-gradient(135deg, var(--blue-300) 0%, #A78BFA 60%, var(--blue-400) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nx-grad-shift 5s ease infinite;
}
@keyframes nx-grad-shift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.cta-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
}

/* ── Stat counter row ───────────────────────────────────────── */
.cta-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cta-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cta-stat-num {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  color: white;
  line-height: 1;
  letter-spacing: -0.02em;
}
.cta-stat-sfx {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-400);
  margin-left: 1px;
  vertical-align: super;
}
.cta-stat-label {
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.cta-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

/* ── Bullets (upgraded) ─────────────────────────────────────── */
.cta-bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.cta-bullet {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cta-bullet .check {
  width: 22px; height: 22px;
  background: var(--blue-600);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 0 12px rgba(0,102,255,0.35);
  transition: transform 0.2s var(--nx-spring), box-shadow 0.2s ease;
}
.cta-bullet:hover .check {
  transform: scale(1.15);
  box-shadow: 0 0 18px rgba(0,102,255,0.55);
}
.cta-bullet .check-gold {
  background: linear-gradient(135deg, #D97706, #F59E0B);
  box-shadow: 0 0 12px rgba(245,158,11,0.35);
}
.cta-bullet:hover .check-gold {
  box-shadow: 0 0 18px rgba(245,158,11,0.55);
}
.cta-bullet div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cta-bullet strong {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.cta-bullet span {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

/* ── Social proof ───────────────────────────────────────────── */
.cta-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cta-proof-avatars {
  display: flex;
}
.cta-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--navy-900);
  margin-left: -8px;
  background-size: cover;
}
.cta-avatar:first-child { margin-left: 0; }
.cta-avatar-1 { background: linear-gradient(135deg, #3B82F6, #8B5CF6); }
.cta-avatar-2 { background: linear-gradient(135deg, #06B6D4, #3B82F6); }
.cta-avatar-3 { background: linear-gradient(135deg, #10B981, #06B6D4); }
.cta-avatar-4 { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.cta-proof-text {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}
.cta-proof-text strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* ── Form card upgrade ──────────────────────────────────────── */
.cta-form-card {
  position: relative;
  background: rgba(10,18,38,0.85) !important;
  border: 1px solid rgba(61,139,255,0.18) !important;
  backdrop-filter: blur(28px) !important;
}

/* Animated gradient top border */
.form-card-glow-border {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(61,139,255,0.6) 30%,
    rgba(167,139,250,0.6) 50%,
    rgba(61,139,255,0.6) 70%,
    transparent 100%);
  background-size: 200% 100%;
  animation: nx-border-shimmer 3s linear infinite;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
@keyframes nx-border-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Form head subtitle */
.cta-form-head { align-items: flex-start !important; }
.form-subtitle {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  margin: 4px 0 0;
  font-family: var(--font-mono);
}
.cta-form-tag {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.form-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  animation: nx-live-blink 2s ease-in-out infinite;
}

/* Step indicator */
.cta-form-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cta-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
}
.cta-step-active {
  color: var(--blue-300);
}
.cta-step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
}
.cta-step-active .cta-step-num {
  background: var(--blue-600);
  color: white;
  box-shadow: 0 0 10px rgba(0,102,255,0.45);
}
.cta-step-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 8px;
}

/* Field with icon */
.field-wrap {
  position: relative;
}
.field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
  pointer-events: none;
  z-index: 1;
}
.field-wrap input,
.field-wrap select {
  padding-left: 34px !important;
}
.field-wrap-ta { position: relative; }
.field-wrap-ta textarea { padding-bottom: 28px !important; }
.ta-counter {
  position: absolute;
  bottom: 8px; right: 12px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}

/* Optional label */
.field-optional {
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  text-transform: none;
  letter-spacing: 0;
}

/* ── Interest chip selector ─────────────────────────────────── */
.cta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s var(--nx-expo);
  user-select: none;
}
.cta-chip:hover {
  color: rgba(255,255,255,0.85);
  border-color: rgba(61,139,255,0.3);
  background: rgba(61,139,255,0.08);
}
.cta-chip-active {
  color: var(--blue-300) !important;
  background: rgba(61,139,255,0.14) !important;
  border-color: rgba(61,139,255,0.45) !important;
  box-shadow: 0 0 0 3px rgba(61,139,255,0.08);
}
.cta-chip svg { opacity: 0.7; }
.cta-chip-active svg { opacity: 1; }

/* ── Submit button upgrade ──────────────────────────────────── */
.cta-submit-btn {
  background: linear-gradient(135deg, var(--blue-600) 0%, #5B21B6 100%) !important;
  box-shadow: 0 8px 24px -6px rgba(0,102,255,0.45),
              0 0 0 1px rgba(61,139,255,0.2) !important;
  font-size: 15px !important;
  padding: 15px !important;
  transition: transform 0.18s var(--nx-spring),
              box-shadow 0.18s ease,
              filter 0.18s ease !important;
}
.cta-submit-btn:hover {
  box-shadow: 0 12px 32px -6px rgba(0,102,255,0.6),
              0 0 0 1px rgba(61,139,255,0.35) !important;
  filter: brightness(1.08);
}
.cta-submit-btn:active { transform: scale(0.98) !important; }
.cta-btn-text { flex: 1; }

/* ── Trust row ──────────────────────────────────────────────── */
.cta-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.cta-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.35);
}
.cta-trust-sep { color: rgba(255,255,255,0.15); }

/* ── Success state ──────────────────────────────────────────── */
.cta-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  gap: 16px;
}
.cta-success[aria-hidden="false"] { display: flex; }
.cta-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(34,197,94,0.05));
  border: 1px solid rgba(34,197,94,0.3);
  display: grid; place-items: center;
  color: #4ADE80;
  animation: nx-success-pop 0.5s var(--nx-spring) both;
}
@keyframes nx-success-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cta-success h3 { color: white; font-size: 22px; margin: 0; }
.cta-success p {
  color: rgba(255,255,255,0.6);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 340px; margin: 0;
}
.cta-success-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.cta-success-detail span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.4);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cta-rings { left: 50%; top: 30%; }
  .cta-stats-row { gap: 0; }
  .cta-stat-num { font-size: 22px; }
  .cta-heading { font-size: clamp(28px, 7vw, 42px); }
  .cta-chips { gap: 6px; }
  .cta-chip { font-size: 11px; padding: 6px 10px; }
  .cta-proof { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 600px) {
  .cta-stats-row { flex-wrap: wrap; gap: 16px; padding: 16px 0; }
  .cta-stat-divider { display: none; }
  .cta-stat { align-items: flex-start; }
  .cta-form-steps { display: none; }
  .cta-trust-row { flex-wrap: wrap; gap: 6px; }
}

/* ================================================================
   SOC DASHBOARD — "Nexora SOC · Live Threat Map" redesign
   All selectors scoped to avoid conflicts with styles.css
   ================================================================ */

/* ── 1. CARD: animated glow border (top edge) ───────────────── */
.dash-glow-border {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(61,139,255,0.7) 25%,
    rgba(107,168,255,0.9) 50%,
    rgba(61,139,255,0.7) 75%,
    transparent 100%);
  background-size: 300% 100%;
  animation: nx-dash-border 3s linear infinite;
  z-index: 2;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
@keyframes nx-dash-border {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 2. HEADER: window-chrome dots with hover interaction ───── */
.dash-dots { cursor: default; }
.dd-red, .dd-yellow, .dd-green {
  width: 10px; height: 10px; border-radius: 50%;
  transition: filter 0.2s ease, transform 0.2s var(--nx-spring);
}
.dd-red    { background: #ff5f56; }
.dd-yellow { background: #ffbd2e; }
.dd-green  { background: #27c93f; }
.dash-dots:hover .dd-red    { filter: brightness(1.3); transform: scale(1.2); }
.dash-dots:hover .dd-yellow { filter: brightness(1.3); transform: scale(1.2); transition-delay: 0.04s; }
.dash-dots:hover .dd-green  { filter: brightness(1.3); transform: scale(1.2); transition-delay: 0.08s; }

/* Header title pulse dot */
.dash-title-pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  margin-right: 7px;
  vertical-align: middle;
  animation: nx-title-pulse 2s ease-in-out infinite;
}
@keyframes nx-title-pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(61,139,255,0.5); }
  50%     { opacity: 0.7; box-shadow: 0 0 0 4px rgba(61,139,255,0); }
}

/* Status text smooth color transition */
.dash-status-text {
  transition: color 0.5s ease;
}

/* ── 3. MAP: corner labels ───────────────────────────────────── */
.dash-map { position: relative; }
.map-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(61,139,255,0.55);
  pointer-events: none;
  z-index: 2;
  text-transform: uppercase;
}
.map-label-tl { top: 8px; left: 8px; }
.map-label-tr {
  top: 8px; right: 8px;
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.4);
}
#dash-event-text { transition: opacity 0.4s ease; }

/* Event indicator dot */
.event-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}
.event-dot-blue { background: var(--blue-400); animation: nx-title-pulse 2.5s infinite; }
.event-dot-red  { background: #FF6B6B; animation: nx-title-pulse 1.2s infinite; }

/* ── 4. MAP: improved world dot hover glow ───────────────────── */
.world-dots circle {
  transition: opacity 0.3s ease;
}
.world-map:hover .world-dots circle { opacity: 1.4; }

/* ── 5. MAP: ping halos — opacity only (r: attr causes SVG layout recalc) ── */
.ping-halo {
  /* opacity is GPU-composited on SVG elements; r: is NOT */
  animation: nx-halo-fade 3s ease-in-out infinite;
}
.ping-halo-1 { animation-delay: 0s; }
.ping-halo-2 { animation-delay: 1.1s; }
.ping-halo-3 { animation-delay: 2.2s; }
.ping-halo-4 { animation-delay: 0.55s; }
@keyframes nx-halo-fade {
  0%,100% { opacity: 0.2; }
  50%     { opacity: 0.65; }
}

/* ── 6. MAP: sonar rings — opacity + transform scale only ──────── */
/*
 * Previously animated r: and stroke-width: — both non-composited SVG props.
 * Now uses transform: scale() (GPU) + opacity (GPU).
 * transform-box: fill-box makes scale origin = element centre, not SVG root.
 */
.ping-ring {
  fill: none;
  stroke: rgba(61,139,255,0.55);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: nx-sonar-scale 2.8s ease-out infinite;
}
.ping-ring-red {
  stroke: rgba(255,107,107,0.55);
  animation-duration: 2.2s;
}
@keyframes nx-sonar-scale {
  0%   { transform: scale(1);    opacity: 1; }
  100% { transform: scale(8);    opacity: 0; }
}

/* ── 7. MAP: threat arcs — stroke-dashoffset only (compositable) ── */
/*
 * REMOVED stroke-dasharray from keyframe — it is a non-composited style
 * property and causes a style recalculation on every animation frame.
 * stroke-dashoffset IS animatable on the compositor.
 * stroke-dasharray set ONCE as a static base value.
 * Using !important to override the styles.css `stroke-dasharray: 4 4` rule.
 */
.threat-arc path {
  stroke-dasharray: 320 320 !important; /* static — never changes */
  stroke-dashoffset: 320 !important;    /* JS/CSS animates this only */
  animation: nx-arc-flow 5s ease-in-out infinite !important;
}
.threat-arc path:nth-child(1) { animation-delay: 0s !important; }
.threat-arc path:nth-child(2) { animation-delay: 1.6s !important; }
.threat-arc path:nth-child(3) { animation-delay: 3.2s !important; }
.threat-arc path:nth-child(4) { animation-delay: 2.2s !important; }
/* Only animate stroke-dashoffset + opacity — both compositor-eligible */
@keyframes nx-arc-flow {
  0%   { stroke-dashoffset: 320; opacity: 0; }
  8%   { opacity: 0.9; }
  55%  { stroke-dashoffset: 0;   opacity: 0.85; }
  85%  { opacity: 0.85; }
  100% { stroke-dashoffset: -320; opacity: 0; }
}

/* ── Ping dots — transform:scale with transform-box:fill-box ───── */
/*
 * Without transform-box:fill-box, SVG transform:scale() scales from
 * the SVG viewport origin (0,0), making dots appear to slide/fly.
 * fill-box makes each dot scale from its own centre.
 */
.ping-1,.ping-2,.ping-3,.ping-4 {
  transform-box: fill-box;
  transform-origin: center;
}
.ping-1 { animation: nx-ping-scale 2.8s 0.0s ease-in-out infinite !important; }
.ping-2 { animation: nx-ping-scale 2.8s 0.9s ease-in-out infinite !important; }
.ping-3 { animation: nx-ping-scale 2.4s 1.8s ease-in-out infinite !important; fill: #FF6B6B !important; }
.ping-4 { animation: nx-ping-scale 3.2s 1.4s ease-in-out infinite !important; }
@keyframes nx-ping-scale {
  0%,100% { opacity: 1;   transform: scale(1); }
  40%     { opacity: 0.7; transform: scale(0.75); }
  60%     { opacity: 1;   transform: scale(1.35); }
  80%     { opacity: 0.9; transform: scale(1); }
}

/* ── 8. STATS: stat label indicator dots ────────────────────── */
.stat-indicator {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
.stat-ind-red   { background: #FF6B6B; animation: nx-title-pulse 1.5s 0.2s ease-in-out infinite; }
.stat-ind-blue  { background: var(--blue-400); animation: nx-title-pulse 2s 0.6s ease-in-out infinite; }
.stat-ind-green { background: var(--success); animation: nx-title-pulse 2.5s 1s ease-in-out infinite; }

/* ── 9. STATS: bar fill — smooth entrance + shimmer ─────────── */
/*
 * width:0 is set by JS (two-frame rAF commit) not CSS.
 * CSS owns only the transition timing; JS sets initial 0 and target width.
 * Removing width:0 !important here so JS write is not overridden.
 */
.stat-fill-anim {
  transition: width 1.6s 0.3s var(--nx-expo) !important;
  position: relative;
  overflow: hidden;
  will-change: width;
}
.stat-fill-anim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: nx-bar-gleam 2s 2s ease-in-out 1 forwards;
}
@keyframes nx-bar-gleam {
  0%   { transform: translateX(-100%); opacity: 1; }
  100% { transform: translateX(250%);  opacity: 0; }
}

/* Stat value count-up flicker — value text scales micro on each tick */
.stat-value {
  transition: transform 0.12s var(--nx-spring), color 0.2s ease;
}
.stat-value.nx-tick {
  transform: scale(1.06);
  color: var(--blue-300);
}

/* ── 10. DASHBOARD SCAN LINE (single definition, no duplicate) ── */
/* REPLACES the earlier ::after definition at line ~351.
   Uses a clean one-shot translateY with opacity; no hard jump reset. */
.dashboard-card::after {
  /* Override both content/position props AND animation */
  content: '' !important;
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(61,139,255,0.25) 20%,
    rgba(107,168,255,0.75) 50%,
    rgba(61,139,255,0.25) 80%,
    transparent 100%) !important;
  border-radius: 1px !important;
  pointer-events: none !important;
  will-change: transform, opacity !important;
  /* Single clean animation — no hard jump at 50% */
  animation: nx-scan-clean 4s linear infinite !important;
}
/*
 * Clean scan: uses opacity to hide the reset instead of a position jump.
 * translateY goes 0 → cardHeight. Card is ~320px tall so 330px clears it.
 * Opacity fades at 90% so the reset at 100% is invisible.
 */
@keyframes nx-scan-clean {
  0%   { transform: translateY(0);     opacity: 0; }
  3%   { opacity: 1; }
  88%  { opacity: 0.8; }
  99%  { transform: translateY(330px); opacity: 0; }
  100% { transform: translateY(0);     opacity: 0; }
}

/* ── 11. DASHBOARD CARD: GPU-only float (NO box-shadow in keyframe) ── */
/* ── 11. DASHBOARD CARD float ────────────────────────────────── */
/* ── 11. DASHBOARD CARD: single clean float, no competition ──── */
/*
 * styles.css declares: animation: float-card 6s ease-in-out infinite
 * We must neutralise it completely before applying ours.
 * Setting animation-name:none first kills the styles.css animation
 * at the same specificity level, then we re-apply only what we want.
 *
 * NO delay — delay causes a fill-mode conflict where styles.css float
 * moves the card during the delay period, then our animation snaps it.
 * NO fill-mode — not needed when there is no delay.
 * translateY ONLY — compositor-only, zero paint cost.
 */
.dashboard-card {
  will-change: transform;
  animation-name: none;           /* kill styles.css float-card */
  animation-name: nx-dash-float;  /* immediately apply ours */
  animation-duration: 6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-fill-mode: none;
  animation-delay: 0s;
  box-shadow:
    0 32px 80px -20px rgba(0,0,0,0.65),
    0 0 0 1px rgba(61,139,255,0.10) !important;
  border-color: rgba(61,139,255,0.22) !important;
  transition: border-color 0.4s ease !important;
}
.dashboard-card:hover {
  border-color: rgba(61,139,255,0.40) !important;
}
@keyframes nx-dash-float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}

/* ── 12. FLOAT CARDS: upgraded with badge elements ───────────── */
/* NOTE: Float animations are defined in section 13 above.
 * This block ONLY handles hover/appearance — no animation declarations. */
.float-card {
  transition: box-shadow 0.35s ease, border-color 0.3s ease !important;
  gap: 12px;
}
.float-card:hover {
  border-color: rgba(61,139,255,0.55) !important;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.6),
              0 0 0 1px rgba(61,139,255,0.3),
              0 0 20px -5px rgba(61,139,255,0.15) !important;
}

/* Float card badge elements */
.fc-badge {
  font-size: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: auto;
}
.fc-badge-active {
  background: rgba(34,197,94,0.15);
  color: #4ADE80;
  border: 1px solid rgba(34,197,94,0.25);
}

.fc-uptime {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue-300);
  margin-left: auto;
  line-height: 1.2;
  text-align: right;
}
.fc-uptime span {
  display: block;
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}

/* fc-icon smooth pulse on hover */
.fc-icon {
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--nx-spring);
}
.float-card:hover .fc-icon {
  background: rgba(61,139,255,0.2);
  border-color: rgba(61,139,255,0.5);
  transform: scale(1.1) rotate(-4deg);
}

/* ================================================================
   TYPED TEXT LAYOUT STABILITY

   styles.css hero-inner is now align-items:start (edited at source).
   hero-right has align-self:center so it stays visually centred.

   hero-sub-wrap is a fixed-height container. The <p> inside is
   position:absolute — typing never causes grid layout reflow.
================================================================ */

.hero-sub-wrap {
  position: relative;
  height: 100px;        /* 3 lines × 17.5px × 1.6 line-height = 84px + buffer */
  margin-bottom: 40px;
  overflow: hidden;
}

.hero-sub {
  position: absolute;
  top: 0; left: 0; right: 0;
  margin-bottom: 0 !important;
}

/* hero-left top padding optically aligns it with hero-right */
.hero-left { padding-top: 48px; }

@media (max-width: 900px) {
  .hero-sub-wrap  { height: 80px; margin-bottom: 28px; }
  .hero-left      { padding-top: 0; }
}
