/* DataIQ Labs - animated hero background templates (used by the phone hero and the admin previews) */
.hbg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .75; }
.hbg svg { display: block; width: 100%; height: 100%; }
.hbg g, .hbg circle, .hbg rect, .hbg path { will-change: transform, opacity; }

/* grid flow */
.hbg-grid path { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1; }
.hbg-grid { animation: hbgGrid 9s linear infinite; }
.hbg-pt { fill: #FF0042; animation: hbgPulse 3.2s ease-in-out infinite; }
.hbg-pt--b { animation-delay: -1.6s; }
@keyframes hbgGrid { to { transform: translate(40px, 40px); } }
@keyframes hbgPulse { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }

/* orbit rings */
.hbg-ring circle:first-child { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1.3; stroke-dasharray: 3 7; }
.hbg-ring { transform-origin: 330px 50px; }
.hbg-ring--1 { animation: hbgSpin 26s linear infinite; }
.hbg-ring--2 { animation: hbgSpin 40s linear infinite reverse; }
.hbg-ring--3 { animation: hbgSpin 60s linear infinite; }
.hbg-sat { fill: #FF0042; }
@keyframes hbgSpin { to { transform: rotate(360deg); } }

/* wave lines */
.hbg-wave path { fill: none; stroke: rgba(255,255,255,.26); stroke-width: 1.5; }
.hbg-wave--2 path { stroke: rgba(255,0,66,.6); }
.hbg-wave--1 { animation: hbgWave 14s linear infinite; }
.hbg-wave--2 { animation: hbgWave 18s linear infinite reverse; }
.hbg-wave--3 { animation: hbgWave 22s linear infinite; }
.hbg-wave--4 { animation: hbgWave 28s linear infinite reverse; }
@keyframes hbgWave { to { transform: translateX(-400px); } }

/* rising bars */
.hbg-bar { fill: rgba(255,255,255,.2); transform-origin: 0 220px; animation: hbgBar 4s ease-in-out infinite; }
.hbg-bar:nth-child(4n+1) { fill: rgba(255,0,66,.5); }
@keyframes hbgBar { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }

/* pulse dots */
.hbg-dotm { fill: rgba(255,255,255,.8); opacity: .15; animation: hbgDot 3.6s ease-in-out infinite; }
@keyframes hbgDot { 0%, 100% { opacity: .1; } 40% { opacity: .65; } }

/* data nodes */
.hbg-line { fill: none; stroke: rgba(255,255,255,.34); stroke-width: 1.2; stroke-dasharray: 4 6; animation: hbgFlow 5s linear infinite; }
.hbg-node { fill: rgba(255,255,255,.9); animation: hbgPulse 3.4s ease-in-out infinite; }
.hbg-node--red { fill: #FF0042; }
@keyframes hbgFlow { to { stroke-dashoffset: -40; } }

/* floating shapes */
.hbg-fl { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; opacity: 0; animation: hbgFloat var(--d, 9s) linear infinite; }
.hbg-fl--red { stroke: rgba(255,0,66,.75); }
.hbg-fl--fill { fill: rgba(255,0,66,.35); stroke: none; }
@keyframes hbgFloat { 0% { transform: translateY(0) rotate(0); opacity: 0; } 14% { opacity: .9; } 86% { opacity: .9; } 100% { transform: translateY(-270px) rotate(200deg); opacity: 0; } }

/* signal pulse */
.hbg-rip { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1.4; transform-origin: 320px 60px; animation: hbgRip 4.8s ease-out infinite; }
.hbg-rip--l { transform-origin: 40px 190px; stroke: rgba(255,0,66,.6); animation-duration: 4s; }
.hbg-core { fill: #FF0042; transform-origin: 320px 60px; animation: hbgCore 2.4s ease-in-out infinite; }
.hbg-core--s { transform-origin: 40px 190px; }
@keyframes hbgRip { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(9); opacity: 0; } }
@keyframes hbgCore { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }

/* data packets */
.hbg-packet { fill: #FF0042; }

@media (prefers-reduced-motion: reduce) {
  .hbg *, .hbg { animation: none !important; }
  .hbg-packet { display: none; }
  .hbg-fl { opacity: .5; }
}

/* Default icon on article cards without an image */
.blog-card__icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.94); pointer-events: none; }
.blog-card__icon::before { content: ""; position: absolute; width: 96px; height: 96px; border-radius: 50%; border: 1.5px solid rgba(255,0,66,.55); animation: bcRing 3.4s ease-out infinite; }
.blog-card__icon svg { position: relative; animation: bcFloat 4s ease-in-out infinite; }
@keyframes bcFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes bcRing { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 767px) {
  .blog-card__icon svg { width: 36px; height: 36px; }
  .blog-card__icon::before { width: 70px; height: 70px; }
}
@media (prefers-reduced-motion: reduce) { .blog-card__icon::before, .blog-card__icon svg { animation: none; } }

/* uploaded background video (desktop slider and phone hero) */
.hs-slide__bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
video.app-hero__img { background: #0F1821; }
@media (prefers-reduced-motion: reduce) { .hs-slide__bg video, video.app-hero__img { display: none; } }
