:root {
  --av-mobile-gutter: 20px;
  --av-header-height: 70px;
}

html {
  overflow-x: hidden;
}

body {
  min-width: 320px;
}

#dc-root,
#dc-root > .sc-host {
  min-height: 100%;
  height: auto !important;
}

.av-menu-toggle {
  display: none;
}

.av-diagram-hint {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --av-header-height: 62px;
  }

  body.av-menu-open {
    overflow: hidden;
  }

  body.av-menu-open::before {
    content: "";
    position: fixed;
    inset: var(--av-header-height) 0 0;
    z-index: 78;
    background: rgba(4, 12, 20, .68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  #dc-root header {
    height: var(--av-header-height) !important;
  }

  #dc-root header > div {
    height: var(--av-header-height) !important;
    padding-inline: 18px !important;
    gap: 12px !important;
  }

  #dc-root header > div > a {
    gap: 10px !important;
    min-width: 0;
  }

  #dc-root header > div > a img {
    width: 96px !important;
  }

  #dc-root header > div > a span {
    padding-left: 10px !important;
    font-size: 11.5px !important;
    letter-spacing: .12em !important;
  }

  .av-menu-toggle {
    position: relative;
    z-index: 92;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 0;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
    transition: background .22s ease, border-color .22s ease, transform .18s ease;
  }

  .av-menu-toggle:active {
    transform: scale(.97);
  }

  .av-menu-toggle:focus-visible {
    outline: 2px solid #7FAAFF;
    outline-offset: 2px;
  }

  .av-menu-icon,
  .av-menu-icon::before,
  .av-menu-icon::after {
    width: 18px;
    height: 1.5px;
    display: block;
    background: currentColor;
    transition: transform .24s ease, opacity .2s ease;
  }

  .av-menu-icon {
    position: relative;
  }

  .av-menu-icon::before,
  .av-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .av-menu-icon::before { top: -6px; }
  .av-menu-icon::after { top: 6px; }

  .av-menu-toggle[aria-expanded="true"] .av-menu-icon {
    background: transparent;
  }

  .av-menu-toggle[aria-expanded="true"] .av-menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .av-menu-toggle[aria-expanded="true"] .av-menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  #dc-root header .av-main-nav {
    position: fixed !important;
    top: calc(var(--av-header-height) + 10px);
    left: 12px;
    right: 12px;
    z-index: 90;
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 12px !important;
    max-height: calc(100dvh - var(--av-header-height) - 22px);
    overflow-y: auto;
    background: rgba(11, 22, 34, .98);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 28px 70px -34px rgba(2, 10, 18, .9), inset 0 1px rgba(255, 255, 255, .06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .24s ease, transform .28s cubic-bezier(.2, .72, .2, 1), visibility .24s step-end;
  }

  body.av-menu-open #dc-root header .av-main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity .24s ease, transform .28s cubic-bezier(.2, .72, .2, 1), visibility 0s;
  }

  #dc-root header .av-main-nav a {
    min-height: 48px;
    display: flex !important;
    align-items: center;
    padding: 13px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 15px !important;
  }

  #dc-root header .av-main-nav a[aria-current="page"] {
    color: #fff !important;
    background: rgba(127, 170, 255, .1);
  }

  #dc-root header .av-main-nav a:last-child {
    justify-content: center;
    margin-top: 10px;
    border-bottom: 0 !important;
    background: #1B5AE0 !important;
    color: #fff !important;
  }

  #dc-root header + section {
    padding-top: 106px !important;
    padding-bottom: 64px !important;
  }

  #dc-root section {
    scroll-margin-top: var(--av-header-height) !important;
  }

  #dc-root h1 {
    font-size: clamp(36px, 10.8vw, 48px) !important;
    line-height: 1.16 !important;
    letter-spacing: -.025em !important;
    text-wrap: balance;
  }

  #dc-root h2 {
    font-size: clamp(27px, 8vw, 36px) !important;
    line-height: 1.28 !important;
    text-wrap: balance;
  }

  #dc-root h3,
  #dc-root p,
  #dc-root li,
  #dc-root a,
  #dc-root span {
    overflow-wrap: anywhere;
  }

  #dc-root [style*="grid-template-columns:minmax(0,.62fr)"],
  #dc-root [style*="grid-template-columns:minmax(0,.85fr)"],
  #dc-root [style*="grid-template-columns:minmax(0,.9fr)"],
  #dc-root [style*="grid-template-columns:minmax(0,.95fr)"],
  #dc-root [style*="grid-template-columns:minmax(0,1.05fr)"],
  #dc-root [style*="grid-template-columns:minmax(0,1.1fr)"],
  #dc-root [style*="grid-template-columns:minmax(0,1.15fr)"],
  #dc-root [style*="grid-template-columns:minmax(0,1.25fr)"],
  #dc-root [style*="grid-template-columns:minmax(0,1.55fr)"],
  #dc-root [style*="grid-template-columns:minmax(0,1fr) minmax(0,"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #dc-root .av-stack-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #dc-root [style*="grid-template-columns:repeat(3,minmax(0,1fr))"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #dc-root .av-three-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #dc-root header + section [style*="grid-template-columns:repeat(3,minmax(0,1fr))"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #dc-root .av-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #dc-root [style*="grid-template-columns:repeat(5,minmax(0,1fr))"],
  #dc-root [style*="grid-template-columns:repeat(7,minmax(0,1fr))"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #dc-root .av-many-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #dc-root [data-flowline] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #dc-root [data-flowline] > [aria-hidden="true"] {
    width: auto !important;
    min-height: 28px;
    border: 0 !important;
    border-top: 1px solid #D5DCE3 !important;
    border-bottom: 1px solid #D5DCE3 !important;
  }

  #dc-root [data-flowline] > [aria-hidden="true"] i {
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(27, 90, 224, .42), transparent) !important;
  }

  #dc-root [data-flow-track] {
    height: auto !important;
    padding: 38px 0 66px;
  }

  #dc-root [data-flow-track] > div {
    position: relative !important;
    top: auto !important;
    min-height: 0 !important;
    display: block !important;
    padding-block: 0 !important;
  }

  #dc-root [data-flow-track] [style*="height:2px"] {
    display: none !important;
  }

  #dc-root [data-flow-stage] {
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  #dc-root [data-flow-hint] {
    display: none !important;
  }

  #dc-root [data-step] {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 8px 14px !important;
    padding: 20px 18px !important;
  }

  #dc-root [data-step] > :nth-child(n+3) {
    grid-column: 2;
  }

  #dc-root [data-step] > :last-child {
    justify-self: start !important;
  }

  #dc-root .av-table-scroll {
    position: relative;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 8px;
  }

  #dc-root .av-table-grid {
    min-width: 620px;
    grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(98px, 1fr)) !important;
  }

  #dc-root .av-diagram-shell {
    position: relative;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 10px !important;
  }

  #dc-root .av-diagram-shell svg[role="img"] {
    width: 720px !important;
    max-width: none !important;
  }

  .av-diagram-hint {
    position: sticky;
    left: 0;
    z-index: 2;
    width: max-content;
    max-width: calc(100vw - 80px);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px !important;
    padding: 7px 10px;
    background: rgba(11, 22, 34, .84);
    border: 1px solid rgba(127, 170, 255, .28);
    color: rgba(255, 255, 255, .7) !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    letter-spacing: .04em;
  }

  #dc-root [style*="grid-template-columns:minmax(0,1fr) 130px 110px"] {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px 12px !important;
  }

  #dc-root .av-status-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px 12px !important;
  }

  #dc-root [style*="grid-template-columns:minmax(0,1fr) 130px 110px"] > :nth-child(2) {
    grid-column: 1;
  }

  #dc-root .av-status-row > :nth-child(2) {
    grid-column: 1;
  }

  #dc-root [style*="grid-template-columns:minmax(0,1fr) 130px 110px"] > :nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  #dc-root .av-status-row > :nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  #dc-root .av-module-nav {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 18px !important;
  }

  #dc-root .av-module-nav > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px !important;
    background: rgba(255, 255, 255, .1);
  }

  #dc-root .av-module-nav > div > span {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 11px !important;
    border-left: 0 !important;
    background: #0B1622;
  }

  #dc-root [style*="flex-direction:column"][style*="border-left:1px"] {
    border-left: 0 !important;
    border-top: 1px solid #D5DCE3;
    padding-left: 0 !important;
    padding-top: 24px;
  }

  #dc-root .av-side-cta {
    border-left: 0 !important;
    border-top: 1px solid #D5DCE3;
    padding-left: 0 !important;
    padding-top: 24px;
  }

  #dc-root section > div > [style*="display:flex"][style*="justify-content:space-between"] {
    flex-wrap: wrap;
  }

  #dc-root .av-wrap-mobile {
    flex-wrap: wrap;
  }

  #dc-root footer > div {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 22px !important;
  }

  #dc-root footer nav {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px !important;
  }

  #dc-root footer nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
  }

  #dc-root a[href*="#contact"] {
    touch-action: manipulation;
  }
}

@media (max-width: 420px) {
  #dc-root [style*="grid-template-columns:repeat(auto-fit,minmax(160px,1fr))"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #dc-root header + section [style*="grid-template-columns:repeat(3,minmax(0,1fr))"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #dc-root .av-hero-stats {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #dc-root .av-hero-stats > div {
    padding: 14px 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  #dc-root header + section [style*="grid-template-columns:repeat(3,minmax(0,1fr))"] > div {
    padding: 14px 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  #dc-root [style*="grid-template-columns:repeat(5,minmax(0,1fr))"],
  #dc-root [style*="grid-template-columns:repeat(7,minmax(0,1fr))"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #dc-root .av-many-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 360px) {
  #dc-root header > div > a span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
