/* ============================================================
   Custom overrides — loaded after clarixpa.webflow.css
   ============================================================ */

/* ---- Design tokens (extends Webflow's :root) ---- */
:root {
  /* Surfaces — 회색 톤 단일화 */
  --bg-app: #f7f8fa;
  --surface-card: #fff;
  --surface-mute: #f7f8fa;        /* clarix.css의 #f8f8f8 / #f8f8fa / #f7f7fa 통합 */
  --surface-hover: #00000005;
  /* Borders */
  --border-default: #e4e4ea;
  --border-subtle: #ececf2;
  --border-divider: #f1f1f4;
  /* Text — body 가독성 보강 */
  --text-body: var(--steel-gray);  /* #5a606a, 대비 6.5:1 */
  --text-strong: var(--black);     /* #252525 */
  --text-ink: #051b31;             /* hero-title 같은 진한 네이비 헤드라인 */
  /* Brand utility (derived from --midnight-blue) */
  --brand-soft: #4633f00d;
  --brand-press: #4633f01a;
  --brand-outline: #c5beff;
  /* Status */
  --danger: #e0506e;
  --danger-bg: #fff0f2;
  --danger-border: #f3c5ce;
  /* Radii */
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 8px 32px rgba(15, 23, 42, 0.04);
  --shadow-popover: 0 8px 24px rgba(0, 0, 0, 0.06);
  /* Motion */
  --transition-fast: 0.18s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.6s ease;
  /* Layout */
  --gnb-cta-radius: var(--radius-sm);
}

/* ---- Color override: body 텍스트 가독성 + hero 헤드라인 토큰화 ---- */
body { color: var(--text-body); }
.hero-title { color: var(--text-ink); }
/* 회색 톤 통일 (clarix.css의 #f8f8f8 / #f8f8fa 모두 surface-mute로) */
.section-2,
.container-gray,
.tabs-menu,
.tabs-menu2,
.section--data .tabs-menu2 {
  background-color: var(--surface-mute);
}

/* ---- Global box-sizing (webflow.css 제거 시 같이 사라진 핵심 reset) ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ---- Smooth anchor scroll + sticky navbar 보정 ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* sticky navbar 높이만큼 anchor 진입 위치를 아래로 — 모바일/태블릿만 sticky이므로 거기만 적용 */
@media (max-width: 991px) {
  :where(section, main)[id] { scroll-margin-top: 72px; }
}

/* ---- Horizontal overflow guard (모바일/태블릿에서 hero gradient·marquee 등이
   viewport 밖으로 삐져나와 가로 스크롤 발생하던 문제 차단) ---- */
html, body {
  overflow-x: clip;
  max-width: 100%;
}
/* 모바일 메뉴 펼친 상태일 때 body scroll lock */
body.is-menu-open {
  overflow: hidden;
}

/* ---- Skip-link (a11y): 키보드 사용자가 nav 통과해 main으로 점프 ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10000;
  padding: 12px 18px;
  background: var(--midnight-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---- Global focus-visible (a11y) ---- */

/* ---- GNB navigation menu (Product / Features / Blog) ---- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: 56px;
}

.nav-menu-link {
  color: var(--steel-gray);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.1px;
  text-decoration: none;
  display: inline-block;
  transform-origin: center;
  transition: transform 0.18s ease, color 0.18s ease;
}

.nav-menu-link:hover,
.nav-menu-link:focus-visible {
  color: var(--black);
  transform: scale(1.03);
}

/* ---- GNB CTA buttons: border-radius 7px (token) ---- */
.navbar .primary-button-wrapper,
.navbar .primary-button-wrapper.white,
.navbar .primary-button-wrapper.secondary {
  border-radius: var(--gnb-cta-radius);
}

