:root {
  --item-showcase-bg: #f3f7fc;
  --item-showcase-card: rgba(255, 255, 255, 0.78);
  --item-showcase-line: rgba(35, 45, 64, 0.08);
  --item-showcase-text: #162033;
  --item-showcase-text-soft: #6a768a;
  --item-showcase-blue: #3d82ff;
  --item-showcase-blue-soft: rgba(61, 130, 255, 0.12);
  --item-showcase-shadow: 0 18px 40px rgba(28, 49, 87, 0.06);

  /* 핵심: PNG 투명 여백 보정용 실제 폰 확대 배율 */
  --item-phone-scale-desktop: 1.5;
  --item-phone-scale-tablet: 1.42;
  --item-phone-scale-mobile: 1.38;
}

.item-showcase,
.item-showcase * {
  box-sizing: border-box;
}

.item-showcase {
  position: relative;
  padding: 80px 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(139, 181, 244, 0.18), transparent 35%),
    radial-gradient(circle at 82% 72%, rgba(180, 212, 255, 0.22), transparent 38%),
    linear-gradient(180deg, #f7f9fd 0%, #edf4fb 100%);
  overflow: hidden;
}

.item-showcase__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 560px);
  gap: 52px;
  align-items: center;
}

.item-showcase__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.item-showcase__copy {
  max-width: 720px;
}

.item-showcase__eyebrow {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--item-showcase-blue-soft);
  color: var(--item-showcase-blue);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.item-showcase__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.04em;
  color: var(--item-showcase-text);
  font-size: clamp(2.5rem, 4.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 900;
  word-break: keep-all;
}

.item-showcase__desc {
  margin: 28px 0 0;
  color: var(--item-showcase-text-soft);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.82;
  word-break: keep-all;
  max-width: 580px;
}

