.sandbox-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.sandbox-kicker {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sandbox-header h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.sandbox-header p {
  margin: 1rem 0 0;
  color: var(--text);
  font-size: 1.05rem;
}

.sandbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.sandbox-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(260px, 1fr);
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.sandbox-panel-preview {
  position: relative;
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(59, 115, 217, 0.12), rgba(15, 167, 110, 0.12)), var(--bg);
}

.sandbox-cube {
  position: absolute;
  inset: 18%;
  border: 2px solid rgba(13, 13, 13, 0.28);
  transform: skewY(-10deg) rotate(-4deg);
}

[data-theme='dark'] .sandbox-cube {
  border-color: rgba(237, 237, 237, 0.34);
}

.sandbox-cube::before,
.sandbox-cube::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: inherit;
}

.sandbox-cube::before {
  transform: translate(28px, -22px);
}

.sandbox-cube::after {
  transform: translate(-24px, 28px);
}

.sandbox-dot {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.sandbox-dot--blue {
  left: 22%;
  bottom: 25%;
  background: #2f80ed;
}

.sandbox-dot--green {
  right: 20%;
  bottom: 32%;
  background: #0fa76e;
}

.sandbox-dot--orange {
  top: 22%;
  left: 50%;
  background: #e66b35;
}

.sandbox-panel-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.6rem;
}

.sandbox-panel-label {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sandbox-panel h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.sandbox-panel h2::after {
  display: none;
}

.sandbox-panel-body p:not(.sandbox-panel-label) {
  margin: 0.8rem 0 1.3rem;
  color: var(--text);
}

@media (max-width: 720px) {
  .sandbox-panel {
    grid-template-columns: 1fr;
  }
}
