:root {
  --cyan: #00d9e8;
  --line: rgba(255, 255, 255, 0.17);
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Poppins", Arial, sans-serif;
}

body,
.plans-page,
.plans-page button,
.plans-page input {
  font-family: var(--sans);
}

.plans-header,
.plans-brand,
.plans-back {
  display: none !important;
}

.plans-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #07090b;
}

.plans-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(4, 7, 9, 0.97) 0%,
      rgba(4, 7, 9, 0.86) 42%,
      rgba(4, 7, 9, 0.48) 72%,
      rgba(4, 7, 9, 0.72) 100%
    ),
    linear-gradient(0deg, rgba(4, 7, 9, 0.9), transparent 62%),
    linear-gradient(90deg, rgba(22, 217, 243, 0.08) 1px, transparent 1px)
      0 0 / 80px 80px;
}

.plans-hero > :not(.plans-hero-background) {
  position: relative;
  z-index: 2;
}

.plans-hero > .plans-hero-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  overflow: hidden;
  background: #07090b;
}

.plans-hero-background span {
  position: absolute;
  inset: -2%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  animation: plans-hero-fade 25s linear infinite;
  will-change: opacity, transform;
}

.plans-hero-background span:nth-child(1) {
  animation-delay: 0s;
}

.plans-hero-background span:nth-child(2) {
  animation-delay: -20s;
}

.plans-hero-background span:nth-child(3) {
  animation-delay: -15s;
}

.plans-hero-background span:nth-child(4) {
  animation-delay: -10s;
}

.plans-hero-background span:nth-child(5) {
  animation-delay: -5s;
}

@keyframes plans-hero-fade {
  0%,
  16% {
    opacity: 1;
    transform: scale(1.035);
  }

  20%,
  96% {
    opacity: 0;
    transform: scale(1.075);
  }

  100% {
    opacity: 1;
    transform: scale(1.035);
  }
}

.plans-hero > p,
.plans-hero > div > a,
.plan-card-top,
.plan-card h2,
.plan-card > a,
.plan-ideal > b,
.plan-includes > b,
.plans-process h2,
.plans-process li > span,
.plans-process li > b,
.plans-principles h2,
.plans-footer h2,
.plans-footer > a {
  font-family: var(--condensed);
}

.plans-hero h1 {
  font-family: var(--condensed);
  max-width: min(1120px, 100%);
  font-size: clamp(64px, 8.4vw, 132px);
  line-height: 0.78;
}

.plans-title-brand {
  white-space: nowrap;
}

.ecosystem-menu {
  position: relative;
  z-index: 100;
  width: 100%;
  height: 86px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
  border-top: 2px solid var(--cyan);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 217, 232, 0.09), transparent 33%),
    #050708;
  isolation: isolate;
}

.ecosystem-menu::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.24;
  pointer-events: none;
  background-image: linear-gradient(
    90deg,
    transparent 0,
    transparent calc(25% - 1px),
    rgba(255, 255, 255, 0.035) 25%,
    transparent calc(25% + 1px),
    transparent
  );
  background-size: 240px 100%;
}

.ecosystem-menu::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  animation: ecosystem-line 0.9s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.ecosystem-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(20px, 3vw, 48px);
  color: inherit;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-18px);
  animation: ecosystem-brand-in 0.65s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1)
    forwards;
}

.ecosystem-brand img {
  display: block;
  width: clamp(178px, 17vw, 238px);
  max-height: 43px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  transition:
    filter 0.22s ease,
    transform 0.22s ease;
}

.ecosystem-brand:hover img {
  filter: brightness(0) saturate(100%) invert(82%) sepia(63%) saturate(3634%)
    hue-rotate(146deg) brightness(102%) contrast(91%);
  transform: translateY(-1px);
}

.ecosystem-brand-line {
  width: 1px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--line);
}

.ecosystem-brand small {
  color: #9da5aa;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ecosystem-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(105px, 1fr));
  align-items: stretch;
  border-left: 1px solid var(--line);
}

.ecosystem-nav a {
  position: relative;
  z-index: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  color: #f7f7f4;
  font-family: var(--condensed);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px);
  animation: ecosystem-link-in 0.48s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: color 0.22s ease;
}

.ecosystem-nav a:nth-child(1) {
  animation-delay: 0.19s;
}

.ecosystem-nav a:nth-child(2) {
  animation-delay: 0.26s;
}

.ecosystem-nav a:nth-child(3) {
  animation-delay: 0.33s;
}

.ecosystem-nav a:nth-child(4) {
  animation-delay: 0.4s;
}

.ecosystem-nav a:nth-child(5) {
  animation-delay: 0.47s;
}

.ecosystem-nav a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #f7f7f4;
  transform: translateY(102%);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ecosystem-nav a::after {
  content: "↗";
  margin-left: 8px;
  color: var(--cyan);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 0.22s ease,
    color 0.22s ease;
}

.ecosystem-nav a:hover,
.ecosystem-nav a:focus-visible {
  color: #050708;
  outline: 0;
}

.ecosystem-nav a:hover::before,
.ecosystem-nav a:focus-visible::before {
  transform: translateY(0);
}

.ecosystem-nav a:hover::after,
.ecosystem-nav a:focus-visible::after {
  color: #008d9a;
  transform: translate(2px, -2px);
}

@keyframes ecosystem-brand-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ecosystem-link-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ecosystem-line {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  .plans-hero h1 {
    font-size: clamp(54px, 15vw, 72px);
  }

  .plans-hero::before {
    background:
      linear-gradient(
        0deg,
        rgba(4, 7, 9, 0.96) 0%,
        rgba(4, 7, 9, 0.69) 68%,
        rgba(4, 7, 9, 0.76) 100%
      ),
      linear-gradient(90deg, rgba(22, 217, 243, 0.07) 1px, transparent 1px)
        0 0 / 64px 64px;
  }

  .plans-hero-background span {
    background-position: 62% center;
  }

  .ecosystem-menu {
    height: 158px;
    grid-template-columns: 1fr;
    grid-template-rows: 68px 88px;
  }

  .ecosystem-brand {
    justify-content: center;
    gap: 14px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
  }

  .ecosystem-brand img {
    width: min(190px, 54vw);
    max-height: 36px;
  }

  .ecosystem-brand-line {
    height: 27px;
  }

  .ecosystem-brand small {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .ecosystem-nav {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 44px);
    border-left: 0;
  }

  .ecosystem-nav a {
    grid-column: span 2;
    padding: 0 8px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .ecosystem-nav a:nth-child(3),
  .ecosystem-nav a:nth-child(5) {
    border-right: 0;
  }

  .ecosystem-nav a:nth-child(4),
  .ecosystem-nav a:nth-child(5) {
    grid-column: span 3;
  }
}

@media (max-width: 380px) {
  .ecosystem-brand small,
  .ecosystem-brand-line {
    display: none;
  }

  .ecosystem-brand img {
    width: min(205px, 70vw);
  }

  .ecosystem-nav a {
    font-size: 12.5px;
    letter-spacing: 0.035em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plans-hero-background span {
    animation: none !important;
    opacity: 0;
    transform: none;
  }

  .plans-hero-background span:first-child {
    opacity: 1;
  }

  .ecosystem-menu *,
  .ecosystem-menu::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
