.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.94;
  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-showcase {
  position: relative;
  min-height: 530px;
  perspective: 1400px;
}

.features-hero-card {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: clamp(17px, 2vw, 28px);
  background: #08090e;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
}

.features-hero-card-library {
  inset: 0 24px 150px 0;
  transform: rotateY(-4deg) rotateZ(-0.6deg);
}

.features-hero-card-live {
  bottom: 18px;
  left: 20px;
  z-index: 2;
  width: 62%;
  aspect-ratio: 16 / 9;
  transform: rotateZ(1.7deg);
}

.features-hero-card-mobile {
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 26%;
  aspect-ratio: 9 / 14;
  transform: rotateZ(3deg);
}

.features-hero-card::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-card img,
.feature-wide-visual img {
  display: block;
  width: 100%;
}

.feature-wide-visual img {
  height: auto;
}

.features-hero-card img {
  height: 100%;
  object-fit: cover;
}

.features-hero-card-library img {
  object-position: center 30%;
}

.features-hero-card-live img {
  object-position: center;
}

.features-hero-card-mobile img {
  object-position: center 18%;
}

.features-hero-showcase-caption {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(5, 7, 12, 0.78);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.features-hero-showcase-caption span {
  color: #ffba57;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.features-hero-showcase-caption strong {
  color: #fff;
  font-size: clamp(14px, 1.4vw, 19px);
}

.features-search {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(360px, 1.28fr);
  gap: 12px clamp(28px, 5vw, 76px);
  align-items: end;
  margin-top: 52px;
  margin-bottom: 38px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 104, 68, 0.15), transparent 40%),
    radial-gradient(circle at 88% 70%, rgba(64, 158, 255, 0.13), transparent 42%),
    rgba(10, 12, 20, 0.88);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(22px);
  scroll-margin-top: 130px;
}

.features-search-copy h2 {
  margin: 9px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.features-search-copy > p:last-child {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1.6;
}

.features-search-control {
  position: relative;
}

.features-search-control .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.features-search-control svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: rgba(255, 177, 92, 0.9);
  stroke-linecap: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.features-search-control input {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px 14px 52px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 17px;
  outline: 0;
  background: rgba(4, 6, 11, 0.74);
  color: #fff;
  font: inherit;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.features-search-control input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.features-search-control input:focus {
  border-color: rgba(255, 143, 80, 0.72);
  background: rgba(4, 6, 11, 0.94);
  box-shadow: 0 0 0 4px rgba(255, 108, 67, 0.1);
}

html[dir="rtl"] .features-search-control svg {
  right: 18px;
  left: auto;
}

html[dir="rtl"] .features-search-control input {
  padding-right: 52px;
  padding-left: 18px;
}

.features-search-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 8px 2px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 720;
}

.features-search-results {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.features-search-results[hidden] {
  display: none;
}

.feature-search-result {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.feature-search-result strong {
  color: #fff;
  font-size: 15px;
}

.feature-search-result span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.5;
}

.feature-search-result:hover,
.feature-search-result:focus-visible {
  border-color: rgba(255, 151, 81, 0.5);
  background: rgba(255, 123, 70, 0.09);
  transform: translateY(-1px);
}

.features-shell {
  padding-bottom: 132px;
}

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

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

.feature-atlas {
  padding-top: 24px;
}

.feature-chapter + .feature-chapter,
.feature-atlas + .feature-chapter {
  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.97;
  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 {
  aspect-ratio: 16 / 9;
}

.feature-wide-visual-server img {
  height: 100%;
  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: 16px;
  line-height: 1.65;
}

.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: 15px;
  line-height: 1.6;
  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: 10px;
}

.feature-atlas-item {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 76px;
  align-content: center;
  padding: 13px 48px 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.feature-atlas-item::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: 17px;
  color: rgba(255, 174, 91, 0.76);
  font-size: 17px;
  font-weight: 760;
  line-height: 1;
  transform: translateY(-50%);
  transition: color 160ms ease, transform 160ms ease;
}

.feature-atlas-item strong {
  color: #fff;
  font-size: clamp(15px, 1vw, 17px);
  font-weight: 820;
  line-height: 1.35;
}

.feature-atlas-item > span {
  color: rgba(255, 255, 255, 0.57);
  font-size: clamp(14px, 0.9vw, 15px);
  font-weight: 550;
  line-height: 1.55;
}

.feature-atlas-item:hover,
.feature-atlas-item:focus-visible {
  border-color: rgba(255, 151, 81, 0.47);
  background: rgba(255, 122, 65, 0.075);
  transform: translateY(-2px);
}

.feature-atlas-item:hover::after,
.feature-atlas-item:focus-visible::after {
  color: #fff;
  transform: translate(3px, -50%);
}

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

html[dir="rtl"] .feature-atlas-item {
  padding-right: 17px;
  padding-left: 48px;
}

html[dir="rtl"] .feature-atlas-item::after {
  right: auto;
  left: 17px;
  content: "\2190";
}

html[dir="rtl"] .feature-atlas-item:hover::after,
html[dir="rtl"] .feature-atlas-item:focus-visible::after {
  transform: translate(-3px, -50%);
}

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-showcase {
    width: min(980px, 100%);
  }

  .feature-atlas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

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

  .features-hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.55rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .feature-chapter-head h2 {
    font-size: clamp(2.25rem, 10vw, 3rem);
    line-height: 0.99;
    letter-spacing: -0.045em;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .features-hero-showcase {
    min-height: 370px;
  }

  .features-hero-card-library {
    inset: 0 8px 118px 0;
    transform: rotateZ(-0.5deg);
  }

  .features-hero-card-live {
    bottom: 18px;
    left: 0;
    width: 68%;
  }

  .features-hero-card-mobile {
    width: 32%;
  }

  .features-hero-showcase-caption {
    top: 12px;
    left: 12px;
  }

  .features-search {
    grid-template-columns: 1fr;
    margin-top: 24px;
    margin-bottom: 22px;
    padding: 22px;
    border-radius: 20px;
    scroll-margin-top: 272px;
  }

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

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

  .feature-atlas {
    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: 16px;
  }

  .feature-video {
    width: 100%;
  }

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

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