.item-showcase__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.item-showcase__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.item-showcase__tab {
  min-height: 56px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 32px rgba(28, 49, 87, 0.05);
  color: var(--item-showcase-text-soft);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.item-showcase__tab.is-active {
  background: #fff;
  color: var(--item-showcase-text);
  border-color: rgba(61, 130, 255, 0.18);
  box-shadow: 0 12px 36px rgba(45, 88, 162, 0.08);
}

.item-showcase__tab:active {
  transform: scale(0.98);
}

.item-showcase__meta {
  position: relative;
  min-height: 196px;
}

.item-showcase__meta-card {
  position: absolute;
  inset: 0;
  padding: 22px 24px;
  overflow: hidden;
  min-height: 196px;
  border-radius: 24px;
  background: var(--item-showcase-card);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--item-showcase-shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.item-showcase__meta-card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.item-showcase__meta-label {
  margin: 0 0 12px;
  color: var(--item-showcase-blue);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.item-showcase__meta-title {
  margin: 0;
  color: var(--item-showcase-text);
  font-size: clamp(1.4rem, 1.9vw, 1.9rem);
  line-height: 1.24;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.item-showcase__meta-desc {
  margin: 16px 0 0;
  color: var(--item-showcase-text-soft);
  font-size: 1rem;
  line-height: 1.72;
  word-break: keep-all;
  max-width: 96%;
}

.item-showcase__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-showcase__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(36, 48, 68, 0.16);
  transition: transform 0.22s ease, background 0.22s ease;
}

.item-showcase__dot.is-active {
  background: var(--item-showcase-blue);
  transform: scale(1.18);
}

.item-showcase__phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.item-showcase__phone-stage::before {
  content: "";
  position: absolute;
  width: min(86%, 430px);
  height: min(86%, 430px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(112, 164, 255, 0.22) 0%,
    rgba(112, 164, 255, 0.07) 42%,
    transparent 72%
  );
  filter: blur(16px);
}

.item-showcase__phone-stack {
  position: relative;
  width: min(100%, 340px); /* 론데모 래퍼 기준과 동일 */
  aspect-ratio: 9 / 17;
  overflow: visible;
}

.item-showcase__screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transform: translateY(24px) scale(var(--item-phone-scale-desktop));
  transform-origin: center center;
  filter: blur(10px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    filter 0.55s ease;
  pointer-events: none;
  user-select: none;
  display: block;
}

.item-showcase__screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(var(--item-phone-scale-desktop));
  filter: blur(0);
}

/* 태블릿 */
@media (max-width: 1100px) {
  .item-showcase {
    padding: 92px 20px 100px;
  }

  .item-showcase__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
  }

  .item-showcase__content {
    width: min(100%, 760px);
    gap: 22px;
  }

  .item-showcase__copy {
    max-width: 100%;
    text-align: center;
  }

  .item-showcase__desc {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .item-showcase__info {
    max-width: 760px;
    width: 100%;
  }

  .item-showcase__phone-stage {
    width: 100%;
    justify-content: center;
  }

  .item-showcase__phone-stack {
    width: min(100%, 270px);
  }

  .item-showcase__screen {
    transform: translateY(24px) scale(var(--item-phone-scale-tablet));
  }

  .item-showcase__screen.is-active {
    transform: translateY(0) scale(var(--item-phone-scale-tablet));
  }

  .item-showcase__dots {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .item-showcase {
    padding: 64px 16px 72px;
  }

  .item-showcase__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  /* 순서 재배치용 */
  .item-showcase__content {
    width: 100%;
    display: contents;
  }

  .item-showcase__copy {
    order: 1;
    text-align: left;
    max-width: 100%;
  }

  .item-showcase__eyebrow {
    margin-bottom: 12px;
    min-height: 34px;
    font-size: 0.88rem;
    padding: 0 13px;
  }

  .item-showcase__title {
    max-width: 100%;
    font-size: clamp(2.2rem, 9.2vw, 3.5rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
  }

  .item-showcase__desc {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.68;
    max-width: 100%;
  }

  .item-showcase__info {
    order: 2;
    display: contents;
  }

  /* 탭 먼저 */
  .item-showcase__tabs {
    order: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 2px;
  }

  .item-showcase__tab {
    min-height: 46px;
    border-radius: 14px;
    font-size: 0.9rem;
    padding: 0 4px;
  }

  /* 폰을 카드 위로 */
  .item-showcase__phone-stage {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 12px;
    margin-bottom: 12px;
    overflow: visible;
  }

  .item-showcase__phone-stage::before {
    width: min(88%, 280px);
    height: min(88%, 280px);
    filter: blur(12px);
  }

  /* 핵심: 여백 제거된 PNG라 350 쓰면 너무 큼 -> 체감 맞추려면 축소 */
  .item-showcase__phone-stack {
    width: min(100%, 380px);
    aspect-ratio: auto;
    overflow: visible;
  }

  .item-showcase__screen {
    position: relative;
    inset: auto;
    display: none;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    opacity: 1;
    transform: none !important;
    filter: none !important;
    margin: 0;
  }

  .item-showcase__screen.is-active {
    display: block;
    transform: none !important;
    filter: none !important;
    opacity: 1;
  }

  /* 카드와 도트는 폰 아래 */
  .item-showcase__meta {
    order: 4;
    position: relative;
    min-height: 172px;
    margin-top: 8px;
  }

  .item-showcase__meta-card {
    min-height: 172px;
    padding: 18px 16px;
    border-radius: 18px;
  }

  .item-showcase__meta-label {
    margin-bottom: 10px;
    font-size: 0.8rem;
  }

  .item-showcase__meta-title {
    font-size: 1.08rem;
    line-height: 1.3;
  }

  .item-showcase__meta-desc {
    margin-top: 10px;
    font-size: 0.92rem;
    line-height: 1.62;
    max-width: 100%;
  }

  .item-showcase__dots {
    order: 5;
    justify-content: center;
    margin-top: 0;
  }
}