.platforms-switch {
  position: relative;
  flex: 0 0 auto;
}

.platforms-switch__menu {
  --panel-x: -50%;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 40;
  margin: 0;
  padding: 14px;
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  min-width: 720px;
  max-height: min(78vh, 740px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  border: 1px solid #ebe7f4;
  border-radius: 18px;
  box-shadow:
    0 4px 6px rgba(67, 50, 138, 0.04),
    0 18px 48px rgba(67, 50, 138, 0.12);
  transform-origin: top center;
  transform: translateX(var(--panel-x)) translateY(-12px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    filter 160ms ease,
    visibility 0s linear 200ms,
    box-shadow 200ms ease;
}

.platforms-switch__menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: blur(0);
  box-shadow:
    0 8px 16px rgba(67, 50, 138, 0.06),
    0 24px 56px rgba(67, 50, 138, 0.16);
  animation: platforms-panel-in 420ms cubic-bezier(0.22, 1.2, 0.36, 1) both;
  transition:
    opacity 160ms ease,
    visibility 0s linear 0s,
    box-shadow 280ms ease;
}

.platforms-switch__menu.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(6px);
  transform: translateX(var(--panel-x)) translateY(-8px) scale(0.94);
  animation: none;
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    filter 160ms ease,
    visibility 0s linear 180ms;
}

.platforms-switch__menu[hidden] {
  display: none;
}

@keyframes platforms-panel-in {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(var(--panel-x)) translateY(-14px) scale(0.88);
  }
  55% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(var(--panel-x)) translateY(2px) scale(1.03);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(var(--panel-x)) translateY(0) scale(1);
  }
}

