.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.16) 48%,
    transparent 76%
  );
  transform: translateX(-125%);
  transition: transform 1.1s var(--ease);
  z-index: 4;
}
.media-frame:hover::after {
  transform: translateX(125%);
}
.media-frame video,
.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-controls-note {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 5;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 12, 25, 0.72);
  color: #d8e2fa;
  font: 700 0.58rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.hero-media.media-frame {
  min-height: 560px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32);
}
.hero-media .media-fallback {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(
      circle at 70% 20%,
      rgba(120, 167, 255, 0.18),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02)
    );
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
.media-fallback[hidden] {
  display: none;
}
.media-fallback b {
  display: block;
  margin-top: 8px;
  font: 700 1rem var(--display);
}
.media-fallback span {
  color: #9db9ff;
  font: 700 0.62rem var(--mono);
  letter-spacing: 0.12em;
}
.product-card .media-frame {
  height: 300px;
  margin-top: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}
.product-card-large .media-frame {
  height: 355px;
}
.product-page-media.media-frame {
  min-height: 520px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f131a;
  box-shadow: var(--shadow-lg);
}
.product-page-media .media-fallback {
  min-height: 520px;
}
.video-callout {
  margin-top: 45px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}
.video-callout h3 {
  margin: 0;
  font: 700 1.3rem var(--display);
}
.video-callout p {
  margin-top: 8px;
  color: #99a7bf;
  font-size: 0.85rem;
}
.video-placeholder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.video-placeholder {
  min-height: 210px;
  border: 1px dashed rgba(120, 167, 255, 0.28);
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: linear-gradient(
    145deg,
    rgba(120, 167, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
}
.video-placeholder span {
  color: #9db9ff;
  font: 700 0.62rem var(--mono);
  letter-spacing: 0.12em;
}
.video-placeholder b {
  display: block;
  margin-top: 8px;
  color: #fff;
  font: 700 1rem var(--display);
}
.company-photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-style: solid;
  border-color: rgba(120, 167, 255, 0.28);
  background: #101a33;
}
.company-photo-gallery .company-photo {
  aspect-ratio: 9 / 16;
  min-height: 0;
}
.company-photo-gallery .login-photo {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.company-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 42%;
}
.company-photo-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 48px 20px 18px;
  background: linear-gradient(transparent, rgba(7, 12, 25, 0.88));
  color: #fff;
}
.company-photo-caption span {
  color: #cbd9ff;
}
.company-photo-caption b {
  margin-top: 5px;
}
@media (max-width: 700px) {
  .video-placeholder-grid {
    grid-template-columns: 1fr;
  }
  .company-photo-gallery .login-photo {
    grid-column: auto;
  }
}

/* Premium interaction layer */
:root {
  --focus-ring:
    0 0 0 4px rgba(91, 135, 239, 0.2), 0 0 0 1px rgba(91, 135, 239, 0.72);
  --surface-glass: rgba(15, 18, 24, 0.82);
}

::selection {
  color: #fff;
  background: var(--blue-700);
}

html {
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  overflow-x: hidden;
}

.site-header {
  transition:
    height 0.55s var(--ease),
    background-color 0.55s ease,
    box-shadow 0.55s ease,
    border-color 0.55s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(90, 135, 239, 0.42),
    transparent
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}

.site-header.scrolled::after {
  opacity: 1;
}

.brand-logo {
  transition:
    transform 0.55s var(--ease),
    filter 0.55s ease;
}
.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.015);
  filter: drop-shadow(0 10px 22px rgba(61, 99, 224, 0.18));
}

.header-cta,
.button-primary,
.button-dark,
.button-ghost,
.contact-links a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
}

.header-cta::before,
.button-primary::before,
.button-dark::before,
.button-ghost::before,
.contact-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.2) 48%,
    transparent 76%
  );
  transform: translateX(-125%);
  transition: transform 0.8s var(--ease);
}

.header-cta:hover::before,
.button:hover::before,
.contact-links a:hover::before {
  transform: translateX(125%);
}

.header-cta:hover,
.button-primary:hover,
.button-dark:hover,
.button-ghost:hover,
.contact-links a:hover {
  transform: translateY(-2px);
}

.header-cta:active,
.button:active,
.contact-links a:active {
  transform: translateY(0) scale(0.985);
}

