/* QVATRICS: a continuous violet canvas from navigation into page content. */
:root {
  --header-height: 122px;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 85% 620px at 14% 0, #68409226, transparent 78%),
    radial-gradient(ellipse 70% 560px at 100% 0, #5530851c, transparent 82%),
    linear-gradient(180deg, #21172f 0, #1b1328 200px, #110e1c 540px, var(--bg) 850px);
  background-repeat: no-repeat;
}

.site-header {
  background: transparent;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: background .2s, box-shadow .2s, border-color .2s;
}

.site-header.is-scrolled,
.site-header:has(nav.open),
.site-header:has(.company-dropdown[open]) {
  background: #151020f5;
  border-bottom-color: #a783ff1f;
  box-shadow: 0 8px 28px #07040e26;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1440px, calc(100% - 64px));
  min-height: var(--header-height);
  gap: 30px;
}

/* v1.9.1: render the supplied full-colour lockup without the old sprite or filters.
   The original 2048 x 682 PNG is unchanged. This viewport omits ONLY its transparent
   outside margins; all non-transparent artwork lies inside x=535..1653, y=10..681. */
.brand {
  --brand-width: 176px;
  position: relative;
  display: block;
  flex: 0 0 var(--brand-width);
  width: var(--brand-width);
  height: calc(var(--brand-width) * 672 / 1119);
  overflow: hidden;
  color: var(--text);
}
.brand:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; border-radius: 4px; }
.brand img.brand-logo {
  position: absolute;
  display: block;
  width: 183.020554%;
  max-width: none;
  height: auto;
  left: -47.810545%;
  top: -1.488095%;
  filter: none;
  mix-blend-mode: normal;
}

.site-header nav {
  gap: 22px;
  margin-left: auto;
}

.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: #ded5ed;
  transition: color .15s;
}

.site-header nav a:hover,
.site-header nav a[aria-current] {
  color: #c7a8ff;
}

.site-header nav a[aria-current]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: #b38bff;
}

.site-header nav .nav-mobile-demo { display: none; }

/* A native disclosure keeps Company usable with keyboard, touch or no script. */
.company-dropdown {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}

.company-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  color: #ded5ed;
  font-size: 13px;
  font-weight: 500;
  list-style: none;
  white-space: nowrap;
  outline-offset: 5px;
}
.company-trigger::-webkit-details-marker { display: none; }
.company-trigger::marker { content: ''; }
.company-trigger:focus-visible { outline: 2px solid var(--mint); border-radius: 4px; }
.company-trigger:hover,
.company-dropdown.is-current > .company-trigger,
.company-dropdown[open] > .company-trigger { color: #c7a8ff; }
.company-dropdown.is-current > .company-trigger::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: #b38bff;
}
.company-chevron { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.company-dropdown[open] .company-chevron { transform: translateY(1px) rotate(225deg); }
.company-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: -14px;
  z-index: 2;
  min-width: 200px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #21162f;
  border: 1px solid #695180;
  border-radius: 12px;
  box-shadow: 0 16px 32px #07040e70;
}
.site-header .company-menu a { display: flex; padding: 10px 14px; border-radius: 7px; }
.site-header .company-menu a:hover,
.site-header .company-menu a[aria-current] { background: #a783ff1c; color: #e2d1ff; }
.site-header .company-menu a[aria-current]::after { display: none; }

.nav-demo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  gap: 13px;
  min-height: 44px;
  border: 1px solid #c8aeff70;
  border-radius: 999px;
  padding: 11px 20px;
  background: #b99aff;
  color: #1a102b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  transition: background .15s, box-shadow .15s;
}

.nav-demo:hover {
  background: #cfbaff;
  color: #1a102b;
  box-shadow: 0 3px 20px #a783ff24;
}

.nav-demo span {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.menu-toggle {
  border: 1px solid #9b7cc354;
  background: #a783ff0b;
  color: #f1e9ff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 0;
  line-height: 1;
}

.hero {
  padding-block: 56px 86px;
}

@media (max-width: 1350px) {
  .header-inner { gap: 22px; }
  .site-header nav { gap: 16px; }
  .nav-demo { padding-inline: 16px; }
}

@media (max-width: 1120px) {
  :root { --header-height: 108px; }
  .brand { --brand-width: 154px; }
  .header-inner { width: calc(100% - 40px); gap: 16px; }
  .nav-demo { margin-left: auto; }
  .menu-toggle { display: block; margin-left: 0; flex-shrink: 0; }
  .site-header nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    margin: 0;
    padding: 16px 20px 24px;
    background: #171020;
    border-bottom: 1px solid #a783ff29;
    box-shadow: 0 18px 30px #07040e50;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
  }
  .site-header nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .site-header nav a { padding: 10px 13px; border-radius: 8px; font-size: 14px; }
  .site-header nav a:hover,
  .site-header nav a[aria-current] { background: #a783ff12; }
  .site-header nav a[aria-current]::after { display: none; }
  .company-dropdown { grid-column: 1 / -1; }
  .company-trigger { padding: 10px 13px; font-size: 14px; justify-content: space-between; border-radius: 8px; }
  .company-dropdown.is-current > .company-trigger { background: #a783ff12; }
  .company-dropdown.is-current > .company-trigger::after { display: none; }
  .company-menu { position: static; min-width: 0; margin: 4px 0 8px 13px; padding: 4px; box-shadow: none; }
  .site-header .company-menu a { padding: 10px 14px; }
}

@media (max-width: 850px) {
  .hero { padding-top: 40px; }
}

@media (max-width: 560px) {
  :root { --header-height: 94px; }
  .header-inner { width: calc(100% - 36px); gap: 12px; }
  .brand { --brand-width: 130px; }
  .nav-demo { display: none; }
  .menu-toggle { margin-left: auto; }
  .site-header nav.open { grid-template-columns: 1fr; gap: 3px; }
  .site-header nav .nav-mobile-demo {
    display: inline-flex;
    justify-content: space-between;
    color: #1a102b;
    background: #b99aff;
    margin-top: 10px;
    font-weight: 650;
  }
  .hero { padding-block: 32px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header nav a, .nav-demo { transition: none; }
}

@media print {
  body { background: white; }
}

/* Native controls, original frame and audio. No autoplay, overlays or filters. */
#investor-product-video .demo-video { height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
