/* 020204.css — 컨택센터 / iweb
   수치는 design/020204_iweb.svg 를 브라우저 렌더한 1920×4819 기준 픽셀 실측.
   단일 줄 텍스트는 line-height:1 로 두어 잉크 박스 ≈ 라인 박스가 되게 하고,
   요소 간 여백은 실측 delta 를 그대로 margin 으로 넣는다.

   세로 좌표(아트보드)
     헤더             0 ~   64
     히어로          64 ~  668   (하단 1px #E8ECEF 구분선 669)
     주요 특징      670 ~ 1331   (#FAFBFC)
     기대 효과     1332 ~ 1929
     활용 사례     1930 ~ 2490   (#FAFBFC)
     시스템 구성도 2491 ~ 3269
     고객사        3270 ~ 3955   (#FAFBFC)
     관련 솔루션   3956 ~ 4618
     푸터          4619 ~                                               */

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

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

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

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

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

/* 본문 4줄(줄간격 30). 두 번째 문장이 시안에서 새 줄로 시작하므로 <br> 로 끊고,
   나머지는 모두 어절 경계에서 넘어간다 */
.iweb-hero__desc {
  margin-top: 21px; /* 부제 박스 하단 331 → 본문 잉크 358 */
  max-width: 570px; /* 시안 최대 줄 폭 560 */
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.25px;
  line-height: 30px;
  word-break: keep-all;
  color: var(--color-text-sub);
}

/* 일러스트 : clipPath 프레임 1016~1535 × 160~495 (SVG-TO-HTML §28-9) */
.iweb-hero__image {
  flex: none;
  margin: 0; /* 히어로 안쪽 top 160 / 콘텐츠 우측 1536 에 그대로 붙는다 */
}

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

.iweb-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;
}

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

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

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

.iweb-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);
}

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

/* ══ 주요 특징 ═══════════════════════════════════════════
   카드 564 ×2 + gap 24 = 1152 / 카드 높이 178 / 2행 / 상단 872 */
.iweb-feature {
  margin-top: 53px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.iweb-feature__item {
  padding: 24px;
  border: 1px solid var(--color-card-line);
  border-radius: 12px;
  background: var(--color-bg);
}

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

.iweb-feature__name {
  display: block;
  margin-top: 19px; /* 아이콘 하단 945 → 이름 잉크 967 */
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

/* 네 장 모두 한 줄이라 카드 안쪽 폭(514)만으로 충분하다 */
.iweb-feature__desc {
  margin-top: 15px; /* 이름 잉크 하단 986 → 본문 잉크 1006 */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.4px;
  line-height: 24px;
  word-break: keep-all;
  color: var(--color-text-sub);
}

/* ══ 기대 효과 ═══════════════════════════════════════════
   2열 552 + gap 48 / 3행(2+2+1) / 항목 112 + 구분선 1 = 113 */
.iweb-benefit {
  margin-top: 29px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
}

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

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

.iweb-benefit__body {
  display: block;
}

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

/* 다섯 항목 모두 한 줄이라 열 안쪽 폭(484)만으로 충분하다 */
.iweb-benefit__desc {
  display: block;
  margin-top: 14px; /* 제목 잉크 하단 1572 → 설명 잉크 1579 */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 24px;
  word-break: keep-all;
  color: var(--color-text); /* 이 섹션만 본문색이 진하다 (시안 실측 #1A1F2E) */
}

/* ══ 활용 사례 ═══════════════════════════════════════════
   카드 564 ×2 + gap 24 / 카드 높이 128 / 설명은 모두 한 줄 */
.iweb-case {
  margin-top: 53px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.iweb-case__item {
  padding: 32px;
  border: 1px solid var(--color-card-line);
  border-radius: 12px;
  background: var(--color-bg);
}

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

.iweb-case__desc {
  margin-top: 16px; /* 제목 잉크 하단 2188 → 본문 잉크 2208 */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 24px;
  word-break: keep-all;
  color: var(--color-text-sub);
}

/* ══ 시스템 구성도 ═══════════════════════════════════════
   패널 1152×497 (2693~3189) / 다이어그램 1040×421, 패널 안쪽 여백 37 */
.iweb-arch {
  margin-top: 53px;
  padding: 37px 0;
  border: 1px solid var(--color-card-line);
  border-radius: 11px; /* 12 면 모서리 안티에일리어싱이 시안과 1행 어긋난다 */
  background: var(--color-bg);
}

.iweb-arch__image {
  display: block;
  width: 1040px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ══ 고객사 ══════════════════════════════════════════════
   칩 높이 42 / 가로 gap 17 · 세로 16 / 좌측 정렬 / 업종 그룹 사이 40 */
.iweb-client {
  margin-top: 53px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 17px;
  row-gap: 16px;
}

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

.iweb-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 / 카드 높이 302.
   설명 줄 수가 카드마다 달라도 링크는 세 장 모두 y4408 → 하단 고정 */
.iweb-solution {
  margin-top: 53px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.iweb-solution__name {
  display: flex;
  align-items: center;
  margin-top: 22px; /* 아이콘 하단 4239 → 제목 잉크 4263 */
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-text);
}

/* SWAT 카드의 New 배지 : 41×22, 이름 잉크 끝에서 10 띄운다 */
.iweb-solution__badge {
  margin-left: 10px;
  padding: 0 8px;
  height: 22px;
  line-height: 22px;
  border-radius: 11px;
  background: rgba(46, 49, 146, 0.1);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-primary);
}

.iweb-solution__desc {
  margin-top: 11px; /* 제목 잉크 하단 4279 → 본문 잉크 4300 */
  margin-bottom: 25px; /* 2줄 카드(가장 높은 카드) 기준 본문 박스 하단 → 링크 박스 */
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 28px;
  word-break: keep-all;
  color: var(--color-text-sub);
}

/* keep-all 은 하이픈 줄바꿈까지 막지는 못한다.
   시안은 'All-in-One' 을 한 덩어리로 두므로 하이픈에서 끊기지 않게 고정 */
.iweb-solution__nobr {
  white-space: nowrap;
}

.iweb-solution__link {
  margin-top: auto; /* 카드 하단 정렬 — 링크 잉크 4380 */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}

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

.iweb-cta .section__inner {
  padding-bottom: 159px; /* 카드 하단 4459 → 푸터 4619 */
}

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

  .iweb-hero__inner {
    flex-direction: column;
    gap: 48px;
  }

  .iweb-hero__image {
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0;
  }

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

  .iweb-hero__desc br {
    display: none;
  }

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

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

  .iweb-feature,
  .iweb-case {
    margin-top: 40px;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .iweb-arch__image {
    width: 860px;
    max-width: none;
  }

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

  .iweb-client + .iweb-client {
    margin-top: 28px;
  }
}
