/* =========================================
   cases/index.html 페이지 전용 스타일
   성공사례 페이지 디자인
   ========================================= */

:root {
  --accent: #FF4D00;
  --accent-bg: #FFF0EB;
  --black: #111111;
  --white: #FFFFFF;
  --gray-400: #CCCCCC;
  --gray-500: #AAAAAA;
  --gray-600: #888888;
}
* { box-sizing: border-box; }
html, body {
  background: var(--black) !important;
  height: auto;
  min-height: 100%;
}
body {
  color: var(--white);
  font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
main { padding-top: 60px; }

/* Hero */
.cases-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 80px 60px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero-title span { color: var(--accent); }
.hero-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--gray-500);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Stats bar */
.cases-stats {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}
.stat-num {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}

/* Filter */
.cases-filter {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  padding: 8px 16px;
  border: 1px solid #2a2a2a;
  border-radius: 9999px;
  background: transparent;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--white);
}
.filter-chip.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  font-weight: 600;
}

/* Case cards */
.cases-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.case-img {
  /* aspect-ratio: 16 / 9; */
  background: #222;
  overflow: hidden;
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.case-card:hover .case-img img { transform: scale(1.04); }
.case-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a2a;
}
.case-type {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
}
.case-rate {
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}
.case-rows {
  padding: 16px 20px;
}
.case-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #2a2a2a;
}
.case-row:last-child { border-bottom: none; }
.case-label { color: var(--gray-600); }
.case-value { color: var(--gray-400); }
.case-value--hl { color: var(--white); font-weight: 700; }
.case-strategy {
  background: #151515;
  padding: 14px 20px;
  border-top: 1px solid #2a2a2a;
}
.strategy-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.strategy-text {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* CTA */
.cases-cta {
  background: var(--accent);
  padding: 80px;
  text-align: center;
}
.cta-urgency {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.cta-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 12px;
  word-break: keep-all;
}
.cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--white);
  color: var(--accent);
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cta-btn svg {
  width: 18px; height: 18px; fill: currentColor;
}

/* Cross link */
.cross-link {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 80px;
  text-align: center;
}
.cross-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid #333;
  border-radius: 9999px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.cross-link a:hover { border-color: var(--accent); color: var(--accent); }

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .cases-hero, .cases-stats, .cases-filter, .cases-grid, .cases-cta, .cross-link {
    padding-left: 40px;
    padding-right: 40px;
  }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cases-hero { padding: 48px 24px; }
  .cases-stats { padding: 0 24px 48px; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cases-stats .stat-item { padding: 18px 10px; }
  .cases-stats .stat-name { font-size: 11px; }
  .cases-filter { padding: 0 24px 24px; }
  .cases-grid { padding: 0 24px 60px; grid-template-columns: 1fr; }
  .cases-cta { padding: 48px 24px; }
  .cross-link { padding: 48px 24px; }
}
