/* LED Banner Magic demo: a canvas-driven pixel matrix in the breadcrumb position. */
.led-magic-page main {
  min-height: 54vh;
  background:
    radial-gradient(circle at 10% 12%, rgba(49, 230, 255, .1), transparent 28rem),
    radial-gradient(circle at 88% 35%, rgba(255, 90, 185, .09), transparent 30rem),
    linear-gradient(180deg, #030918, #07162c 52%, #030918);
}

.led-magic-strip {
  position: relative;
  z-index: 4;
  padding: .72rem 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 9, 24, .99), rgba(7, 23, 48, .97) 50%, rgba(3, 9, 24, .99)),
    radial-gradient(circle at 18% 50%, rgba(49, 230, 255, .17), transparent 28rem),
    radial-gradient(circle at 82% 50%, rgba(255, 90, 185, .14), transparent 26rem);
  border-top: 1px solid rgba(49, 230, 255, .58);
  border-bottom: 1px solid rgba(255, 90, 185, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 -8px 20px rgba(49, 230, 255, .08),
    0 12px 28px rgba(255, 90, 185, .08);
}

.led-magic-shell {
  position: relative;
  overflow: hidden;
  min-height: clamp(128px, 14vw, 178px);
  border: 2px solid transparent;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(1, 5, 15, .98), rgba(5, 18, 39, .98)) padding-box,
    linear-gradient(90deg, #31e6ff, #9b83ff, #ff5ab9, #ffc562, #31e6ff) border-box;
  background-size: auto, 340% 100%;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, .38),
    0 0 28px rgba(49, 230, 255, .16),
    inset 0 0 30px rgba(49, 230, 255, .045);
  animation: led-magic-border 5.2s linear infinite;
  isolation: isolate;
}

.led-magic-shell::before,
.led-magic-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.led-magic-shell::before {
  z-index: 2;
  opacity: .68;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(2,6,17,.92), transparent 5%, transparent 95%, rgba(2,6,17,.92));
  mix-blend-mode: screen;
}

.led-magic-shell::after {
  z-index: 3;
  width: 28%;
  left: -34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), rgba(49,230,255,.14), transparent);
  transform: skewX(-16deg);
  animation: led-magic-glass-sweep 6.8s ease-in-out infinite;
}

.led-magic-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.led-magic-label {
  position: absolute;
  top: .55rem;
  left: .65rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: calc(100% - 1.3rem);
  padding: .32rem .56rem;
  border: 1px solid rgba(49, 230, 255, .32);
  border-radius: 999px;
  color: #dffaff;
  background: rgba(3, 9, 24, .76);
  box-shadow: 0 0 14px rgba(49, 230, 255, .12);
  font-family: var(--heading-font);
  font-size: clamp(.66rem, 1.4vw, .78rem);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 9px rgba(49, 230, 255, .65);
  backdrop-filter: blur(8px);
}

.led-magic-label::before {
  content: "";
  width: .48rem;
  height: .48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: led-magic-status 1.2s steps(2, end) infinite;
}

.led-magic-copy {
  max-width: 880px;
  margin-inline: auto;
}

.led-magic-copy .section-title {
  max-width: 18ch;
  margin-inline: auto;
}

.led-magic-copy > p:not(.section-kicker) {
  color: #d5e4f4;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.led-magic-effects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.5rem;
}

.led-magic-effect {
  min-height: 100%;
  padding: .9rem;
  border: 1px solid rgba(138, 220, 255, .18);
  border-radius: .9rem;
  color: #eef9ff;
  background: linear-gradient(145deg, rgba(13, 35, 66, .9), rgba(3, 11, 27, .96));
  box-shadow: 0 12px 28px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05);
}

.led-magic-effect strong {
  display: block;
  margin-bottom: .25rem;
  color: #fff;
  font-family: var(--heading-font);
  font-size: .92rem;
}

.led-magic-effect span {
  color: #afc2d8;
  font-size: .82rem;
  line-height: 1.45;
}

@keyframes led-magic-border {
  to { background-position: 0 0, 340% 0; }
}

@keyframes led-magic-glass-sweep {
  0%, 12% { transform: translateX(0) skewX(-16deg); opacity: 0; }
  22% { opacity: 1; }
  62%, 100% { transform: translateX(520%) skewX(-16deg); opacity: 0; }
}

@keyframes led-magic-status {
  0%, 42% { opacity: 1; }
  43%, 100% { opacity: .28; }
}

@media (max-width: 991.98px) {
  .led-magic-effects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .led-magic-strip { padding: .55rem 0; }
  .led-magic-shell { min-height: 122px; border-radius: .78rem; }
  .led-magic-effects { grid-template-columns: 1fr; }
  .led-magic-label { top: .4rem; left: .45rem; }
}