/* ---- Hamburger button (CSS-only, no SVG transform issues) ---- */
.hamburger {
  display: none; /* desktop hides; mobile/tablet rule below shows */
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  transition: background-color var(--transition-fast);
}
@media (hover: hover) {
  .hamburger:hover { background-color: var(--brand-soft); }
}
.hamburger:focus-visible {
  outline: 2px solid var(--midnight-blue);
  outline-offset: 2px;
}

/* 3 horizontal bars stacked. Inner box: 24x18 centered (left 8 / top 11) */
.hamburger-bar {
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background-color: var(--midnight-blue);
  border-radius: 2px;
  transition: transform var(--transition-medium), opacity var(--transition-fast), top var(--transition-medium);
}
.hamburger-bar:nth-child(1) { top: 12px; }
.hamburger-bar:nth-child(2) { top: 19px; }
.hamburger-bar:nth-child(3) { top: 26px; }

/* Active (메뉴 열린 상태): 3 bars → X */
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}
/* ---- .segment-image-m: mobile only ---- */
.segment-image-m { display: none; }
@media (max-width: 991px) {
  .segment-image-m { display: block; }
}

/* ---- FAQ accordion: smooth height + plus/minus toggle ---- */
.faq-ans {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease;
}
.faq-pluss-icon {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-content.is-active .faq-pluss-icon {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-content { cursor: pointer; }

/* ============================================================
   Responsive: tablet (≤991px) + mobile (≤767px) refinements
   ============================================================ */

@media (max-width: 991px) {
  /* Hero 모바일/태블릿 이미지: ≤767에서 webflow css가 display:none 처리하던 걸 해제 — 마크업 순서대로 CTA 위에 위치 */
  .hero-right-col-wrapper-m {
    display: block;
    overflow: hidden; /* gradient 110% 폭이 부모를 뚫고 나가지 않게 */
  }

  /* Hero 그라디언트(.hero-gradient): hero 이미지 뒤로 작게 + 더 연하게 + 가운데 정렬해서 은은한 후광 효과 */
  .hero-right-col-wrapper-m .hero-gradient {
    width: 110%;
    height: auto;
    max-height: none;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
  }

  /* "Clarix 핵심 기능" container-gray 상단 패딩 50% 감소 (100px → 50px) */
  .container-gray { padding-top: 50px; }

  /* "다양한 데이터 소스" 탭 항목 마진: 상하 +2px, 좌우 +4px */
  .tabs-menu2 .tab-button2,
  .tabs-menu2 .tab-button2.is-active {
    margin: 2px 4px;
  }

  /* Bullet list: text의 first-line line-box(24px)에 24px 체크 아이콘이 정확히
     얹히도록 line-height를 아이콘 높이와 동기화. 두 줄 줄바꿈에도 첫 줄과 정렬됨 */
  .bullet-wrap {
    align-items: flex-start;
    gap: 10px;
  }
  .bullet-wrap .bullet-check {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 0;
  }
  .bullet-wrap .section-bullet {
    font-size: 16px;
    line-height: 24px;
    margin: 0;
  }

  /* 카운터 카드 외부 spacing — 카드 row와 동일한 24px 간격으로 통일,
     상하단 padding 좌우 padding과 균형있게 */
  .works-content-wrapper {
    gap: 24px;
  }
  .counter-content-wrapper-2 {
    margin: 0;
    padding: 24px 32px;
  }

  /* Hamburger button: 모바일/태블릿에서만 표시 */
  .hamburger { display: block; }

  /* Hide desktop nav menu — collapsible mobile menu takes over */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 16px 24px 24px;
    background-color: var(--surface-card);
    border-bottom: 1px solid var(--border-default);
    box-shadow: var(--shadow-popover);
    z-index: 50;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu-link {
    font-size: 16px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border-divider);
  }
  .nav-menu-link:hover { transform: none; }
  .nav-menu-link:last-child { border-bottom: none; }

  /* GNB fixed — 모바일/태블릿에서 항상 페이지 상단 고정 */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--surface-card);
    box-shadow: 0 1px 0 var(--border-divider);
  }
  /* navbar fixed 영역만큼 콘텐츠 시작 위치 보정 */
  body {
    padding-top: 76px;
  }

  /* Tighter section spacing */
  .section.hero { margin-top: 24px; }

  /* FAQ: 데스크톱의 min-width:894px 무력화 + padding 포함 너비 계산으로
     화면 폭 안에 카드가 들어가고 가운데 정렬되도록 */
  .faq-content {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .faq-content-wrap,
  .faq-tab-menu,
  .faq-tabs-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  /* Hero CTA: 100% width */
  .hero-button-wrapper .primary-button-wrapper.secondary {
    width: 100%;
    min-width: 0;
  }

  /* Counters: 2-up grid on small screens */
  .counter-content-wrapper-2 {
    flex-wrap: wrap;
    gap: 16px;
  }
  .counter-content-wrap { flex: 1 1 calc(50% - 8px); }
  .counter-content-wrapper-2 .line { display: none; }

  /* ----- Tab menu: 한 줄 가로 드래그 스크롤 -----
     기존 모바일 룰이 grid 2x3 이라 사용성이 나빠 flex row + overflow-x로 덮어씀 */
  .tabs-menu,
  .tabs-menu2 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    /* grid 룰 무력화 */
    grid-template-columns: none;
    grid-template-rows: none;
  }
  .tabs-menu::-webkit-scrollbar,
  .tabs-menu2::-webkit-scrollbar { display: none; }

  .tabs-menu .tab-button,
  .tabs-menu .tab-button.is-active,
  .tabs-menu2 .tab-button2,
  .tabs-menu2 .tab-button2.is-active {
    flex: 0 0 auto;
    min-width: auto;
    padding: 10px 14px;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  .tab-text,
  .tab-text-2 { white-space: nowrap; }

  /* ----- 탭 패널 내용: 모바일 가독성 -----
     .tap-img-wrap이 모바일에서 width:520vw로 잡혀있어 이미지가 화면을 뚫고 나가던 문제 정상화 */
  .tap-img-wrap,
  .tap2-img-wrap {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  .tap-img-wrap img,
  .tap2-img-wrap img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }

  /* 카드 패딩 / 간격 / 타이포 */
  .tab-colomn-wrapper {
    padding: 20px;
    gap: 18px;
  }
  .tab-colomn-wrap {
    align-items: flex-start;
    width: 100%;
    padding: 0;
    gap: 12px;
  }
  .tab-title { font-size: 22px; line-height: 1.3; }
  .tab-description { max-width: 100%; font-size: 15px; line-height: 1.55; }

  /* Footer: stack columns + smaller logo + smaller social icons */
  .footer-botton-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-logo {
    width: 100px;
    height: auto;
  }
  .footer-item-wrapper {
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-icon-wrapper {
    gap: 12px;
  }
  .footer-icon-wrap {
    width: 36px;
    height: 36px;
  }
  .footer-icon,
  .footer-white-icon {
    width: 18px;
    max-width: 18px;
  }

  /* FAQ headline + answer scale */
  .faq h4 { font-size: 18px; }
  .list { padding-left: 18px; }

  /* Navbar/CTA compact + hero typography (merged from <=479px tier) */
  .navbar-wrapper { padding: 14px 12px; }
  .cta-button-wrap { gap: 8px; }
  .navbar .primary-button-wrapper { width: auto; min-width: 90px; padding: 0 14px; }
  .hero-title { font-size: 36px; line-height: 1.15; }
  .hero-description { font-size: 16px; }
}

/* ============================================================
   Inquiry / Contact form page
   ============================================================ */

.inquiry-page {
  background-color: var(--surface-card); /* 흰색 바탕 */
  min-height: 100vh;
  padding: 0 0 120px;
}

/* 카드 형태 제거 — 흰색 배경 위에 폼이 자연스럽게 펼쳐지는 그라운디드 디자인 */
.inquiry-card {
  max-width: 720px;
  margin: 64px auto 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 24px;
}
@media (max-width: 767px) {
  .inquiry-page { padding: 0 0 80px; }
  .inquiry-card {
    margin: 32px auto 0;
    padding: 0 20px;
  }
}

/* 홈으로 + eyebrow를 한 줄에 수직 가운데 정렬 */
.inquiry-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.inquiry-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--steel-gray);
  font-size: 14px;
  text-decoration: none;
  margin: 0;
  transition: color 0.18s ease;
}
.inquiry-back:hover { color: var(--black); }

