/* ── Steps Section (mobile-first) ────────────── */
.bsx-steps {
  position: relative;
  overflow: hidden;
  background: #0a2540;
  padding: 48px 16px;
  max-width: 100vw;
  box-sizing: border-box;
  scroll-margin-top: 130px;
}
.bsx-steps *, .bsx-steps *::before, .bsx-steps *::after {
  box-sizing: border-box;
}
.bsx-steps__bg {
  position: absolute;
  inset: 0;
  background: url('../img/bg-steps.webp') center/cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.bsx-steps__shimmer {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: linear-gradient(135deg, transparent 0%, rgba(28,51,102,0.12) 25%, transparent 50%, rgba(45,85,255,0.06) 75%, transparent 100%);
  background-size: 400% 400%;
  animation: bsx-ocean-shimmer 20s ease infinite;
}
@keyframes bsx-ocean-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Content */
.bsx-steps__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 3;
}
.bsx-steps__header {
  text-align: center;
  margin-bottom: 32px;
}
.bsx-steps__eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4fc3f7;
  margin: 0 0 8px;
}
.bsx-steps__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Grid: stacked on mobile */
.bsx-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Step buttons */
.bsx-steps__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.bsx-step-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s ease;
  width: 100%;
}
.bsx-step-btn:hover {
  background: rgba(255,255,255,0.1);
}
.bsx-step-btn:hover .bsx-step-btn__icon {
  background: rgba(79, 195, 247, 0.25);
  color: #4fc3f7;
}
.bsx-step-btn.is-active {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
}

/* Step icon */
.bsx-step-btn__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  transition: background 0.3s, color 0.3s;
}
.bsx-step-btn.is-active .bsx-step-btn__icon {
  background: #4fc3f7;
  color: #0a2540;
}
.bsx-step-btn__icon svg {
  width: 18px; height: 18px;
}

/* Step text */
.bsx-step-btn__content {
  flex: 1; min-width: 0;
}
.bsx-step-btn__label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}
.bsx-step-btn__desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}
.bsx-step-btn.is-active .bsx-step-btn__desc {
  max-height: 80px;
  opacity: 1;
  margin-top: 5px;
}

/* Progress bar */
.bsx-step-btn__progress {
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}
.bsx-step-btn.is-active .bsx-step-btn__progress {
  max-height: 6px;
  opacity: 1;
  margin-top: 10px;
}
.bsx-step-btn__progress-fill {
  height: 100%;
  border-radius: 3px;
  background: #4fc3f7;
  width: 0%;
  transition: none;
}
.bsx-step-btn.is-active .bsx-step-btn__progress-fill {
  animation: bsx-progress-fill 5s linear forwards;
}
@keyframes bsx-progress-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Visual panel */
.bsx-steps__visual {
  position: relative;
  min-width: 0;
}
.bsx-steps__frame {
  overflow: hidden;
  border-radius: 14px;
  border: 3px solid rgba(255,255,255,0.1);
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding: 8px;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.3);
}
.bsx-steps__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.bsx-steps__screen-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.bsx-steps__screen-text.is-active {
  opacity: 1;
}

/* ── Tablet (768px+) ─────────────────────────── */
@media (min-width: 768px) {
  .bsx-steps { padding: 64px 24px; }
  .bsx-steps__header { margin-bottom: 40px; }
  .bsx-steps__eyebrow { font-size: 13px; }
  .bsx-steps__title { font-size: 30px; }
  .bsx-steps__grid { gap: 32px; }
  .bsx-step-btn { padding: 16px; gap: 14px; border-radius: 16px; }
  .bsx-step-btn__icon { width: 40px; height: 40px; border-radius: 12px; }
  .bsx-step-btn__icon svg { width: 20px; height: 20px; }
  .bsx-step-btn__label { font-size: 16px; }
  .bsx-step-btn__desc { font-size: 14px; }
  .bsx-steps__frame { border-radius: 16px; border-width: 4px; padding: 10px; }
  .bsx-steps__screen { border-radius: 12px; }
  .bsx-steps__screen-text { font-size: 16px; padding: 24px; }
}

/* ── Desktop (1024px+) ───────────────────────── */
@media (min-width: 1024px) {
  .bsx-steps { padding: 80px 20px; }
  .bsx-steps__header { margin-bottom: 48px; }
  .bsx-steps__title { font-size: 32px; }
  .bsx-steps__grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: center;
  }
  .bsx-step-btn { padding: 16px 18px; }
  .bsx-step-btn__label { font-size: 17px; }
  .bsx-steps__screen-text { font-size: 17px; }
}
