/* Isolated copy of the /site/ hero device stage. Scoped so it does not restyle the company pages or the portfolio. */
.apex-preview {
  margin: 0;
  max-width: 100%;
  min-width: 0;
}
.apex-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.08 / 1;
  container-type: inline-size;
  transform-style: preserve-3d;
}
.apex-stage::before {
  content: "";
  position: absolute;
  inset: 6% 4% 8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 82%, rgba(99, 102, 241, 0.28), transparent 46%),
    radial-gradient(circle at 86% 12%, rgba(6, 182, 212, 0.18), transparent 42%);
  filter: blur(10px);
}
.apex-device {
  position: absolute;
  overflow: hidden;
  background: #0f172a;
}
.apex-tablet {
  top: 1%;
  left: 0;
  width: 38%;
  aspect-ratio: 4 / 3;
  z-index: 1;
  padding: 0.45rem;
  border-radius: 16px;
  border: 2px solid #334155;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.2), 0 20px 40px rgba(0, 0, 0, 0.5);
}
.apex-tv {
  left: 8%;
  right: 8%;
  top: 12%;
  aspect-ratio: 16 / 9;
  z-index: 2;
  padding: 0.7rem;
  border-radius: 14px;
  border: 2px solid #334155;
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.25), 0 25px 50px rgba(0, 0, 0, 0.55);
}
.apex-phone {
  right: 1%;
  bottom: 0;
  width: 28%;
  aspect-ratio: 9 / 19;
  z-index: 3;
  padding: 0.35rem;
  border-radius: 22px;
  border: 2px solid #475569;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.2), 0 20px 40px rgba(0, 0, 0, 0.5);
}
.apex-screen {
  height: 100%;
  border-radius: 10px;
  background: #12121f;
  padding: 0.45rem;
  color: #f8fafc;
  min-width: 0;
}
.apex-screen-dark {
  background: #080810;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}
.apex-kicker {
  font-size: clamp(0.55rem, 1.6cqi, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.apex-kicker-cyan { color: #06b6d4; }
.apex-kicker-gold { color: #f59e0b; }
.apex-party-art {
  height: 38%;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, rgba(22, 78, 99, 0.7), #1e293b);
}
.apex-line {
  height: 0.35rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 0.28rem;
}
.apex-line.w3 { width: 75%; }
.apex-line.w2 { width: 50%; }
.apex-tv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.apex-logo {
  font-size: clamp(0.68rem, 2.4cqi, 0.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.apex-logo span { color: #f59e0b; }
.apex-live {
  font-size: clamp(0.5rem, 1.5cqi, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}
.apex-shelf-label {
  font-size: clamp(0.55rem, 1.7cqi, 0.72rem);
  color: #94a3b8;
  margin: 0.15rem 0;
}
.apex-row {
  display: flex;
  gap: 0.4rem;
  overflow: hidden;
  padding: 0.15rem 0 0.3rem;
}
.apex-poster {
  flex: 0 0 auto;
  width: clamp(28px, 9cqi, 52px);
  height: clamp(42px, 13.5cqi, 78px);
  border-radius: 6px;
  background: linear-gradient(145deg, #312e81, #1e293b);
}
.apex-poster.live {
  width: clamp(40px, 12cqi, 72px);
  height: clamp(24px, 7cqi, 42px);
  background: linear-gradient(145deg, #164e63, #1e293b);
}
.apex-phone .apex-screen {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 0.4rem;
}
.apex-notch {
  width: 2.2rem;
  height: 0.22rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0.15rem auto 0.35rem;
}
.apex-phone-body { display: grid; gap: 0.35rem; min-height: 0; }
.apex-chip {
  height: 1.6rem;
  border-radius: 0.45rem;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.25);
}
.apex-squares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }
.apex-squares span { aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, 0.05); }
.apex-remote {
  height: 2.6rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(to bottom, #1a1a2e, #000);
}
.apex-tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 0.2rem;
  font-size: clamp(0.48rem, 1.6cqi, 0.62rem);
  color: #94a3b8;
  padding-top: 0.3rem;
}
.apex-tabs span { text-align: center; min-width: 0; }
.apex-tabs .is-on { color: #f59e0b; }
.apex-preview figcaption {
  margin-top: 0.75rem;
  color: var(--muted, #a8b3c5);
  font-size: 0.92rem;
}
.apex-preview--large {
  max-width: 760px;
  margin-inline: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .apex-tablet { animation: apex-float 8s ease-in-out infinite; }
  .apex-tv { animation: apex-float 7s ease-in-out 0.2s infinite; }
  .apex-phone { animation: apex-float 7.4s ease-in-out 0.4s infinite; }
}
@keyframes apex-float {
  50% { translate: 0 -10px; }
}
