/*
  VoiceMind Motion Kit
  Lightweight visual primitives for public landing pages.
  No dependencies, CSS-first, safe with JS disabled.
*/

:root {
  --vm-kit-mint: #2ff0b4;
  --vm-kit-blue: #4f8dff;
  --vm-kit-cyan: #00d1ff;
  --vm-kit-bg: #07101a;
  --vm-kit-line: rgba(116, 179, 255, 0.2);
  --vm-kit-mint-soft: rgba(47, 240, 180, 0.14);
  --vm-kit-blue-soft: rgba(79, 141, 255, 0.15);
}

.vm-motion-stage {
  position: relative;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 90px rgba(0, 0, 0, 0.22),
    0 0 70px rgba(47, 240, 180, 0.06);
}

.vm-product-frame {
  position: relative;
  transform: translate3d(0, 0, 0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 28px 90px rgba(0, 0, 0, 0.24),
    0 0 46px rgba(79, 141, 255, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  animation: vmFrameBreath 9s ease-in-out infinite;
}

.vm-product-frame:hover,
.vm-product-frame:focus-within {
  transform: translate3d(0, -3px, 0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 34px 110px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(47, 240, 180, 0.12);
}

.vm-action-dock {
  border-color: rgba(47, 240, 180, 0.22) !important;
  background:
    linear-gradient(135deg, rgba(47, 240, 180, 0.1), rgba(79, 141, 255, 0.06)),
    rgba(7, 16, 26, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.vm-flow-line {
  position: relative;
  overflow: hidden;
}

.vm-flow-line::after {
  content: "";
  position: absolute;
  inset: auto 10% 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--vm-kit-mint), var(--vm-kit-cyan), transparent);
  opacity: 0.48;
  transform: translateX(-36%);
  animation: vmLinePulse 4.8s ease-in-out infinite;
}

.vm-stack-card {
  transform: translate3d(0, 0, 0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}

.vm-stack-card:hover,
.vm-stack-card:focus-within {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(47, 240, 180, 0.3) !important;
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.24),
    0 0 34px rgba(47, 240, 180, 0.08);
  filter: brightness(1.03);
}

.vm-text-reveal {
  animation: vmTextReveal 700ms ease both;
}

.vm-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 520ms ease,
    transform 520ms ease,
    filter 520ms ease;
  filter: saturate(0.92);
}

.vm-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: saturate(1);
}

@keyframes vmFrameBreath {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 28px 90px rgba(0, 0, 0, 0.24),
      0 0 46px rgba(79, 141, 255, 0.08);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      0 32px 98px rgba(0, 0, 0, 0.28),
      0 0 56px rgba(47, 240, 180, 0.11);
  }
}

@keyframes vmLinePulse {
  0%,
  100% {
    opacity: 0.22;
    transform: translateX(-38%);
  }
  50% {
    opacity: 0.62;
    transform: translateX(38%);
  }
}

@keyframes vmTextReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@media (max-width: 760px) {
  .vm-product-frame:hover,
  .vm-product-frame:focus-within,
  .vm-stack-card:hover,
  .vm-stack-card:focus-within {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .vm-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
