/* 020105.css — AI(인공지능) / Catch All
   수치는 design/020105_CatchAll.svg 를 브라우저 렌더한 1920×5419 기준 픽셀 실측.
   단일 줄 텍스트는 line-height:1 로 두어 잉크 박스 ≈ 라인 박스가 되게 하고,
   요소 간 여백은 실측 delta 를 그대로 margin 으로 넣는다.

   세로 좌표(아트보드)
     헤더             0 ~   64
     히어로          64 ~  788   (하단 1px #E8ECEF 구분선 789)
     셀프트레이닝    790 ~ 1369   (#FAFBFC)
     주요 특징     1370 ~ 2079
     기대 효과     2080 ~ 2587   (#FAFBFC)
     활용 사례     2588 ~ 3173
     시스템 구성도 3174 ~ 3921   (#FAFBFC)
     고객사        3922 ~ 4583
     관련 솔루션   4584 ~ 5218   (#FAFBFC)
     푸터          5219 ~                                            */

/* ══ 히어로 ══════════════════════════════════════════════
   배지 160 / 일러스트 1016~1535 × 160~495 / 버튼 640~693 / 섹션 끝 788 */
.cat-hero {
  padding: 96px 0 95px; /* 헤더 64 + 96 = 배지 160 */
  border-bottom: 1px solid var(--color-card-line);
}

.cat-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter-pc);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.cat-hero__badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 15px; /* 실측 폭 103 */
  margin-bottom: 22px;
  border: 1px solid var(--color-primary);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1;
  color: var(--color-primary);
}

.cat-hero__title {
  font-size: 60px; /* "Catch All" 실측 잉크 248×44 */
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.cat-hero__subtitle {
  margin-top: 35px; /* 타이틀 박스 하단 274 → 부제 잉크 310 */
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.4px;
  color: var(--color-text);
}

/* 본문 2문단. 줄 잉크 358·388·418·448 / 508·538·568 → 줄간격 30.
   이 시안은 문단 사이가 한 줄만큼(30) 벌어져 있다 */
.cat-hero__desc {
  margin-top: 21px; /* 부제 박스 하단 331 → 본문 잉크 358 */
  max-width: 582px; /* 시안 최대 줄 폭 580 */
  word-break: keep-all; /* 시안은 모든 줄이 어절 경계에서 끊긴다 (대응하며·분석해) */
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.25px;
  line-height: 30px;
  color: var(--color-text-sub);
}

.cat-hero__desc + .cat-hero__desc {
  margin-top: 30px;
}

/* 일러스트 : clipPath 프레임 520×336, 배치 1016~1535 × 160~495 */
.cat-hero__image {
  flex: none;
  margin: 0;
}

/* ── 버튼 : 선 173×54, radius 8, 텍스트 + 다운로드 아이콘 14, gap 9 ── */
.cat-actions {
  margin-top: 48px; /* 본문 마지막 줄 박스 하단 592 → 버튼 640 */
  display: flex;
  gap: 16px;
}

.cat-btn {
  width: 173px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-bg);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
  transition: background-color .2s ease, border-color .2s ease;
}

.cat-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-alt);
}

/* ══ 섹션 공통 ═══════════════════════════════════════════
   섹션 top → eyebrow 잉크 83 / eyebrow → 제목 잉크 19 / 제목 → 본문 블록 53 */
.cat-section--alt {
  background: var(--color-bg-alt);
}

.cat-section .section__inner {
  padding-top: 82px;
  padding-bottom: 80px;
}

.cat-eyebrow {
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  color: var(--color-muted);
}

.cat-title {
  margin-top: 17px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--color-text);
}

/* 제목 아래 한 줄 리드 (제목 박스 하단 939 → 박스 964) */
.cat-lead {
  margin-top: 25px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.35px;
  text-align: center;
  color: var(--color-text);
}

/* ══ 셀프트레이닝 표 ══════════════════════════════════════
   1036~1289 / 헤더 행 없음, 본문 3행 × 84 / 컬럼 168
   바깥 테두리는 #D0D7DE, 행 구분선은 #E8ECEF, 마지막 행 구분선은 없다 */
