.md-main__inner {
  margin-top: 0;
}

/* Let the homepage artwork continue behind the desktop navigation. The
   compact header becomes more substantial once content starts scrolling. */
body.cdk-home-page .md-header,
body.cdk-home-page .md-tabs {
  color: #fff;
  background-color: transparent;
  box-shadow: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    backdrop-filter 180ms ease;
}

body.cdk-home-page .md-header {
  border-bottom: 1px solid transparent;
}

body.cdk-home-page .md-header [data-md-component="palette"] {
  display: none;
}

body.cdk-home-page .md-tabs {
  background-image: none;
}

body.cdk-home-page.cdk-home-header-scrolled .md-header,
body.cdk-home-page.cdk-home-header-scrolled .md-tabs {
  background-color: rgba(7, 12, 25, 0.86);
  background-image: none;
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
}

body.cdk-home-page.cdk-home-header-scrolled .md-header {
  border-bottom-color: rgba(132, 190, 255, 0.16);
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.16);
}

/* =========================
   Hero section
   ========================= */

.cdk-home-intro {
  position: relative;
  height: 135vh;
  margin-top: -4.8rem;
  background: #000;
}

@media screen and (max-width: 76.234375em) {
  body.cdk-home-page .md-header {
    background-color: rgba(7, 12, 25, 0.96);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
  }

  .cdk-home-intro {
    margin-top: -2.4rem;
  }
}

.cdk-home-intro__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.cdk-hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: 0;
  background-color: #000;
  will-change: opacity;
}

.cdk-hero__about {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: min(48rem, calc(100vw - 4rem));
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 1.5rem));
  pointer-events: none;
  will-change: opacity, transform;
}

.cdk-hero__about h2 {
  margin: 0 0 1.15rem;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.cdk-hero__about p {
  max-width: 44rem;
  margin: 0 auto 0.9rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.cdk-about-anchor {
  position: absolute;
  top: 32%;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.cdk-hero__bg {
  position: absolute;
  inset: 0;

  background: #000;

  transform: scale(1.02);
  transform-origin: center;
  will-change: transform, filter;
}

.cdk-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #000;
}

@media (prefers-reduced-motion: reduce) {
  .cdk-hero__video {
    display: none;
  }
}

.cdk-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    to bottom,
    rgba(var(--cdk-navy-rgb), 0.08) 0%,
    rgba(var(--cdk-navy-rgb), 0.2) 55%,
    rgba(0, 0, 0, 0.82) 90%,
    #000 100%
  );

  opacity: 0.25;
  pointer-events: none;
  will-change: opacity;
}

.cdk-hero__logo {
  position: absolute;
  top: 50%;
  right: clamp(4rem, 9.5vw, 10rem);
  z-index: 2;
  width: clamp(16rem, 27vw, 29rem);
  height: auto;
  opacity: 0;
  transform: translateY(calc(-50% + 1rem)) scale(0.97);
  filter: drop-shadow(0 1.5rem 2.5rem rgba(0, 0, 0, 0.42));
  mix-blend-mode: screen;
  pointer-events: none;
  animation: cdk-hero-logo-reveal 1.8s ease-out 0.55s forwards;
}

@keyframes cdk-hero-logo-reveal {
  to {
    opacity: 0.78;
    transform: translateY(-50%) scale(1);
  }
}

/* Additional fade at the bottom of the hero */
.cdk-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 30vh;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 40%,
    #000 100%
  );
}

/* =========================
   Hero text
   ========================= */

.cdk-hero__content {
  position: relative;
  z-index: 2;

  width: min(760px, 46vw);
  max-width: none;
  margin-left: 12vw;

  color: #fff;
  will-change: transform, opacity;
}

.cdk-hero__content h1 {
  margin: 0 0 1.25rem;

  font-size: clamp(2.8rem, 4.2vw, 4.4rem);
  line-height: 1.05;
  font-weight: 750;
  white-space: nowrap;

  color: #fff;
  -webkit-text-stroke: 0.04rem rgba(255, 255, 255, 0.62);

  text-shadow:
    0 2px 2px rgba(0, 0, 0, 1),
    0 0 5px rgba(var(--cdk-navy-rgb), 0.96),
    0 0 9px rgba(0, 0, 0, 0.72),
    0 0 2px rgba(255, 255, 255, 0.78),
    0 0 14px rgba(var(--cdk-blue-bright-rgb), 0.38),
    0 0 30px rgba(var(--cdk-blue-primary-rgb), 0.22);
}

.cdk-trade-mark {
  position: relative;
  top: -0.22em;
  margin-left: 0.12em;
  font-size: 0.4em;
  font-weight: 600;
  opacity: 0.95;
  vertical-align: baseline;
}

.cdk-hero__content p {
  margin: 0 0 1.4rem;

  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.008em;

  color: rgba(255, 255, 255, 0.95);

  text-shadow:
    0 2px 2px rgba(0, 0, 0, 1),
    0 0 4px rgba(var(--cdk-navy-rgb), 0.96),
    0 0 9px rgba(0, 0, 0, 0.68),
    0 0 10px rgba(var(--cdk-blue-bright-rgb), 0.2);
}

/* =========================
   Learn more button
   ========================= */

