:root {
  --md-parallax-perspective: 2.5rem;
}

.md-typeset .md-button {
  background-color: var(--pai-blue, #2a375b);
  border-width: 0;
  color: var(--md-primary-bg-color);
  margin-right: .5rem;
  margin-top: .5rem;
}

.md-typeset .md-button--secondary {
  background-color: initial;
}

.md-header:not(.md-header--shadow) {
  background-color: initial;
  transition: background-color 125ms, transform 125ms cubic-bezier(.1, .7, .1, 1), box-shadow 0ms;
}

.md-header--shadow {
  transition: background-color .25s, transform .25s cubic-bezier(.1, .7, .1, 1), box-shadow .25s;
}

.mdx-parallax {
  height: 100vh;
  margin-top: -2.4rem;
  overflow: hidden auto;
  overscroll-behavior-y: none;
  perspective: var(--md-parallax-perspective);
  scroll-behavior: smooth;
  width: 100vw;
}

.mdx-parallax__group {
  background-color: var(--md-default-bg-color);
  color: var(--md-typeset-color);
  display: block;
  position: relative;
  transform-style: preserve-3d;
}

.mdx-parallax__group:first-child {
  background-color: initial;
  contain: strict;
  height: 140vh;
}

.safari .mdx-parallax__group:first-child {
  contain: none;
}

.ff-hack .mdx-parallax__group:first-child {
  contain: none !important;
}

@media (min-width: 125vh) {
  .mdx-parallax__group:first-child { height: 120vw; }
}
@media (min-width: 137.5vh) {
  .mdx-parallax__group:first-child { height: 125vw; }
}
@media (min-width: 150vh) {
  .mdx-parallax__group:first-child { height: 130vw; }
}
@media (min-width: 162.5vh) {
  .mdx-parallax__group:first-child { height: 135vw; }
}
@media (min-width: 175vh) {
  .mdx-parallax__group:first-child { height: 140vw; }
}
@media (min-width: 187.5vh) {
  .mdx-parallax__group:first-child { height: 145vw; }
}
@media (min-width: 200vh) {
  .mdx-parallax__group:first-child { height: 150vw; }
}

.mdx-parallax__group:last-child {
  background-color: var(--md-default-bg-color);
}

.mdx-parallax__layer {
  height: max(120vh, 100vw);
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateZ(calc(var(--md-parallax-perspective) * var(--md-parallax-depth) * -1))
             scale(calc(var(--md-parallax-depth) + 1));
  transform-origin: 50vw 50vh;
  width: 100vw;
  z-index: calc(10 - var(--md-parallax-depth, 0));
}

.mdx-parallax__image {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: var(--md-image-position, 50%);
  position: absolute;
  width: 100%;
  z-index: -1;
}

.mdx-parallax__blend {
  background-image: linear-gradient(to bottom, transparent, var(--md-default-bg-color));
  bottom: 0;
  height: min(100vh, 100vw);
  top: auto;
}

.mdx-hero {
  display: block;
  height: inherit;
}

.mdx-hero__scrollwrap {
  height: 100vh;
  margin-bottom: -100vh;
  position: sticky;
  top: 0;
  z-index: 9;
}

.mdx-hero__inner {
  bottom: 3.2rem;
  display: block;
  position: absolute;
  transition: transform .4s cubic-bezier(.1, .7, .1, 1), opacity .25s;
  width: 100%;
}

@media screen and (max-width: 44.984375em) {
  .mdx-hero__inner {
    bottom: 6.4rem;
  }
}

.mdx-hero__teaser {
  backface-visibility: hidden;
  color: var(--md-primary-bg-color);
  margin: 0 .8rem;
  max-width: 27rem;
}

.mdx-hero__teaser h1 {
  color: inherit;
  font-weight: 700;
  margin-bottom: 0;
}

.mdx-hero__teaser :not(.md-button) {
  text-shadow: 0 0 .2rem #211d2dcc;
}

.mdx-hero__more {
  animation: bounce 2s cubic-bezier(.4, 0, .2, 1) infinite;
  bottom: -2.4rem;
  display: block;
  left: 50%;
  margin-left: -.6rem;
  pointer-events: none;
  position: absolute;
  text-align: center;
}

.mdx-hero__more svg {
  fill: #fff;
  height: 1.2rem;
  width: 1.2rem;
}

@keyframes bounce {
  0%  { transform: translateY(0)     translateZ(0); }
  50% { transform: translateY(-16px) translateZ(0); }
}

/* ─── Pillars ──────────────────────────────────────────────────────────────── */

.mdx-pillars {
  background-color: #0d0f14;
  overflow: hidden;
  padding: 5rem 1.6rem;
  position: relative;
}

.mdx-pillars::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--md-default-bg-color) 0%,
    transparent 12%,
    transparent 88%,
    var(--md-default-bg-color) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.mdx-pillars__inner {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  max-width: 64rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.mdx-pillar {
  text-align: left;
}

.mdx-pillar__title {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 .7rem;
}

.mdx-pillar__body {
  color: rgba(255, 255, 255, 0.62);
  font-size: .78rem;
  line-height: 1.75;
  margin: 0;
}

/* ─── Full-bleed wall section ──────────────────────────────────────────────── */

.mdx-wall {
  background-color: #0d0f14;
  min-height: 28rem;
  position: relative;
}

.mdx-wall__content {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 6rem;
  max-width: 36rem;
}

/* ─── Overview + Quickstart intro ─────────────────────────────────────────── */

.mdx-intro {
  background-color: var(--md-default-bg-color);
  padding: 6rem 1.6rem;
}

.mdx-intro__inner {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1fr;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 48em) {
  .mdx-intro__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3.2rem;
  }
}

.mdx-intro__card {
  color: var(--md-typeset-color, #ccc);
}

.mdx-intro__card h2 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
  font-size: 1.6rem;
}

.mdx-intro__card p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.mdx-intro__card ol {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin: 0 0 1.4rem 1.2rem;
  padding: 0;
}

.mdx-intro__card ol li { margin: .3rem 0; }

.mdx-intro__card code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: .08em .35em;
  font-size: .9em;
}

.mdx-intro__card a:not(.md-button) {
  color: var(--pai-blue, #8aa0d9);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.mdx-intro__card .md-button {
  margin-top: .6rem;
}
