.page-interactive {
  overflow-x: hidden;
}

.interactive-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.interactive-spotlight {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(55, 207, 134, 0.18), transparent 70%);
  filter: blur(4px);
}

.lab-shell {
  display: grid;
  gap: 18px;
}

.topic-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-switcher button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(55, 207, 134, 0.18);
  background: rgba(7, 11, 7, 0.72);
  color: var(--muted);
  cursor: pointer;
}

.topic-switcher button.is-active,
.topic-switcher button:hover {
  color: var(--text);
  background: rgba(55, 207, 134, 0.1);
}

.interactive-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.hover-tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

.hover-tilt::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(55, 207, 134, 0.08), transparent 50%);
  pointer-events: none;
}

.metric-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-tile {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(7, 11, 7, 0.74);
  border: 1px solid var(--line);
}

.metric-tile strong {
  display: block;
  margin-bottom: 8px;
}

.metric-tile p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.topic-detail {
  min-height: 340px;
}

.topic-detail .detail-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(55, 207, 134, 0.08);
}

.lab-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.demo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  overflow: hidden;
}

.demo-card .tag-list {
  margin-top: 18px;
}

.demo-card .button-row {
  margin-top: 24px;
}

.demo-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 207, 134, 0.12), transparent 72%);
  pointer-events: none;
}

.metric-chip {
  color: var(--accent);
}

@media (max-width: 960px) {
  .interactive-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .metric-tiles {
    grid-template-columns: 1fr;
  }
}