.inquiry-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--midnight-blue);
  background-color: var(--brand-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.2px;
  /* 홈으로 버튼과 16px 간격 + 같은 baseline에서 가운데 정렬 (.inquiry-header가 align-items: center) */
  margin: 0 0 0 16px;
}

.inquiry-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--black);
  margin: 0 0 12px;
  line-height: 1.2;
}

.inquiry-subtitle {
  color: var(--steel-gray);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 36px;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inquiry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.inquiry-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inquiry-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.1px;
}
.inquiry-label .required { color: var(--danger); margin-left: 4px; }

/* Semi-bold modifier — 특정 라벨/체크박스 텍스트만 강조 */
.inquiry-label--bold,
.inquiry-checkbox--bold {
  font-weight: 600;
}

.inquiry-input,
.inquiry-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--black);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition-fast);
}
/* 인풋박스 ↔ 커스텀 드롭다운 trigger 높이/너비 통일 */
.inquiry-input,
.cdrop-trigger {
  min-height: 48px;
  width: 100%;
}
/* Hover: 배경색만 살짝 — 테두리 색은 그대로 유지 */
.inquiry-input:hover,
.inquiry-textarea:hover {
  background-color: #fafafe;
  outline: none;
  box-shadow: none;
}
/* Focus: 1px 보라색 아웃라인만 */
.inquiry-input:focus,
.inquiry-textarea:focus {
  outline: 1px solid var(--midnight-blue);
  outline-offset: 0;
  border-color: var(--border-default);
  box-shadow: none;
}
/* 글로벌 :focus-visible 룰이 덧칠하지 않도록 동일하게 정렬 */
.inquiry-input:focus-visible,
.inquiry-textarea:focus-visible {
  outline: 1px solid var(--midnight-blue);
  outline-offset: 0;
}

