:root {
  --motion-ease: cubic-bezier(0.22, 0.65, 0.29, 1);
  --motion-fast: 180ms;
  --motion-reveal: 520ms;
  --content-max: 1520px;
  --content-pad: clamp(22px, 4.1vw, 64px);
}

.wrap {
  max-width: var(--content-max);
  padding-inline: var(--content-pad);
}

.detail-hero > div:first-child {
  max-width: 640px;
}

.form-layout {
  max-width: 1270px;
}
.wrap.faq {
  max-width: 940px;
}
.heading > p {
  max-width: 470px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid var(--header-divider, #dce4dd99);
  transition:
    transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast);
}

.header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--header-overlay, #f7f8f4f0);
  backdrop-filter: blur(15px);
  transition: background var(--motion-fast);
}

.header.compact::before {
  background: var(--header-overlay-compact, #f7f8f4e8);
}

.header.compact {
  box-shadow: 0 3px 16px #193e350c;
}

@media (prefers-reduced-motion: no-preference) {
  .header.compact {
    transform: translateY(-6px);
  }
}

.header .brand,
.header .navright .btn,
.growth-header .nav > .btn {
  transition:
    transform var(--motion-fast) var(--motion-ease),
    background var(--motion-fast);
}

.header.compact .brand {
  transform: scale(0.94);
  transform-origin: left center;
}
.header.compact .navright .btn,
.growth-header.compact .nav > .btn {
  transform: scale(0.94);
  transform-origin: right center;
}
.header .nav-dropdown:not([hidden]),
.navlinks.open {
  animation: nav-appear var(--motion-fast) var(--motion-ease) both;
}
@keyframes nav-appear {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
}

.home-page .immersive-hero {
  --hero-background: #193d33;
  --hero-text: #f9fbf8;
  --hero-muted: #e1ede6;
  --hero-border: #a7bdb2;
  display: block;
  width: 100%;
  padding: 0;
  min-height: 0;
  --hero-progress: 0;
}

.hero-surface {
  position: relative;
  isolation: isolate;
  padding-bottom: 1px;
}

.hero-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--hero-background);
  border-bottom: 1px solid var(--hero-background);
}

.hero-frame {
  width: min(100%, 1510px);
  margin: auto;
  min-height: 88svh;
  padding: clamp(34px, 5.2vh, 64px) var(--content-pad);
  display: grid;
  align-content: center;
  gap: clamp(18px, 3.5vh, 34px);
}

.hero-copy {
  text-align: center;
  color: var(--hero-text);
}
.hero-copy .actions {
  justify-content: center;
}
.immersive-hero .hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(54px, 6vw, 94px);
  font-weight: 480;
  letter-spacing: -0.066em;
}
.immersive-hero .hero-copy h1 em {
  color: var(--lime);
  white-space: nowrap;
}
.immersive-hero .hero-copy p {
  color: var(--hero-muted);
  max-width: 575px;
  margin: 0 auto 23px;
  line-height: 1.6;
}
.hero-copy .btn {
  background: var(--hero-text);
  color: var(--hero-background);
}
.hero-copy .btn:hover {
  background: var(--hero-muted);
}
.hero-copy .btn.outline {
  background: transparent;
  color: var(--hero-text);
  border-color: var(--hero-border);
}
.hero-copy .btn.outline:hover {
  background: #2b5045;
}
.hero-copy .btn:focus-visible {
  outline-color: var(--hero-text);
}
.immersive-hero .visual {
  width: min(100%, 1060px);
  margin-inline: auto;
}
.immersive-hero .dashbody {
  grid-template-columns: 145px minmax(0, 1fr);
  min-height: 300px;
}
.immersive-hero .side {
  padding: 12px;
}
.immersive-hero .side button {
  font-size: 12px;
}
.immersive-hero .dash {
  animation: none;
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .immersive-hero {
    --hero-content-scale: calc(1 - 0.055 * var(--hero-progress));
  }
  .motion-ready .hero-surface::before {
    --hero-inset: max(clamp(30px, 7vw, 118px), calc((100vw - 1680px) / 2));
    will-change: clip-path;
    clip-path: inset(
      0 calc(var(--hero-inset) * var(--hero-progress)) round
        calc(30px * var(--hero-progress))
    );
  }
  .motion-ready .hero-copy {
    transform: translateY(calc(-12px * var(--hero-progress)))
      scale(var(--hero-content-scale));
    transform-origin: center bottom;
  }
  .motion-ready .immersive-hero .visual {
    transform: translateY(calc(-10px * var(--hero-progress)))
      scale(var(--hero-content-scale));
    transform-origin: center top;
  }
}

.motion-ready .hero-copy h1 {
  animation: headline-appear 670ms var(--motion-ease) both;
}
.motion-ready .growth-page .hero > div:first-child h1 {
  animation: content-appear 570ms var(--motion-ease) both;
}
.motion-ready :is(.hero-copy, .growth-page .hero > div:first-child) > p {
  animation: content-appear 570ms 70ms var(--motion-ease) both;
}
.motion-ready :is(.hero-copy, .growth-page .hero > div:first-child) > .actions {
  animation: content-appear 570ms 125ms var(--motion-ease) both;
}
.motion-ready .immersive-hero .dash {
  animation: content-appear 640ms 145ms var(--motion-ease) both;
}
.motion-ready .growth-page .hero .visual {
  animation: content-appear 650ms 130ms var(--motion-ease) both;
}
@keyframes content-appear {
  from {
    opacity: 0;
    translate: 0 12px;
  }
}
@keyframes headline-appear {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}

.animate-reveal .reveal {
  transition:
    opacity var(--motion-reveal) var(--motion-ease),
    transform var(--motion-reveal) var(--motion-ease);
}
.animate-reveal .reveal:focus-within {
  opacity: 1;
  transform: none;
}
.motion-ready .demo-swap {
  animation: content-appear 235ms var(--motion-ease) both;
}
.motion-ready .demo-bars progress {
  animation: bar-reveal 430ms var(--motion-ease) both;
  transform-origin: left center;
}
@keyframes bar-reveal {
  from {
    transform: scaleX(0.08);
    opacity: 0.5;
  }
}

.product,
.service,
.model {
  transition:
    transform var(--motion-fast) var(--motion-ease),
    background var(--motion-fast);
}
@media (hover: hover) {
  .product:hover,
  .service:hover,
  .model:hover {
    transform: translateY(-2px);
  }
}

@supports selector(::details-content) {
  .faq details {
    interpolate-size: allow-keywords;
  }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 260ms var(--motion-ease),
      content-visibility 260ms allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 180ms;
  }
}

@media (max-width: 1023px) {
  .hero-frame {
    min-height: 0;
    padding-block: 38px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .motion-ready .hero-surface::before {
    --hero-inset: 4vw;
  }
  .hero-frame {
    padding-block: 20px;
    gap: 15px;
  }
}

@media (max-width: 760px) {
  .hero-frame {
    padding: 34px var(--content-pad) 24px;
  }
  .immersive-hero .hero-copy h1 {
    font-size: clamp(42px, 10.8vw, 63px);
  }
  .immersive-hero .side {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    padding: 6px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .immersive-hero .side .mini-brand {
    display: none;
  }
  .immersive-hero .side button {
    width: auto;
    margin: 0;
    font-size: 11px;
    padding: 7px;
  }
  .immersive-hero .dashbody {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .immersive-hero .visual-foot {
    font-size: 9px;
  }
  .growth-header .navlinks.open {
    top: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-copy,
  .immersive-hero .visual {
    transform: none;
  }
}
