:root {
  /* JHID — 세이지 그린 + 화이트, 차분/고급 (라이트 단일 테마) */
  --bg-base: #fafaf8;
  --bg-base-2: #f3f5f1;
  --bg-base-3: #fbfbf9;
  --bg-surface: #ffffff;
  --bg-card: #f4f5f2;
  --bg-card-soft: #eceee9;
  --line: #e4e6e1;
  --text-primary: #23282a;
  --text-secondary: #5a6360;
  --text-tertiary: #8a918d;
  /* 브랜드 색: 변수명은 유지하되 값만 세이지로 교체 (컴포넌트 참조 호환) */
  --brand-blue: #6f8479;       /* sage */
  --brand-blue-soft: #9fb0a6;  /* light sage */
  --accent-orange: #b08968;    /* warm clay — 포인트 최소 */
  /* 추가 시맨틱 별칭 */
  --brand: #6f8479;
  --brand-deep: #4d5f56;
  --brand-soft: #9fb0a6;
  --accent: #b08968;
  --chip: #eceee9;
  --shadow-card: 0 18px 44px rgba(45, 55, 50, 0.08);
}

html[data-theme="dark"] {
  --bg-base: #000000;
  --bg-base-2: #121318;
  --bg-base-3: #0e1d3b;
  --bg-surface: #121318;
  --bg-card: #17191f;
  --bg-card-soft: #1d2027;
  --line: #2a2e37;
  --text-primary: #f4f7fb;
  --text-secondary: #a7afbc;
  --text-tertiary: #737b88;
  --chip: #22252d;
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-base), var(--bg-base-2), var(--bg-base-3));
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.material-symbol {
  font-family: "Material Symbols Outlined", sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: normal;
  font-style: normal;
  display: inline-block;
}

html[data-theme="dark"] body {
  background: linear-gradient(135deg, var(--bg-base), var(--bg-base-2), var(--bg-base-3));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

main {
  display: block;
  margin-top: 52px;
  margin-bottom: 0;
}

.page-heading {
  margin-bottom: 8px;
}

.page-heading-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 6px;
}

.page-heading-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.page-heading-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.site-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.15px;
  line-height: 1;
  display: inline-block;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.brand-unified {
  color: var(--text-primary);
}

.brand-header {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.12px;
}

.brand-footer {
  display: inline-block;
  margin-bottom: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  transition: color 160ms ease;
}

.site-nav a.is-active {
  color: var(--brand-blue);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 999px;
  cursor: pointer;
}

.theme-toggle:hover {
  background: color-mix(in srgb, var(--bg-card) 80%, transparent 20%);
  color: var(--text-primary);
}

.stack-lg,
.stack-md,
.stack-sm {
  display: flex;
  flex-direction: column;
}

.stack-lg { gap: 36px; }
.stack-md { gap: 24px; }
.stack-sm { gap: 16px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 28px 30px;
}

.card-soft {
  background: var(--bg-card-soft);
}

.section-card {
  padding: 24px;
}

.hero-shell {
  padding: 28px;
  border-radius: 28px;
}

.top-home-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: start;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.98fr;
  gap: 24px;
  align-items: start;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.display-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1;
}
.display-line {
  display: block;
  margin-bottom: 0.32em;
}
.display-line:last-child {
  margin-bottom: 0;
}

.body-lg {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.1px;
  color: var(--text-secondary);
}

.hero-lead {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.hero-sub {
  margin: 8px 0 0 0;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.1px;
  color: var(--text-secondary);
}

.cta-row,
.proof-strip,
.project-grid,
.detail-grid,
.stats-grid,
.mini-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-copy {
  align-self: center;
}

/* 고객사 로고 스트립 */
.client-strip-section {
  padding: 32px 0 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.client-strip-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.45;
  margin-bottom: 20px;
}

.client-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}

.client-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  opacity: 0.22;
  filter: grayscale(1);
  transition: opacity 0.2s;
  white-space: nowrap;
  cursor: default;
  font-family: "Manrope", sans-serif;
}

.client-logo:hover {
  opacity: 0.55;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border-radius: 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line);
}

