/* =========================================================
   platform_experience.css
   service_platform SAMPLE B — centered hero + chips + 2-col cards
   palette: existing project tokens only (no gradient / emoji)
   ========================================================= */

.platform-experience-page {
  --px-exp-bg: #ffffff;
  --px-exp-surface: #ffffff;
  --px-exp-surface-soft: #f7f8fa;
  --px-exp-border: #e5e8eb;
  --px-exp-text: #191f28;
  --px-exp-muted: #4e5968;
  --px-exp-subtle: #8b95a1;
  --px-exp-accent: #5b6ef5;
  --px-exp-accent-hover: #4a5ad4;
  --px-exp-accent-soft: #eef1ff;
  --px-exp-chip-bg: #fafbfc;
  --px-exp-search-btn: #111827;
  --px-exp-search-btn-hover: #1f2937;
  --px-exp-chrome: #111827;
  --px-exp-dot-red: #f87171;
  --px-exp-dot-amber: #fbbf24;
  --px-exp-dot-green: #34d399;
  --nav-h: 80px;

  min-height: 100vh;
  color: var(--px-exp-text);
  background: var(--px-exp-bg);
  font-family: 'Noto Sans KR', 'Noto Sans', sans-serif;
}

.platform-experience-page *,
.platform-experience-page *::before,
.platform-experience-page *::after {
  box-sizing: border-box;
}

/* ---------- main shell (header clearance) ---------- */
.px-exp {
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 64px;
  background: var(--px-exp-bg);
  color: var(--px-exp-text);
}

.px-exp-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---------- hero 2-col: left copy → right search (staggered) ---------- */
.px-exp-hero {
  min-width: 0;
  margin: 0;
  padding: 36px 8px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px 40px;
  align-items: center;
  text-align: left;
}

.px-exp-hero-copy,
.px-exp-hero-aside {
  min-width: 0;
  opacity: 0;
  will-change: opacity, transform;
}

/* 왼쪽: 살짝 왼쪽에서 페이드 */
.px-exp-hero-copy {
  transform: translateX(-28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
}

/* 오른쪽: 조금 늦게, 오른쪽에서 페이드 (히어로 전용 리듬) */
.px-exp-hero-aside {
  transform: translateX(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
}

.px-exp-hero.is-in .px-exp-hero-copy {
  opacity: 1;
  transform: none;
  transition-delay: 0ms;
}

.px-exp-hero.is-in .px-exp-hero-aside {
  opacity: 1;
  transform: none;
  transition-delay: 0.22s;
}

.px-exp-title {
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 700;
  word-break: keep-all;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--clr-text, #191f28);
  margin: 0;
  font-family: 'A2z', 'Noto Sans KR', sans-serif;
  text-align: left;
}

.px-exp-lead {
  margin: 12px 0 0;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--px-exp-muted);
  word-break: keep-all;
}

/* ---------- search (hero right column) ---------- */
.px-exp-search {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.px-exp-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.px-exp-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 54px 0 20px;
  border: 1px solid var(--px-exp-border);
  border-radius: 12px;
  background: var(--px-exp-surface);
  transition: border-color 0.15s ease;
}

.px-exp-search-bar:focus-within {
  border-color: var(--px-exp-accent);
}

.px-exp-search-input {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--px-exp-text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
}

.px-exp-search-input::placeholder {
  color: var(--px-exp-subtle);
  font-weight: 500;
}

.px-exp-search-action {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--px-exp-search-btn);
  cursor: pointer;
  transition: background 0.15s ease;
}

.px-exp-search-action:hover,
.px-exp-search-action:focus-visible {
  background: var(--px-exp-search-btn-hover);
}

.px-exp-search-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.px-exp-search-action:focus-visible {
  outline: 2px solid var(--px-exp-accent);
  outline-offset: 2px;
}

/* ---------- single card grid ---------- */
.px-exp-grid {
  min-width: 0;
}

.px-exp-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/*
 * 카드 모션: 아래에서 위로 + 페이드 (히어로 좌우 슬라이드와 구분)
 * 좌→우 순서는 JS delay 로 처리
 */