.cat-table {
  margin-top: 54px; /* 리드 박스 하단 982 → 표 위 테두리 1036 */
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

/* 표 제목은 화면에서 감춘다 (시안에 없음) */
.cat-table__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cat-table__col--label {
  width: 168px; /* 구분 텍스트 400 → 내용 텍스트 568 */
}

/* 시안은 구분 라벨이 내용의 "첫 줄"에 맞춰져 있다(가운데 정렬이 아니다).
   그래서 위아래를 padding 으로 잡고 둘 다 top 정렬한다.
   14 + 본문 2줄(56) + 13 + 선 1 = 84 */
.cat-table th,
.cat-table td {
  padding: 14px 16px 13px; /* 표 좌단 384 → 텍스트 400 */
  border-bottom: 1px solid var(--color-card-line);
  text-align: left;
  vertical-align: top;
}

.cat-table tbody tr:nth-child(odd) {
  background: var(--color-bg); /* 회색 섹션 위에서는 홀수 행이 흰색 */
}

/* 마지막 행은 구분선이 없어 그만큼 아래 여백이 1px 더 있다 */
.cat-table tbody tr:last-child th,
.cat-table tbody tr:last-child td {
  padding-bottom: 14px;
  border-bottom: 0;
}

.cat-table tbody th {
  font-size: 18px; /* 시안 잉크 64×17 실측 */
  font-weight: 700;
  line-height: 28px; /* 내용 첫 줄과 같은 라인 박스 */
  letter-spacing: -0.4px;
  color: var(--color-text);
}

.cat-table tbody td {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.4px;
  color: var(--color-text-sub);
}

/* ══ 주요 특징 ═══════════════════════════════════════════
   카드 368 ×3 + gap 24 = 1152 / 행 높이 202 (1572·1798) */
.cat-feature {
  margin-top: 53px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 상 24 / 하 23. 시안 실측이 비대칭이다 */
.cat-feature__item {
  padding: 24px 24px 23px;
  border: 1px solid var(--color-card-line);
  border-radius: 12px;
  background: var(--color-bg);
}

.cat-feature__icon {
  display: block;
  width: 48px;
  height: 48px;
}

.cat-feature__name {
  display: block;
  margin-top: 21px; /* 아이콘 하단 1645 → 이름 박스 1666 (잉크 1667) */
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.cat-feature__desc {
  margin-top: 14px; /* 이름 박스 하단 1688 → 본문 박스 1702 (잉크 1706) */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.4px;
  line-height: 24px;
  color: var(--color-text-sub);
}

/* ══ 기대 효과 ═══════════════════════════════════════════
   2열 552 + gap 48 / 구분선 2394·2507 */
.cat-benefit {
  margin-top: 29px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
}

.cat-benefit__item {
  display: flex;
  align-items: flex-start;
  padding: 29px 0 23px;
  border-bottom: 1px solid var(--color-card-line);
}

.cat-benefit__num {
  flex: none;
  width: 68px; /* 번호 잉크 x386 → 제목 x452 */
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #d1d9f3;
}

.cat-benefit__body {
  display: block;
}

.cat-benefit__name {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.cat-benefit__desc {
  display: block;
  max-width: 415px; /* 시안 최대 줄 폭 404 — 넓히면 02 항목이 한 줄로 붙는다 */
  margin-top: 14px; /* 제목 박스 하단 2309 → 설명 박스 2323 (잉크 2327) */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.3px;
  word-break: keep-all; /* 시안은 모든 줄이 어절 경계에서 끊긴다 */
  line-height: 24px;
  color: var(--color-text); /* 이 섹션만 본문색이 진하다 */
}

/* ══ 활용 사례 ═══════════════════════════════════════════
   1행은 368 ×3, 2행은 564 ×2. 6등분 그리드로 두 폭을 모두 만든다
   (172 ×2 + 24 = 368 / 172 ×3 + 24 ×2 = 564) */
.cat-case {
  margin-top: 53px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

/* 상 36 / 하 30. 시안 실측이 비대칭이다 */
.cat-case__item {
  grid-column: span 2;
  padding: 36px 32px 30px;
  border: 1px solid var(--color-card-line);
  border-radius: 12px;
  background: var(--color-bg);
}

.cat-case__item--wide {
  grid-column: span 3;
}

.cat-case__name {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.cat-case__desc {
  margin-top: 14px; /* 제목 박스 하단 2849 → 본문 박스 2863 (잉크 2867) */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.4px;
  line-height: 24px;
  color: var(--color-text-sub);
}

/* ══ 시스템 구성도 ═══════════════════════════════════════
   패널 1152×466 (3376~3841), 다이어그램 1150×464 */
.cat-arch {
  margin-top: 53px;
  border: 1px solid var(--color-card-line);
  border-radius: 12px;
  background: var(--color-bg);
}

.cat-arch__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ══ 고객사 ══════════════════════════════════════════════
   칩 높이 42 / gap 16 / 좌측 정렬, 그룹 사이 40 (4124·4264·4462) */
.cat-client {
  margin-top: 53px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 17px;
  row-gap: 16px;
}

.cat-client + .cat-client {
  margin-top: 40px;
}

.cat-client__item {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--color-card-line);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.3px;
  color: var(--color-text-sub);
}

/* ══ 관련 솔루션 ═════════════════════════════════════════
   카드 368 ×3 + gap 24 / 카드 높이 274 (4786~5059) */
.cat-solution {
  margin-top: 53px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-solution__item {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--color-card-line);
  border-radius: 12px;
  background: var(--color-bg);
}

.cat-solution__icon {
  display: block;
  width: 48px;
  height: 48px;
}

.cat-solution__name {
  display: block;
  margin-top: 22px; /* 아이콘 하단 4867 → 제목 잉크 4891 */
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

.cat-solution__desc {
  margin-top: 13px; /* 제목 박스 하단 4911 → 본문 박스 4924 (잉크 4928) */
  word-break: keep-all; /* 시안은 모든 줄이 어절 경계에서 끊긴다 */
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 28px;
  color: var(--color-text-sub);
}

/* 링크는 카드 아래에 붙는다 (본문 줄 수가 카드마다 달라도 잉크 5008 고정) */
.cat-solution__link {
  margin-top: auto;
  padding-top: 24px;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}

.cat-solution__link:hover {
  text-decoration: underline;
}

.cat-cta .section__inner {
  padding-bottom: 159px; /* 카드 하단 5059 → 푸터 5219 */
}

/* ══ 태블릿 ══════════════════════════════════════════════
   모바일 시안이 없으므로 1단 스택 + 좌우 여백 규칙을 따른다 */
@media (max-width: 1023px) {
  .cat-hero {
    padding: 64px 0;
  }

  /* 세로로 쌓으면 교차축이 가로가 된다. flex-start 로 두면 본문이
     제 폭(max-content)까지 늘어나 화면 밖으로 나간다 */
  .cat-hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
  }

  .cat-hero__image {
    width: 100%;
    max-width: 520px;
    height: auto;
  }

  .cat-hero__desc {
    max-width: none;
  }

  .cat-section .section__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .cat-cta .section__inner {
    padding-bottom: 100px;
  }

  .cat-lead {
    line-height: 28px;
  }

  .cat-feature {
    margin-top: 40px;
    grid-template-columns: repeat(2, 1fr);
  }

  /* 6등분 그리드는 좁아지면 의미가 없다. 2열로 흘린다 */
  .cat-case {
    margin-top: 40px;
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-case__item,
  .cat-case__item--wide {
    grid-column: auto;
  }

  .cat-solution {
    margin-top: 40px;
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-arch,
  .cat-client {
    margin-top: 40px;
  }

  .cat-benefit {
    margin-top: 24px;
    grid-template-columns: 1fr;
  }

  .cat-benefit__desc {
    max-width: none;
  }

  /* 2열이 좁아지면 제목이 낱글자로 끊긴다. 어절 단위로만 넘긴다 */
  .cat-feature__name,
  .cat-case__name,
  .cat-benefit__name,
  .cat-solution__name {
    word-break: keep-all;
  }

  /* 이 표는 칸 하나가 긴 문단이라 nowrap 으로 두면 가로 스크롤이 2000px 가 된다.
     폭이 줄면 그냥 여러 줄로 흐르게 둔다 */
  .cat-table {
    margin-top: 40px;
  }
}

/* ══ 모바일 ══════════════════════════════════════════════ */
@media (max-width: 767px) {
  .cat-hero {
    padding: 48px 0;
  }

  /* .section__inner 와 좌우 여백을 맞춘다 */
  .cat-hero__inner {
    padding: 0 var(--gutter-mo);
  }

  .cat-hero__title {
    font-size: 36px;
  }

  .cat-hero__subtitle {
    margin-top: 20px;
    font-size: 18px;
  }

  .cat-hero__desc {
    margin-top: 18px;
    font-size: 15px;
    line-height: 26px;
  }

  .cat-hero__desc + .cat-hero__desc {
    margin-top: 18px;
  }

  .cat-actions {
    margin-top: 32px;
  }

  .cat-title {
    margin-top: 14px;
    font-size: 24px;
  }

  .cat-lead {
    font-size: 15px;
    line-height: 24px;
    text-align: left;
  }

  .cat-section .section__inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cat-cta .section__inner {
    padding-bottom: 64px;
  }

  .cat-feature,
  .cat-case,
  .cat-solution {
    grid-template-columns: 1fr;
  }

  .cat-feature__item,
  .cat-case__item,
  .cat-solution__item {
    padding: 20px;
  }

  .cat-feature__name,
  .cat-case__name,
  .cat-benefit__name,
  .cat-solution__name {
    font-size: 18px;
  }

  .cat-feature__desc,
  .cat-case__desc,
  .cat-benefit__desc,
  .cat-solution__desc {
    font-size: 15px;
    line-height: 24px;
  }

  .cat-benefit__item {
    padding: 20px 0;
  }

  .cat-benefit__num {
    width: 52px;
    font-size: 32px;
  }

  /* 구성도는 가로로 긴 다이어그램이라 그대로 줄이면 글자가 안 보인다.
     최소 폭을 두고 패널 안에서만 가로로 흐르게 한다 */
  .cat-arch {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cat-arch__image {
    width: 720px;
    max-width: none;
  }

  /* 375 폭에서는 구분 열(168)이 들어가지 않는다. 라벨 위 / 내용 아래로 쌓는다 */
  .cat-table tbody tr,
  .cat-table tbody th,
  .cat-table tbody td {
    display: block;
    width: auto;
  }

  .cat-table tbody th {
    padding: 16px 16px 0;
    border-bottom: 0;
    font-size: 16px;
    line-height: 1;
  }

  .cat-table tbody td {
    padding: 8px 16px 16px;
    font-size: 15px;
    line-height: 24px;
  }

  .cat-table tbody tr:last-child td {
    padding-bottom: 16px;
  }

  .cat-client + .cat-client {
    margin-top: 24px;
  }

  .cat-client__item {
    height: 38px;
    padding: 0 18px;
    font-size: 15px;
  }
}