.btn-outline {
  background: color-mix(in srgb, var(--brand-blue) 6%, transparent);
  color: var(--brand-blue);
  border-color: color-mix(in srgb, var(--brand-blue) 35%, transparent);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-outline:hover {
  background: color-mix(in srgb, var(--brand-blue) 14%, transparent);
  border-color: var(--brand-blue);
  transform: translateY(-1px);
}

.btn-danger {
  background: color-mix(in srgb, #ff5c74 12%, var(--bg-card) 88%);
  color: #d92d47;
  border-color: color-mix(in srgb, #ff5c74 34%, var(--line) 66%);
}

.proof-card {
  min-width: 220px;
  padding: 18px;
  border-radius: 22px;
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
}

.proof-card strong,
.mini-stat strong {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.lead-project h3,
.project-card h3,
.detail-title {
  margin: 0;
  letter-spacing: -0.4px;
}

.lead-showcase {
  display: grid;
  gap: 16px;
}

.lead-project {
  display: block;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #4d5f56, #6f8479, #9fb0a6);
  color: #ffffff;
}

.lead-visual {
  position: relative;
  height: 228px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.lead-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 52%),
    radial-gradient(circle at 88% 88%, rgba(159, 176, 166, 0.28), transparent 28%);
}

.lead-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.lead-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-project h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lead-caption,
.subtle {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.5;
}

.lead-caption {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-project {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
  align-items: start;
}

.mini-cover,
.project-cover {
  position: relative;
  overflow: hidden;
  background: var(--bg-card-soft);
}

.mini-cover {
  border-radius: 18px;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 12px;
  background: linear-gradient(135deg, #1d2027, #6f8479);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.project-cover {
  height: 140px;
  border-radius: 20px;
  padding: 18px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
}

.project-cover-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-cover-logo {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.project-cover-nhn-dooray-db-insurance-integration {
  background-position: center 24%;
}

.project-cover > *,
.mini-cover > * {
  position: relative;
  z-index: 1;
}

.project-cover-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.24;
  text-align: center;
}

.cover-meta {
  display: none;
}

.title-lg {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.24;
}

.title-xl {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.5px;
}

.title-md {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.body-md {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-tertiary);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 24%, var(--line) 76%);
  background: color-mix(in srgb, var(--bg-card) 88%, var(--chip) 12%);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.list-panel li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 18px;
  color: var(--text-secondary);
  list-style: none;
}

.list-panel {
  margin: 0;
  padding: 0;
}

.list-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-blue);
}

.list-panel-rich li {
  margin-bottom: 18px;
}

.list-panel-rich li::before {
  top: 7px;
}

.list-panel-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}

.list-panel-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.detail-aside-cover .project-cover {
  height: 136px;
  border-radius: 20px;
}

.detail-aside-cover .gallery-img {
  height: 160px;
}

.detail-aside-cover .gallery {
  border-radius: 16px;
}

.detail-aside-cover .gallery-single {
  border-radius: 16px;
  overflow: hidden;
  height: 160px;
}

.detail-aside-cover .gallery-single .gallery-img {
  height: 160px;
  max-height: 160px;
  border-radius: 16px;
}

/* ── Gallery ──────────────────────────────────────────────────────── */
.gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}

.gallery-single {
  border-radius: 16px;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  width: 100%;
}

.gallery-slide {
  flex: 0 0 100%;
  display: none;
}

.gallery-slide.active {
  display: block;
}

.gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.gallery-single .gallery-img {
  height: 240px;
  border-radius: 16px;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
}

.gallery-btn:hover {
  background: rgba(0,0,0,0.65);
}

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

.gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}

.gallery-dot.active {
  background: #fff;
}

.gallery-clickable {
  cursor: zoom-in;
}

.cover-clickable {
  cursor: zoom-in;
}

.cover-multi-gallery {
  position: relative;
  overflow: hidden;
}

.cover-slide {
  position: absolute;
  inset: 0;
  display: none;
}

.cover-slide.active {
  display: block;
}

.cover-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-img-contain,
.gallery-img-svg {
  object-fit: contain;
  padding: 24px;
  background: var(--bg-surface);
}

.detail-aside-cover .gallery-img-contain,
.detail-aside-cover .gallery-img-svg {
  padding: 16px;
}

.gallery-single-contain,
.gallery-single-svg {
  background: var(--bg-surface);
}

.cover-slide-svg img {
  object-fit: contain;
  padding: 12px;
  background: var(--bg-surface);
}

.project-cover-svg {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--bg-surface);
}

.cover-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}

.cover-multi-gallery:hover .cover-nav {
  opacity: 1;
}

.cover-prev { left: 6px; }
.cover-next { right: 6px; }

.cover-zoom {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s;
}

.cover-multi-gallery:hover .cover-zoom {
  opacity: 1;
}

.cover-multi-gallery .gallery-dots {
  bottom: 6px;
}

.cover-multi-gallery .gallery-dot {
  width: 6px;
  height: 6px;
}

/* ── Lightbox ─────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.lb-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 80px);
}

.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
  display: block;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}

.lb-counter {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-top: 12px;
  letter-spacing: 0.04em;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lb-close:hover {
  background: rgba(255,255,255,0.25);
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 36px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

.lb-btn:hover {
  background: rgba(255,255,255,0.25);
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.home-feature-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.needs-panel {
  border-radius: 28px;
}

.needs-panel .title-xl {
  margin-bottom: 18px;
}

.info-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.detail-block {
  padding: 18px 22px;
}

.detail-block .detail-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 800;
}

.detail-block p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 8px 0;
}

.detail-block p strong {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 4px;
}

.detail-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-block li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

.detail-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand-blue);
}

.detail-block li:last-child {
  margin-bottom: 0;
}

/* detail-block 내부의 bullet-list 도 동일 톤 (specificity 높여서 .bullet-list li 의 padding 충돌 방지) */
.detail-block .bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.detail-block .bullet-list li,
.detail-block ul.bullet-list li {
  position: relative;
  padding: 0 0 0 16px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

.detail-block .bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand-blue);
}

