*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: 'IBM Plex Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}

/* ─── PAGE HERO ─────────────────────────────────── */
.page-hero {
  padding: 160px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 20%, transparent 80%);
}
.page-hero-glow {
  position: absolute;
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 0, 77, 0.1) 0%, transparent 70%);
  top: 0;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(224, 0, 77, 0.3);
  border-radius: 999px;
  background: var(--brand-dim);
  font-size: 12px;
  font-weight: 500;
  color: rgba(224, 0, 77, 0.9);
  margin-bottom: 28px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.05em;
  animation: fadeUp 0.5s ease both;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.page-hero h1 {
  max-width: 780px;
  margin: 0 auto 20px;

  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;

  animation: fadeUp 0.5s 0.1s ease both;
}
.page-hero h1 .accent {
  color: var(--brand);
}
.page-hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeUp 0.5s 0.2s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── STATS BAR ─────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.stat-item {
  padding: 32px 40px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 40px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num .unit {
  color: var(--brand);
  font-size: 28px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── CLIENTS SECTION ─────────────────────────────────── */
.clients-section {
  padding: 80px 48px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'IBM Plex Sans KR', sans-serif;
}
.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 16px var(--brand-glow);
}

/* Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px);
  animation: cardIn 0.4s ease forwards;
}
.client-card:hover {
  border-color: rgba(224, 0, 77, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}
@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-thumb img {
  max-width: 68%;
  max-height: 60%;
  -o-object-fit: contain;
     object-fit: contain;
  filter: none;
  opacity: 1;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.client-card:hover .card-thumb img {
  transform: scale(1.04);
}

.card-body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-industry {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Industry tag colours */
.ind-commerce {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.ind-food {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.ind-beauty {
  background: rgba(236, 72, 153, 0.15);
  color: #f9a8d4;
  border: 1px solid rgba(236, 72, 153, 0.25);
}
.ind-game {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.ind-mobility {
  background: rgba(14, 165, 233, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.25);
}
.ind-electronics {
  background: rgba(20, 184, 166, 0.15);
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.25);
}
.ind-finance {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.ind-education {
  background: rgba(244, 114, 182, 0.12);
  color: #fbcfe8;
  border: 1px solid rgba(244, 114, 182, 0.22);
}

.client-card.hidden {
  display: none;
}

/* ─── CTA ─────────────────────────────────── */
.cta-section {
  background: transparent;
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(224, 0, 77, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cta-section > .reveal {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin: 0 auto;
}
.cta-section .page-hero-eyebrow {
  margin: 0 auto 24px;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-section p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition:
    opacity 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.cta-btn:hover {
  opacity: 0.88;
  box-shadow: 0 0 32px var(--brand-glow);
  transform: translateY(-2px);
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo img {
  height: 24px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── REVEAL ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────── */

/* tablet + mobile (≤1023): 필터 가로 스크롤, 카드 body 세로 stack, 히어로 sub 축소 */
@media (max-width: 1023px) {
  .page-hero-sub {
    font-size: 16px !important;
  }

  /* 필터: 가로 스크롤 한 줄 (9개 칩) */
  .filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    margin-bottom: 32px !important;
    padding: 4px 0 !important;
    gap: 6px !important;
    -webkit-overflow-scrolling: touch;
  }
  .filter-btn {
    flex-shrink: 0 !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  /* 카드 body 세로 stack — 이름 위 + 카테고리 아래 (truncate 방지) */
  .card-body {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 12px 14px !important;
  }
  .card-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.35 !important;
  }
}

/* mobile only (≤767): 그리드 2-col, padding/font 미세 조정 */
@media (max-width: 767px) {
  .page-hero {
    padding: 120px 24px 60px;
  }
  .clients-section {
    padding: 60px 24px 80px;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .card-thumb img {
    max-width: 74%;
    max-height: 64%;
  }
  .card-name {
    font-size: 12px !important;
  }
  .card-industry {
    font-size: 10px !important;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    padding: 24px 16px;
  }
  .stat-num {
    font-size: 28px;
  }
  .cta-section {
    padding: 72px 24px;
  }

  /* "더 보기" 버튼 */
  .clients-load-more {
    display: block;
    width: 100%;
    margin: 32px auto 0;
    padding: 14px 24px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition:
      border-color 0.2s,
      color 0.2s,
      background 0.2s;
  }
  .clients-load-more:hover {
    border-color: var(--brand);
    color: var(--text);
    background: rgba(224, 0, 77, 0.06);
  }
}

/* Updated client logo card styles */
.card-thumb {
  background: var(--bg-card3);
}
.card-thumb img {
  max-width: 68%;
  max-height: 60%;
}

/* 데스크탑/태블릿: load-more 버튼 숨김 */
.clients-load-more {
  display: none;
}