@keyframes platforms-item-in {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.86);
    filter: blur(4px);
  }
  70% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-2px) scale(1.04);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes platforms-icon-pop {
  0% {
    transform: scale(0.5) rotate(-12deg);
  }
  65% {
    transform: scale(1.12) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.platforms-switch__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #1b1b1b;
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.platforms-switch__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.platforms-switch__label {
  margin: 0;
  padding: 4px 12px 2px;
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a82a8;
}

.platforms-switch__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platforms-switch__group--apps {
  flex: 0 0 240px;
  width: 240px;
  padding-left: 10px;
  border-left: 1px solid #ebe7f4;
}

.platforms-switch__apps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.platforms-switch__app {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #1b1b1b;
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.platforms-switch__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #43328a;
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: #f6f3fc;
  opacity: 0;
  transform: translateY(8px);
}

.platforms-switch__all::after {
  content: "→";
  font-weight: 500;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.platforms-switch__menu.is-open .platforms-switch__item,
.platforms-switch__menu.is-open .platforms-switch__app {
  animation: platforms-item-in 380ms cubic-bezier(0.22, 1.15, 0.36, 1) both;
}

.platforms-switch__menu.is-open .platforms-switch__all {
  animation: platforms-item-in 380ms cubic-bezier(0.22, 1.15, 0.36, 1) 220ms both;
}

.platforms-switch__grid > li:nth-child(1) .platforms-switch__item { animation-delay: 40ms; }
.platforms-switch__grid > li:nth-child(2) .platforms-switch__item { animation-delay: 70ms; }
.platforms-switch__grid > li:nth-child(3) .platforms-switch__item { animation-delay: 100ms; }
.platforms-switch__grid > li:nth-child(4) .platforms-switch__item { animation-delay: 130ms; }
.platforms-switch__grid > li:nth-child(5) .platforms-switch__item { animation-delay: 160ms; }
.platforms-switch__grid > li:nth-child(6) .platforms-switch__item { animation-delay: 190ms; }
.platforms-switch__grid > li:nth-child(7) .platforms-switch__item { animation-delay: 220ms; }
.platforms-switch__grid > li:nth-child(8) .platforms-switch__item { animation-delay: 250ms; }
.platforms-switch__grid > li:nth-child(9) .platforms-switch__item { animation-delay: 280ms; }
.platforms-switch__grid > li:nth-child(10) .platforms-switch__item { animation-delay: 310ms; }
.platforms-switch__grid > li:nth-child(11) .platforms-switch__item { animation-delay: 340ms; }
.platforms-switch__grid > li:nth-child(12) .platforms-switch__item { animation-delay: 370ms; }

.platforms-switch__apps .platforms-switch__app:nth-child(1) { animation-delay: 80ms; }
.platforms-switch__apps .platforms-switch__app:nth-child(2) { animation-delay: 110ms; }
.platforms-switch__apps .platforms-switch__app:nth-child(3) { animation-delay: 140ms; }
.platforms-switch__apps .platforms-switch__app:nth-child(4) { animation-delay: 170ms; }
.platforms-switch__apps .platforms-switch__app:nth-child(5) { animation-delay: 200ms; }
.platforms-switch__apps .platforms-switch__app:nth-child(6) { animation-delay: 230ms; }

.platforms-switch__menu.is-open .platforms-switch__icon {
  animation: platforms-icon-pop 420ms cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.platforms-switch__grid > li:nth-child(1) .platforms-switch__icon { animation-delay: 70ms; }
.platforms-switch__grid > li:nth-child(2) .platforms-switch__icon { animation-delay: 100ms; }
.platforms-switch__grid > li:nth-child(3) .platforms-switch__icon { animation-delay: 130ms; }
.platforms-switch__grid > li:nth-child(4) .platforms-switch__icon { animation-delay: 160ms; }
.platforms-switch__grid > li:nth-child(5) .platforms-switch__icon { animation-delay: 190ms; }
.platforms-switch__grid > li:nth-child(6) .platforms-switch__icon { animation-delay: 220ms; }
.platforms-switch__grid > li:nth-child(7) .platforms-switch__icon { animation-delay: 250ms; }
.platforms-switch__grid > li:nth-child(8) .platforms-switch__icon { animation-delay: 280ms; }
.platforms-switch__grid > li:nth-child(9) .platforms-switch__icon { animation-delay: 310ms; }
.platforms-switch__grid > li:nth-child(10) .platforms-switch__icon { animation-delay: 340ms; }
.platforms-switch__grid > li:nth-child(11) .platforms-switch__icon { animation-delay: 370ms; }
.platforms-switch__grid > li:nth-child(12) .platforms-switch__icon { animation-delay: 400ms; }

.platforms-switch__menu.is-closing .platforms-switch__item,
.platforms-switch__menu.is-closing .platforms-switch__app,
.platforms-switch__menu.is-closing .platforms-switch__all {
  animation: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.platforms-switch__item:hover,
.platforms-switch__item:focus-visible,
.platforms-switch__item[aria-current="page"],
.platforms-switch__app:hover,
.platforms-switch__app:focus-visible,
.platforms-switch__app[aria-current="page"] {
  background: #f6f3fc;
  color: #43328a;
  outline: none;
}

.platforms-switch__item:active,
.platforms-switch__app:active,
.platforms-switch__all:active {
  transform: scale(0.98);
}

.platforms-switch__all:hover,
.platforms-switch__all:focus-visible,
.platforms-switch__all[aria-current="page"] {
  background: #eee8f8;
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .platforms-switch__all:hover::after {
    transform: translateX(3px);
  }
}

.platforms-switch__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f3f0fa;
  overflow: hidden;
}

.platforms-switch__icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.platforms-switch__icon--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platforms-switch__btn[aria-expanded="true"] .arrow,
.features-switch__btn[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

.platforms-switch__btn .arrow,
.features-switch__btn .arrow {
  transition: transform 220ms cubic-bezier(0.22, 1.2, 0.36, 1);
}

.features-switch {
  position: relative;
  flex: 0 0 auto;
}

.features-switch__menu {
  --panel-x: 0px;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 40;
  margin: 0;
  padding: 16px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: min(1040px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid #ebe7f4;
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(67, 50, 138, 0.04),
    0 18px 48px rgba(67, 50, 138, 0.12);
  transform-origin: top center;
  transform: translateX(var(--panel-x)) translateY(-12px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    filter 160ms ease,
    visibility 0s linear 200ms,
    box-shadow 200ms ease;
}

.features-switch__menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: blur(0);
  box-shadow:
    0 8px 16px rgba(67, 50, 138, 0.06),
    0 24px 56px rgba(67, 50, 138, 0.16);
  animation: platforms-panel-in 420ms cubic-bezier(0.22, 1.2, 0.36, 1) both;
  transition:
    opacity 160ms ease,
    visibility 0s linear 0s,
    box-shadow 280ms ease;
}

.features-switch__menu.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(6px);
  transform: translateX(var(--panel-x)) translateY(-8px) scale(0.94);
  animation: none;
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    filter 160ms ease,
    visibility 0s linear 180ms;
}

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

.features-switch__menu > li {
  display: flex;
  min-width: 0;
}

.features-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 18px 16px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: 1px solid #ebe7f4;
  box-shadow: 0 8px 24px rgba(67, 50, 138, 0.05);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.features-switch__menu.is-open .features-card {
  opacity: 1;
  transform: none;
  animation: platforms-item-in 380ms cubic-bezier(0.22, 1.15, 0.36, 1) backwards;
}

.features-switch__menu.is-open li:nth-child(1) .features-card { animation-delay: 50ms; }
.features-switch__menu.is-open li:nth-child(2) .features-card { animation-delay: 90ms; }
.features-switch__menu.is-open li:nth-child(3) .features-card { animation-delay: 130ms; }
.features-switch__menu.is-open li:nth-child(4) .features-card { animation-delay: 170ms; }
.features-switch__menu.is-open li:nth-child(5) .features-card { animation-delay: 210ms; }

.features-switch__menu.is-open .features-card__icon {
  animation: platforms-icon-pop 420ms cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.features-switch__menu.is-open li:nth-child(1) .features-card__icon { animation-delay: 80ms; }
.features-switch__menu.is-open li:nth-child(2) .features-card__icon { animation-delay: 120ms; }
.features-switch__menu.is-open li:nth-child(3) .features-card__icon { animation-delay: 160ms; }
.features-switch__menu.is-open li:nth-child(4) .features-card__icon { animation-delay: 200ms; }
.features-switch__menu.is-open li:nth-child(5) .features-card__icon { animation-delay: 240ms; }

.features-switch__menu.is-closing .features-card {
  animation: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.features-card--auto {
  background: linear-gradient(165deg, #f3f0fa 0%, #ffffff 62%);
}

.features-card--cross {
  background: linear-gradient(165deg, #ece8ff 0%, #ffffff 62%);
}

.features-card--ai {
  background: linear-gradient(165deg, #f6eef6 0%, #ffffff 62%);
}

.features-card--factory {
  background: linear-gradient(165deg, #efeaf9 0%, #ffffff 62%);
}

.features-card--video {
  background: linear-gradient(165deg, #f0eef8 0%, #ffffff 62%);
}

.features-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
}

.features-card--auto .features-card__icon {
  color: #43328a;
  background: #e4dcf6;
}

.features-card--cross .features-card__icon {
  color: #5e4ce0;
  background: #ddd6ff;
}

.features-card--ai .features-card__icon {
  color: #7366bd;
  background: #eadcec;
}

.features-card--factory .features-card__icon {
  color: #43328a;
  background: #e0d8f3;
}

.features-card--video .features-card__icon {
  color: #5e4ce0;
  background: #e4dff8;
}

.features-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.features-card__body strong {
  font-family: "Manrope", Helvetica, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1b1b1b;
}

.features-card__body span {
  font-family: "Manrope", Helvetica, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.35;
  color: #424242;
}

.features-card:hover,
.features-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(67, 50, 138, 0.12);
  outline: none;
}

.features-card--auto:hover,
.features-card--auto:focus-visible,
.features-card--auto[aria-current="page"] {
  border-color: #c9bce8;
}

.features-card--cross:hover,
.features-card--cross:focus-visible,
.features-card--cross[aria-current="page"] {
  border-color: #c4bbf5;
}

.features-card--ai:hover,
.features-card--ai:focus-visible,
.features-card--ai[aria-current="page"] {
  border-color: #d4c0d6;
}

.features-card--factory:hover,
.features-card--factory:focus-visible,
.features-card--factory[aria-current="page"] {
  border-color: #c9bce8;
}

.features-card--video:hover,
.features-card--video:focus-visible,
.features-card--video[aria-current="page"] {
  border-color: #c4bbf5;
}

.features-card[aria-current="page"] {
  box-shadow: 0 0 0 1px rgba(67, 50, 138, 0.12), 0 12px 28px rgba(67, 50, 138, 0.1);
}

@media (max-width: 1280px) {
  .features-switch__menu {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    width: min(920px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .features-card {
    gap: 12px;
    padding: 14px 12px 12px;
  }

  .features-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .features-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .features-card__body {
    gap: 4px;
  }

  .features-card__body strong {
    font-size: 14px;
  }

  .features-card__body span {
    font-size: 12px;
    line-height: 1.35;
  }
}

@media (max-width: 1100px) {
  .features-switch__menu {
    grid-template-columns: repeat(5, minmax(148px, 1fr));
    width: max-content;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
  }
}

@media (max-width: 700px) {
  .features-switch__menu {
    grid-template-columns: 1fr;
    width: min(360px, calc(100vw - 24px));
    max-height: min(65vh, calc(100dvh - 80px));
    overflow-y: auto;
  }

  .features-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .features-switch__menu,
  .features-switch__menu.is-open,
  .features-switch__menu.is-closing,
  .features-card,
  .features-card__icon,
  .features-switch__btn .arrow {
    animation: none !important;
    transition: none !important;
    filter: none !important;
  }

  .features-switch__menu.is-open {
    opacity: 1;
    transform: translateX(var(--panel-x)) translateY(0) scale(1);
  }

  .features-switch__menu.is-open .features-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .platforms-switch__menu {
    --panel-x: 0%;
    left: 0;
    transform-origin: top left;
    flex-direction: column;
    min-width: min(360px, calc(100vw - 32px));
    max-height: min(70vh, 640px);
    overflow-y: auto;
  }

  .platforms-switch__group--apps {
    flex-basis: auto;
    width: auto;
    padding-left: 0;
    padding-top: 10px;
    border-left: none;
    border-top: 1px solid #ebe7f4;
  }

  .platforms-switch__apps {
    grid-template-columns: 1fr 1fr;
  }

  .platforms-switch__item,
  .platforms-switch__app {
    font-size: 15px;
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platforms-switch__menu,
  .platforms-switch__menu.is-open,
  .platforms-switch__menu.is-closing,
  .platforms-switch__item,
  .platforms-switch__app,
  .platforms-switch__all,
  .platforms-switch__icon,
  .platforms-switch__btn .arrow {
    animation: none !important;
    transition: none !important;
    filter: none !important;
  }

  .platforms-switch__menu.is-open {
    opacity: 1;
    transform: translateX(var(--panel-x)) translateY(0) scale(1);
  }

  .platforms-switch__menu.is-open .platforms-switch__item,
  .platforms-switch__menu.is-open .platforms-switch__app,
  .platforms-switch__menu.is-open .platforms-switch__all {
    opacity: 1;
    transform: none;
  }
}
