.bss-main-products{
  --bmp-card: rgba(255,255,255,.82);
  --bmp-border: var(--bss-gray-200, rgba(18,28,45,.10));
  --bmp-text: var(--bss-gray-900, #0f172a);
  --bmp-muted: #7a7a7a;
  --bmp-radius: 18px;
  --bmp-shadow: 0px 14px 80px rgba(34, 35, 58, 0.20);
  font-family: inherit;
  color: var(--bmp-text);
}

.bss-main-products *{ box-sizing: border-box; }

.bss-main-products__wrap{ max-width: 100%; margin: 0 auto; padding: clamp(48px, 6vw, 110px) 20px; }

.bss-main-products__shell{
  border: 1px solid var(--bmp-border);
  border-radius: calc(var(--bmp-radius) + 10px);
  background: var(--bss-navy-black-gradient);
  box-shadow: var(--bmp-shadow);
  overflow: hidden;
  position: relative;
  --bmp-mx: 50%;
  --bmp-my: 40%;
}

.bss-main-products__shell > *{
  position: relative;
  z-index: 1;
}

@keyframes bssBitsDrift {
  0% { background-position: 0 0; }
  100% { background-position: 260px -180px; }
}

/* Low-opacity binary "0/1" texture (behind cards) */
.bss-main-products__shell::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease;
  background-repeat: repeat;
  background-size: 260px 180px;
  /* NOTE: keep SVG well‑formed; a single bad tag breaks the whole background */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='180' viewBox='0 0 260 180'%3E%3Crect width='260' height='180' fill='none'/%3E%3Cg fill='%23ffffff' fill-opacity='0.18' font-family='ui-monospace,monospace' font-size='16' font-weight='700' letter-spacing='.30em' xml:space='preserve'%3E%3Ctext x='14' y='28'%3E0  1  0  0  1  1  0  1  1  0  1  0%3C/text%3E%3Ctext x='118' y='52'%3E1  0  1  0  0  1  1  0%3C/text%3E%3Ctext x='30' y='76'%3E0  0  1  1  0  1  0  1  0  0%3C/text%3E%3Ctext x='160' y='92'%3E1  1  0  0  1  0%3C/text%3E%3Ctext x='18' y='118'%3E1  0  0  1  1  1  0  0  0  1%3C/text%3E%3Ctext x='110' y='136'%3E0  1  0  1  0  0  1%3C/text%3E%3Ctext x='22' y='156'%3E1  1  0  0  1  0  1  0%3C/text%3E%3Ctext x='150' y='168'%3E0  0  1  0  1  1%3C/text%3E%3C/g%3E%3C/svg%3E");
  /* keep it subtle on dark gradients */
  mix-blend-mode: screen;
  filter: blur(0.2px);

  /* Spotlight mask around cursor */
  -webkit-mask-image: radial-gradient(circle 170px at var(--bmp-mx) var(--bmp-my), rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
          mask-image: radial-gradient(circle 170px at var(--bmp-mx) var(--bmp-my), rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}

.bss-main-products__shell.is-bits::after{
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce){
  .bss-main-products__shell.is-bits::after{
    animation: none;
  }
}

.bss-main-products__header{ padding: 50px 50px 8px; position: relative; }

.bss-main-products__header-inner{
  display: grid;
  gap: 12px;
}

.bss-main-products__eyebrow{
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .72rem;
}

.bss-main-products__spark{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #50edff, #3fb5ff);
  box-shadow: 0 0 0 6px rgba(80,237,255,.10), 0 0 22px rgba(80,237,255,.25);
  position: relative;
  display: inline-block;
}

.bss-main-products__spark::after{
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(80,237,255,.22), rgba(63,181,255,0) 60%);
  filter: blur(2px);
  opacity: .9;
  pointer-events: none;
}

@property --bmp-spark-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes bssSparkSpin {
  0% { --bmp-spark-angle: 0deg; }
  100% { --bmp-spark-angle: 360deg; }
}

@keyframes bssSparkPulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Glowing ring around the spark (CodePen-like) */
.bss-main-products__spark::before{
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  padding: 2px;
  background: conic-gradient(
    from var(--bmp-spark-angle),
    rgba(80,237,255,0),
    rgba(80,237,255,.95),
    rgba(63,181,255,.85),
    rgba(80,237,255,0)
  );
  opacity: .95;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(80,237,255,.35));
  animation: bssSparkSpin 1.8s linear infinite, bssSparkPulse 2.6s ease-in-out infinite;
}

