/* Request demo — header dropdown + page form */

/* ===== Header logo centering =====
   The built-in margin-left:-11rem compensation was tuned for 4 menu items;
   adding the Request-demo dropdown widened the left side and pushed the logo
   right of viewport center. Anchor it to the wrapper center instead. */

@media (min-width: 1280px) {
  .header .header__wrapper {
    position: relative;
  }
  .header .header__logo-link {
    margin-left: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ===== Header dropdown ===== */

.header__menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--color-white-100, #FBFBFB);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.125rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}


.header__menu-trigger .link__wrapper {
  display: inline-block;
}

.header__menu-caret {
  width: 0.75rem;
  height: 0.375rem;
  transition: transform 0.2s ease;
}

.header__menu-dropdown[data-open="true"] .header__menu-caret {
  transform: rotate(180deg);
}

.header__menu-dropdown {
  position: relative;
}

.header__dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  /* compensate for .header__menu-item { padding: .5rem } so the icon's left
     edge lines up with the "R" of the trigger text, not with the wrapper edge */
  left: 0.5rem;
  min-width: 20.625rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: none;
  z-index: 9999;
}

.header__menu-dropdown[data-open="true"] .header__dropdown {
  display: block;
}

.header__dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--color-white-100, #FBFBFB);
  text-decoration: none;
}

.header__dropdown-item + .header__dropdown-item {
  margin-top: 0.5rem;
}

.header__dropdown-title {
  transition: color 0.3s ease-in-out;
}

.header__dropdown-icon img {
  transition: opacity 0.3s ease-in-out;
}