.detail-block .body-lg {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* === 신규 상품 출시 카드 (staging only) === */
.top-home-aside-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-launch-section {
  margin: 8px 0;
}

.product-launch-card-stacked {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 18px !important;
  grid-template-columns: none !important;
}

.product-launch-card-stacked .product-launch-title {
  font-size: 20px !important;
}

.product-launch-card-stacked .product-launch-subtitle {
  font-size: 12.5px !important;
  margin-bottom: 4px;
}

.product-launch-perks-bar {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-card, #f1f4f8);
  border: 1px solid var(--line, #d7dde7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary, #4b5563);
  transition: border-color 0.15s, background 0.15s;
}
.product-launch-card:hover .product-launch-perks-bar {
  border-color: color-mix(in srgb, var(--brand-blue, #6f8479) 40%, transparent);
  background: color-mix(in srgb, var(--brand-blue, #6f8479) 4%, var(--bg-card, #f1f4f8));
}
.product-launch-perks-bar .perk-item {
  white-space: nowrap;
}
.product-launch-perks-bar .perk-item b {
  color: var(--text-primary, #111318);
  font-weight: 800;
}
.product-launch-perks-bar .perk-sep {
  color: var(--text-tertiary, #9ca3af);
  font-weight: 400;
}

.product-launch-card-stacked .product-launch-tiers {
  margin-top: 8px;
  gap: 10px;
}

.product-launch-card-stacked .product-tier {
  padding: 10px 12px;
}

.product-launch-card-stacked .product-tier-price {
  font-size: 16px;
}

.product-launch-cta-stacked {
  font-size: 13px !important;
  padding: 10px 14px !important;
  text-align: center;
  justify-content: center;
}

.product-launch-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(14, 23, 48, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-launch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(14, 23, 48, 0.10), 0 0 0 1px rgba(255, 77, 77, 0.18);
  border-color: rgba(255, 77, 77, 0.25);
}

.product-launch-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d4d, #ff8a4d);
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.30);
  align-self: flex-start;
}

.product-launch-headline { position: relative; z-index: 1; }

.product-launch-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.product-launch-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.product-launch-tiers {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.product-tier {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-card-soft);
  border: 1px solid var(--line);
}

.product-tier-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.product-tier-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.product-tier-price span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-left: 2px;
}

.product-tier-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.product-tier-premium {
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.06), rgba(255, 138, 77, 0.04));
  border-color: rgba(255, 138, 77, 0.30);
}

.product-tier-premium .product-tier-name {
  color: #d63a3a;
}

.product-tier-flame {
  color: #ff4d4d;
  font-size: 12px;
  margin-left: 2px;
}

.product-launch-cta {
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--brand-blue);
  color: #fff;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-launch-card:hover .product-launch-cta {
  background: #0e58d6;
}

html[data-theme="dark"] .product-launch-card {
  background: var(--bg-card);
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="dark"] .product-tier {
  background: rgba(255,255,255,0.04);
}

/* === Product Chatbot 상세 페이지 === */
.pchat-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.pchat-hero {
  text-align: center;
  padding: 48px 24px 32px;
}
.pchat-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d4d, #ff8a4d);
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(255, 77, 77, 0.30);
}
.pchat-hero-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px 0;
  color: var(--text-primary);
}
.pchat-hero-tagline {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-blue);
  margin: 0 0 16px 0;
}
.pchat-hero-meta {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}
.pchat-hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 14px;
}
.pchat-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.18s, box-shadow 0.18s;
}
.pchat-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 23, 48, 0.16);
}
.pchat-hero-cta-primary {
  background: linear-gradient(90deg, #ff4d4d, #ff8a4d);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 77, 77, 0.28);
}
.pchat-hero-cta-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--line);
}
.pchat-hero-cta-demo {
  background: linear-gradient(90deg, #7c4dff, #2196f3);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 77, 255, 0.24);
}
.pchat-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 77, 77, 0.10), rgba(255, 138, 77, 0.06));
  border: 1px solid rgba(255, 77, 77, 0.30);
  color: #d63a3a;
  font-size: 12.5px;
  margin-bottom: 18px;
  font-weight: 600;
}
.pchat-hero-badge b {
  color: #1a2238;
  font-weight: 800;
}
.pchat-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: pchat-pulse 1.6s infinite;
  flex-shrink: 0;
}
@keyframes pchat-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 77, 77, 0); }
}

.pchat-cta-final {
  background: linear-gradient(135deg, #fff8f5, #fff);
  border: 2px solid rgba(255, 77, 77, 0.20);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  margin-top: 24px;
}
.pchat-cta-final-headline {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.pchat-cta-final-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 22px;
}
.pchat-cta-final-perks {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.pchat-cta-perk {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(14, 23, 48, 0.04);
}
.pchat-cta-perk b {
  color: #ff4d4d;
}
.pchat-cta-final-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.pchat-hero-meta-soft {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-tertiary);
  max-width: 640px;
  margin: 0 auto;
}

.pchat-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.pchat-feature {
  padding: 24px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.pchat-feature-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.pchat-feature-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.pchat-feature-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.pchat-pricing {
  padding: 16px 0;
}
.pchat-pricing-head {
  text-align: center;
  margin-bottom: 24px;
}
.pchat-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.pchat-plan {
  position: relative;
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.pchat-plan-flag {
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--text-tertiary);
  color: var(--text-secondary);
}
.pchat-plan-trial {
  border-color: rgba(46, 196, 122, 0.4);
  background: linear-gradient(135deg, rgba(46, 196, 122, 0.05), rgba(46, 196, 122, 0.02));
}
.pchat-plan-trial .pchat-plan-flag {
  background: linear-gradient(90deg, #2ec47a, #28a960);
  color: #fff;
  border: 0;
}
.pchat-plan-premium {
  border-color: rgba(255, 77, 77, 0.4);
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.04), rgba(255, 138, 77, 0.02));
}
.pchat-plan-premium .pchat-plan-flag {
  background: linear-gradient(90deg, #ff4d4d, #ff8a4d);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
}
.pchat-plan-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pchat-plan-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.pchat-plan-price span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.pchat-plan-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
  min-height: 36px;
}
.pchat-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex: 1;
}
.pchat-plan-features li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.pchat-plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--brand-blue);
  font-weight: 800;
  font-size: 14px;
}
.pchat-plan-premium .pchat-plan-features li::before {
  color: #ff4d4d;
}
.pchat-plan-trial .pchat-plan-features li::before {
  color: #2ec47a;
}
.pchat-plan-pro {
  border-color: rgba(124, 77, 255, 0.4);
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.04), rgba(33, 150, 243, 0.02));
}
.pchat-plan-pro .pchat-plan-flag {
  background: linear-gradient(90deg, #7c4dff, #2196f3);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}
.pchat-plan-pro .pchat-plan-features li::before {
  color: #7c4dff;
}
.pchat-plan-cta {
  display: block;
  text-align: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg-card-soft);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--line);
  transition: all 0.15s;
}
.pchat-plan-cta:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.pchat-plan-cta-primary {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}
.pchat-plan-cta-primary:hover {
  background: #0e58d6;
  color: #fff;
}
.pchat-plan-trial .pchat-plan-cta {
  background: #2ec47a;
  color: #fff;
  border-color: #2ec47a;
}

