/* ========================================================================
   DBTS Solution Catalog — Components (v1.5)
   ------------------------------------------------------------------------
   카탈로그 시리즈 전반에서 재사용되는 블록:
   - .eyebrow (섹션 상단 라벨)
   - h2.section-title / .section-kicker (섹션 제목 체계)
   - .reveal (스크롤 등장 애니메이션)
   - .sys-pay-strip / .sys-pay-chip (결제 수단 스트립)
   - footer (공통 레이아웃)
   ======================================================================== */

/* ===== EYEBROW ===== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: "Inter", "Pretendard Variable", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow .num {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--num-tone);
  letter-spacing: 0.1em;
}
.eyebrow .bar {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--steel);
  opacity: 0.45;
}

/* ===== SECTION TITLE ===== */
h2.section-title {
  font-family: "Pretendard Variable", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.028em;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 760px;
  text-wrap: balance;   /* 짧은 제목: 줄 길이 균등 배분 */
}

.section-kicker {
  max-width: 680px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 60px;
  font-weight: 400;
  text-wrap: pretty;    /* 긴 본문: 마지막 줄에 외톨이 단어 방지 */
}

/* ===== REVEAL ANIMATION =====
   .reveal 초기 상태는 JS 활성 환경에서만 숨김.
   .no-js (JS 차단) / <noscript> CSS 양측이 모두 fallback.
   JS 스크립트가 실패·지연돼도 3초 setTimeout 안전망으로 강제 표시.
*/
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(.2,.6,.2,1),
              transform 0.8s cubic-bezier(.2,.6,.2,1);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== PAYMENT STRIP (공용) ===== */
.sys-pay-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.sys-pay-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  min-height: 56px;
  transition: border-color 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}
.sys-pay-chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 48, 87, 0.08);
}
.sys-pay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 28px;
}
.sys-pay-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
/* Samsung Pay PNG만 가로로 길어서 대비 맞추기 위한 로고별 미세조정.
   브랜드 로고 공식 비율 유지하면서 시각 크기 동질화. */
.sys-pay-icon img[alt="Samsung Pay"] { max-height: 22px; }
.sys-pay-icon img[alt="Apple Pay"]   { max-height: 26px; }
.sys-pay-icon img[alt="Kakao Pay"]   { max-height: 22px; }
.sys-pay-icon img[alt="Naver Pay"]   { max-height: 22px; }

.sys-pay-text {
  font-family: "Pretendard Variable", sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.3;
}
.sys-pay-text em {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-top: 2px;
}

.sys-pay-label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}

