/* vdash-performance-v187 */
/* v187 performance pass: preserve visible rendering while avoiding offscreen work. */
@supports (content-visibility: auto) {
  #features,
  #vin-search,
  #workflow,
  #hardware,
  #pricing,
  #faq {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}

.vdash-motion-paused,
.vdash-motion-paused *,
.vdash-motion-paused::before,
.vdash-motion-paused::after,
.vdash-motion-paused *::before,
.vdash-motion-paused *::after {
  animation-play-state: paused !important;
}

/* vdash-performance-v194-liquid */
/* v194 — Footer keeps the v193 lightweight liquid renderer.
   Hero is restored to its pre-v193 rendering; only its orb count/size changes. */
.final-cta--sine {
  background:
    radial-gradient(circle at 79% 43%, rgba(54, 198, 255, 0.105) 0%, rgba(47, 125, 255, 0.052) 30%, transparent 60%),
    radial-gradient(circle at 20% 70%, rgba(98, 161, 255, 0.05) 0%, transparent 50%),
    linear-gradient(120deg, rgba(4, 12, 23, 0.96) 0%, rgba(6, 18, 33, 0.89) 46%, rgba(9, 27, 49, 0.80) 100%),
    #06111f !important;
}

.final-cta--sine > .liquid-poster-canvas {
  top: -7% !important;
  left: -7% !important;
  right: auto !important;
  bottom: auto !important;
  filter: none !important;
  opacity: 0.70 !important;
  transform: none !important;
  pointer-events: none;
}

.final-cta--sine > .liquid-glow-layer {
  display: none !important;
}

/* Hero: same pre-v193 liquid system, with three larger CSS orbs instead of five.
   v198: Hero orb motion runs at 50% of the previous speed. */
.hero--liquid .liquid-orb--one {
  width: clamp(350px, 48vw, 780px);
  animation: liquidDriftOne 28s ease-in-out infinite alternate;
}

.hero--liquid .liquid-orb--two {
  width: clamp(400px, 55vw, 900px);
  animation: liquidDriftTwo 36s ease-in-out -10s infinite alternate;
}

.hero--liquid .liquid-orb--three {
  width: clamp(330px, 44vw, 740px);
  animation: liquidDriftThree 32s ease-in-out -16s infinite alternate;
}

@media (max-width: 600px) {
  .final-cta--sine > .liquid-poster-canvas {
    opacity: 0.64 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .final-cta--sine > .liquid-poster-canvas {
    opacity: 0.74 !important;
  }
}


/* v199 — resilient motion/performance layer.
   Motion is progressive enhancement: content and controls remain usable without it. */
html.performance-lite .hero--liquid .liquid-poster-canvas {
  filter: blur(24px) saturate(128%) !important;
  opacity: 0.86 !important;
}

html.performance-lite .hero--liquid .liquid-glow-layer {
  filter: blur(36px) saturate(138%) !important;
}

html.performance-lite .hero--liquid .liquid-orb {
  will-change: auto;
}

html.performance-lite .card-beam-particles {
  opacity: 0.92;
}

html.performance-lite .final-cta--sine > .liquid-poster-canvas {
  opacity: 0.62 !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  /* Ambient backgrounds keep their designed appearance, but stop moving. */
  .hero--liquid .liquid-orb {
    animation: none !important;
    will-change: auto !important;
  }

  .hero--liquid .liquid-poster-canvas {
    opacity: 0.78 !important;
  }

  /* Continuous decorative flicker/pulse is unnecessary in reduced-motion mode. */
  .hero-download-glow,
  .hero-download-text,
  .hero-download-faulty,
  .card-beam-scanner,
  .card-beam-scanner::before,
  .card-beam-scanner::after,
  .card-beam-scanner span,
  .card-beam-scanner span::before,
  .card-beam-scanner span::after {
    animation: none !important;
  }

  /* The footer must look finished rather than frozen mid-animation. */
  #footerNeonLogo #softLayer,
  #footerNeonLogo #brightLayer,
  #footerNeonLogo #headLayer {
    display: none !important;
  }

  #footerNeonLogo #finalArtwork {
    opacity: 1 !important;
    animation: none !important;
    filter: none !important;
  }

  #footerNeonLogo {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }

  .final-cta-drive-scanner {
    display: none !important;
  }
}


/* v202 — VDASH language switch; language set and flag artwork mirror the VDD landing page. */
.vdash-language-menu {
  position: relative;
  z-index: 70;
  flex: 0 0 auto;
}

.vdash-language-toggle {
  width: auto;
  min-width: 108px;
  flex: 0 0 auto;
  padding-right: 11px;
  padding-left: 11px;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-interface);
  -webkit-tap-highlight-color: transparent;
}

/* Flag + language code use the exact animated text layer from DOWNLOAD VDASH. */
.vdash-language-toggle__content {
  position: relative;
  display: inline-flex;
  top: 2px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-right: 0;
  pointer-events: none;
}