.pchat-pricing-note {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-card-soft);
  border: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.pchat-cta-section {
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-card-soft) 0%, var(--bg-card) 100%);
  border: 1px solid var(--line);
}
.pchat-cta-section .cta-row {
  justify-content: center;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .pchat-hero-title { font-size: 30px; }
  .pchat-hero-tagline { font-size: 15px; }
}

/* === 도입 신청 모달 === */
.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.inquiry-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.inquiry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 23, 48, 0.55);
  backdrop-filter: blur(4px);
}
.inquiry-modal-card {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(14, 23, 48, 0.40);
  border: 1px solid var(--line);
  transform: translateY(10px);
  transition: transform 0.2s;
}
.inquiry-modal.is-open .inquiry-modal-card {
  transform: translateY(0);
}
.inquiry-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: var(--bg-card-soft);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inquiry-modal-close:hover {
  background: var(--chip);
}
.inquiry-modal-head {
  margin-bottom: 20px;
  padding-right: 40px;
}
.inquiry-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.inquiry-modal-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inquiry-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.inquiry-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.inquiry-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.inquiry-label em {
  color: #ff4d4d;
  font-style: normal;
  font-weight: 800;
}
.inquiry-input {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card-soft);
  color: var(--text-primary);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.inquiry-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(111, 132, 121, 0.12);
}
.inquiry-textarea {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}
.inquiry-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}
.inquiry-result {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 4px;
  text-align: center;
  display: none;
}
.inquiry-result.is-pending {
  display: block;
  background: rgba(111, 132, 121, 0.08);
  color: var(--brand-blue);
}
.inquiry-result.is-success {
  display: block;
  background: rgba(46, 196, 122, 0.10);
  color: #1f9b5d;
}
.inquiry-result.is-error {
  display: block;
  background: rgba(220, 80, 80, 0.10);
  color: #b04545;
}

@media (max-width: 540px) {
  .inquiry-form-row {
    grid-template-columns: 1fr;
  }
  .inquiry-modal-card {
    padding: 24px 20px;
  }
}

@media (max-width: 720px) {
  .product-launch-card {
    grid-template-columns: 1fr;
  }
  .product-launch-tiers {
    flex-direction: column;
  }
  .product-launch-cta {
    text-align: center;
    justify-content: center;
  }
}

.search-shell,
.ctrl-shell {
  display: grid;
  gap: 24px;
}

.ctrl-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ctrl-item.is-editing {
  border-color: color-mix(in srgb, var(--brand-blue) 55%, var(--line) 45%);
  box-shadow: 0 12px 28px rgba(111, 132, 121, 0.12);
}

.ctrl-item-actions {
  justify-content: flex-end;
}

.search-box,
.form-grid {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.ctrl-editing-slug {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-blue);
}

.field,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 18px;
  padding: 16px 18px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.quick-actions {
  position: fixed;
  right: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

.quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid transparent;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(17, 19, 24, 0.16);
  cursor: pointer;
  padding: 0;
}

.quick-btn .material-symbol {
  font-size: 22px;
}

.quick-btn-accent {
  background: linear-gradient(180deg, #82978b, #6f8479);
  color: #ffffff;
}

.quick-btn:not(.quick-btn-accent) {
  background: linear-gradient(180deg, #3a404a, #242830);
  color: #ffffff;
}

.chat-panel {
  position: fixed;
  right: 28px;
  bottom: 116px;
  width: min(800px, calc(100vw - 32px));
  height: min(880px, calc(100vh - 160px));
  min-width: 360px;
  min-height: 480px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 160px);
  display: none;
  flex-direction: column;
  border-radius: 28px;
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent 4%);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  z-index: 30;
  overflow: hidden;
  resize: both;
}

.chat-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  gap: 10px;
}

.chat-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-panel-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(180deg, #82978b, #6f8479);
  color: #ffffff;
}

.chat-panel.is-open {
  display: flex;
}

.chat-log {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--bg-card-soft);
}

