/* ═══════════════════════════════════════════════════════════════════════
   CtrlShift Website — Additional design elements
   Brand palette: navy #0F1C2E · blue #054886 · lime #A3BD18
   ═══════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────
   1. Magnet Lines canvas (differentiators dark section)
   ────────────────────────────────────────────────────────────────────── */
.magnet-lines-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ──────────────────────────────────────────────────────────────────────
   2. Ribbon Streams canvas (CTA banner)
   ────────────────────────────────────────────────────────────────────── */
.ribbons-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ──────────────────────────────────────────────────────────────────────
   3. Nav sliding underline indicator
   ────────────────────────────────────────────────────────────────────── */
.nav-links {
  position: relative;
}

#nav-indicator {
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  background: var(--cs-lime);
  border-radius: 2px;
  transition: left 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

/* ──────────────────────────────────────────────────────────────────────
   4. Gradual blur section transitions
   Soft top-edge shadow on sections that follow dark blocks
   ────────────────────────────────────────────────────────────────────── */
.section-blur-top {
  position: relative;
}
.section-blur-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to bottom,
    rgba(15,28,46,0.18) 0%,
    transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ──────────────────────────────────────────────────────────────────────
   5. Card spotlight cycle (differentiators)
   ────────────────────────────────────────────────────────────────────── */
.diff-dark .differentiator-card {
  transition: outline 0.35s ease, background 0.35s ease;
}
.diff-dark .differentiator-card.spotlight {
  outline: 1.5px solid rgba(163,189,24,0.55);
  background: rgba(163,189,24,0.04);
}

/* ──────────────────────────────────────────────────────────────────────
   6. Stats counter — scale pulse on entry
   ────────────────────────────────────────────────────────────────────── */
[data-count] {
  display: inline-block;
  transition: transform 0.15s ease;
}
[data-count].counting {
  transform: scale(1.06);
}

/* ──────────────────────────────────────────────────────────────────────
   Reduced motion — disable extras
   ────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .magnet-lines-canvas,
  .ribbons-canvas { display: none; }
  #nav-indicator { transition: none; }
  .diff-dark .differentiator-card { transition: none; }
  [data-count] { transition: none; }
}
