/**
 * Token-driven vapor / smoke layers (Phase: vape FX).
 * Colors come from --ds-color-accent and --ds-color-bg only.
 */

.hero-fx-host,
.section-fx-host {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blk-hero {
  position: relative;
  isolation: isolate;
}

.blk-hero__inner,
.blk-hero__stats,
.blk-hero__grid {
  position: relative;
  z-index: 2;
}

.blk-section {
  position: relative;
  isolation: isolate;
}

.blk-section > .blk-container {
  position: relative;
  z-index: 2;
}

.fx-vapor-layer {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(48px);
  opacity: 0.38;
  will-change: transform, opacity;
}

.fx-vapor-layer--a {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  left: -12%;
  bottom: -20%;
  background: radial-gradient(
    circle at 40% 60%,
    color-mix(in srgb, var(--ds-color-accent, #00e5ff) 42%, transparent) 0%,
    transparent 68%
  );
  animation: fx-vapor-drift-a 22s ease-in-out infinite;
}

.fx-vapor-layer--b {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  right: -8%;
  top: 10%;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--ds-color-accent, #00e5ff) 28%, transparent) 0%,
    color-mix(in srgb, var(--ds-color-bg, #121212) 8%, transparent) 45%,
    transparent 72%
  );
  animation: fx-vapor-drift-b 28s ease-in-out infinite;
}

.fx-vapor-layer--c {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  left: 35%;
  top: 55%;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--ds-color-text-muted, #a3a3a3) 18%, transparent) 0%,
    transparent 70%
  );
  animation: fx-vapor-drift-c 18s ease-in-out infinite;
  opacity: 0.22;
}

.section-fx-host .fx-vapor-layer {
  filter: blur(56px);
  opacity: 0.28;
}

.section-fx-host .fx-vapor-layer--c {
  display: none;
}

.fx-vapor-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

@keyframes fx-vapor-drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(8%, -6%) scale(1.08);
  }
}

@keyframes fx-vapor-drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-6%, 8%) scale(1.05);
  }
}

@keyframes fx-vapor-drift-c {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.18;
  }
  50% {
    transform: translate(4%, -4%);
    opacity: 0.28;
  }
}

@media (max-width: 767px) {
  .fx-vapor-layer {
    filter: blur(36px);
    opacity: 0.3;
  }

  .fx-vapor-canvas {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-vapor-layer {
    animation: none !important;
  }

  .fx-vapor-canvas {
    display: none !important;
  }
}