.button:focus-visible,
.header-cta:focus-visible,
.contact-links a:focus-visible,
.main-nav a:focus-visible,
.menu-toggle:focus-visible,
.brand:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.menu-toggle {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s var(--ease);
}
.menu-toggle:hover {
  border-color: rgba(61, 99, 224, 0.42);
  box-shadow: 0 10px 26px rgba(49, 92, 206, 0.14);
  transform: translateY(-2px);
}
.menu-toggle[aria-expanded="true"] {
  border-color: rgba(61, 99, 224, 0.56);
  background: #161a21;
}

.main-nav a {
  transition:
    color 0.3s ease,
    transform 0.3s var(--ease);
}
.main-nav a:hover {
  transform: translateY(-1px);
}

.hero,
.subhero,
.error-page {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--hero-background, none);
  background-size:
    72px 72px,
    72px 72px,
    auto;
}
.hero {
  --hero-background: radial-gradient(
    circle at 78% 22%,
    rgba(120, 167, 255, 0.14),
    transparent 28%
  );
}
.subhero {
  --hero-background: radial-gradient(
    circle at 78% 22%,
    rgba(120, 167, 255, 0.12),
    transparent 28%
  );
}
.error-page {
  --hero-background: radial-gradient(
    circle at 78% 22%,
    rgba(120, 167, 255, 0.1),
    transparent 28%
  );
}

.hero-copy > *,
.hero-media,
.section-heading,
.section-intro,
.contact-form,
.security-stack {
  will-change: transform, opacity;
}

.media-frame {
  box-shadow: 0 18px 48px rgba(8, 18, 48, 0.12);
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s var(--ease),
    transform 0.7s var(--ease);
}
.media-frame:hover {
  border-color: rgba(120, 167, 255, 0.42);
  box-shadow: 0 28px 72px rgba(8, 18, 48, 0.2);
}
.media-frame video,
.media-frame img {
  transition:
    transform 1.1s var(--ease),
    filter 0.7s ease;
}
.media-frame:hover video,
.media-frame:hover img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.02);
}

.product-card,
.feature-card,
.process-card,
.security-layer,
.video-placeholder {
  transition:
    transform 0.55s var(--ease),
    border-color 0.45s ease,
    box-shadow 0.55s var(--ease),
    background-color 0.45s ease;
}

.feature-card:hover,
.process-card:hover,
.security-layer:hover,
.video-placeholder:hover {
  transform: translateY(-5px);
}

.product-card:focus-visible {
  outline: none;
  box-shadow:
    var(--focus-ring),
    0 28px 64px rgba(0, 0, 0, 0.22);
}
.product-card:hover .product-arrow {
  background: rgba(120, 167, 255, 0.18);
  transform: translateX(2px);
}
.product-arrow {
  transition:
    background-color 0.35s ease,
    transform 0.35s var(--ease);
}

.contact-form input,
.contact-form textarea {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}
.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: #15181d;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.18),
    0 10px 26px rgba(18, 38, 95, 0.14);
}

.contact-form button[aria-busy="true"] {
  cursor: wait;
}
.contact-form button[aria-busy="true"] span {
  display: none;
}
.contact-form button[aria-busy="true"]::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spin 0.7s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-feedback {
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}
.form-feedback:not(:empty) {
  animation: feedback-in 0.45s var(--ease) both;
}
@keyframes feedback-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .main-nav.mobile-open {
    animation: menu-in 0.35s var(--ease) both;
    transform-origin: top center;
  }
  .main-nav.mobile-open a {
    transition:
      color 0.25s ease,
      background-color 0.25s ease,
      padding-left 0.25s var(--ease);
  }
  .main-nav.mobile-open a:hover {
    padding-left: 16px;
    color: var(--blue-600);
    background: #161a21;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .hero-media,
  .section-heading,
  .section-intro,
  .contact-form,
  .security-stack {
    will-change: auto;
  }
  .media-frame:hover video,
  .media-frame:hover img {
    transform: none;
    filter: none;
  }
  .header-cta:hover,
  .button-primary:hover,
  .button-dark:hover,
  .button-ghost:hover,
  .contact-links a:hover,
  .feature-card:hover,
  .process-card:hover,
  .security-layer:hover {
    transform: none;
  }
  .contact-form button[aria-busy="true"]::after,
  .form-feedback:not(:empty),
  .main-nav.mobile-open {
    animation: none;
  }
}