.inquiry-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

/* ============================================================
   Card / tab image containment — 모든 카드·탭 이미지가 wrapper를
   넘지 않게 강제 (class 누락된 SVG들도 일괄 보호)
   ============================================================ */
.work-image-wrapper {
  width: 100%;
  overflow: hidden;
}
.work-image-wrapper img,
.card-image {
  display: block;
  max-width: 100%;
  height: auto;
}

/* "다양한 데이터 소스" 탭 이미지 (.tap2-img-wrap) — wrap 폭 안에 가둠 */
.tap2-img-wrap {
  width: 100%;
  max-width: 640px;
  overflow: hidden;
}
.tap2-img-wrap img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* "Clarix AI" 탭 이미지 (.tap-img-wrap) — 동일 보호 */
.tap-img-wrap {
  overflow: hidden;
}
.tap-img-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   Section padding / spacing overrides
   ============================================================ */
/* Clarix AI 섹션 — 상하 패딩 60px */
.section--ai {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* "Clarix 핵심 기능" 그레이 박스 — 모든 해상도에서 좌우 0.5% margin */
.section--product {
  margin-left: 0.5%;
  margin-right: 0.5%;
}
.section--product .container-gray {
  max-width: none;
  width: auto;
}

/* Hero 태그 칩 — 상하 사이즈 38px (padding +4 양쪽) */
.section--hero .tag-chip-wrap {
  height: 38px;
}
/* Hero chip 아이콘 — 30% 작게 (20px → 14px). clarix.css의 .tag-icon { 24px } 무력화 */
.tag-icon--hero {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  max-width: 14px;
  max-height: 14px;
}

/* ============================================================
   Footer 레이아웃 재구성 — 로고/메뉴/소셜 모두 라인 아래 한 줄로
   ============================================================ */
.footer-botton-wrapper {
  flex-direction: column;
  align-items: stretch;
  border-bottom: none; /* 기존 라인 제거 */
  gap: 0;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--silver-gray, #d9dade);
  flex-wrap: wrap;
}
.footer-meta .footer-logo-wrapper {
  flex: 0 0 auto;
  margin: 0;
}
@media (max-width: 767px) {
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 20px;
  }
}

