/* ═══════════════════════════════════════════════════════════════
   OmicsLab — Platform Showcase (animated canvas banner)
   ═══════════════════════════════════════════════════════════════ */

.sc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  min-height: 360px;
  background: #0d1117;
  border: 1px solid rgba(48,54,61,0.8);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

/* ── Left: copy ── */
.sc-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  background: linear-gradient(135deg, rgba(22,27,34,0.95) 0%, rgba(13,17,23,0.98) 100%);
  border-right: 1px solid rgba(48,54,61,0.7);
}

.sc-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
  width: fit-content;
  transition: color 0.4s ease, background 0.4s ease;
}

.sc-title {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  color: #e6edf3;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  min-height: 2.6em;
  transition: opacity 0.3s ease;
}

.sc-sub {
  font-size: 0.84rem;
  color: #7d8590;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  min-height: 3.4em;
  transition: opacity 0.3s ease;
}

.sc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0d1117;
  border: none;
  border-radius: 7px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  width: fit-content;
  transition: opacity 0.2s, background 0.4s ease, transform 0.15s;
}
.sc-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* Dots */
.sc-dots {
  display: flex;
  gap: 0.45rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(48,54,61,0.9);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.2s;
}
.sc-dot:hover { transform: scale(1.3); }
.sc-dot-active { background: #3fb950; transform: scale(1.15); }

/* Progress bar */
.sc-prog-wrap {
  width: 100%;
  height: 2px;
  background: rgba(48,54,61,0.8);
  border-radius: 2px;
  overflow: hidden;
}
.sc-prog-fill {
  height: 100%;
  width: 0%;
  background: #3fb950;
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* ── Right: canvas ── */
.sc-right {
  position: relative;
  background: #0d1117;
  min-height: 300px;
}

.sc-canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sc-wrap {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .sc-left {
    border-right: none;
    border-bottom: 1px solid rgba(48,54,61,0.7);
    padding: 1.75rem 1.25rem;
  }
  .sc-right {
    height: 260px;
    position: relative;
  }
}

@media (max-width: 600px) {
  .sc-wrap { border-radius: 10px; }
  .sc-title { font-size: 1.05rem; }
  .sc-sub   { font-size: 0.8rem; }
  .sc-right { height: 200px; }
}

/* Adjust host container padding on mobile */
#showcase-section {
  padding: 1.5rem 1.5rem 0;
}
@media (max-width: 700px) {
  #showcase-section { padding: 1rem 1rem 0; }
}
@media (max-width: 480px) {
  #showcase-section { padding: 0.75rem 0.75rem 0; }
}
