html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #eef3fb;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.tilt-wrap {
  width: min(200px, 62vw);
  height: 130px;
  display: grid;
  place-items: center;
}

.tilt-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 24px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(47, 109, 246, 0.14);
  box-shadow: 0 10px 26px rgba(47, 109, 246, 0.16);
  transform: perspective(600px) rotateX(0) rotateY(0);
  transition: transform 140ms ease-out;
  will-change: transform;
}

.tilt-card__badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(47, 109, 246, 0.12);
  color: #2f6df6;
  margin-bottom: 12px;
}

.tilt-card__badge svg {
  width: 18px;
  height: 18px;
}

.tilt-card__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #16213a;
}

.tilt-card__desc {
  margin: 0;
  font-size: 12.5px;
  color: #5b6b8c;
}

.tilt-card__sheen {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  background-size: 220% 220%;
  background-position: 0% 50%;
  pointer-events: none;
}

@media (hover: none), (pointer: coarse) {
  .tilt-card {
    transition: none;
  }
}
.tilt-card.is-demo {
  animation: tilt-loop 2s ease-out infinite;
  transition: none;
}

.tilt-card.is-demo .tilt-card__sheen {
  animation: tilt-sheen 2s ease-out infinite;
}

@keyframes tilt-loop {
  0%, 8% {
    transform: perspective(600px) rotateX(0) rotateY(0);
  }
  30% {
    transform: perspective(600px) rotateX(6deg) rotateY(-6deg);
  }
  55% {
    transform: perspective(600px) rotateX(-6deg) rotateY(6deg);
  }
  80%, 100% {
    transform: perspective(600px) rotateX(0) rotateY(0);
  }
}
@keyframes tilt-sheen {
  0%, 8% {
    background-position: 10% 50%;
  }
  30% {
    background-position: 70% 20%;
  }
  55% {
    background-position: 30% 80%;
  }
  80%, 100% {
    background-position: 10% 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tilt-card, .tilt-card__sheen {
    animation: none !important;
    transition: none !important;
    transform: none;
  }
}