/* Footer 상단 마진 +60px (.section default 60px + 60px = 총 120px) */
.section--footer {
  margin-top: 120px;
}

/* "다양한 데이터 소스" 섹션 — 제목과 탭 사이 간격 40px */
.section--data .feature-content-wrapper {
  gap: 40px;
}
/* 데이터 소스 탭 항목 — 콘텐츠 따라 hug (Figma hug contents) + 좌우 패딩 16px */
.section--data .tab-button2,
.section--data .tab-button2.is-active {
  min-width: 0;
  width: auto;
  padding-left: 16px;
  padding-right: 16px;
}
/* 데이터 소스 섹션 ↔ FAQ 사이 간격 +60px */
.section--data {
  margin-bottom: 60px;
}

/* Clarix AI 탭 (.tabs-menu) — 태블릿/모바일 모두 모바일과 동일한
   가로 드래그 스크롤로 통일. clarix.css의 ≤991 row+overflow:scroll 룰 무력화. */
@media (max-width: 991px) {
  .tabs-menu {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px;
    /* 부모 폭에 맞추기 — 콘텐츠가 넘으면 자체 overflow-x가 처리 */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    grid-template-columns: none;
    grid-template-rows: none;
  }
  .tabs-menu::-webkit-scrollbar { display: none; }
  .tabs-menu .tab-button,
  .tabs-menu .tab-button.is-active {
    flex: 0 0 auto;
    min-width: auto;
    padding: 10px 14px;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  .tabs-menu .tab-text,
  .tabs-menu .tab-text-2 { white-space: nowrap; }
}

/* 데이터 소스 탭 — 모든 해상도에서 데스크톱 pill 디자인.
   좁은 화면에서는 nowrap + 가로 드래그 스크롤로 처리 */
@media (max-width: 991px) {
  .section--data .tabs-menu2 {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 2px;
    background-color: #f8f8fa;
    border-radius: 300px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    grid-template-columns: none;
    grid-template-rows: none;
  }
  .section--data .tabs-menu2::-webkit-scrollbar { display: none; }
  .section--data .tabs-menu2 .tab-button2,
  .section--data .tabs-menu2 .tab-button2.is-active {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    padding: 16px;
    margin: 0;
    white-space: nowrap;
    border-radius: 300px;
    scroll-snap-align: start;
  }
}

/* ============================================================
   Container alignment (1920px+ 데스크톱에서 가운데 정렬 보강)
   webflow.css의 .w-container 의존을 제거한 이후 보강 룰
   ============================================================ */
.navbar-container {
  margin-left: auto;
  margin-right: auto;
}
.container-gray {
  max-width: 1480px;          /* 1440 content + 40 padding 여유 */
  width: calc(100% - 40px);   /* 1920px 화면에서 양옆 20px 여유 */
}
.works-content-wrap {
  align-self: center;
  width: 100%;
}
/* 카드들이 부모 width 100%로 인해 row에서 가로 넘침 → 동일 폭으로 row 분할 */
.works-content-wrap .works-card-wrapper,
.works-content-wrap .work-right-col-wrapper {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
}

/* ============================================================
   FAQ accordion: anchor 기본 underline 제거 (타이틀 + 답변 내용)
   ============================================================ */
.faq-content,
.faq-content:hover,
.faq-content:focus,
.faq-content:focus-visible,
.faq-content .faq,
.faq-content .list,
.faq-content .list-item {
  text-decoration: none;
}

/* ============================================================
   Tab visibility (formerly .w-tab-pane / .is-active in webflow.css)
   ============================================================ */
.tab-pane { display: none; }
.tab-pane.is-active { display: block; }

/* ============================================================
   Footer CTA banner — 푸터 상단의 도입 문의 콜투액션
   ============================================================ */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 0 24px;
  flex-wrap: wrap;
}
.footer-cta-text {
  flex: 1 1 120px;
  min-width: 0;
}
.footer-cta-title {
  font-family: inherit;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--black);
  margin: 0 0 10px;
  line-height: 1.3;
}
.footer-cta-desc {
  font-size: 15px;
  color: var(--steel-gray);
  margin: 0;
  line-height: 1.55;
}
.footer-cta-button {
  flex: 0 0 auto;
  align-self: center;
}
@media (max-width: 991px) {
  .footer-cta {
    padding: 28px 0 20px;
    gap: 24px;
  }
  .footer-cta-title { font-size: 26px; }
}
@media (max-width: 767px) {
  .footer-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 0 16px;
    gap: 8px;
  }
  .footer-cta-text {
    height: 120px; /* 모바일 고정 높이 */
  }
  .footer-cta-title { font-size: 22px; }
  .footer-cta-desc br { display: none; }
  .footer-cta-button { width: 100%; }
}