/* ===== FOOTER (공용 레이아웃) ===== */
footer {
  padding: 72px 0 52px;
  background: var(--bg-dark);
  color: rgba(231, 235, 241, 0.85);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
  font-family: "Pretendard Variable", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #F4F6FA;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.footer-tag {
  font-size: 14px;
  color: rgba(231, 235, 241, 0.55);
  line-height: 1.7;
  max-width: 420px;
}
.footer-col h4 {
  font-family: "Inter", "Pretendard Variable", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A96A8;
  margin-bottom: 16px;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(231, 235, 241, 0.8);
}
.footer-col p + p { margin-top: 4px; }
.footer-col .footer-sub {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(231, 235, 241, 0.55);
  font-family: "Inter", "Pretendard Variable", sans-serif;
  letter-spacing: 0.02em;
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(231, 235, 241, 0.45);
  font-weight: 500;
}
.footer-bottom .ident {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== MINI FEATURE BOX (공용) =====
   작은 보조 기능 카드. 큰 섹션 번호 부여 없이 2×2 그리드로 묶어서 사용.
   LANGUAGE / SMART BILLING / USAGE GUARD / RECEIPT 등 운영 옵션·세부 기능용. */
.mini-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.mini-feature-box {
  padding: 36px 32px 32px;
  background: var(--bg);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.mini-feature-label {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.mini-feature-title {
  font-family: "Pretendard Variable", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}
.mini-feature-body {
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 16px;
  text-wrap: pretty;
}
.mini-feature-box:not(:has(.mini-feature-hint)) .mini-feature-body {
  margin-bottom: 0;
}
.mini-feature-hint {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-feature-hint .hint-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
}
.mini-feature-hint .hint-label {
  font-family: "Inter", "Pretendard Variable", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.6;
}
.mini-feature-hint .hint-row.unsupported .hint-label { color: var(--ink-3); }
.mini-feature-hint .hint-list {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.mini-feature-hint .hint-row.unsupported .hint-list { color: var(--ink-3); }

/* 공용 반응형 */
@media (max-width: 900px) {
  .sys-pay-strip { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .sys-pay-chip { padding: 12px 8px; min-height: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  .mini-feature-grid { grid-template-columns: 1fr; }
  .mini-feature-box { padding: 28px 24px 26px; }
  .mini-feature-title { font-size: 17px; }
  .mini-feature-hint .hint-row { grid-template-columns: 64px 1fr; gap: 10px; }
}

/* ===== 인쇄 (footer 다크 배경 제거) ===== */
@media print {
  footer {
    background: #FFF;
    color: #000;
    border-top: 1px solid #CCC;
    padding: 24px 0;
  }
  .footer-grid {
    border-bottom-color: #CCC;
    padding-bottom: 16px;
  }
  .footer-brand { color: #000; }
  .footer-tag, .footer-col p, .footer-bottom { color: #333; }
  .footer-col h4 { color: #555; }
  .sys-pay-chip { border-color: #BBB; }
  .mini-feature-box { background: #FFF; border-color: #CCC; break-inside: avoid; }
  .mini-feature-label { color: #000; }
  .mini-feature-hint { border-top-color: #CCC; }
}

/* ============================================================
   2026-05-29: 카탈로그 상단 사이트 네비게이션 (static 페이지에도 본사이트
   GNB 유지). 본사이트 GNB와 동일 항목·다크 글래스 톤. sticky로 스크롤 시 유지.
   인쇄 시 숨김. ============================================================ */
.cat-sitenav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cat-sitenav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.cat-sitenav__logo { display: flex; align-items: center; flex: 0 0 auto; }
.cat-sitenav__logo img { height: 34px; width: auto; display: block; }
.cat-sitenav__menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
  overflow: visible;            /* 드롭다운 클립 방지 (데스크톱) */
}
.cat-nav-item { position: relative; }
.cat-nav-item > a,
.cat-nav-flat {
  display: inline-block;
  line-height: 64px;            /* 헤더 높이 = hover 영역, 링크→드롭다운 끊김 방지 */
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.cat-nav-item > a:hover,
.cat-nav-item:focus-within > a,
.cat-nav-flat:hover { color: #fff; }
/* 드롭다운 패널 — 본사이트 GNB 다크 글래스 톤 */
.cat-nav-dd {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 210px;
  background: rgba(15, 23, 42, 0.96);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 1001;
}
.cat-nav-item:hover .cat-nav-dd,
.cat-nav-item:focus-within .cat-nav-dd {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}
.cat-nav-dd a {
  display: block;
  padding: 9px 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;                /* 2026-05-29: 드롭다운 항목 중앙 정렬 */
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.cat-nav-dd a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cat-sitenav__cta {
  flex: 0 0 auto;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cat-sitenav__cta:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }

/* 햄버거 토글 — 모바일 전용(데스크톱 숨김). static 페이지 자체 vanilla JS로 동작. */
.cat-sitenav__toggle { display: none; }

@media (max-width: 768px) {
  .cat-sitenav__inner { padding: 0 16px; height: 56px; }
  .cat-sitenav__logo img { height: 28px; }
  /* 2026-05-29: 모바일 인라인 메뉴/CTA는 닫힘 상태에서 숨김. 햄버거로 패널 토글. */
  .cat-sitenav__menu { display: none; }
  .cat-sitenav__cta { display: none; }
  /* 햄버거 버튼 */
  .cat-sitenav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0;
    background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .cat-sitenav__toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: transform 0.25s ease, opacity 0.2s ease; }
  .cat-sitenav.is-open .cat-sitenav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .cat-sitenav.is-open .cat-sitenav__toggle span:nth-child(2) { opacity: 0; }
  .cat-sitenav.is-open .cat-sitenav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* 열림 패널 — 헤더 아래 풀폭 다크 글래스, 본사이트 주요 메뉴 세로 노출 */
  .cat-sitenav.is-open .cat-sitenav__menu {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 56px; left: 0; right: 0;
    background: #0d1524;                 /* 솔리드 — hero 비침 방지 */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.5);
    padding: 6px 0; max-height: calc(100vh - 56px); overflow-y: auto;
  }
  .cat-sitenav.is-open .cat-nav-item { position: static; }
  .cat-sitenav.is-open .cat-nav-item > a,
  .cat-sitenav.is-open .cat-nav-flat {
    display: block; line-height: 1.4; padding: 15px 20px; font-size: 15px; text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .cat-sitenav.is-open .cat-nav-dd { display: none; }   /* 모바일 패널은 메인 항목만 */
  .cat-sitenav.is-open .cat-sitenav__cta {
    display: block; margin: 12px 20px 14px; text-align: center;
  }
}
@media print {
  .cat-sitenav { display: none; }
}