/* Video showcase */
.hero-media video,
.product-card .media-frame video,
.product-page-media video {
  object-fit: contain;
  background: #070c19;
}

.demo-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.demo-video-card {
  overflow: hidden;
  border: 1px solid rgba(61, 99, 224, 0.18);
  border-radius: 22px;
  background: #14171c;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.section-dark .demo-video-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.demo-video-frame,
.overview-video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #070c19;
}

.demo-video-frame video,
.overview-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070c19;
}

.demo-video-copy {
  padding: 20px;
}

.demo-video-copy span {
  display: block;
  color: #7da2ff;
  font: 700 0.62rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-dark .demo-video-copy span {
  color: #9db9ff;
}

.demo-video-copy b {
  display: block;
  margin-top: 7px;
  color: #f5f7fb;
  font: 700 1rem var(--display);
}

.section-dark .demo-video-copy b {
  color: #fff;
}

.demo-video-copy p {
  margin: 7px 0 0;
  color: #9aa4b5;
  font-size: 0.82rem;
  line-height: 1.65;
}

.section-dark .demo-video-copy p {
  color: #99a7bf;
}

.demo-overview-section .section-heading {
  max-width: 760px;
  margin-inline: auto;
}

.overview-video-frame {
  max-width: 1100px;
  margin: 34px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

@media (max-width: 700px) {
  .demo-video-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .demo-video-card,
  .overview-video-frame {
    border-radius: 18px;
  }
}

/* WM permanent dark light-surfaces */
html,
body {
  background: #0b0d10;
}

.section-light {
  background: linear-gradient(180deg, #0d0f12 0%, #111318 100%);
  color: #f5f7fb;
}

.section-light .section-heading h2,
.section-light .section-intro h2,
.section-light h2,
.section-light h3 {
  color: #f5f7fb;
}

.section-light .section-heading p,
.section-light .section-intro p,
.section-light p,
.section-light small {
  color: #9aa4b5;
}

.section-light .eyebrow.dark,
.demo-video-copy span {
  color: #7da2ff;
}

.site-header {
  background: rgba(13, 15, 18, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled {
  background: rgba(13, 15, 18, 0.97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.main-nav a {
  color: #b5bdca;
}

.main-nav a:hover,
.main-nav a.active {
  color: #7da2ff;
}

.menu-toggle,
.menu-toggle[aria-expanded="true"] {
  background: #15181d;
  border-color: #2a2f38;
}

.menu-toggle span {
  background: #f5f7fb;
}

.brand-strip-section {
  background: #0e1014;
  border-block-color: #262a31;
}

.strip-item {
  color: #9aa4b5;
  border-left-color: #2a2f38;
}

.feature-card,
.pain-card,
.quote-panel,
.security-layer,
.demo-video-card {
  background: #14171c;
  border-color: #2b3039;
  color: #f5f7fb;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.feature-card > b,
.pain-card > b,
.quote-panel > b,
.security-layer > b,
.demo-video-copy b {
  color: #f5f7fb;
}

.feature-card p,
.pain-card p,
.quote-panel p,
.security-layer small,
.demo-video-copy p {
  color: #9aa4b5;
}

.showcase-item,
.page-case-item,
.product-page-media.media-frame {
  background: #11151c;
  border-color: #2a303a;
}

.contact-form input,
.contact-form textarea {
  background: #111318;
  color: #f5f7fb;
  border-color: rgba(255, 255, 255, 0.24);
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form input:focus,
.contact-form textarea:focus {
  background: #15181d;
  border-color: rgba(255, 255, 255, 0.55);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #737d8c;
}

.site-footer {
  background: #0b0d10;
  border-top-color: #262a31;
}

.footer-main p,
.footer-nav a {
  color: #9aa4b5;
}

.footer-bottom {
  border-top-color: #262a31;
  color: #7f8999;
}

.video-placeholder {
  background: linear-gradient(145deg, #11151c, #0d1016);
  border-color: rgba(120, 167, 255, 0.28);
}

.video-placeholder b {
  color: #f5f7fb;
}

@media (max-width: 860px) {
  .main-nav.mobile-open {
    background: rgba(13, 15, 18, 0.98);
    border-color: #2b3039;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
  }

  .main-nav.mobile-open a {
    color: #c0c7d2;
    border-bottom-color: #272c34;
  }

  .main-nav.mobile-open a:hover {
    background: #161a21;
    color: #7da2ff;
  }
}