/* Footer social icon hover (formerly handled by webflow ix2 inline state) */
.footer-icon-wrap {
  background-color: transparent;
  border: 1px solid var(--silver-gray, #d9dade);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.footer-icon-wrap:hover {
  background-color: var(--midnight-blue);
  border-color: var(--midnight-blue);
}
.footer-icon-wrap .footer-icon { display: block; }
.footer-icon-wrap .footer-white-icon { display: none; }
.footer-icon-wrap:hover .footer-icon { display: none; }
.footer-icon-wrap:hover .footer-white-icon { display: block; }

/* ============================================================
   Reveal-on-scroll — IntersectionObserver based fade + slide
   custom.js가 인라인 opacity:0 가진 요소에 .reveal 클래스 부여
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Logo ticker (marquee) — pure CSS, no webflow ix2 dependence
   콘텐츠가 (set1+set2)*2로 중복되어 있어 -50% 이동 시 매끄럽게 반복
   ============================================================ */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-content-wrapper {
  /* viewport 가득 사용 + 가로 가운데 정렬 보강 */
  width: 100%;
}
.logos-wrapper--marquee {
  /* clarixpa.webflow.css의 .logos-wrapper { max-width: 90% } 무력화 */
  max-width: none;
  width: max-content;
  flex-wrap: nowrap;
  justify-content: center;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
  margin-inline: auto;
}
.logos-wrapper--marquee:hover {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .logos-wrapper--marquee {
    animation: none;
    justify-content: center;
  }
}

/* Logo slider: 그룹 내부의 로고들을 가로 가운데 정렬해 시각적 균형 유지 */
.ticker-single-wrapper {
  justify-content: center !important;
  align-items: center !important;
}

/* ============================================================
   Polish layer — 마이크로 인터랙션 / 시각 강조 / 디테일
   ============================================================ */

/* 카드 hover lift — Clarix 핵심 기능 카드들 */
.works-card-wrapper,
.work-right-col-wrapper {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  will-change: transform;
}
@media (hover: hover) {
  .works-card-wrapper:hover,
  .work-right-col-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    border-color: var(--brand-outline);
  }
}

/* 카운터 숫자 — 화이트 + 매우 은은한 보라 톤 그라디언트 */
.counter-title {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 55%, #e8e3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -1px;
}

