/* ── Platform Showcase (mobile-first) ─────────── */
.bsx-platform {
  position: relative;
  background: linear-gradient(180deg, var(--bsx-bg-muted) 0%, #f0f7ff 40%, var(--bsx-bg-muted) 100%);
  padding: 48px 16px;
  overflow: hidden;
}
.bsx-platform__bg {
  position: absolute;
  inset: 0;
  background: url('../img/bg-platform.webp') center/cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
}
.bsx-platform__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}
.bsx-platform__header {
  text-align: center;
  margin-bottom: 24px;
}
.bsx-platform__eyebrow {
  font-family: var(--bsx-font);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bsx-accent);
  margin: 0 0 6px;
}
.bsx-platform__title {
  font-family: var(--bsx-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--bsx-text);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Tabs */
.bsx-platform__tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.bsx-platform__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bsx-font);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.6);
  color: var(--bsx-text-muted);
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}
.bsx-platform__tab:hover {
  background: #fff;
  color: var(--bsx-text);
}
.bsx-platform__tab.is-active {
  background: var(--bsx-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(40,144,193,0.3);
}
.bsx-platform__tab-icon {
  display: none;
}
.bsx-platform__progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: rgba(255,255,255,0.4);
  transform-origin: left;
  animation: bsx-tab-progress 5s linear forwards;
}
@keyframes bsx-tab-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Content area */
.bsx-platform__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Description stack — grid overlap for crossfade */
.bsx-platform__desc-stack {
  display: grid;
  text-align: center;
}
.bsx-platform__desc {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.bsx-platform__desc.is-active {
  opacity: 1;
  pointer-events: auto;
}
.bsx-platform__desc-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--bsx-radius-md);
  background: rgba(40, 144, 193, 0.1);
  color: var(--bsx-accent);
  margin: 0 auto 12px;
}
.bsx-platform__desc-title {
  font-family: var(--bsx-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--bsx-text);
  margin: 0 0 6px;
  line-height: 1.3;
}
.bsx-platform__desc-text {
  font-family: var(--bsx-font);
  font-size: 14px;
  color: var(--bsx-text-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* Image stack — grid overlap for crossfade */
.bsx-platform__img-stack {
  display: grid;
  justify-items: center;
}
.bsx-platform__img {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 600px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.bsx-platform__img.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Tablet ─────────────────────────────────── */
@media (min-width: 768px) {
  .bsx-platform { padding: 64px 24px; }
  .bsx-platform__title { font-size: 30px; }
  .bsx-platform__header { margin-bottom: 28px; }
  .bsx-platform__tabs { gap: 8px; margin-bottom: 28px; }
  .bsx-platform__tab {
    font-size: 13px;
    padding: 9px 18px;
    gap: 8px;
  }
  .bsx-platform__tab-icon { display: inline-flex; }
  .bsx-platform__desc-title { font-size: 20px; }
  .bsx-platform__desc-text { font-size: 15px; }
}

/* ── Desktop ────────────────────────────────── */
@media (min-width: 1024px) {
  .bsx-platform { padding: 80px 20px; }
  .bsx-platform__title { font-size: 32px; }
  .bsx-platform__tabs { gap: 10px; margin-bottom: 32px; }
  .bsx-platform__tab { font-size: 14px; padding: 10px 22px; }
  .bsx-platform__content {
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }
  .bsx-platform__desc-stack {
    flex: 1;
    text-align: left;
  }
  .bsx-platform__desc-icon { margin: 0 0 12px; }
  .bsx-platform__desc-text { margin-left: 0; margin-right: 0; }
  .bsx-platform__img-stack { flex: 1.8; }
  .bsx-platform__img { max-width: 100%; }
  .bsx-platform__desc-title { font-size: 22px; }
  .bsx-platform__desc-text { font-size: 16px; }
}
