/*
  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-fast: 140ms;
  --vm-motion-base: 220ms;
  --vm-motion-slow: 520ms;
  --vm-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vm-motion-ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
  --vm-kit-focus: rgba(47, 240, 180, 0.92);
}

.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 var(--vm-motion-base) var(--vm-motion-ease),
    box-shadow var(--vm-motion-base) var(--vm-motion-ease),
    border-color var(--vm-motion-base) var(--vm-motion-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 var(--vm-motion-base) var(--vm-motion-ease),
    box-shadow var(--vm-motion-base) var(--vm-motion-ease),
    border-color var(--vm-motion-base) var(--vm-motion-ease),
    filter var(--vm-motion-base) var(--vm-motion-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);
}

.vm-interactive {
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color var(--vm-motion-fast) var(--vm-motion-ease),
    box-shadow var(--vm-motion-fast) var(--vm-motion-ease),
    filter var(--vm-motion-fast) var(--vm-motion-ease),
    opacity var(--vm-motion-fast) var(--vm-motion-ease);
}

.vm-interactive:focus-visible {
  outline: 2px solid var(--vm-kit-focus);
  outline-offset: 3px;
}

.vm-interactive:active {
  filter: brightness(0.96) saturate(1.04);
}

.vm-interactive[disabled],
.vm-interactive[aria-disabled="true"] {
  cursor: not-allowed;
  filter: none;
  opacity: 0.58;
}

.vm-spotlight {
  --vm-pointer-x: 50%;
  --vm-pointer-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.vm-spotlight__layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--vm-pointer-x) var(--vm-pointer-y),
    rgba(47, 240, 180, 0.17),
    rgba(0, 209, 255, 0.07) 38%,
    transparent 72%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--vm-motion-base) var(--vm-motion-ease);
}

.vm-spotlight.is-vm-pointer-active > .vm-spotlight__layer {
  opacity: 1;
}

.vm-media-reveal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.vm-media-reveal img,
.vm-media-reveal video {
  opacity: 0.68;
  filter: blur(6px) saturate(0.84);
  transform: scale(1.012);
  transition:
    opacity var(--vm-motion-slow) var(--vm-motion-ease),
    filter var(--vm-motion-slow) var(--vm-motion-ease),
    transform var(--vm-motion-slow) var(--vm-motion-ease);
}

.vm-media-reveal.is-media-ready img,
.vm-media-reveal.is-media-ready video {
  opacity: 1;
  filter: none;
  transform: none;
}

.vm-media-reveal__veil {
  position: absolute;
  z-index: 5;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 12%, rgba(79, 141, 255, 0.12) 46%, transparent 72%),
    rgba(7, 16, 26, 0.16);
  opacity: 1;
  pointer-events: none;
  transition:
    opacity var(--vm-motion-slow) var(--vm-motion-ease),
    visibility var(--vm-motion-slow) step-end;
}

.vm-media-reveal.is-media-ready > .vm-media-reveal__veil {
  visibility: hidden;
  opacity: 0;
}

.vm-step-rail [data-vm-step] {
  transition:
    border-color var(--vm-motion-base) var(--vm-motion-ease),
    color var(--vm-motion-base) var(--vm-motion-ease),
    filter var(--vm-motion-base) var(--vm-motion-ease),
    opacity var(--vm-motion-base) var(--vm-motion-ease);
}

.vm-step-rail.is-vm-step-running [data-vm-step]:not(.is-vm-step-active) {
  opacity: 0.7;
}

.vm-step-rail [data-vm-step].is-vm-step-active {
  border-color: rgba(47, 240, 180, 0.58) !important;
  color: inherit;
  filter: brightness(1.12) saturate(1.08);
  opacity: 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;
  }

  .vm-spotlight__layer {
    display: 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;
  }

  .vm-media-reveal img,
  .vm-media-reveal video {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .vm-media-reveal__veil,
  .vm-spotlight__layer {
    display: none !important;
  }

  .vm-step-rail [data-vm-step] {
    filter: none !important;
    opacity: 1 !important;
  }
}