.cdk-learn-more {
  display: inline-block;

  color: white !important;
  background: rgba(var(--cdk-navy-rgb), 0.62) !important;

  border: 2px solid rgba(var(--cdk-blue-soft-rgb), 0.92) !important;
  border-radius: 6px;

  padding: 0.75rem 1.7rem;

  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(var(--cdk-blue-bright-rgb), 0.28);
  box-shadow:
    inset 0 0 0.8rem rgba(var(--cdk-blue-primary-rgb), 0.05),
    0 0 0.85rem rgba(var(--cdk-blue-primary-rgb), 0.16);
  backdrop-filter: blur(0.2rem);
  -webkit-backdrop-filter: blur(0.2rem);

  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cdk-learn-more:hover {
  color: var(--cdk-navy) !important;
  background: white !important;
  border-color: white !important;

  transform: translateY(-2px);
  text-shadow: none;
  box-shadow:
    0 0 1.25rem rgba(255, 255, 255, 0.38),
    0 0 2rem rgba(var(--cdk-blue-primary-rgb), 0.22);
}

.cdk-scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 3rem);
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 180ms linear;
}

.cdk-scroll-cue__line {
  width: 1px;
  height: 2.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.cdk-scroll-cue__line::after {
  content: "";
  display: block;
  width: 100%;
  height: 45%;
  background: #fff;
  animation: cdk-scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes cdk-scroll-pulse {
  from { transform: translateY(-130%); }
  to { transform: translateY(250%); }
}

/* =========================
   Feature section
   ========================= */

.cdk-features {
  min-height: 100vh;
  padding: 5rem 10vw;
}

.cdk-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

/* =========================
   Black homepage background
   ========================= */

body.cdk-home-page,
body.cdk-home-page .md-container,
body.cdk-home-page .md-main,
body.cdk-home-page .md-main__inner,
body.cdk-home-page .md-content,
body.cdk-home-page .md-content__inner {
  background-color: #000;
}

body.cdk-home-page .md-content {
  color: rgba(255, 255, 255, 0.82);
}

/* The homepage has no documentation sidebars; keep its content centred. */
body.cdk-home-page .md-main__inner > .md-sidebar {
  display: none !important;
}

body.cdk-home-page .md-content {
  width: 100%;
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}

/* Home is not part of the linear documentation sequence. */
body.cdk-home-page .md-footer__inner {
  display: none !important;
}

body.cdk-home-page .md-top {
  inset:
    auto
    max(1.25rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    auto !important;
  gap: 0.42rem;
  min-height: 2rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(139, 222, 255, 0.28);
  border-radius: 0.65rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(7, 12, 25, 0.86);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  font-weight: 600;
  letter-spacing: 0.005em;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    opacity 150ms ease;
}

body.cdk-home-page .md-top svg {
  display: none;
}

body.cdk-home-page .md-top::before {
  width: 0.42rem;
  height: 0.42rem;
  border-top: 0.08rem solid currentColor;
  border-right: 0.08rem solid currentColor;
  content: "";
  transform: rotate(-45deg) translate(-0.04rem, 0.04rem);
}

body.cdk-home-page .md-top:is(:hover, :focus-visible) {
  border-color: rgba(139, 222, 255, 0.72);
  color: #fff;
  background: rgba(17, 52, 94, 0.94);
  box-shadow:
    0 0.55rem 1.4rem rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(139, 222, 255, 0.12);
  transform: translateY(-0.1rem) !important;
}

body.cdk-home-page .md-top:active {
  transform: translateY(0) !important;
}

body.cdk-home-page .md-top:focus-visible {
  outline: 0.12rem solid #8bdeff;
  outline-offset: 0.12rem;
}

@media screen and (max-width: 704px) {
  body.cdk-home-page .md-top {
    width: 2.2rem;
    height: 2.2rem;
    min-height: 2.2rem;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  body.cdk-home-page .md-top::before {
    width: 0.5rem;
    height: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cdk-home-page .md-top {
    transition: none;
  }

  body.cdk-home-page .md-top:is(:hover, :focus-visible) {
    transform: none !important;
  }
}

body.cdk-home-page .md-content h1,
body.cdk-home-page .md-content h2,
body.cdk-home-page .md-content h3,
body.cdk-home-page .md-content h4 {
  color: #fff;
}

body.cdk-home-page .md-content p,
body.cdk-home-page .md-content li {
  color: rgba(255, 255, 255, 0.78);
}

body.cdk-home-page .md-main__inner {
  margin-top: 0;
}

body.cdk-home-page .md-content__inner {
  margin-top: 0;
  padding-top: 2.5rem;
}

/* Homepage content begins hidden and slightly lower */
body.cdk-home-page .md-content {
  opacity: 0;
  transform: translateY(55px);
  transition:
    opacity 0.15s linear,
    transform 0.15s linear;

  will-change: opacity, transform;
}

body.cdk-home-page .md-content__inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   Mobile and tablet
   ========================= */

@media screen and (max-width: 900px) {
  .cdk-hero {
    height: 80vh;
    min-height: 600px;
  }

  .cdk-hero__content {
    width: auto;
    max-width: calc(100vw - 3rem);
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .cdk-hero__logo {
    top: 42%;
    right: 50%;
    width: min(58vw, 19rem);
    opacity: 0.18;
    transform: translate(50%, -50%);
    animation: none;
  }

  .cdk-hero__content h1 {
    font-size: clamp(2.4rem, 9vw, 3.8rem);
    white-space: normal;
    line-height: 1.1;
  }

  .cdk-feature-grid {
    grid-template-columns: 1fr;
  }

  .cdk-learn-more {
    padding: 0.55rem 1.1rem;
    font-size: 0.76rem;
  }

  .cdk-hero__about {
    left: 50%;
    width: min(38rem, calc(100vw - 3rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cdk-hero__logo {
    opacity: 0.78;
    transform: translateY(-50%);
    animation: none;
  }
}

@media screen and (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .cdk-hero__logo {
    opacity: 0.18;
    transform: translate(50%, -50%);
  }
}