@media (hover: hover) {
  .header__dropdown-item:hover .header__dropdown-title {
    color: var(--color-blue-hard, #9798AD);
  }
}

.header__dropdown-icon {
  flex: 0 0 auto;
  width: 3.375rem;
  height: 3.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white-100, #FBFBFB);
}

.header__dropdown-icon svg,
.header__dropdown-icon img {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

.header__dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.header__dropdown-title {
  font-size: 1rem;
  line-height: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--color-white-100, #FBFBFB);
}

.header__dropdown-desc {
  font-size: 0.75rem;
  line-height: 0.875rem;
  color: var(--color-white-100, #FBFBFB);
  transition: color 0.3s ease-in-out;
}

/* Desktop: full-width gradient backdrop, items keep their trigger-anchored position.
   Both backdrop and items fade together so the underlying banner doesn't flash through
   on close. */
@media (min-width: 1280px) {
  .header__menu-dropdown::before {
    content: "";
    position: fixed;
    /* start below the header so the logo / first-level menu / right-side
       buttons stay fully visible above the backdrop */
    top: var(--header-height, 4rem);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height, 4rem));
    /* solid through the dropdown items + small buffer, then fade out using
       absolute lengths so the fade band doesn't stretch with viewport height */
    background: linear-gradient(rgb(18, 14, 26) 0, rgb(18, 14, 26) 6rem, rgba(18, 14, 26, 0) 19.25rem);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: calc(var(--header-index, 20) + 2);
  }

  .header__menu-dropdown[data-open="true"]::before {
    opacity: 1;
  }

  /* While the dropdown is open, solidify the header's own background — the
     bundled gradient fades to transparent at the bottom of the header strip
     and leaves a visible seam between the header and the dropdown backdrop. */
  .header:has(.header__menu-dropdown[data-open="true"]) {
    background-image: none;
    background-color: rgb(18, 14, 26);
  }

  .header__dropdown {
    top: calc(100% + 1.25rem);
    left: 0.5rem;
    min-width: 20.625rem;
    padding: 0;
    background: transparent;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
    z-index: calc(var(--header-index, 20) + 3);
  }

  .header__menu-dropdown[data-open="true"] .header__dropdown {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0s;
  }

  /* Fade the top banner out while the dropdown is open. The banner has its own
     stacking context (z-index 21), so the dropdown's backdrop can't reliably
     cover it via z-index alone — fade its opacity instead so the transition
     matches the backdrop. */
  .info {
    transition: opacity 0.3s ease-in-out;
  }

  body:has(.header__menu-dropdown[data-open="true"]) .info {
    opacity: 0;
    pointer-events: none;
  }
}

/* mobile-burger version: plain indented text links */
.header-menu__dropdown-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.header-menu__dropdown-label {
  /* same visuals as .header-menu__link, just non-interactive */
  cursor: default;
  color: var(--color-white-100, #FBFBFB);
}

.header-menu .header-menu__dropdown-link {
  padding-left: 1.25rem;
}

/* ===== Request demo page ===== */

.request-demo {
  width: 100%;
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 1.25rem 3.5rem;
  background-color: var(--color-black-background);
}

@media (min-width: 768px) {
  .request-demo {
    padding: calc(var(--header-height) + 3rem) 2rem 5rem;
  }
}

@media (min-width: 1280px) {
  .request-demo {
    padding: calc(var(--header-height) + 3rem) 2rem 6rem;
  }
}

.request-demo__inner {
  width: 100%;
  max-width: 35.375rem;
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}

.request-demo__form-wrap {
  display: flex;
  flex-direction: column;
  gap: 5.9375rem;
}

.request-demo__intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.request-demo__title {
  margin: 0;
  color: var(--color-white-100, #FBFBFB);
}

@media (max-width: 767px) {
  .request-demo__title.h1 {
    font-size: 2.25rem;
    line-height: 2rem;
  }
}

/* Match figma 85:1914 — page-specific smaller hero, not the global .h1 (120px) */
@media (min-width: 1280px) {
  .request-demo__title.h1 {
    font-size: 4rem;
    line-height: 3.625rem;
  }
}

@media (min-width: 1600px) {
  .request-demo__title.h1 {
    font-size: 4rem;
    line-height: 3.625rem;
  }
}

.request-demo__lead {
  color: var(--color-white-100, #FBFBFB);
  line-height: 1.5rem;
}

.request-demo__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.request-demo__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .request-demo__row--two {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field__label {
  font-size: 0.75rem;
  line-height: 0.875rem;
  color: var(--color-white-100, #FBFBFB);
}

.field__input,
.field__textarea {
  width: 100%;
  background: #221D2B;
  border: 1px solid transparent;
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  color: var(--color-white-100, #FBFBFB);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.125rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field__textarea {
  resize: vertical;
  min-height: 8.75rem;
  line-height: 1.5rem;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--color-blue-hard, #9798AD);
}

.field__input:focus,
.field__textarea:focus {
  outline: none;
  background: #2A2535;
}

.field__input[aria-invalid="true"],
.field__textarea[aria-invalid="true"] {
  border-color: #f04545;
}

.field__error {
  font-size: 0.75rem;
  line-height: 0.875rem;
  color: #f04545;
  display: none;
}

.field--invalid .field__error {
  display: block;
}

.checks {
  background: #221D2B;
  border: 1px solid transparent;
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
}

.field--invalid .checks {
  border-color: #f04545;
}

.checks__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 768px) {
  .checks__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 6rem;
  }
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0;
  cursor: pointer;
  user-select: none;
  color: var(--color-white-100, #FBFBFB);
}

.check__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check__box {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.375rem;
  border: 2px solid #C2BECA;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.check__box svg {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.check__input:checked + .check__box {
  border-color: var(--color-orange-100, #ff8800);
  /* Match .button:before exactly — semi-transparent orange center fading to
     transparent edges, white inset highlights for the glassy CTA look. */
  background: radial-gradient(115.19% 256.02% at 46.51% 175%, #FFF5E6 0%, #FD7A19 36.27%, rgba(255, 136, 0, 0.4) 60.94%, rgba(255, 136, 0, 0) 100%);
  box-shadow: 0 2px 2px #ffffffe6 inset, 0 -5px 7px #ffffffb3 inset;
}

.check__input:checked + .check__box svg {
  opacity: 1;
}

.check__input:focus-visible + .check__box {
  outline: 2px solid var(--color-orange-100, #ff8800);
  outline-offset: 2px;
}

.check__text {
  font-size: 0.875rem;
  line-height: 1rem;
}

.request-demo__submit {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.request-demo__error {
  display: none;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1rem;
  color: #f04545;
  margin-top: 0.5rem;
}

.request-demo__error[data-visible="true"] {
  display: block;
}

.field--honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== Success state ===== */

.request-demo__success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 2rem 0;
  text-align: center;
}

.request-demo[data-state="sent"] .request-demo__form-wrap {
  display: none;
}

.request-demo[data-state="sent"] .request-demo__success {
  display: flex;
}

.request-demo__check {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-hard, #9798AD);
}

.request-demo__check svg {
  width: 3rem;
  height: 3rem;
}

.request-demo__success-title {
  font-size: 1.75rem;
  line-height: 1.75rem;
  letter-spacing: -0.01em;
  color: var(--color-white-100, #FBFBFB);
}

.request-demo__success-desc {
  color: var(--color-blue-hard, #9798AD);
  max-width: 27rem;
  line-height: 1.5rem;
}