/* FAQ 펼친 항목 시각 강조 — 매우 연한 보라 fill */
.faq-content.is-active {
  border-color: var(--brand-outline);
  background-color: rgba(70, 51, 240, 0.03);
}
.faq-content {
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.faq-content .faq {
  transition: color var(--transition-fast);
}
.faq-content.is-active .faq {
  color: var(--midnight-blue);
}

/* FAQ +/− 아이콘 — flex container 안에서 squeeze 방지 + 모바일에서 잘림 해소 */
.faq-icon-wrapper {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  overflow: visible; /* 자식 +/− 끝이 잘리지 않게 */
}
.faq-pluss-icon { width: 2px; height: 18px; }
.faq-minuss-icon { width: 18px; height: 2px; }

/* 로고 ticker — 좌/우 끝 페이드 마스크 (마퀴가 viewport edge에서 자연스럽게 사라지게) */
.ticker-content-wrapper {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%
  );
}
@media (max-width: 767px) {
  .ticker-content-wrapper {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 32px,
      #000 calc(100% - 32px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 32px,
      #000 calc(100% - 32px),
      transparent 100%
    );
  }
}

/* tag-chip 살짝 hover scale (의미 없는 chip이라도 살아있는 느낌) */
@media (hover: hover) {
  .tag-chip-wrap,
  .tag-chip-wrap-ai {
    transition: transform var(--transition-fast), border-color var(--transition-fast);
  }
  .tag-chip-wrap:hover,
  .tag-chip-wrap-ai:hover {
    transform: translateY(-1px);
    border-color: var(--brand-outline);
  }
}

/* 데이터 소스 / AI 탭 버튼 — 활성 시 살짝 lift 시각 */
.tab-button.is-active,
.tab-button2.is-active {
  box-shadow: 0 2px 8px rgba(70, 51, 240, 0.1);
}

/* 모든 탭 메뉴 — hover 시 손가락(클릭 가능) cursor */
.tab-button,
.tab-button2,
.faq-content {
  cursor: pointer;
}
@media (hover: hover) {
  .tab-button:hover,
  .tab-button2:hover {
    background-color: var(--surface-card);
  }
}

/* Section heading 강조 — section-top-title에 미세한 letter-spacing 조정 */
.section-top-title {
  letter-spacing: -0.5px;
}

