/* ==========================================================================
   HERO-FX: experimental animated layer for the homepage banner.
   To remove: delete this file's <link> in index.html and the two
   HERO-FX:START ... HERO-FX:END blocks in the hero section.
   ========================================================================== */
.hfx-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hfx-grid { opacity: 0.16; animation: hfx-breathe 7s ease-in-out infinite; }
.hfx-orb { animation: hfx-breathe 9s ease-in-out infinite; transform-origin: 1120px 330px; }
@keyframes hfx-breathe { 50% { opacity: 0.5; transform: scale(1.06); } }

.hfx-route {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.1;
  stroke-dasharray: 3 9;
  opacity: 0.4;
  animation: hfx-dash 2s linear infinite;
}
.hfx-route--faint { opacity: 0.22; }
@keyframes hfx-dash { to { stroke-dashoffset: -24; } }
.hfx-plane, .hfx-pkt { filter: drop-shadow(0 0 4px rgba(45, 212, 191, 0.7)); }

.hfx-port text { fill: rgba(255, 255, 255, 0.55); font: 10px "JetBrains Mono", monospace; letter-spacing: 0.12em; }
.hfx-core { fill: var(--color-accent); }
.hfx-ping {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: hfx-ping 2.6s ease-out infinite;
}
.hfx-ping--2 { animation-delay: 1.3s; }
@keyframes hfx-ping {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(4.5); opacity: 0; }
}

/* Live shipment card */
.hfx-card {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 6vw, 110px);
  top: clamp(40px, 9vh, 96px);
  width: 290px;
  padding: 16px 18px;
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 10px;
  background: rgba(14, 31, 48, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  animation: hfx-float 6s ease-in-out infinite;
}
@keyframes hfx-float { 50% { transform: translateY(-8px); } }
.hfx-card__top, .hfx-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: 0.1em; }
.hfx-card__id { color: var(--white-60); }
.hfx-live { display: inline-flex; align-items: center; gap: 8px; color: var(--color-accent); }
.hfx-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); animation: hfx-blink 1.4s ease-in-out infinite; }
@keyframes hfx-blink { 50% { opacity: 0.25; box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15); } }
.hfx-card__lane { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; font-size: 13px; color: var(--color-white); }
.hfx-card__track { position: relative; flex: 1; height: 2px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; }
.hfx-card__fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--color-accent); border-radius: 2px; animation: hfx-progress 7s ease-in-out infinite; }
.hfx-card__ship {
  position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 10px rgba(45, 212, 191, 0.9);
  animation: hfx-ship 7s ease-in-out infinite;
}
@keyframes hfx-progress { 0% { width: 0; } 85%, 100% { width: 100%; } }
@keyframes hfx-ship { 0% { left: 0; } 85%, 100% { left: 100%; } }
.hfx-card__meta { color: var(--white-50); }
.hfx-card__status { color: var(--color-accent); }

@media (max-width: 1100px) { .hfx-card { display: none; } }
@media (max-width: 899px) { .hfx-port text { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hfx-layer *, .hfx-card, .hfx-card * { animation: none !important; }
  .hfx-layer animateMotion { display: none; }
  .hfx-card__fill { width: 60%; }
  .hfx-card__ship { left: 60%; }
}