.vdash-language-toggle__code {
  display: inline-block;
  min-width: 0;
  color: currentColor;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.035em;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;
}

/* An open language menu holds the same visual state as hovering DOWNLOAD. */
.vdash-language-menu.is-open .vdash-language-toggle {
  color: rgba(4, 17, 31, 0.94);
  background: var(--hero-glow-color);
  box-shadow:
    inset 0 0 0.2em rgba(255, 255, 255, 0.28),
    0 0 0.55em rgba(114, 228, 255, 0.58);
  animation: none;
}

.vdash-language-menu.is-open .vdash-language-toggle .hero-download-text {
  opacity: 1;
  text-shadow: none;
  animation: none;
}

.vdash-language-menu.is-open .vdash-language-toggle::after {
  opacity: 1;
}

.vdash-language-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: 210px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(141, 204, 228, 0.42);
  border-radius: 12px;
  background: rgba(4, 17, 31, 0.985);
  box-shadow: 0 20px 48px rgba(4, 17, 31, 0.34);
  backdrop-filter: blur(16px);
}

.vdash-language-menu.is-open .vdash-language-dropdown {
  display: grid;
  gap: 3px;
}

.vdash-language-dropdown button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c8d5e8;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
  transform: none !important;
}

.vdash-language-dropdown button:hover,
.vdash-language-dropdown button:focus-visible {
  background: rgba(63, 159, 200, 0.14);
  color: #ffffff;
  outline: none;
  transform: none !important;
}

.vdash-language-dropdown button.is-active {
  background: rgba(63, 159, 200, 0.20);
  color: #ffffff;
}

.vdash-language-dropdown button.is-active::after {
  margin-left: auto;
  color: #8dcce4;
  content: "✓";
  font-weight: 950;
}

.flag {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 18px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 4px;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 1px 3px rgba(0, 0, 0, 0.22);
}

.language-toggle__flag.flag {
  width: 26px;
  height: 17px;
  font-size: 0;
  line-height: 0;
}

.vdash-language-dropdown button .flag {
  width: 30px;
  height: 20px;
  font-size: 0;
  line-height: 0;
}

.flag.flag--gb,
.language-toggle__flag.flag.flag--gb,
.vdash-language-dropdown button .flag.flag--gb {
  background-image: url("https://www.untitledui.com/images/flags/rectangle/GB.svg") !important;
}

.flag.flag--cz,
.language-toggle__flag.flag.flag--cz,
.vdash-language-dropdown button .flag.flag--cz {
  background-image: url("https://www.untitledui.com/images/flags/rectangle/CZ.svg") !important;
}

.flag.flag--pl,
.language-toggle__flag.flag.flag--pl,
.vdash-language-dropdown button .flag.flag--pl {
  background-image: url("https://www.untitledui.com/images/flags/rectangle/PL.svg") !important;
}

.flag.flag--fi,
.language-toggle__flag.flag.flag--fi,
.vdash-language-dropdown button .flag.flag--fi {
  background-image: url("https://www.untitledui.com/images/flags/rectangle/FI.svg") !important;
}

.flag.flag--se,
.language-toggle__flag.flag.flag--se,
.vdash-language-dropdown button .flag.flag--se {
  background-image: url("https://www.untitledui.com/images/flags/rectangle/SE.svg") !important;
}

.flag.flag--de,
.language-toggle__flag.flag.flag--de,
.vdash-language-dropdown button .flag.flag--de {
  background-image: url("https://www.untitledui.com/images/flags/rectangle/DE.svg") !important;
}

/* The language button follows the same compact-header dimensions as DOWNLOAD VDASH. */
.site-header.is-compact .vdash-language-toggle {
  min-height: 36px;
  height: 36px;
}

/* Give translated navigation labels a little more room on common laptop widths. */
@media (min-width: 821px) and (max-width: 1320px) {
  .site-header .nav {
    gap: 14px;
  }

  .site-header .nav-links {
    gap: clamp(10px, 1.15vw, 16px);
    font-size: clamp(0.72rem, 0.78vw, 0.82rem);
  }

  .site-header .download-glow--nav {
    padding-inline: 0.72em;
    font-size: 0.66rem;
  }
}

@media (max-width: 820px) {
  .vdash-language-dropdown {
    right: 0;
  }
}

@media (max-width: 420px) {
  .nav-actions {
    gap: 8px;
  }

  .vdash-language-toggle {
    width: auto;
    min-width: 96px;
    padding-inline: 8px;
  }

  .vdash-language-toggle__content {
    gap: 6px;
  }

  .language-toggle__flag.flag {
    width: 22px;
    height: 15px;
  }

  .vdash-language-toggle__code {
    min-width: 0;
    font-size: 0.60rem;
    letter-spacing: 0.025em;
  }
}
