/* ─────────────────────────────────────────────
   POPUP STUDIO · TYPOGRAPHY (한글·영문 분리)
   - 본문(body): 한글 → Pretendard Variable, 영문 → Inter (unicode-range로 분리)
   - 라벨·버튼: Pretendard Full (영문도 Pretendard로 통일)
   ───────────────────────────────────────────── */

/* (1) 본문용 Pretendard — 한글 글리프만 담당 */
@font-face {
  font-family: "Pretendard Variable";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2")
    format("woff2-variations");
  unicode-range: U+AC00-D7A3, U+1100-11FF, U+3130-318F;
}

/* (2) 라벨·버튼용 Pretendard — 영문 포함 전체 글리프 */
@font-face {
  font-family: "Pretendard Full";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2")
    format("woff2-variations");
}

/* ─────────────────────────────────────────────
   POPUP STUDIO · DESIGN TOKENS (Tailwind @theme와 동일 값)
   ───────────────────────────────────────────── */
:root {
  --color-bg: #000000;
  --color-bg-elevated: #0e0e0e;
  --color-bg-subtle: #161616;

  --color-border-dim: #1f1f1f;
  --color-border-mid: #2a2a2a;

  --color-text-primary: #ffffff;
  --color-text-secondary: #b8b8b8;
  --color-text-muted: #6b6b6b;
  --color-text-disabled: #3a3a3a;

  --color-accent-300: #ffa07a;
  --color-accent-400: #ff7849;
  --color-accent-500: #ff5722;
  --color-accent-600: #e64a1c;

  --font-sans: "Pretendard Variable", "Inter", -apple-system,
    BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Apple SD Gothic Neo",
    "Noto Sans KR", sans-serif;
  --font-display: "Pretendard Full", "Pretendard Variable", "Inter",
    -apple-system, system-ui, sans-serif;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  background: var(--color-bg);
  color: var(--color-text-primary);
}

/* sticky header(h-16=4rem)가 앵커 스크롤 시 섹션 상단을 가리지 않도록 */
html {
  scroll-padding-top: 4rem;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02";
}

/* ─────────────────────────────────────────────
   타이포그래피 스케일
   ───────────────────────────────────────────── */
.text-display {
  font-size: 3.5rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}
@media (min-width: 768px) {
  .text-display {
    font-size: 6rem;
  }
}

.text-h1 {
  font-size: 2.375rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .text-h1 {
    font-size: 3.75rem;
  }
}

.text-h2 {
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .text-h2 {
    font-size: 2.5rem;
  }
}

.text-h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .text-h3 {
    font-size: 1.625rem;
  }
}

.text-body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.text-body {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.text-caption {
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 400;
}

.label-mono {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}

.label-mono-lg {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ─────────────────────────────────────────────
   비주얼 데코
   ───────────────────────────────────────────── */

/* 스캔라인 (Hero 큰 텍스트용 가로 결) */
.scanline {
  background-image: repeating-linear-gradient(
    to bottom,
    currentColor 0,
    currentColor 4px,
    transparent 4px,
    transparent 6px
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: currentColor;
}

/* 코너 브래킷 (카드 외곽 ⌐⌐ 데코) */
.bracket-corner {
  position: relative;
}
.bracket-corner::before,
.bracket-corner::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--color-accent-500);
  border-style: solid;
  border-width: 0;
}
.bracket-corner::before {
  top: -1px;
  left: -1px;
  border-top-width: 2px;
  border-left-width: 2px;
}
.bracket-corner::after {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

/* 무한 가로 슬라이드 (파트너 로고 띠) */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* 셀렉션 컬러 */
::selection {
  background: var(--color-accent-500);
  color: #000;
}

/* ─────────────────────────────────────────────
   AX OS · Block 02 프로세스 — 스크롤 활성 단계 강조
   JS(axos-process.js)가 .is-active 토글
   ───────────────────────────────────────────── */
.axos-step {
  border-color: var(--color-border-dim);
  opacity: 0.9;
  transform: scale(1);
  transition: all 0.5s ease;
}
.axos-step.is-active {
  border-color: var(--color-accent-500);
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(255, 87, 34, 0.2);
}
.axos-step .step-num {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}
.axos-step.is-active .step-num {
  color: var(--color-accent-500);
}
.axos-step .step-en {
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}
.axos-step.is-active .step-en {
  color: var(--color-accent-500);
}
.axos-step .step-ko {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}
.axos-step.is-active .step-ko {
  color: var(--color-text-primary);
}
.axos-arrow {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}
.axos-arrow.is-active {
  color: var(--color-accent-500);
}

/* ─────────────────────────────────────────────
   Cases 케러셀 — tween 노드 + 점 인디케이터 진행바
   ───────────────────────────────────────────── */
.cases-tween {
  height: 100%;
  will-change: transform;
  transform-origin: center center;
}

@keyframes cases-progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}
.cases-dot-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--color-accent-500);
}
.cases-dot-fill.is-running {
  animation: cases-progress var(--cases-interval, 4000ms) linear forwards;
}

.cases-card.is-highlighted {
  border-color: var(--color-accent-500);
}

/* 호버 시 Autoplay 정지에 맞춰 진행바도 일시정지 */
#cases-carousel:hover .cases-dot-fill.is-running {
  animation-play-state: paused;
}

/* 컬러 client 로고를 흰색 단색으로 통일 (배포본과 동일) */
.logo-white {
  filter: brightness(0) invert(1);
}