@supports ((-webkit-mask: linear-gradient(#000 0 0)) or (mask: linear-gradient(#000 0 0))) {
  .bss-main-products__spark::before{
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
  }
}

@supports not ((-webkit-mask: linear-gradient(#000 0 0)) or (mask: linear-gradient(#000 0 0))) {
  .bss-main-products__spark::before{
    padding: 0;
    background: none;
    border: 2px solid rgba(80,237,255,.55);
  }
}

@media (prefers-reduced-motion: reduce){
  .bss-main-products__spark::before{
    animation: none;
  }
}

.bss-main-products__slide-head{
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.92);
}

.bss-main-products__slide-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
}

.bss-main-products__slide-orb{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #50edff, #3fb5ff);
  box-shadow: 0 0 0 6px rgba(80,237,255,.10), 0 0 22px rgba(80,237,255,.22);
}

.bss-main-products__slide-line{
  color: rgba(255,255,255,.78);
  max-width: 90ch;
  font-size: .95rem;
  line-height: 1.45;
}

@media (max-width: 700px){
  .bss-main-products__slide-line{ font-size: .92rem; }
}

.bss-main-products__eyebrow-line{
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.32), rgba(255,255,255,0));
  margin-left: 6px;
}

.bss-main-products__subtitle--hero{
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2.0rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.95);
  text-shadow: 0 10px 30px rgba(0,0,0,.20);
  position: relative;
  padding-bottom: 10px;
}

.bss-main-products__type{
  display: inline-block;
  min-height: 1.2em;
  padding-right: 10px;
  position: relative;
}

.bss-main-products__type::after{
  content: "";
  position: absolute;
  right: 0;
  top: 0.12em;
  width: 2px;
  height: 1em;
  border-radius: 2px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 12px rgba(80,237,255,.25);
  animation: bssCaretBlink 420ms steps(1) infinite;
}

.bss-main-products__type.is-done::after{
  opacity: .0;
  animation: none;
}

@keyframes bssCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.bss-main-products__sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce){
  .bss-main-products__type::after{
    animation: none;
    opacity: 0;
  }
}

.bss-main-products__subtitle--hero::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(320px, 60%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(80,237,255,.95), rgba(63,181,255,.75), rgba(255,255,255,0));
  box-shadow: 0 0 18px rgba(80,237,255,.22);
}

@media (max-width: 700px){
  .bss-main-products__header{ padding: 34px 18px 6px; }
  .bss-main-products__eyebrow-line{ display: none; }
  .bss-main-products__subtitle--hero::after{ width: 70%; }
}

.bss-main-products__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .75rem;
  color: rgba(15,23,42,.65);
}

.bss-main-products__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #50edff, #3fb5ff);
}

.bss-main-products__title{
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
}

.bss-main-products__subtitle{
  margin: 0;
  color: var(--bmp-muted);
  max-width: 72ch;
}

.bss-main-products__grid{
  display: grid;
  gap: 16px;
  padding: 18px 18px 0px;
}

.bss-main-products__slider{
  padding: 18px;
  position: relative;
  margin-top: 6px;
  overflow: hidden;
  touch-action: pan-y;
}

