.capability-explorer {
  padding: 26px 0 74px;
  scroll-margin-top: 76px;
  background: var(--feature-surface);
}

.feature-tabs-shell {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 60px;
  align-items: center;
  gap: 20px;
}

.feature-tabs-arrow {
  display: grid;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid #d8dde3;
  border-radius: 6px;
  place-items: center;
  color: #4e5863;
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.feature-tabs-arrow svg { width: 22px; height: 22px; }

.feature-tabs {
  position: relative;
  height: 174px;
  overflow: hidden;
  perspective: 1000px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.feature-tab {
  --module-accent: #6e5ccf;
  --module-art: #f1efff;
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 220px;
  height: 94px;
  padding: 0 22px;
  border: 1px solid color-mix(in srgb, var(--module-accent) 20%, #d5dbe1);
  border-radius: 6px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: #59616a;
  background: linear-gradient(135deg, var(--module-art), rgba(255, 255, 255, .9));
  box-shadow: 0 10px 26px rgba(31, 39, 49, .05);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 400ms cubic-bezier(.22, 1, .36, 1), opacity 260ms ease, width 400ms ease, height 400ms ease;
}

.feature-tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--module-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.feature-tab[data-position="previous"] { z-index: 2; transform: translate(-50%, -50%) translateX(-390px); }
.feature-tab[data-position="next"] { z-index: 2; transform: translate(-50%, -50%) translateX(390px); }
.feature-tab[data-position="rest"] { visibility: hidden; opacity: 0; pointer-events: none; }

.feature-tab__icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--module-accent);
}

.feature-tab__icon svg { width: 22px; height: 22px; }

.feature-tab__text { min-width: 0; text-align: left; }

.feature-tab strong {
  display: block;
  color: #5d626a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.feature-tab small { display: none; }

.feature-tab[aria-selected="true"] {
  z-index: 4;
  width: 500px;
  height: 148px;
  padding: 0 28px;
  border-color: color-mix(in srgb, var(--module-accent) 26%, #d5dbe1);
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  opacity: 1;
  background: linear-gradient(135deg, var(--module-art), rgba(255, 255, 255, .96) 76%);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--module-accent) 12%, transparent);
}

.feature-tab[aria-selected="true"]::after { opacity: .72; }
.capability-explorer.is-auto-running .feature-tab[aria-selected="true"]::after { animation: feature-tab-progress var(--feature-cycle) linear both; }
.capability-explorer.is-auto-paused .feature-tab[aria-selected="true"]::after { animation-play-state: paused; }

.feature-tab[aria-selected="true"] .feature-tab__icon {
  width: 72px;
  height: 72px;
  border-radius: 5px;
  color: #fff;
  background: var(--module-accent);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--module-accent) 28%, transparent);
}

.feature-tab[aria-selected="true"] .feature-tab__icon svg { width: 36px; height: 36px; }

.feature-tab[aria-selected="true"] strong {
  color: color-mix(in srgb, var(--module-accent) 58%, #20262d);
  font-size: 36px;
  line-height: 1.1;
}

.feature-tab[aria-selected="true"] small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #80838b;
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (hover: hover) {
  .feature-tabs-arrow:hover { color: var(--feature-accent); border-color: #ffaaa6; background: #fff; }
  .feature-tab:not([aria-selected="true"]):hover { opacity: 1; }
}

@keyframes feature-tab-progress { to { transform: scaleX(1); } }