/* hero-image 첫 진입 시 살짝 scale-in (reveal과 결합) */
.hero-image.reveal {
  transform: translateY(20px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-image.reveal.is-visible {
  transform: translateY(0) scale(1);
}

/* ============================================================
   Toast — native validation tooltip 대체용 알림
   화면 우측 하단(데스크톱) / 하단 풀폭(모바일)에서 슬라이드 인
   ============================================================ */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 380px;
  padding: 14px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--steel-gray);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
  opacity: 0;
  transform: translateY(-20px) translateX(20px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
  pointer-events: auto;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}
.toast-message a {
  color: var(--midnight-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.toast-message a:hover { text-decoration-thickness: 2px; }
.toast--error   { border-left-color: var(--danger); }
.toast--success { border-left-color: #2ecc71; }
.toast--info    { border-left-color: var(--midnight-blue); }
.toast-icon {
  flex: 0 0 20px;
  line-height: 0;
  margin-top: 2px;
  color: var(--steel-gray);
}
.toast--error   .toast-icon { color: var(--danger); }
.toast--success .toast-icon { color: #2ecc71; }
.toast--info    .toast-icon { color: var(--midnight-blue); }
.toast-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.toast-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-strong);
  letter-spacing: -0.1px;
  line-height: 1.4;
}
.toast-message {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
}
.toast-close {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: -2px -4px 0 0;
  background: transparent;
  border: none;
  color: var(--steel-gray);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.toast-close:hover { background-color: var(--brand-soft); color: var(--text-strong); }

@media (max-width: 767px) {
  .toast {
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: auto;
    max-width: none;
    transform: translateY(-100%);
  }
  .toast.is-visible { transform: translateY(0); }
}

/* invalid 인풋 시각 강조 (toast와 함께 작동) */
.inquiry-input:invalid:not(:placeholder-shown),
.inquiry-textarea:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

/* ============================================================
   Custom dropdown (cdrop) — replaces native <select>
   ============================================================ */
.cdrop {
  position: relative;
  width: 100%;
}
.cdrop-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--steel-gray); /* placeholder 상태 — 선택 시 .is-filled가 black으로 */
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}
.cdrop-trigger:hover {
  border-color: var(--midnight-blue);
  background-color: var(--brand-soft);
}
.cdrop-trigger:focus-visible {
  outline: 2px solid var(--midnight-blue);
  outline-offset: 1px;
  border-color: var(--midnight-blue);
}
.cdrop.is-filled .cdrop-trigger {
  color: var(--black);
}

.cdrop-chevron {
  flex-shrink: 0;
  color: var(--midnight-blue);
  transition: transform var(--transition-fast);
}
.cdrop[aria-expanded="true"] .cdrop-chevron,
.cdrop-trigger[aria-expanded="true"] .cdrop-chevron {
  transform: rotate(180deg);
}

/* Panel — 펼쳐졌을 때 */
.cdrop-panel {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
  max-height: 280px;
  overflow-y: auto;
  /* 닫힘 상태 */
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.cdrop-trigger[aria-expanded="true"] + .cdrop-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cdrop-option {
  padding: 10px 12px;
  font-size: 15px;
  color: var(--black);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.cdrop-option:hover,
.cdrop-option.is-active {
  background-color: var(--brand-soft);
  color: var(--midnight-blue);
}
.cdrop-option[aria-selected="true"] {
  background-color: var(--brand-soft);
  color: var(--midnight-blue);
  font-weight: 600;
}
.cdrop-option[aria-selected="true"]::after {
  content: "✓";
  float: right;
  margin-left: 8px;
  color: var(--midnight-blue);
}

/* Scrollbar (옵션 5개 이상일 때 깔끔하게) */
.cdrop-panel::-webkit-scrollbar { width: 6px; }
.cdrop-panel::-webkit-scrollbar-thumb {
  background-color: var(--border-default);
  border-radius: var(--radius-pill);
}
.cdrop-panel::-webkit-scrollbar-thumb:hover {
  background-color: var(--steel-gray);
}

.inquiry-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.inquiry-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--black);
  cursor: pointer;
}
.inquiry-checkbox input { accent-color: var(--midnight-blue); }

/* "기타" 체크 시에만 보이는 텍스트 입력 */
.inquiry-other-input {
  margin-top: 10px;
}

/* 참고 사이트 동적 입력 */
.inquiry-references {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inquiry-reference-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inquiry-reference-row .inquiry-input { flex: 1; }
.inquiry-reference-remove {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  color: var(--steel-gray);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.inquiry-reference-remove:hover {
  background-color: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}
.inquiry-reference-add {
  align-self: flex-start;
  margin-top: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--midnight-blue);
  background: transparent;
  border: 1px dashed var(--brand-outline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.inquiry-reference-add:hover {
  background-color: var(--brand-soft);
  border-style: solid;
}

.inquiry-submit {
  margin-top: 8px;
  height: 52px;
  background: var(--midnight-blue);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}
.inquiry-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.inquiry-submit:active { transform: translateY(0); }

.inquiry-helper {
  font-size: 13px;
  color: var(--steel-gray);
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.inquiry-helper a {
  color: var(--midnight-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.inquiry-helper a:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .inquiry-page { padding: 40px 16px 80px; }
  .inquiry-card { padding: 32px 24px 40px; }
  .inquiry-title { font-size: 28px; }
  .inquiry-row { grid-template-columns: 1fr; gap: 20px; }
}
