.features-page {
  background: #05060a;
}

.features-page-bg {
  background:
    radial-gradient(circle at 82% 9%, rgba(52, 161, 255, 0.18), transparent 30%),
    radial-gradient(circle at 12% 26%, rgba(255, 105, 62, 0.18), transparent 32%),
    linear-gradient(180deg, #05060a 0%, #0b0d16 45%, #05060a 100%);
}

.features-page main {
  overflow: clip;
}

.features-page .nav a[aria-current="page"] {
  color: #fff;
}

.features-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  min-height: 760px;
  padding: 76px 0 110px;
}

.features-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.features-hero h1 {
  max-width: 760px;
  margin: 16px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.062em;
}

.features-hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #ff8257, #ffbc5b 45%, #68b9ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
}

.features-hero .lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.68);
}

.features-hero-actions,
.feature-atlas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.features-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.features-hero-proof span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.features-hero-proof span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ff9f50;
  box-shadow: 0 0 14px rgba(255, 159, 80, 0.76);
}

.features-hero-visual {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: clamp(20px, 2.6vw, 34px);
  background: #07100e;
  box-shadow: 0 44px 130px rgba(0, 0, 0, 0.64);
  transform: perspective(1400px) rotateY(-5deg) rotateZ(1deg);
}

.features-hero-visual::after,
.feature-wide-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(0deg, rgba(4, 6, 10, 0.78), transparent 32%);
  pointer-events: none;
}

.features-hero-visual img,
.feature-wide-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.features-hero-visual figcaption {
  position: absolute;
  left: clamp(18px, 2.3vw, 30px);
  bottom: clamp(16px, 2vw, 26px);
  z-index: 2;
  display: grid;
  gap: 2px;
}

.features-hero-visual figcaption span {
  color: #ffba57;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.features-hero-visual figcaption strong {
  color: #fff;
  font-size: clamp(17px, 1.7vw, 25px);
}

.features-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  padding-bottom: 132px;
}

.features-map {
  position: sticky;
  top: 142px;
  z-index: 7;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 19px;
  background: rgba(8, 9, 15, 0.86);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

.features-map > strong {
  display: block;
  margin: 2px 4px 12px;
  color: #ffae58;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.features-map nav {
  display: grid;
  gap: 4px;
}

.features-map a {
  display: flex;
  min-height: 37px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 750;
  transition: 160ms ease;
}

.features-map a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.features-map a:hover,
.features-map a:focus-visible {
  border-color: rgba(255, 161, 72, 0.22);
  background: rgba(255, 161, 72, 0.09);
  color: #fff;
}

.features-map a:hover::before,
.features-map a:focus-visible::before {
  background: #ffa148;
}

.features-content {
  min-width: 0;
}

.feature-chapter,
.feature-atlas {
  padding: 74px 0 94px;
  scroll-margin-top: 130px;
}

.feature-chapter:first-child {
  padding-top: 24px;
}

.feature-chapter + .feature-chapter,
.feature-atlas {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-chapter-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.feature-chapter-head h2 {
  margin: 13px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 5.4vw, 6.1rem);
  line-height: 0.9;
  letter-spacing: -0.057em;
}

.feature-chapter-head .lead {
  color: rgba(255, 255, 255, 0.64);
}

.feature-wide-visual {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(18px, 2.4vw, 30px);
  background: #090a0f;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
}

.feature-wide-visual-live {
  border-color: rgba(255, 88, 51, 0.26);
}

.feature-wide-visual-server img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

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

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

.feature-guide {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(67, 151, 255, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(255, 159, 72, 0.07), transparent 45%),
    rgba(255, 255, 255, 0.036);
}

.feature-guide-wide {
  grid-column: 1 / -1;
}

.feature-guide-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(255, 164, 75, 0.24);
  border-radius: 12px;
  background: rgba(255, 164, 75, 0.08);
  color: #ffa44b;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 1px;
}

.feature-guide h3 {
  max-width: 650px;
  margin-bottom: 9px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.feature-guide > p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.61);
  font-size: 13px;
  line-height: 1.62;
}

.feature-guide ol {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  counter-reset: feature-step;
  list-style: none;
}

.feature-guide li {
  position: relative;
  min-height: 30px;
  padding-left: 42px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
  counter-increment: feature-step;
}

.feature-guide li::before {
  content: counter(feature-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  font-weight: 850;
}

.feature-video-stack {
  display: grid;
  gap: 8px;
}

.feature-video,
.feature-related-link {
  margin-top: 20px;
}

.feature-video {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 11px;
  padding: 10px 13px 10px 10px;
  border: 1px solid rgba(255, 74, 63, 0.24);
  border-radius: 14px;
  background: rgba(255, 55, 45, 0.08);
  color: #fff;
  transition: 160ms ease;
}

.feature-video > span:first-child {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #ff3e32;
  font-size: 10px;
  box-shadow: 0 9px 24px rgba(255, 62, 50, 0.32);
}

.feature-video > span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.feature-video small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.feature-video strong {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-video:hover,
.feature-video:focus-visible {
  border-color: rgba(255, 86, 70, 0.52);
  background: rgba(255, 55, 45, 0.13);
  transform: translateY(-1px);
}

.feature-related-link {
  display: inline-flex;
  width: fit-content;
  color: #ffb15c;
  font-size: 12px;
  font-weight: 800;
}

.feature-related-link:hover,
.feature-related-link:focus-visible {
  color: #fff;
}

.feature-atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.feature-atlas-grid span {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
}

.feature-atlas-grid span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb15c, #ff6048);
}

html[dir="rtl"] .features-map a::before,
html[dir="rtl"] .features-hero-proof span::before,
html[dir="rtl"] .feature-atlas-grid span::before {
  margin-right: 0;
  margin-left: 9px;
}

html[dir="rtl"] .feature-guide li {
  padding-right: 42px;
  padding-left: 0;
}

html[dir="rtl"] .feature-guide li::before {
  right: 0;
  left: auto;
}

@media (max-width: 1080px) {
  .features-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .features-hero-copy {
    max-width: 840px;
  }

  .features-hero-visual {
    width: min(980px, 100%);
  }

  .features-shell {
    grid-template-columns: 1fr;
  }

  .features-map {
    top: 108px;
    overflow-x: auto;
    padding: 10px;
    border-radius: 16px;
  }

  .features-map > strong {
    display: none;
  }

  .features-map nav {
    display: flex;
    width: max-content;
    gap: 4px;
  }

  .features-map a {
    min-height: 34px;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .features-hero {
    gap: 38px;
    padding: 56px 0 72px;
  }

  .features-hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .features-hero-visual {
    transform: none;
  }

  .features-shell {
    gap: 10px;
  }

  .features-map {
    top: 8px;
  }

  .feature-chapter,
  .feature-atlas {
    padding: 58px 0 74px;
  }

  .feature-chapter:first-child {
    padding-top: 34px;
  }

  .feature-guide-grid,
  .feature-atlas-grid {
    grid-template-columns: 1fr;
  }

  .feature-guide {
    padding: 20px;
    border-radius: 18px;
  }

  .feature-guide > p {
    font-size: 13px;
  }

  .feature-video {
    width: 100%;
  }

  .feature-video strong {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-video,
  .features-map a {
    transition: none;
  }
}