.chat-message {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-message.assistant {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.chat-message.user {
  align-self: flex-end;
  background: var(--brand-blue);
  color: #ffffff;
}

/* 빠른 질문 버튼 */
.chat-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}

.chat-quick-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.chat-quick-btn:hover {
  background: var(--chip);
}

/* 입력 영역 */
.chat-input-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* AI 부스팅 토글 버튼 — 켜지면 붉은 빛 */
.ai-boost-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.ai-boost-btn .ai-boost-icon {
  font-size: 14px;
  transition: transform 0.3s;
}

.ai-boost-btn:hover {
  border-color: var(--text-tertiary);
  color: var(--text-secondary);
}

.ai-boost-btn.is-on {
  border-color: #ff4d4d;
  color: #ff2a2a;
  background: linear-gradient(135deg, #fff0f0, #ffe0e0);
  box-shadow:
    0 0 0 3px rgba(255, 77, 77, 0.18),
    0 0 18px rgba(255, 77, 77, 0.45),
    0 0 32px rgba(255, 77, 77, 0.25);
  animation: aiBoostPulse 1.6s ease-in-out infinite;
}

.ai-boost-btn.is-on .ai-boost-icon {
  transform: rotate(180deg);
  color: #ff2a2a;
  text-shadow: 0 0 8px rgba(255, 77, 77, 0.7);
}

@keyframes aiBoostPulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(255, 77, 77, 0.18),
      0 0 18px rgba(255, 77, 77, 0.45),
      0 0 32px rgba(255, 77, 77, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(255, 77, 77, 0.28),
      0 0 26px rgba(255, 77, 77, 0.65),
      0 0 44px rgba(255, 77, 77, 0.4);
  }
}

html[data-theme="dark"] .ai-boost-btn.is-on {
  background: linear-gradient(135deg, #3a0e0e, #4a1414);
  color: #ff8080;
}

.chat-input-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

/* 관련 프로젝트 카드 */
.chat-refs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.chat-ref-card {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-surface);
  text-decoration: none;
  transition: background 0.15s;
}

.chat-ref-card:hover {
  background: var(--chip);
}

.chat-ref-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.chat-ref-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

/* nextAction 버튼 영역 */
.chat-next-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* 타이핑 인디케이터 */
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 16px;
}

.chat-typing span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: chat-bounce 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chat-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* 챗 답변 구조화 스타일 */
.chat-message.assistant .chat-block {
  margin-bottom: 18px;
}

.chat-message.assistant .chat-block:last-child {
  margin-bottom: 0;
}

.chat-section-header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.chat-list {
  margin: 8px 0 12px 0;
  padding-left: 4px;
  list-style: none;
}

.chat-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.7;
}

.chat-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--brand-blue);
  font-weight: 700;
}

.chat-bullet {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 4px;
}

.chat-label-row {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 10px;
  display: block;
}

.chat-label {
  display: inline-block;
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 6px;
  padding: 2px 8px;
  background: color-mix(in srgb, var(--brand-blue) 10%, transparent);
  border-radius: 6px;
}

.chat-line {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.chat-line:last-child {
  margin-bottom: 0;
}

.footer-zone {
  width: min(1240px, calc(100% - 48px));
  margin: 170px auto 0;
}

.site-footer {
  padding: 0 28px 28px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.footer-description {
  max-width: 520px;
}

.footer-link-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.footer-company-bar {
  margin-top: 24px;
  display: grid;
  gap: 6px;
}

.company-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.company-meta-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: nowrap;
}

.company-meta-label {
  color: var(--text-primary);
  font-weight: 700;
}

.company-meta-address {
  white-space: normal;
}

.footer-copy {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.empty-state {
  padding: 28px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-secondary);
}

@media (max-width: 1100px) {
  .top-home-grid,
  .hero-grid,
  .home-feature-grid,
  .split-grid,
  .footer-top,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-link-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 햄버거 버튼 — 데스크탑에선 숨김, 모바일에서 표시 */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.2s, opacity 0.2s;
  border-radius: 2px;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .site-shell {
    width: min(1240px, calc(100% - 24px));
  }

  .footer-zone {
    width: min(1240px, calc(100% - 24px));
  }

  .site-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    background: var(--bg-card);
    border-radius: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .footer-link-columns {
    grid-template-columns: 1fr;
  }

  .mini-project {
    grid-template-columns: 88px 1fr;
  }

  .lead-visual {
    height: 200px;
  }

  .quick-actions,
  .chat-panel {
    right: 16px;
  }

  .quick-actions {
    bottom: 20px;
  }

  .chat-panel {
    bottom: 108px;
    width: min(360px, calc(100vw - 24px));
  }
}

/* ── Solutions ────────────────────────────────────────────────────── */
.chip-blue {
  background: var(--brand-blue);
  color: #fff;
}

.pill-strong {
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
}

.solution-featured-section {
  background: linear-gradient(135deg, #f0f6ff 0%, #e7efff 100%);
  border: 1.5px solid var(--brand-blue);
}

html[data-theme="dark"] .solution-featured-section {
  background: linear-gradient(135deg, #0e1d3b 0%, #182a52 100%);
}

.solution-featured-badge-row {
  margin-bottom: 16px;
}

.solution-featured-badge-large {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 4px;
}

.solution-featured-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: 0.05em;
}

.solution-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.solution-card-featured {
  border: 1.5px solid var(--brand-blue);
}

/* ── Reference category tabs ──────────────────────────────────────── */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px 12px 0 0;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.cat-tab:hover {
  color: var(--text-primary);
  background: var(--bg-card-soft);
}

.cat-tab.is-active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
  background: var(--bg-card-soft);
}

.cat-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--chip);
  color: var(--text-tertiary);
  padding: 1px 7px;
  border-radius: 10px;
}

.cat-tab.is-active .cat-count {
  background: var(--brand-blue);
  color: #fff;
}

/* ── Scope grid (Solutions detail) ───────────────────────────────── */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.scope-card {
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
}

