/* ===== SOUNDLAB V10 — TECLADOS DECORATIVOS ===== */
.kb-bg{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.kb-bg > .container,
.kb-bg > .wrap,
.kb-bg > .inner{
  position:relative;
  z-index:2;
}
.keyboard-decor{
  position:absolute;
  z-index:0;
  width:min(760px,70vw);
  height:190px;
  opacity:.105;
  filter:blur(.1px) drop-shadow(0 0 26px rgba(255,255,255,.08));
  transform:perspective(800px) rotateX(64deg) rotateZ(-7deg);
  pointer-events:none;
  transition:transform .3s linear;
  mix-blend-mode:screen;
}
.keyboard-white{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:repeat(14,1fr);
  gap:3px;
}
.keyboard-white span{
  display:block;
  border-radius:4px 4px 13px 13px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(220,225,232,.72));
  border:1px solid rgba(255,255,255,.5);
  box-shadow:inset 0 -12px 20px rgba(0,0,0,.13),0 0 10px rgba(255,255,255,.08);
}
.keyboard-black{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.keyboard-black span{
  --keyw:calc(100% / 14);
  position:absolute;
  left:calc((var(--i) * var(--keyw)) - (var(--keyw) * .23));
  top:0;
  width:calc(var(--keyw) * .46);
  height:62%;
  border-radius:0 0 8px 8px;
  background:linear-gradient(180deg,#030303,#121212 70%,#272727);
  box-shadow:0 8px 14px rgba(0,0,0,.75), inset 0 -4px 8px rgba(255,255,255,.045);
}
.keyboard-top-right{right:-95px;top:-44px}
.keyboard-bottom-left{left:-110px;bottom:-58px;transform:perspective(800px) rotateX(64deg) rotateZ(7deg)}
.keyboard-top-left{left:-120px;top:-48px;transform:perspective(800px) rotateX(64deg) rotateZ(6deg)}
.keyboard-bottom-right{right:-120px;bottom:-62px}

.kb-red .keyboard-decor{
  filter:drop-shadow(0 0 34px rgba(255,34,72,.34));
}
.kb-blue .keyboard-decor{
  filter:drop-shadow(0 0 34px rgba(0,207,255,.34));
}
.kb-gold .keyboard-decor{
  filter:drop-shadow(0 0 34px rgba(255,174,0,.34));
}
.kb-purple .keyboard-decor{
  filter:drop-shadow(0 0 34px rgba(157,64,255,.38));
}

/* Additional transparent synth silhouette */
.kb-bg::after{
  content:"";
  position:absolute;
  width:440px;
  height:125px;
  border:2px solid rgba(255,255,255,.035);
  border-radius:18px;
  background:
    linear-gradient(90deg,transparent 0 8%,rgba(255,255,255,.025) 8% 10%,transparent 10% 17%,rgba(255,255,255,.025) 17% 19%,transparent 19% 100%),
    linear-gradient(180deg,rgba(255,255,255,.02),transparent);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.015);
  right:7%;
  top:17%;
  transform:rotate(-8deg);
  opacity:.8;
  pointer-events:none;
  z-index:0;
}

/* Instagram piano strip */
.piano-strip-section{
  position:relative;
  overflow:hidden;
}
.piano-strip{
  position:absolute;
  left:-2%;
  right:-2%;
  bottom:-22px;
  height:94px;
  display:grid;
  grid-template-columns:repeat(24,1fr);
  gap:2px;
  opacity:.055;
  transform:skewX(-12deg);
  pointer-events:none;
}
.piano-strip span{
  background:linear-gradient(180deg,#fff,#bfc5cc);
  border:1px solid rgba(255,255,255,.3);
  border-radius:2px 2px 8px 8px;
}

/* subtle moving glow */
.kb-bg::before{
  content:"";
  position:absolute;
  width:420px;height:420px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.045),transparent 68%);
  animation:kbGlow 7s ease-in-out infinite;
  pointer-events:none;
  z-index:0;
}
.kb-bg:nth-of-type(even)::before{right:2%;top:5%}
.kb-bg:nth-of-type(odd)::before{left:4%;bottom:0}
@keyframes kbGlow{
  0%,100%{transform:scale(.86);opacity:.35}
  50%{transform:scale(1.14);opacity:.7}
}

@media(max-width:900px){
  .keyboard-decor{
    width:620px;
    height:155px;
    opacity:.075;
  }
  .kb-bg::after{opacity:.45;width:340px;height:100px}
}
@media(max-width:620px){
  .keyboard-decor{
    width:470px;
    height:118px;
    opacity:.045;
    filter:none !important;
  }
  .kb-bg::after{opacity:.22;width:270px;height:80px}
  .piano-strip{opacity:.035;height:70px}
}
@media(prefers-reduced-motion:reduce){
  .kb-bg::before{animation:none}
  .keyboard-decor{transition:none}
}