.bss-main-products__track{
  display: flex;
  width: 100%;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.bss-main-products__slide{
  min-width: 100%;
  padding: 18px;
}

.bss-main-products__grid-inner{
  display: grid;
  gap: 16px;
  padding: 0;
}

.bss-main-products__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(15,23,42,.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bss-main-products__nav:hover{
  background: rgba(15,23,42,.50);
}

.bss-main-products__nav--prev{ left: 12px; }
.bss-main-products__nav--next{ right: 12px; }
.bss-main-products__nav span{ font-size: 28px; line-height: 1; }

.bss-main-products__dots{
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.bss-main-products__dot-btn{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}

.bss-main-products__dot-btn[aria-current="true"]{
  width: 26px;
  background: rgba(255,255,255,.85);
}

.bss-main-products__grid--cols-1{ grid-template-columns: 1fr; }
.bss-main-products__grid--cols-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bss-main-products__grid--cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bss-main-products__grid--cols-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

@property --bmp-ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes bssRingSpin {
  0% { --bmp-ring-angle: 0deg; }
  100% { --bmp-ring-angle: 360deg; }
}

.bss-main-products__card{
  position: relative;
  isolation: isolate;
  border: 1px solid transparent; /* ring layer draws the border */
  border-radius: var(--bmp-radius);
  /* background: var(--bmp-card); */
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  padding: 18px;
  min-height: 220px;
  box-shadow:
    0 0 0 1px rgba(63,181,255,.12),
    0 16px 50px rgba(15,23,42,.10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}

/* Border ring (the glow belongs to the BORDER, not the background) */
.bss-main-products__card::after{
  content: "";
  position: absolute;
  inset: -1px; /* sit on the border */
  border-radius: calc(var(--bmp-radius) + 1px);
  padding: 2px;
  background: conic-gradient(
    from var(--bmp-ring-angle),
    rgba(80,237,255,.0),
    rgba(80,237,255,.85),
    rgba(63,181,255,.85),
    rgba(80,237,255,.0)
  );
  opacity: .20;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 14px rgba(80,237,255,.18));
  transition: opacity .18s ease, filter .18s ease;

  /* Cut out the center to leave only the border ring */
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.bss-main-products__card > *{
  position: relative;
  z-index: 1;
}

.bss-main-products__card:hover::after{
  opacity: .85;
  filter: drop-shadow(0 0 18px rgba(80,237,255,.30));
  animation: bssRingSpin 2.4s linear infinite;
}

@media (prefers-reduced-motion: reduce){
  .bss-main-products__card:hover::after{
    animation: none;
  }
}

/* If masking isn't supported, fall back to a solid border glow (still a BORDER effect) */
@supports not ((-webkit-mask: linear-gradient(#000 0 0)) or (mask: linear-gradient(#000 0 0))) {
  .bss-main-products__card::after{
    inset: 0;
    padding: 0;
    background: none;
    border: 2px solid rgba(80,237,255,.35);
    opacity: .65;
    filter: drop-shadow(0 0 14px rgba(80,237,255,.20));
  }
}

.bss-main-products__card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px 200px at 0% 0%, rgba(63,181,255,.20), transparent 55%);
  opacity: .9;
  pointer-events: none;
}

.bss-main-products__card:hover{
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(80,237,255,.18),
    0 18px 55px rgba(15,23,42,.14),
    0 0 32px rgba(80,237,255,.10);
  border-color: rgba(63,181,255,.28);
}

.bss-main-products__pill{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(15,23,42,.72);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(18,28,45,.10);
}

.bss-main-products__logo{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 52px;
  margin-bottom: 14px;
}

.bss-main-products__logo img{
  max-height: 42px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(15,23,42,.10));
}

.bss-main-products__card-title{
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: white;
}

.bss-main-products__card-desc{
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--bmp-muted);
  line-height: 1.55;
  font-size: .95rem;
}

.bss-main-products__btn{
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.bss-main-products__btn .bss-btn-icon svg{
  width: 14px;
  height: 14px;
}

@media (max-width: 980px){
  .bss-main-products__grid--cols-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bss-main-products__grid--cols-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px){
  .bss-main-products__header{ padding: 26px 18px 6px; }
  .bss-main-products__grid{ padding: 14px 14px 22px; }
  .bss-main-products__grid--cols-3,
  .bss-main-products__grid--cols-4{ grid-template-columns: 1fr; }
  .bss-main-products__card{ min-height: auto; }
  .bss-main-products__nav{ display: none; }
}

@media (prefers-color-scheme: dark){
  .bss-main-products{
    --bmp-card: rgba(17,24,39,.60);
    --bmp-border: rgba(148,163,184,.18);
    --bmp-text: #e5e7eb;
    --bmp-muted: rgba(229,231,235,.72);
    --bmp-shadow: 0 20px 70px rgba(0,0,0,.35);
  }
  .bss-main-products__pill{
    color: rgba(229,231,235,.78);
    background: rgba(17,24,39,.55);
    border-color: rgba(148,163,184,.22);
  }
}