.scope-card .scope-label {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.scope-included {
  background: rgba(46, 196, 122, 0.08);
  border-color: rgba(46, 196, 122, 0.3);
}
.scope-included .scope-label {
  color: #1f9b5d;
}

.scope-optional {
  background: rgba(176, 137, 104, 0.08);
  border-color: rgba(176, 137, 104, 0.3);
}
.scope-optional .scope-label {
  color: #c97a14;
}

.scope-excluded {
  background: rgba(220, 80, 80, 0.06);
  border-color: rgba(220, 80, 80, 0.25);
}
.scope-excluded .scope-label {
  color: #b04545;
}

.bullet-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.bullet-list li {
  padding: 4px 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cta-section {
  background: linear-gradient(135deg, var(--bg-card-soft) 0%, var(--bg-card) 100%);
  border: 1px solid var(--line);
}

/* ── Mini cover image ──────────────────────────────────────────── */
.mini-cover-image {
  background-size: cover;
  background-position: center;
}

.mini-cover-contain {
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--bg-surface);
}

.mini-cover-label {
  font-weight: 700;
}

/* ── Deployment status ──────────────────────────────────────────── */
.deploy-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 12px;
  margin-top: 4px;
}

.deploy-status-running {
  background: rgba(46, 196, 122, 0.12);
  color: #1f9b5d;
  border: 1px solid rgba(46, 196, 122, 0.4);
}

.deploy-status-incoming {
  background: rgba(176, 137, 104, 0.14);
  color: #c97a14;
  border: 1px solid rgba(176, 137, 104, 0.45);
}

.deploy-status-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 22px;
  width: fit-content;
}

.deploy-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Solution cover (architecture diagram style) ──────────────────── */
.solution-cover {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: #0E1730;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.solution-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.solution-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.solution-card .solution-cover {
  height: 168px;
}

/* On detail page hero, cover should be larger */
.detail-aside-cover .solution-cover {
  height: 200px;
}

/* Lead project with cover background image (Osstem 등) */
.lead-project-with-cover {
  background-color: #0E1730;
  background-blend-mode: normal;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

/* Big faint brand watermark behind the cover */
.lead-project-with-cover::before {
  content: "OSSTEM";
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-52%);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: clamp(120px, 18vw, 240px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  line-height: 0.9;
  user-select: none;
}

.lead-project-with-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(14,23,48,0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.lead-project-with-cover .lead-visual,
.lead-project-with-cover .stack-sm {
  position: relative;
  z-index: 1;
}

.lead-project-with-cover .lead-badge {
  background: rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Banner-style covers (wide marketing graphics with text/logos) — show full, not cropped */
.project-cover-banner {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f5f5f5;
}

html[data-theme="dark"] .project-cover-banner {
  background-color: #1a1d24;
}

/* Scope additional (replaces 옵션/제외 grid) */
.scope-additional {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-card-soft);
  border: 1px dashed var(--line);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.scope-additional-label {
  display: inline-block;
  font-weight: 700;
  color: var(--brand-blue);
  margin-right: 8px;
}

/* === Solution module cards: 흰색 본체 + 다크 SVG 영역 + hover === */
.solution-card:not(.solution-card-featured) {
  transition: transform 0.2s, box-shadow 0.2s;
}

.solution-card:not(.solution-card-featured):hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(14, 23, 48, 0.18), 0 6px 18px rgba(111, 132, 121, 0.12);
}

/* === Solution Hero Cards (Osstem-style dual watermark) ====================== */
.solution-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.solution-hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0E1730 0%, #162244 55%, #0E58D6 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(14, 23, 48, 0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}

.solution-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(14, 23, 48, 0.28), 0 8px 24px rgba(111, 132, 121, 0.18);
}

/* Big faint brand watermark (확대된 회색 EM 느낌) */
.solution-hero-card::before {
  content: attr(data-watermark);
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-52%);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: clamp(110px, 16vw, 200px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  line-height: 0.9;
  user-select: none;
}

/* E-IAM Platform — 레퍼런스 카드와 동일한 이미지/사이즈/위치/알파 (lead-project-with-cover 패턴 정확 매칭) */
.solution-hero-card[data-watermark="OSSTEM"] {
  background-image:
    linear-gradient(135deg, rgba(14,23,48,0.88) 0%, rgba(22,34,68,0.82) 55%, rgba(14,88,214,0.62) 100%),
    url('/assets/logos/bi-denall-m.png');
  background-size: cover, 80%;
  background-position: center, right -8% center;
  background-repeat: no-repeat, no-repeat;
  background-color: #0E1730;
}

.solution-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(14,23,48,0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

/* 레퍼런스 카드 .lead-visual 톤 매칭 */
.solution-hero-glass {
  position: relative;
  z-index: 2;
  margin: 18px 18px 0 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.solution-hero-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), transparent 52%),
    radial-gradient(circle at 88% 88%, rgba(159, 176, 166, 0.28), transparent 28%);
  pointer-events: none;
  z-index: -1;
}

.solution-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.solution-hero-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.solution-hero-featured {
  font-size: 11px;
  font-weight: 800;
  color: #FFD66E;
  letter-spacing: 0.04em;
}

.solution-hero-product {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.25;
}

.solution-hero-meta {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
}

