/* ===========================================================================
   showcase.css — 로그인 화면의 역할 선택 · 지표 인포그래픽 전용 스타일
   ---------------------------------------------------------------------------
   civic.css 의 토큰(--green/--gold/--ink/--line …)만 씁니다. 새 색을 만들지
   않고 기존 팔레트 위에서 명도·투명도만 바꿔 흰 바탕의 격식 있는 화면을 만듭니다.
   모든 이동 애니메이션은 data-motion="off" 와 prefers-reduced-motion 에서
   멈춥니다(화면 설정 토글이 <html data-motion> 을 바꿉니다).
   =========================================================================== */

/* ---- 진입 연출 : 자식마다 --i 로 지연 ------------------------------------ */
.sc-rise {
  opacity: 0;
  transform: translateY(20px);
  animation: sc-rise 0.72s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes sc-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- 히어로 --------------------------------------------------------------- */
.sc-hero {
  position: relative;
  overflow: clip;
  text-align: center;
  padding: clamp(26px, 5vw, 52px) clamp(16px, 4vw, 34px) clamp(22px, 4vw, 38px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(760px 420px at 12% -10%, color-mix(in srgb, var(--green) 9%, transparent), transparent 62%),
    radial-gradient(620px 380px at 90% 0%, color-mix(in srgb, var(--gold) 11%, transparent), transparent 58%),
    var(--surface);
  box-shadow: var(--shadow);
}
.sc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.42;
  pointer-events: none;
  animation: sc-drift 20s ease-in-out infinite;
}
.sc-orb.a {
  inline-size: 320px;
  block-size: 320px;
  inset-inline-start: -90px;
  inset-block-start: -70px;
  background: radial-gradient(circle at 34% 34%, color-mix(in srgb, var(--green) 40%, #fff), transparent 70%);
}
.sc-orb.b {
  inline-size: 280px;
  block-size: 280px;
  inset-inline-end: -70px;
  inset-block-start: 40px;
  background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--gold) 42%, #fff), transparent 70%);
  animation-delay: -7s;
}
@keyframes sc-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, -18px, 0) scale(1.08);
  }
}

.sc-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.sc-dot {
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent);
  animation: sc-pulse 2.2s ease-out infinite;
}
@keyframes sc-pulse {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.sc-title {
  position: relative;
  margin: 16px 0 0;
  font-size: clamp(25px, 4.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ink);
}
.sc-title .g {
  background: linear-gradient(
    100deg,
    var(--green) 0%,
    color-mix(in srgb, var(--green) 55%, var(--gold)) 50%,
    var(--gold-text) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sc-sweep 8s ease-in-out infinite;
}
@keyframes sc-sweep {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.sc-sub {
  position: relative;
  margin: 13px auto 0;
  max-width: 58ch;
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.9;
  color: var(--muted);
}

/* ---- 지표 인포그래픽 ------------------------------------------------------ */
.sc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
  margin-top: clamp(20px, 3vw, 30px);
}
.sc-stat {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-tint));
  text-align: start;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.sc-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.sc-stat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.62) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: sc-shine 5.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 380ms);
  pointer-events: none;
}
@keyframes sc-shine {
  0%,
  64% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
.sc-stat-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.sc-glyph {
  font-size: 16px;
  line-height: 1;
  animation: sc-bob 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 240ms);
}
@keyframes sc-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-3px) rotate(-6deg);
  }
}
.sc-num {
  margin-top: 7px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.sc-num small {
  font-size: 14px;
  font-weight: 700;
  margin-inline-start: 3px;
  color: var(--muted);
}
.sc-cap {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.sc-bar {
  margin-top: 11px;
  block-size: 4px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}
.sc-bar > i {
  display: block;
  block-size: 100%;
  inline-size: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  animation: sc-fill 1.4s var(--ease) forwards;
  animation-delay: calc(300ms + var(--i, 0) * 120ms);
}
@keyframes sc-fill {
  to {
    inline-size: var(--w, 70%);
  }
}

/* ---- 역할 선택 ------------------------------------------------------------ */
.sc-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: clamp(22px, 3.5vw, 34px) 0 14px;
}
.sc-section-head h2 {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.sc-section-head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.sc-roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}
.sc-role {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 14px;
  text-align: start;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 0.42s var(--ease),
    box-shadow 0.42s var(--ease),
    border-color 0.3s var(--ease);
}
.sc-role::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 3px;
  background: var(--tint, var(--green));
  transform: scaleY(0.22);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
}
.sc-role:hover:not(:disabled),
.sc-role:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--tint, var(--green)) 42%, var(--line));
  box-shadow: var(--shadow-hover);
}
.sc-role:hover::before,
.sc-role:focus-visible::before {
  transform: scaleY(1);
}
.sc-role:disabled {
  cursor: progress;
  opacity: 0.55;
}
.sc-role-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-avatar {
  flex: none;
  inline-size: 40px;
  block-size: 40px;
  display: grid;
  place-items: center;
  font-size: 20px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--tint, var(--green)) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tint, var(--green)) 22%, transparent);
  transition: transform 0.45s var(--ease);
}
.sc-role:hover .sc-avatar {
  transform: scale(1.12) rotate(-7deg);
}
.sc-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-inline-size: 0;
}
.sc-role-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.sc-person {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.sc-badge {
  margin-inline-start: auto;
  flex: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--tint, var(--green));
  background: color-mix(in srgb, var(--tint, var(--green)) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tint, var(--green)) 24%, transparent);
}
.sc-duty {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.sc-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  font-weight: 750;
  color: var(--tint, var(--green));
}
.sc-go em {
  font-style: normal;
  transition: transform 0.4s var(--ease);
}
.sc-role:hover .sc-go em {
  transform: translateX(5px);
}

/* ---- 안내 문구 ------------------------------------------------------------ */
.sc-note {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--amber-line);
  background: var(--amber-soft);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--amber-text);
}
.sc-note strong {
  font-weight: 800;
}

.sc-block[hidden] {
  display: none;
}

/* ---- 움직임 최소화 -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sc-rise {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .sc-orb,
  .sc-dot,
  .sc-glyph,
  .sc-title .g,
  .sc-stat::after {
    animation: none;
  }
  .sc-bar > i {
    inline-size: var(--w, 70%);
    animation: none;
  }
  .sc-stat,
  .sc-role,
  .sc-avatar,
  .sc-go em {
    transition: none;
  }
}
html[data-motion="off"] .sc-rise {
  opacity: 1;
  transform: none;
  animation: none;
}
html[data-motion="off"] .sc-orb,
html[data-motion="off"] .sc-dot,
html[data-motion="off"] .sc-glyph,
html[data-motion="off"] .sc-title .g,
html[data-motion="off"] .sc-stat::after {
  animation: none;
}
html[data-motion="off"] .sc-bar > i {
  inline-size: var(--w, 70%);
  animation: none;
}
html[data-motion="off"] .sc-stat,
html[data-motion="off"] .sc-role,
html[data-motion="off"] .sc-avatar,
html[data-motion="off"] .sc-go em {
  transition: none;
}