.px-exp-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--px-exp-border);
  border-radius: 12px;
  background: var(--px-exp-surface);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.px-exp-card.is-in {
  opacity: 1;
  transform: none;
}

.px-exp-card.is-in:hover {
  border-color: #d1d6db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.px-exp-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--px-exp-surface-soft);
  border-bottom: 1px solid var(--px-exp-border);
  overflow: hidden;
}

/* 윈도우 크롬 바 + 컬러 닷 (flat, SAMPLE B) */
.px-exp-card-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  background: #333;
  border-bottom: 0;
  border-bottom: 1px solid #eee;
}

.px-exp-card-chrome span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex-shrink: 0;
}

.px-exp-card-chrome span:nth-child(1) {
  background: var(--px-exp-dot-red);
}

.px-exp-card-chrome span:nth-child(2) {
  background: var(--px-exp-dot-amber);
}

.px-exp-card-chrome span:nth-child(3) {
  background: var(--px-exp-dot-green);
}

.px-exp-card-media img {
  display: block;
  width: 100%;
  height: calc(100% - 28px);
  object-fit: cover;
}

.px-exp-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  color: var(--px-exp-subtle);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  word-break: keep-all;
  background: var(--px-exp-surface-soft);
}

.px-exp-card-placeholder span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.px-exp-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 25px;
}

.px-exp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* accent-tint tags (flat) */
.px-exp-card-tags span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  border: 0;
  background: var(--px-exp-accent-soft);
  color: var(--px-exp-accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.px-exp-card-name {
  display: block;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--px-exp-text);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.px-exp-card-desc {
  margin: 0;
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  color: var(--px-exp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.px-exp-card-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* ---------- buttons (equal width) ---------- */
.px-exp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 50px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.px-exp-btn:focus-visible {
  outline: 2px solid var(--px-exp-accent);
  outline-offset: 2px;
}

.px-exp-btn--primary {
  border: 1px solid var(--px-exp-search-btn);
  background: var(--px-exp-search-btn);
  color: #ffffff;
}

.px-exp-btn--primary:hover {
  background: var(--px-exp-accent);
  border-color:var(--px-exp-accent);
}

.px-exp-btn--line {
  border: 1px solid #ddd;
  background: var(--px-exp-surface);
  color: var(--px-exp-text);
}

.px-exp-btn--line:hover {
  border-color: var(--px-exp-accent);
  color: var(--px-exp-accent);
  background: var(--px-exp-chip-bg);
}

.px-exp-btn--disabled {
  border: 1px solid var(--px-exp-border);
  background: var(--px-exp-surface-soft);
  color: var(--px-exp-subtle);
  cursor: default;
  pointer-events: none;
}

/* ---------- empty ---------- */
.px-exp-empty {
  margin: 0;
  padding: 48px 20px;
  border: 1px dashed var(--px-exp-border);
  border-radius: 12px;
  background: var(--px-exp-surface-soft);
  color: var(--px-exp-muted);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  word-break: keep-all;
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .platform-experience-page {
    --nav-h: 64px;
  }

  .px-exp {
    padding-top: calc(var(--nav-h) + 16px);
    padding-bottom: 48px;
  }

  .px-exp-inner {
    width: calc(100% - 32px);
    gap: 20px;
  }

  .px-exp-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0 8px;
    text-align: center;
  }

  .px-exp-title {
    font-size: 2.4rem;
    text-align: center;
  }

  .px-exp-hero-copy {
    transform: translateY(20px);
  }

  .px-exp-hero-aside {
    transform: translateY(16px);
  }

  .px-exp-search {
    max-width: none;
  }

  .px-exp-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

}

@media (max-width: 420px) {
  .px-exp-inner {
    width: calc(100% - 24px);
  }

  .px-exp-btn {
    min-height: 40px;
    padding: 0 8px;
    font-size: 12px;
  }

  .px-exp-card-body {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .px-exp-hero-copy,
  .px-exp-hero-aside,
  .px-exp-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .px-exp-hero.is-in .px-exp-hero-copy,
  .px-exp-hero.is-in .px-exp-hero-aside {
    transition-delay: 0ms;
  }

  .px-exp-btn,
  .px-exp-search-bar,
  .px-exp-search-action {
    transition: none;
  }
}