.solution-hero-body {
  position: relative;
  z-index: 2;
  padding: 16px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.solution-hero-tagline {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.solution-hero-summary {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solution-hero-deploy {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 12px;
}

.solution-hero-deploy.deploy-running {
  background: rgba(46, 196, 122, 0.18);
  color: #6EEAA6;
  border: 1px solid rgba(46, 196, 122, 0.35);
}

.solution-hero-deploy.deploy-incoming {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.solution-hero-deploy .deploy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.solution-hero-featured-card {
  border: 1.5px solid rgba(157, 194, 255, 0.45);
  box-shadow: 0 16px 40px rgba(14, 23, 48, 0.24), 0 0 0 1px rgba(157, 194, 255, 0.18) inset;
}

/* Solution detail 페이지 우측 — 카드 그대로 사용 */
.solution-detail-aside {
  display: block;
  align-self: start;
}
.solution-detail-aside .solution-hero-card {
  pointer-events: none;
}

@media (max-width: 720px) {
  .solution-hero-card { min-height: 280px; }
  .solution-hero-product { font-size: 18px; }
}

/* Decor 레이어 — 글래스 박스 영역 피해서 아래쪽 부터 위→아래 순서대로 쌓임 */
.solution-hero-decor {
  position: absolute;
  top: 150px;       /* 글래스 박스 영역(상단) 피해 시작 */
  right: 0;
  bottom: 12px;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 6%;
}

.decor-logo {
  pointer-events: none;
  user-select: none;
  object-fit: contain;
  opacity: 0.32;
  filter: grayscale(1) brightness(1.4);
  flex-shrink: 0;
}

/* 흰 배경 이미지 (IBK GIF, Avaya JPG) — invert + screen 블렌드로 흰 배경 제거 */
.decor-logo[src$=".gif"],
.decor-logo[src$=".jpg"] {
  filter: grayscale(1) invert(1) brightness(1.1);
  mix-blend-mode: screen !important;
  opacity: 0.40;
}

/* sizes — 첫 번째 (xl) 메인, 아래로 갈수록 작아짐 */
.decor-size-xl { width: 200px; height: auto; }
.decor-size-lg { width: 140px; height: auto; }
.decor-size-md { width: 95px;  height: auto; }
.decor-size-sm { width: 64px;  height: auto; }

/* ── 정책 페이지 (이용약관·개인정보처리방침·환불정책) ── */
.policy-shell { max-width: 880px; margin: 0 auto; padding: 32px 20px 64px; }
.policy-hero { padding: 24px 0 8px; border-bottom: 1px solid rgba(0,0,0,0.06); margin-bottom: 24px; }
.policy-hero .hero-title { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 6px; }
.policy-hero .hero-sub { color: var(--muted, #6c7488); font-size: 14px; margin: 0; }
.policy-card { padding: 28px 32px; line-height: 1.75; color: #2a3148; font-size: 15px; }
.policy-card h2 { font-size: 17px; letter-spacing: -0.01em; margin: 28px 0 10px; color: #1a2238; font-weight: 800; }
.policy-card h2:first-child { margin-top: 4px; }
.policy-card p { margin: 0 0 12px; }
.policy-card ul { margin: 4px 0 14px; padding-left: 22px; }
.policy-card li { margin-bottom: 6px; }
.policy-card a { color: #ff4d4d; text-decoration: underline; }
.policy-effective { margin-top: 32px; padding-top: 16px; border-top: 1px dashed rgba(0,0,0,0.08); color: var(--muted, #6c7488); font-size: 13px; }

/* 풋터 정책 링크 — 기존 chip 색상에서 약간 강조 */
.footer-policy-links { margin-top: 12px; gap: 10px; }
.footer-policy-links a.company-meta-chip { text-decoration: underline; color: inherit; cursor: pointer; }
.footer-policy-links a.company-meta-chip:hover { color: #ff4d4d; }

@media (max-width: 720px) {
  .policy-card { padding: 22px 18px; font-size: 14.5px; }
  .policy-hero .hero-title { font-size: 26px; }
}

/* 챗봇 상품 페이지 — 결제·가입 전 정책 노출 (CTA 직후) */
.pchat-policies { max-width: 720px; margin: 24px auto 8px; padding: 16px 20px; text-align: center; border-top: 1px dashed rgba(0,0,0,0.08); }
.pchat-policies-line { font-size: 13px; color: #6c7488; }
.pchat-policies-line a { color: #3a4258; text-decoration: underline; margin: 0 4px; }
.pchat-policies-line a:hover { color: #ff4d4d; }
.pchat-policies-sep { color: #bcc3d4; margin: 0 4px; }
.pchat-policies-meta { font-size: 11.5px; color: #9ba3b6; margin-top: 6px; line-height: 1.6; }
@media (max-width: 720px) {
  .pchat-policies-meta { font-size: 11px; }
}

/* 메인 페이지 — 챗봇 카드 FREE TRIAL 톤 */
.product-launch-card-trial { position: relative; border: 2px solid #2ec47a; box-shadow: 0 8px 24px rgba(46,196,122,0.12); }
.product-launch-card-trial:hover { box-shadow: 0 12px 32px rgba(46,196,122,0.20); }
.product-launch-trial-badge {
  position: absolute; top: 14px; right: 14px;
  background: linear-gradient(135deg, #2ec47a, #1a8b5b);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 3px 8px rgba(46,196,122,0.30);
}
.product-launch-trial-headline {
  margin: 10px 0 6px; padding: 8px 14px;
  background: linear-gradient(90deg, #ecfdf5, #f0fff5);
  border: 1px solid #c0eecd;
  border-radius: 10px;
  color: #1a8b5b; font-weight: 800; font-size: 14px;
  text-align: center;
}
.product-launch-cta-trial {
  background: linear-gradient(90deg, #2ec47a, #1a8b5b) !important;
  color: #fff !important;
  font-weight: 800;
  border: 0;
  box-shadow: 0 4px 12px rgba(46,196,122,0.28);
}
.product-launch-cta-trial:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46,196,122,0.35);
}

/* ====================================================================== */
/* JHID — 페이지 전용 컴포넌트 (세이지 그린 + 화이트, 차분/고급)            */
/* ====================================================================== */

/* 브랜드 워드마크 — 세리프 */
.brand-jhid { display: inline-flex; align-items: baseline; gap: 10px; }
.brand-jhid .brand-mark {
  font-family: "Cormorant Garamond", "Pretendard", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
  line-height: 1;
}
.brand-header.brand-jhid .brand-mark { font-size: 30px; }
.brand-header.brand-jhid .brand-ko { font-size: 13px; color: var(--text-tertiary); letter-spacing: 0.02em; }
.brand-footer.brand-jhid .brand-mark { font-size: 34px; }

/* 헤더 nav 전화 CTA */
.nav-cta {
  font-weight: 700; color: var(--brand-deep) !important;
  border: 1px solid var(--brand-soft); border-radius: 999px;
  padding: 6px 14px; background: color-mix(in srgb, var(--brand) 8%, #fff);
}
.nav-cta:hover { background: color-mix(in srgb, var(--brand) 16%, #fff); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.jhid-hero {
  position: relative; overflow: hidden;
  border-radius: 26px;
  min-height: 460px;
  display: flex; align-items: center;
  padding: 64px clamp(24px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(115deg, rgba(45,55,50,0.78) 0%, rgba(77,95,86,0.62) 48%, rgba(111,132,121,0.42) 100%),
    /* 실사진 전달 시 아래 url() 교체: assets/img/hero.jpg */
    linear-gradient(135deg, #6f8479, #4d5f56 60%, #3c4a43);
  background-size: cover; background-position: center;
}
.jhid-hero-inner { position: relative; max-width: 760px; }
.jhid-hero-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.92; margin-bottom: 18px;
}
.jhid-hero-title {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 18px;
}
.jhid-hero-title em {
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 700;
}
.jhid-hero-sub { font-size: clamp(15px, 1.7vw, 18px); line-height: 1.7; opacity: 0.94; margin: 0 0 28px; }
.jhid-hero .cta-row .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.jhid-hero .cta-row .btn-outline:hover { background: rgba(255,255,255,0.14); }
@media (max-width: 720px) { .br-pc { display: none; } .jhid-hero { min-height: 380px; } }

/* ── 섹션 헤더 (제목 + 전체보기) ───────────────────────────────────────── */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head .page-heading { margin-bottom: 0; }

/* ── 가치 카드 ─────────────────────────────────────────────────────────── */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.value-card { display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; }
.value-icon, .service-icon {
  font-size: 32px;
  font-variation-settings: 'wght' 300, 'opsz' 40, 'GRAD' 0;
  color: var(--brand);
  width: 68px; height: 68px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  margin-bottom: 6px;
}

/* ── 서비스 그리드 ─────────────────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease; }
a.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.service-card-detail { gap: 16px; }

/* ── CTA 밴드 ──────────────────────────────────────────────────────────── */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 14%, #fff), var(--bg-surface));
  border: 1px solid var(--line);
}

/* ── About ─────────────────────────────────────────────────────────────── */
.about-intro { display: flex; flex-direction: column; gap: 14px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-row { display: flex; gap: 22px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline-row:last-child { border-bottom: none; }
.timeline-year {
  flex: 0 0 96px; font-family: "Cormorant Garamond", serif; font-size: 26px;
  font-weight: 700; color: var(--brand);
}
.info-table { display: flex; flex-direction: column; }
.info-row { display: flex; gap: 18px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-key { flex: 0 0 150px; color: var(--text-tertiary); font-weight: 600; }
.info-val { color: var(--text-primary); }
@media (max-width: 560px) { .info-row { flex-direction: column; gap: 4px; } .info-key { flex-basis: auto; } }

/* ── 시공사례 필터 ─────────────────────────────────────────────────────── */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip {
  border: 1px solid var(--line); background: var(--bg-surface); color: var(--text-secondary);
  border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 600; transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--brand-soft); color: var(--brand-deep); }
.filter-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── 시공사례 플레이스홀더 커버 ────────────────────────────────────────── */
.project-cover-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, #fff), color-mix(in srgb, var(--brand) 6%, #fff));
  color: var(--brand-deep); border: 1px dashed var(--brand-soft);
}
.project-cover-ph .ph-icon { font-size: 40px; opacity: 0.6; }
.project-cover-ph .project-cover-title { font-weight: 600; font-size: 13px; letter-spacing: 0.02em; }
.project-cover-ph-lg { min-height: 320px; border-radius: 18px; }

/* 상세 back 링크 */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-weight: 600; }
.back-link:hover { color: var(--brand-deep); }
.back-link .material-symbol { font-size: 18px; }

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line .material-symbol {
  font-size: 22px; color: var(--brand); flex: 0 0 auto;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: color-mix(in srgb, var(--brand) 10%, #fff);
}
.contact-key { font-size: 12px; color: var(--text-tertiary); font-weight: 600; }
.contact-val { font-size: 16px; color: var(--text-primary); font-weight: 600; }
.naver-btn { margin-top: 6px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.naver-btn .material-symbol { font-size: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form .form-field { display: flex; flex-direction: column; gap: 6px; }
.map-card { padding: 0; overflow: hidden; }
.map-frame { width: 100%; height: 320px; border: 0; display: block; }

/* footer tagline */
.footer-tagline { margin: 8px 0 0; color: var(--text-secondary); font-size: 14px; }
