/* 자동 생성: tools/lighten.py 로 css/style.css 변환. 직접 수정 금지 */
:root {
  color-scheme: light;
  --bg: #f5f6f7;
  --surface: #f0f1f3;
  --surface-2: #e8eaed;
  --border: #e3e5e9;
  --text: #1b263b;
  --muted: #55585e;
  --primary: #0aa370;
  --primary-strong: #0fe8a0;
  --accent: #0aa370;
  --accent-strong: #0fe39c;
  --danger: #a50808;
  --success: #1b9346;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-lg: 0 20px 60px -20px rgba(32,182,132,0.35);
  --font-sans: "Pretendard", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Inter", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; top: -100%; left: 0; z-index: 1000;
  background: var(--primary); color: #011710; padding: .75rem 1rem;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

.container {
  width: min(92%, 72rem);
  margin-inline: auto;
}

.tag {
  display: inline-block;
  font-family: var(--font-num);
  font-size: .75rem;
  letter-spacing: .22em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: .75rem;
  text-transform: uppercase;
}
.tag.light { color: var(--accent); }

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}
.section-title {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  font-weight: 800;
}
.section-title.light { color: #0a0f19; }
.section-desc {
  color: var(--muted);
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  max-width: 40rem;
}
.section-desc.light { color: #151e30; }
.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .section-desc { margin-inline: auto; }

.grad {
  background: linear-gradient(120deg, #0aa370 0%, #0aa370 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(11,18,32,0.324);
  border-bottom: 1px solid rgba(11,18,32,0.042);
}
.nav-inner {
  width: min(92%, 72rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.footer-brand .brand-logo { height: 56px; }
.brand-since {
  font-family: var(--font-num);
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}
@media (max-width: 640px) {
  .brand-logo { height: 36px; }
  .brand-since { display: none; }
  .footer-brand .brand-logo { height: 48px; }
}

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 1.08rem; transition: color .2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-links .nav-cta {
  color: #011710;
  background: var(--primary);
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}
.nav-links .nav-cta:hover { background: var(--accent); }

/* Nav HOT 메뉴 (자동화 시스템) — 기본은 일반 링크, active 시 강조 */
.nav-hot {
  position: relative;
  padding: .3rem .3rem .3rem 0;
  font-weight: 600;
}
.nav-hot:hover { color: var(--accent) !important; }

/* 스크롤스파이 활성 상태 */
.nav-links a.nav-active,
.mobile-menu a.nav-active {
  color: var(--primary) !important;
  font-weight: 700;
}
.nav-links a.nav-active.nav-hot,
.mobile-menu a.nav-active.nav-hot {
  color: var(--accent) !important;
}
.nav-links a.nav-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.nav-links a.nav-active.nav-cta::after { display: none; }
/* CTA 버튼은 활성(scrollspy) 상태여도 배경과 같은 파란 글자가 되지 않도록 진한 글자색 유지 */
.nav-links a.nav-active.nav-cta { color: #011710 !important; }
.nav-hot-dot {
  position: absolute;
  top: 4px; right: -6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #a94804;
  box-shadow: 0 0 0 0 rgba(169,72,4,0.65);
  /* 페이지 진입 초반 4회만 맥박, 이후 정적인 점 */
  animation: hotPulse 1.8s ease-out 4 forwards;
}
.nav-hot:hover .nav-hot-dot {
  /* 사용자가 호버하면 한 번 더 살짝 반응 */
  animation: hotPulse 1.8s ease-out 1;
}
@keyframes hotPulse {
  0%   { box-shadow: 0 0 0 0   rgba(169,72,4,0.65); }
  70%  { box-shadow: 0 0 0 10px rgba(182,94,32,0); }
  100% { box-shadow: 0 0 0 0   rgba(182,94,32,0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-hot-dot { animation: none; }
}
.mobile-menu .nav-hot { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; transition: .3s; }
.mobile-menu { display: none; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .mobile-menu {
    display: block;
    position: absolute; left: 0; right: 0; top: 64px;
    background: rgba(11,18,32,0.436);
    border-bottom: 1px solid var(--border);
    padding: .5rem 0;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { display: block; padding: .9rem 7%; color: var(--text); border-bottom: 1px solid rgba(11,18,32,0.028); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(6rem, 14vw, 9rem) 0 clamp(5rem, 10vw, 7rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ===== Hero Background — Poster Image + Video ===== */
/* 포스터 이미지: 항상 깔려있어 영상이 안 떠도 비주얼 깨지지 않음 */
.hero-poster-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background-image: url('og-image.png');
  background-size: cover;
  background-position: center;
  filter: saturate(1.15) contrast(1.05) brightness(.95);
  opacity: .9;
}
.hero-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .8;
  filter: saturate(1) contrast(1.04) brightness(.6);
  background: #f5f6f7;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(247,248,250,0.966) 0%, rgba(247,248,250,0.756) 44%, rgba(247,248,250,0.357) 100%),
    linear-gradient(180deg, rgba(247,248,250,0.473) 0%, rgba(247,248,250,0.525) 55%, rgba(247,248,250,0.945) 100%);
  z-index: 1;
}
/* 데스크탑 기본: 데스크탑 영상만, 모바일 영상은 숨김 */
.hero-video-mobile { display: none; }

/* 모바일: 데스크탑 영상 숨기고 모바일 전용 영상 표시 */
@media (max-width: 768px) {
  .hero-video-desktop { display: none; }
  .hero-video-mobile { display: block; opacity: .95; }
  .hero-poster-bg { opacity: .6; }
  .hero-video-overlay {
    background:
      linear-gradient(180deg, rgba(247,248,250,0.756) 0%, rgba(247,248,250,0.693) 45%, rgba(247,248,250,0.977) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg { display: none; }
}
.hero-video .grid-bg,
.hero-video .glow { z-index: 2; }

/* ===== Demo Banner ===== */
.demo-banner {
  display: block;
  margin-top: 2.5rem;
  border-radius: 24px;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(38,176,130,0.12), rgba(32,182,132,0.08));
  border: 1px solid rgba(32,182,132,0.25);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.demo-banner:hover {
  transform: translateY(-3px);
  border-color: rgba(10,163,112,0.5);
  box-shadow: 0 30px 70px rgba(38,176,130,0.18);
}
.demo-banner::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32,182,132,0.12), transparent 70%);
}
.demo-banner-inner { position: relative; }
.demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(32,182,132,0.15);
  color: #0aa370;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid rgba(32,182,132,0.3);
  margin-bottom: 14px;
}
.demo-banner h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  margin: 0 0 10px;
  color: #111928;
}
.demo-banner p {
  margin: 0 0 16px;
  color: #505762;
  font-size: 14.5px;
  line-height: 1.6;
}
.demo-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0aa370;
  font-weight: 800;
  font-size: 14px;
}
@media (max-width: 640px) {
  .demo-banner { padding: 1.5rem 1.5rem; }
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,18,32,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,18,32,0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  opacity: .18;
}
.glow-1 { width: 340px; height: 340px; background: #0fe8a0; top: -80px; left: -60px; }
.glow-2 { width: 380px; height: 380px; background: #0aa370; bottom: -120px; right: -80px; opacity: .1; }

.hero-inner { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-copy .hero-cta { justify-content: flex-start; }
.hero-copy .hero-chips { justify-content: flex-start; }
.hero-visual {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.hero-dice-stage {
  width: 100%;
  display: flex; justify-content: center; align-items: center;
  min-height: 360px;
}
@media (max-width: 900px) {
  .hero { padding: clamp(4rem, 12vw, 6rem) 0 clamp(3rem, 8vw, 5rem); }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-cta { justify-content: center; }
  .hero-copy .hero-chips { justify-content: center; }
  .hero-inner { text-align: center; }
  .hero-dice-stage { min-height: 260px; }
}
@media (max-width: 560px) {
  .hero { padding: 3.2rem 0 2.6rem; }
  .hero-dice-stage { min-height: 220px; }
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-num);
  font-size: .72rem;
  letter-spacing: .28em;
  color: var(--primary);
  font-weight: 700;
  padding: .4rem .9rem;
  border: 1px solid rgba(32,182,132,0.35);
  border-radius: 999px;
  margin-bottom: 1.4rem;
  background: rgba(32,182,132,0.06);
}
.hero-title {
  font-size: clamp(1.9rem, 1.2rem + 4.2vw, 4.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  font-weight: 900;
  word-break: keep-all;
}
.hero-desc {
  max-width: 38rem;
  margin: 0 0 1.2rem;
  color: #3f556e;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
}
.hero-region {
  max-width: 42rem;
  margin: 0 auto 2rem;
  color: #505762;
  font-size: .88rem;
  line-height: 1.6;
}
.hero-region b { color: #3f556e; font-weight: 700; }
.hero-cta {
  display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.2rem;
}
/* 보조 CTA — 텍스트 링크 스타일 (primary 버튼 옆에 작게) */
.hero-sub-link {
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted, #505762);
  text-decoration: none;
  border-bottom: 1px dashed rgba(80,87,98,0.35);
  padding: .25rem 0;
  transition: color .2s, border-color .2s;
}
.hero-sub-link:hover {
  color: var(--accent-hi, #0aa370);
  border-color: var(--accent-hi, #0aa370);
}
.hero-chips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
}
.hero-chips li {
  font-family: var(--font-num);
  font-size: .85rem;
  padding: .4rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11,18,32,0.021);
  color: var(--muted);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--primary);
  color: #011710;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { background: #0aa370; color: #011710; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(10,163,112,0.55); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn.full { width: 100%; }
.price-actions { display: grid; gap: .55rem; margin-top: auto; }
.price-actions .btn.full { white-space: nowrap; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-points {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: .7rem;
}
.about-points li {
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(11,18,32,0.014);
  font-size: .98rem;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.about-stats > div {
  padding: 1.8rem 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(32,182,132,0.08), rgba(32,182,132,0.03));
  border: 1px solid var(--border);
  text-align: center;
}
.about-stats b {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--primary);
  letter-spacing: -0.02em;
}
.about-stats span { color: var(--muted); font-size: .9rem; }

/* ===== Dice 3D ===== */
.dice-section {
  background: radial-gradient(ellipse at center top, rgba(32,182,132,0.08), transparent 60%);
}
.dice-stage {
  width: 100%;
  height: clamp(340px, 50vw, 440px);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.dice-wrap {
  --size: 280px;
  perspective: 1400px;
  width: var(--size);
  height: var(--size);
}
.dice {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateY(-18deg);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
  cursor: grab;
  touch-action: none;
}
.dice:active { cursor: grabbing; }
.dice.dragging { transition: none; }

@media (max-width: 560px) {
  .dice-wrap { --size: 220px; }
}

.face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 1.4rem 1.3rem;
  border-radius: 22px;
  border: 1px solid rgba(32,182,132,0.35);
  background:
    linear-gradient(160deg, rgba(32,182,132,0.2), rgba(32,182,132,0.06)),
    #f0f1f3;
  box-shadow:
    inset 0 0 40px rgba(32,182,132,0.08),
    0 0 30px rgba(32,182,132,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.face * { pointer-events: none; }
.face { pointer-events: auto; }
.face h3 {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  margin: .6rem 0 .6rem;
  letter-spacing: -0.01em;
  font-weight: 800;
}
.face p {
  margin: 0 0 .9rem;
  color: #3f556e;
  font-size: .92rem;
  line-height: 1.55;
}
.face-num {
  display: inline-block;
  font-family: var(--font-num);
  font-size: .75rem;
  letter-spacing: .22em;
  color: var(--accent);
  font-weight: 800;
}
.face-tag {
  display: inline-block;
  font-family: var(--font-num);
  font-size: .72rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(32,182,132,0.15);
  color: var(--primary);
  border: 1px solid rgba(32,182,132,0.35);
  letter-spacing: .04em;
  width: fit-content;
}
.face-tag.pill-accent {
  background: var(--accent);
  color: #022016;
  border-color: var(--accent);
}
.face-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #011710;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  width: fit-content;
}
a.face {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
a.face:hover {
  border-color: var(--primary);
  box-shadow:
    inset 0 0 40px rgba(32,182,132,0.14),
    0 0 40px rgba(32,182,132,0.25);
}
.face-go {
  display: inline-flex; align-items: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}
.face-go-cta {
  background: var(--primary);
  color: #011710;
  padding: .45rem .85rem;
  border-radius: 999px;
  width: fit-content;
}

/* 6 faces — translate each by half the wrap size */
.dice-wrap { --half: calc(var(--size) / 2); }
.face-front  { transform: translateZ(var(--half)); }
.face-back   { transform: rotateY(180deg) translateZ(var(--half)); }
.face-right  { transform: rotateY( 90deg) translateZ(var(--half)); }
.face-left   { transform: rotateY(-90deg) translateZ(var(--half)); }
.face-top    { transform: rotateX( 90deg) translateZ(var(--half)); }
.face-bottom { transform: rotateX(-90deg) translateZ(var(--half)); }

.dice-menu {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .6rem;
  max-width: 60rem;
  margin: 1rem auto 0;
}
.dice-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: 1rem .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  transition: transform .15s, border-color .2s, background .2s, color .2s;
  text-align: center;
}
.dice-menu a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  background: rgba(32,182,132,0.08);
}
.dm-num {
  font-family: var(--font-num);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--accent);
  font-weight: 800;
}
.dm-label {
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
@media (max-width: 720px) {
  .dice-menu { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .dice-menu { grid-template-columns: repeat(2, 1fr); }
  .dm-label { font-size: .85rem; }
}
.dice-hint {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .dice { transition: none; }
}

/* ===== Services ===== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.2rem;
}
.svc-card {
  position: relative;
  padding: 2rem 1.6rem;
  background: linear-gradient(160deg, rgba(32,182,132,0.1), rgba(32,182,132,0.04));
  border: 1px solid rgba(32,182,132,0.28);
  border-radius: var(--radius-lg);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  box-shadow: 0 8px 24px -16px rgba(32,182,132,0.25);
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10,163,112,0.55);
  box-shadow: 0 16px 36px -12px rgba(32,182,132,0.35);
}
.svc-card.highlight {
  background: linear-gradient(160deg, rgba(32,182,132,0.14), rgba(32,182,132,0.06));
  border-color: rgba(32,182,132,0.4);
}
.svc-num {
  font-family: var(--font-num);
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--primary);
  margin-bottom: .6rem;
  font-weight: 700;
}
.svc-ico {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(32,182,132,0.18), rgba(32,182,132,0.08));
  border: 1px solid rgba(32,182,132,0.3);
  color: var(--primary);
  margin-bottom: .85rem;
  box-shadow: 0 8px 22px -10px rgba(32,182,132,0.4);
  transition: transform .25s ease;
}
.svc-card:hover .svc-ico { transform: translateY(-2px) rotate(-3deg); }
.svc-card.highlight .svc-ico {
  background: linear-gradient(135deg, rgba(32,182,132,0.3), rgba(32,182,132,0.18));
  border-color: rgba(10,163,112,0.55);
}
.svc-card h3 {
  font-size: 1.3rem;
  margin: 0 0 .6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.pill {
  font-size: .72rem;
  background: var(--accent);
  color: #022016;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
}
.svc-card p { color: var(--muted); margin: 0 0 .9rem; font-size: .95rem; }
.svc-card ul { padding-left: 1.1rem; margin: 0; color: #3f556e; font-size: .92rem; }
.svc-card li { margin-bottom: .3rem; }

/* ===== Fast Build (1-hour homepage) ===== */
.fast-build {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(32,182,132,0.08), transparent 60%),
    radial-gradient(ellipse at 20% 50%, rgba(32,182,132,0.08), transparent 55%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fast-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .fast-grid { grid-template-columns: 1fr; } }
.fast-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: .6rem;
}
.fast-points li {
  position: relative;
  padding: .8rem 1rem .8rem 2.4rem;
  background: rgba(11,18,32,0.014);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .96rem;
}
.fast-points li::before {
  content: "✓";
  position: absolute;
  left: .9rem; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 800;
  font-family: var(--font-num);
}
.fast-cta { display: flex; gap: .6rem; flex-wrap: wrap; }
.fast-hint { color: var(--muted); font-size: .82rem; margin: .9rem 0 0; }
.fast-hint b { color: var(--text); }

.fast-price {
  margin: 0 0 1.4rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(32,182,132,0.35);
  background:
    linear-gradient(120deg, rgba(32,182,132,0.12), rgba(32,182,132,0.04));
  border-radius: var(--radius-md);
}
.fast-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.fast-price-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .02em;
}
.fast-price-amount {
  font-family: var(--font-num);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.fast-price-amount b {
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fast-price-amount small {
  font-size: .55em;
  font-weight: 600;
  color: var(--muted);
  margin-left: .25rem;
}
.fast-price-note {
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}
.fast-price-note b { color: var(--text); }

.fast-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.fast-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(32,182,132,0.4);
  border-radius: 50%;
  animation: ring-spin 22s linear infinite;
}
.fast-ring-2 {
  inset: 15%;
  border-style: solid;
  border-color: rgba(32,182,132,0.25);
  animation: ring-spin 14s linear infinite reverse;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.fast-stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-num);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  z-index: 1;
  justify-content: center;
}
.fast-unit {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}

/* "??" pulses in title — re-apply gradient clip since nested span loses it */
.q-marks {
  display: inline-block;
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: qpulse 1.4s ease-in-out infinite;
}
@keyframes qpulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* ?? → 60 스왑: 봇이 "딱!" 하면서 타이틀 안에서 직접 바꿔주는 연출 */
.num-swap {
  position: relative;
  display: inline-block;
  min-width: 1.6em;
  text-align: center;
  /* line-height 보정 — 숫자 교체 때 폭 출렁임 방지 */
  white-space: nowrap;
}
.num-swap .num-q,
.num-swap .num-a {
  display: inline-block;
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: opacity .5s ease, transform .65s cubic-bezier(.3, 1.5, .35, 1);
}
.num-swap .num-q {
  opacity: 1;
  transform: scale(1) rotate(0);
  animation: qpulse 1.4s ease-in-out infinite;
}
.num-swap .num-a {
  position: absolute;
  left: 0; right: 0; top: 0;
  opacity: 0;
  transform: scale(.35) rotate(-14deg);
  filter: drop-shadow(0 0 0 rgba(32,182,132,0));
}
.fast-build.painted .num-swap .num-q {
  opacity: 0;
  transform: scale(.35) rotate(12deg);
  animation: none;
}
.fast-build.painted .num-swap .num-a {
  opacity: 1;
  transform: scale(1) rotate(0);
  filter: drop-shadow(0 0 18px rgba(10,163,112,0.55));
  animation: num-pop .9s ease-out;
}
@keyframes num-pop {
  0%   { transform: scale(.35) rotate(-14deg); }
  55%  { transform: scale(1.18) rotate(4deg); }
  78%  { transform: scale(.92) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}

/* 중앙 정렬 — fast-copy 가 더 이상 그리드 좌측이 아닌 단일 컬럼 */
.fast-copy { text-align: center; max-width: 780px; margin: 0 auto; }
.fast-copy .fast-points,
.fast-copy .fast-price { text-align: left; }
.fast-copy .fast-cta { justify-content: center; }

/* Paint-reveal number stack: ?? → 60
   .fast-num-answer takes the actual width (relative flow);
   .fast-num-q is absolutely overlaid on top until painted. */
.fast-num-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.fast-num {
  font-size: clamp(5rem, 10vw, 9rem);
  font-family: var(--font-num);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: opacity .6s ease-out, transform .7s cubic-bezier(.3, 1.4, .4, 1);
}
.fast-num-answer {
  position: relative;        /* takes natural 2-char width */
  opacity: 0;
  transform: scale(.25) rotate(-18deg);
  filter: drop-shadow(0 0 0 rgba(32,182,132,0));
  transition:
    opacity .55s ease-out,
    transform .85s cubic-bezier(.22, 1.45, .35, 1),
    filter 1.2s ease-out;
}
.fast-num-q {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: .7;
  animation: qpulse 1.4s ease-in-out infinite;
  transition: opacity .4s ease-out, transform .5s ease-out;
}
.fast-visual.painted .fast-num-q {
  opacity: 0;
  animation: none;
  transform: scale(.65);
}
.fast-visual.painted .fast-num-answer {
  opacity: 1;
  transform: scale(1) rotate(0);
  filter: drop-shadow(0 0 22px rgba(10,163,112,0.65));
}
@keyframes paint-splash {
  0%   { transform: scale(.3); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.fast-caption {
  position: absolute;
  bottom: 10%;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .fast-ring, .fast-ring-2 { animation: none; }
}

/* ===== Why ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.why-card {
  padding: 1.8rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.why-ico {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(32,182,132,0.18), rgba(32,182,132,0.08));
  border: 1px solid rgba(32,182,132,0.35);
  color: var(--primary);
  box-shadow: 0 6px 18px -6px rgba(32,182,132,0.35);
  margin-bottom: 1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.why-card:hover .why-ico {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 10px 22px -8px rgba(10,163,112,0.5);
}
.why-card h3 { margin: 0 0 .4rem; font-size: 1.1rem; font-weight: 800; }
.why-card p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ===== Process ===== */
.step-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
  counter-reset: step;
}
.step-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.2rem;
  row-gap: .25rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  align-items: start;
}
.step-list li > .step-num { grid-row: 1 / span 2; align-self: center; }
.step-list li > h3 { grid-column: 2; grid-row: 1; }
.step-list li > p  { grid-column: 2; grid-row: 2; }
.step-num {
  font-family: var(--font-num);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}
.step-list h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.step-list p { margin: 0; color: var(--muted); font-size: .94rem; max-width: 60ch; }
@media (max-width: 560px) {
  .step-list li { grid-template-columns: 1fr; }
  .step-list li > .step-num { grid-row: auto; grid-column: 1; }
  .step-list li > h3, .step-list li > p { grid-column: 1; grid-row: auto; }
}

/* ===== FAQ ===== */
.faq-list { max-width: 50rem; margin-inline: auto; display: grid; gap: .6rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "＋";
  font-weight: 400;
  color: var(--primary);
  transition: transform .2s;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: .8rem 0 0; color: var(--muted); font-size: .95rem; }

/* ===== Contact ===== */
.contact {
  background: linear-gradient(160deg, #f2f3f5 0%, #f5f6f7 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-direct { display: grid; gap: .6rem; margin-top: 2rem; }
.contact-line {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(11,18,32,0.014);
  font-size: .98rem;
  transition: border-color .2s, background .2s;
}
.contact-line:hover { border-color: var(--primary); background: rgba(32,182,132,0.06); }
.contact-line span:first-child { font-size: 1.2rem; }

.contact-form {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contact-botcta {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: linear-gradient(160deg, rgba(32,182,132,0.12), rgba(32,182,132,0.04)), var(--surface);
  border: 1px solid rgba(32,182,132,0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -20px rgba(32,182,132,0.35);
}
.contact-botcta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}
.contact-botcta-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(32,182,132,0.12);
  align-items: center; justify-content: center;
  border: 1px solid rgba(32,182,132,0.3);
}
.contact-botcta h3 {
  font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.contact-botcta p {
  margin: 0;
  color: #3f556e;
  font-size: .98rem;
  line-height: 1.65;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) { .contact-form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-weight: 600; font-size: .9rem;
  margin-bottom: .4rem; color: #3f556e;
}
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: .7rem .9rem;
  background: #f4f5f7;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #0a1628;
}
.agree {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .86rem; color: var(--muted); margin: .2rem 0 1rem;
}
.agree input { margin-top: .2rem; width: 16px; height: 16px; accent-color: var(--primary); }
.form-note { color: var(--muted); font-size: .82rem; margin-top: .7rem; text-align: center; }
.form-status { font-size: .9rem; margin-top: .5rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* ===== Pricing ===== */
.pricing { background: radial-gradient(ellipse at 50% 0%, rgba(32,182,132,0.06), transparent 55%); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.2rem;
  max-width: 72rem;
  margin-inline: auto;
}
.price-card {
  display: flex; flex-direction: column;
  padding: 2rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .2s, border-color .2s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.price-card.highlight {
  background: linear-gradient(160deg, rgba(32,182,132,0.14), rgba(32,182,132,0.06));
  border-color: rgba(32,182,132,0.45);
  box-shadow: 0 20px 60px -20px rgba(32,182,132,0.35);
}
.price-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem; flex-wrap: wrap;
  margin-bottom: .6rem;
}
.price-name { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.price-tag-small {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  color: var(--accent);
  text-transform: uppercase;
}
.price-amount {
  margin: .4rem 0 1.2rem;
  min-height: 4.8rem; /* 3개 카드 세로 맞춤 */
}
.price-row {
  font-family: var(--font-num);
  font-size: clamp(1.9rem, 1.6vw + 1rem, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: flex; align-items: baseline; gap: .15em;
  white-space: nowrap;
}
.price-row b {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.price-row small {
  font-size: .42em; font-weight: 700; color: var(--muted);
}
.price-sub {
  margin-top: .45rem;
  font-size: .88rem;
  color: #3f556e;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.smash {
  font-style: normal;
  font-weight: 800;
  padding: .1rem .45rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #a94804);
  color: #1a0f00;
  font-size: .82em;
  letter-spacing: -0.01em;
}

/* ===== 자동화 시스템 배너 (openclaw + RPA) ===== */
.auto-banner {
  position: relative;
  margin-top: 2rem;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border-radius: calc(var(--radius-lg) + 4px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(32,182,132,0.08) 0%, rgba(32,182,132,0.08) 100%),
    #f2f3f5;
  border: 1px solid rgba(32,182,132,0.3);
  box-shadow: 0 24px 60px -20px rgba(32,182,132,0.2), 0 8px 24px -8px rgba(32,182,132,0.15);
  isolation: isolate;
}
.auto-banner-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.auto-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  animation: orbFloat 8s ease-in-out infinite;
}
.auto-bg-orb.a { width: 240px; height: 240px; background: var(--primary); top: -60px; left: -80px; }
.auto-bg-orb.b { width: 280px; height: 280px; background: var(--accent); bottom: -80px; right: -60px; animation-delay: -3s; }
.auto-bg-orb.c { width: 180px; height: 180px; background: #4e29bc; top: 40%; left: 45%; animation-delay: -5s; opacity: .25; }
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(14px,-10px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .auto-bg-orb { animation: none; }
}

.auto-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: center;
}
@media (max-width: 820px) {
  .auto-banner-inner { grid-template-columns: 1fr; }
}

.auto-left { display: flex; flex-direction: column; gap: .9rem; }
.auto-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0aa370, #a94804);
  color: #1a0f00;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 4px 14px -2px rgba(32,182,132,0.45);
}
.auto-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.auto-title-sub {
  display: block;
  margin-top: .2rem;
  font-size: .7em;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.auto-tagline {
  margin: 0;
  color: #3f556e;
  font-size: 1rem;
  line-height: 1.7;
}
.auto-list {
  list-style: none;
  padding: 0;
  margin: .4rem 0 0;
  display: grid;
  gap: .55rem;
  font-size: .94rem;
  color: #1a253a;
}
.auto-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  line-height: 1.5;
}
.auto-list b { color: var(--text); font-weight: 700; }
.auto-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(32,182,132,0.15);
  font-size: .95rem;
}

.auto-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auto-price-card {
  padding: 1.4rem 1.3rem;
  background: rgba(11,18,32,0.248);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(32,182,132,0.35);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: .3rem;
  align-items: flex-start;
}
.auto-price-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.auto-price {
  font-family: var(--font-num);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 900;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.auto-price-sub {
  margin-top: .2rem;
  font-size: .88rem;
  color: var(--muted);
}
.auto-hint {
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px dashed rgba(32,182,132,0.25);
  font-size: .82rem;
  color: #3f556e;
  letter-spacing: -0.01em;
}
.auto-cta {
  box-shadow: 0 14px 30px -10px rgba(32,182,132,0.45);
}
.auto-cta:hover { transform: translateY(-2px); }

.price-perks {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.perk-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, rgba(32,182,132,0.08), rgba(32,182,132,0.04));
  border: 1px solid rgba(32,182,132,0.25);
  border-radius: var(--radius-md);
}
.perk-ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(32,182,132,0.15);
  color: var(--primary);
}
.perk-copy { display: flex; flex-direction: column; gap: .3rem; }
.perk-copy b {
  font-size: .98rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}
.perk-copy span {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.5;
}
.free-badge, .fee-badge {
  display: inline-block;
  padding: .1rem .5rem;
  border-radius: 999px;
  font-size: .82em;
  font-weight: 700;
  margin-left: .2rem;
}
.free-badge {
  background: rgba(32,182,87,0.18);
  color: #1b9346;
  border: 1px solid rgba(32,182,87,0.35);
}
.fee-badge {
  background: rgba(32,182,132,0.18);
  color: var(--accent);
  border: 1px solid rgba(32,182,132,0.4);
}
.price-list {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: grid; gap: .5rem;
  flex: 1;
}
.price-list li {
  padding-left: 1.8rem;
  position: relative;
  font-size: .94rem;
  color: #3f556e;
  line-height: 1.5;
}
.price-list li::before {
  content: "";
  position: absolute; left: 0; top: .18rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23001018' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px 14px no-repeat,
    linear-gradient(135deg, var(--primary), #0aa370);
  box-shadow: 0 2px 6px -1px rgba(32,182,132,0.45);
}

.price-options {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.price-options h3 {
  margin: 0 0 1.2rem; font-size: 1.1rem; font-weight: 800;
}
.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: .8rem;
}
.opt-grid > div {
  padding: .9rem 1rem;
  background: rgba(11,18,32,0.014);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: .2rem;
}
.opt-grid b { font-size: .95rem; color: var(--text); }
.opt-grid span { font-size: .82rem; color: var(--muted); }
.price-note { margin-top: 1.2rem; color: var(--muted); font-size: .88rem; }
.price-note a { color: var(--primary); text-decoration: underline; }

/* ===== Lead Capture Modal ===== */
.lead-modal[hidden] { display: none !important; }
.lead-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: grid; place-items: center;
  padding: 1rem;
  animation: modal-in .25s ease-out;
}
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.lead-backdrop {
  position: absolute; inset: 0;
  background: rgba(11,18,32,0.338);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lead-card {
  position: relative;
  width: min(420px, 100%);
  padding: 2rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(11,18,32,0.27);
  animation: modal-pop .3s cubic-bezier(.22, 1.4, .38, 1);
}
@keyframes modal-pop { from { transform: scale(.94); } to { transform: scale(1); } }
.lead-card h3 { margin: 0 0 .5rem; font-size: 1.3rem; font-weight: 800; }
.lead-sub { margin: 0 0 1.3rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.lead-sub b { color: var(--text); }
.lead-close {
  position: absolute; right: .8rem; top: .8rem;
  width: 36px; height: 36px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 1.6rem; cursor: pointer; border-radius: 10px;
}
.lead-close:hover { background: rgba(11,18,32,0.042); color: var(--text); }
.lead-form { display: grid; gap: .7rem; }
.lead-form input, .lead-form select {
  padding: .8rem 1rem;
  background: #f4f5f7; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 16px; font-family: inherit; /* iOS 자동 줌 방지: 16px 이상 */
}
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--primary); }
.lead-agree {
  display: flex; gap: .5rem; align-items: flex-start;
  font-size: .82rem; color: var(--muted);
  margin: .2rem 0 .6rem;
}
.lead-agree input { margin-top: .2rem; accent-color: var(--primary); }
.lead-alt {
  display: flex; gap: .5rem; justify-content: center;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .88rem;
}
.lead-alt a {
  padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .2s, background .2s;
}
.lead-alt a:hover { border-color: var(--primary); background: rgba(32,182,132,0.08); color: var(--primary); }

/* ===== Footer ===== */
.footer {
  background: #fafafb;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 2rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer nav { display: flex; flex-direction: column; gap: .5rem; }
.footer nav a { color: var(--muted); font-size: .92rem; }
.footer nav a:hover { color: var(--text); }
.biz-line { color: var(--muted); font-size: .88rem; line-height: 1.7; margin: 1rem 0 0; }
.foot-cta p { font-size: 1.05rem; font-weight: 700; margin: 0 0 1rem; }
.copy-row {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(11,18,32,0.035);
  color: var(--muted); font-size: .8rem;
}

/* ===== Spray Reveal (About section) ===== */
#about { position: relative; }
#about.veiled > .container {
  filter: blur(8px) saturate(.25) brightness(.55);
  transition: filter 1.2s cubic-bezier(.25, .8, .3, 1);
}
#about.veiled::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(247,248,250,0.735) 85%),
    repeating-linear-gradient(135deg, rgba(11,18,32,0.014) 0 2px, transparent 2px 6px);
  pointer-events: none;
  transition: opacity 1.2s ease-out;
  opacity: 1;
}
#about:not(.veiled)::after { opacity: 0; }
#about:not(.veiled) > .container { filter: none; }

.spray-particle {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,163,112,0.95) 0%, rgba(10,163,112,0.5) 55%, rgba(32,182,132,0) 100%);
  box-shadow: 0 0 10px rgba(10,163,112,0.6);
  pointer-events: none;
  z-index: 90;
  transform: translate(-50%, -50%) scale(.3);
  opacity: 0;
  animation: spray-fly 1.4s cubic-bezier(.2, .7, .2, 1) forwards;
}
.spray-particle.yellow {
  background: radial-gradient(circle, rgba(10,163,112,0.95), rgba(10,163,112,0.5) 55%, rgba(32,182,132,0) 100%);
  box-shadow: 0 0 10px rgba(10,163,112,0.6);
}
@keyframes spray-fly {
  0%   { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  15%  { opacity: 1; }
  100% {
    transform:
      translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
      scale(var(--end-scale, .6));
    opacity: 0;
  }
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.tmnl-card {
  padding: 1.6rem 1.4rem;
  background: rgba(11,18,32,0.014);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: border-color .2s, transform .2s;
}
.tmnl-card:hover { border-color: rgba(32,182,132,0.4); transform: translateY(-2px); }
.tmnl-stars { color: #0aa370; font-size: .95rem; letter-spacing: .1em; }
.tmnl-quote {
  font-size: 1rem; line-height: 1.65; color: var(--text);
  flex: 1 1 auto;
  margin: 0;
}
.tmnl-author { margin-top: auto; }
.tmnl-author b { display: block; font-size: .92rem; color: var(--text); }
.tmnl-author small { font-size: .8rem; color: var(--muted); }
.tmnl-placeholder { opacity: .55; }
.tmnl-placeholder .tmnl-quote { font-style: italic; }

/* 미니 케이스 카드 (사례+결과 식) */
.tmnl-case {
  background: linear-gradient(180deg, rgba(32,182,132,0.06), rgba(32,182,132,0.03));
  border-color: rgba(32,182,132,0.25);
}
.tmnl-case .tmnl-industry {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--accent-hi, #0aa370);
  margin-bottom: .2rem;
  font-weight: 700;
}
.tmnl-case .tmnl-quote { font-style: normal; }

/* Featured testimonial (real review + key stats) */
.tmnl-featured {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  padding: 2rem;
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(32,182,132,0.06), rgba(32,182,132,0.04));
  border: 1px solid rgba(32,182,132,0.25);
  border-radius: 18px;
}
.tmnl-featured-left { display: flex; flex-direction: column; gap: .9rem; }
.tmnl-featured-left .tmnl-quote { font-size: 1.05rem; line-height: 1.7; }
.tmnl-featured-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 1px solid rgba(11,18,32,0.056);
  padding-left: 1.5rem;
}
.tmnl-stat {
  padding: 1rem 1.1rem;
  background: rgba(11,18,32,0.021);
  border: 1px solid rgba(11,18,32,0.042);
  border-radius: 12px;
}
.tmnl-stat-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary, #0aa370);
  letter-spacing: -.01em;
  margin-bottom: .3rem;
}
.tmnl-stat-label {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Cases preview block on main page */
.cases-preview-title {
  margin: 3rem 0 .6rem;
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 700;
}
.cases-preview-grid { margin-top: 1.2rem; }

@media (max-width: 760px) {
  .tmnl-featured {
    grid-template-columns: 1fr;
    padding: 1.4rem;
    gap: 1.2rem;
  }
  .tmnl-featured-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(11,18,32,0.056);
    padding-top: 1.2rem;
  }
  .tmnl-stat-num { font-size: 1.25rem; }
  .cases-preview-title { margin-top: 2.2rem; font-size: 1.1rem; }
}

.chancebot.dragging {
  transition: none !important;
}
.chancebot.dragging .chancebot-toggle { cursor: grabbing; }

.chancebot.teleporting {
  transition: right .55s cubic-bezier(.2, 1, .3, 1),
              bottom .5s cubic-bezier(.2, 1, .3, 1),
              left .55s cubic-bezier(.2, 1, .3, 1),
              top .5s cubic-bezier(.2, 1, .3, 1) !important;
}
.chancebot.spraying .chancebot-toggle {
  animation: spray-stance .8s ease-out;
}
@keyframes spray-stance {
  0%   { transform: translateY(0) rotate(0); }
  25%  { transform: translateY(-6px) rotate(-10deg); }
  55%  { transform: translateY(-3px) rotate(-6deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* ===== 찬스봇 3D Assistant ===== */
.chancebot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  transition: right 4s cubic-bezier(.25, .8, .3, 1),
              bottom 3s cubic-bezier(.25, .8, .3, 1),
              left 4s cubic-bezier(.25, .8, .3, 1),
              top 3s cubic-bezier(.25, .8, .3, 1);
}
.chancebot.walking #chancebotCanvas { animation: bot-bob .4s ease-in-out infinite; }
@keyframes bot-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-3px) rotate(1deg); }
}
.chancebot > * { pointer-events: auto; }

.chancebot-toggle {
  position: relative;
  width: 176px;
  height: 216px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease-out;
}
.chancebot-toggle:hover { transform: scale(1.06) translateY(-2px); }
.chancebot-toggle:active { transform: scale(.98); }
#chancebotCanvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(32,182,132,0.35));
}
.chancebot-ping {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1b9346;
  border: 2px solid #f4f5f7;
  animation: bot-ping 2s ease-in-out infinite;
}
@keyframes bot-ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27,147,70,0.7); }
  50%      { box-shadow: 0 0 0 10px rgba(33,181,87,0); }
}

.chancebot-bubble {
  position: relative;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: .88rem;
  max-width: 240px;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(11,18,32,0.18);
}
.chancebot-bubble.show { opacity: 1; transform: translateY(0) scale(1); }
.chancebot-bubble p { margin: 0; line-height: 1.5; }
.chancebot-bubble p + p { margin-top: .3rem; color: var(--muted); font-size: .82rem; }
.chancebot-bubble::after {
  content: '';
  position: absolute;
  right: 42px;
  bottom: -7px;
  width: 14px; height: 14px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

/* ===== Chat Widget ===== */
.chat-widget[hidden] { display: none !important; }
.chat-widget {
  position: fixed;
  bottom: 200px;
  right: 20px;
  width: min(460px, calc(100vw - 40px));
  height: 660px;
  max-height: calc(100vh - 240px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(11,18,32,0.248);
  z-index: 82;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chat-in .3s cubic-bezier(.22, 1, .36, 1);
}
@keyframes chat-in {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(32,182,132,0.16), rgba(32,182,132,0.06));
  border-bottom: 1px solid var(--border);
}
.chat-head-left { display: flex; align-items: center; gap: .75rem; }
.chat-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #6b737f 0%, #e9eaed 70%);
  border: 2px solid rgba(10,163,112,0.5);
  position: relative;
}
.chat-avatar::before, .chat-avatar::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  top: 15px;
}
.chat-avatar::before { left: 11px; }
.chat-avatar::after  { right: 11px; }
.chat-head strong { display: block; font-size: 1rem; font-weight: 800; }
.chat-head small { color: var(--muted); font-size: .78rem; display: flex; align-items: center; gap: .3rem; }
.chat-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #1b9346; box-shadow: 0 0 6px #1b9346;
}
.chat-close {
  width: 34px; height: 34px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  border-radius: 10px; transition: background .2s, color .2s;
}
.chat-close:hover { background: rgba(11,18,32,0.042); color: var(--text); }

.chat-body {
  flex: 1; overflow-y: auto;
  padding: 1rem 1.2rem;
  display: flex; flex-direction: column; gap: .55rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.msg {
  max-width: 85%;
  padding: .7rem .95rem;
  border-radius: 14px;
  font-size: .93rem;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  hyphens: auto;
}
.msg-bot {
  background: var(--surface-2);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-suggest {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(38,176,130,0.18), rgba(32,182,132,0.14));
  color: #0aa370 !important;
  border: 1px solid rgba(32,182,132,0.35);
  font-weight: 800;
  font-size: .9rem;
  padding: .65rem .9rem;
  border-radius: 14px;
  transition: transform .2s, border-color .2s, background .2s;
  cursor: pointer;
  margin-top: .3rem;
}
.msg-suggest:hover {
  transform: translateY(-1px);
  border-color: rgba(10,163,112,0.6);
  background: linear-gradient(135deg, rgba(38,176,130,0.28), rgba(32,182,132,0.2));
}
.msg-user {
  background: var(--primary);
  color: #011710;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}
.msg-typing {
  align-self: flex-start;
  display: flex; gap: 5px;
  padding: .85rem 1rem;
  background: var(--surface-2);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.msg-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
  animation: type-dot 1.2s infinite ease-in-out;
}
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes type-dot {
  0%, 70%, 100% { opacity: .3; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

.chat-quick {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .7rem 1rem;
  border-top: 1px solid var(--border);
}
.chat-quick button {
  padding: .45rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.chat-quick button:hover {
  border-color: var(--primary);
  background: rgba(32,182,132,0.1);
  color: var(--primary);
}

/* ===== Pencil Drawing Title (왜 찬스컴퍼니인가.) ===== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pencil-title {
  position: relative;
  display: inline-block;
  overflow: visible;
}
.pencil-title .pencil-text {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  white-space: nowrap;
  background: linear-gradient(120deg, #0a0f19 0%, #25324d 60%, #0aa370 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pencil-title .pencil-cursor {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-55%, -95%) rotate(-6deg);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(32,182,132,0.35));
  will-change: left, transform, opacity;
}
.pencil-title.drawing .pencil-text {
  animation: pencilReveal 2.2s cubic-bezier(.55,.08,.45,.95) forwards;
}
.pencil-title.drawing .pencil-cursor {
  animation: pencilMove 2.2s cubic-bezier(.55,.08,.45,.95) forwards;
}
@keyframes pencilReveal {
  0%   { clip-path: inset(0 100% 0 0); opacity: 1; }
  3%   { clip-path: inset(0 98%  0 0); opacity: 1; }
  100% { clip-path: inset(0 0%   0 0); opacity: 1; }
}
@keyframes pencilMove {
  0%   { left: 0%;    opacity: 0; transform: translate(-55%, -95%) rotate(-6deg); }
  6%   { opacity: 1; }
  20%  { transform: translate(-55%, -98%) rotate(-3deg); }
  45%  { transform: translate(-55%, -92%) rotate(-8deg); }
  70%  { transform: translate(-55%, -95%) rotate(-5deg); }
  92%  { left: 100%; opacity: 1; transform: translate(-55%, -95%) rotate(-6deg); }
  100% { left: 100%; opacity: 0; transform: translate(-55%, -95%) rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pencil-title .pencil-text { clip-path: none; opacity: 1; animation: none; }
  .pencil-title .pencil-cursor { display: none; }
}

.chat-link {
  color: var(--primary);
  text-decoration: underline;
  word-break: break-all;
}
.chat-link:hover { color: var(--accent); }

.chat-handoff-btn {
  display: block;
  width: calc(100% - 2rem);
  margin: 0 1rem .2rem;
  padding: .55rem .9rem;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #011710;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, filter .15s;
}
.chat-handoff-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.chat-handoff-btn:active { transform: translateY(0); }

.chat-form {
  display: flex; gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
}
.chat-form input {
  flex: 1;
  padding: .7rem .95rem;
  background: #f4f5f7;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px; /* iOS 자동 줌 방지 */
  font-family: inherit;
}
.chat-form input:focus {
  outline: none; border-color: var(--primary);
  background: #0a1628;
}
.chat-form button[type="submit"] {
  width: 46px; height: 46px;
  border-radius: 50%; border: 0;
  background: var(--primary);
  color: #011710;
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.chat-form button[type="submit"]:hover { background: var(--accent); transform: scale(1.05); }

@media (max-width: 560px) {
  .chancebot { right: 14px; bottom: 14px; }
  .chancebot-toggle { width: 132px; height: 160px; }
  .chancebot-bubble { max-width: 200px; font-size: .82rem; }
  .chat-widget {
    right: 0; left: 0; bottom: 0; top: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    z-index: 9999;            /* 페이지 헤더 위로 */
    padding-top: env(safe-area-inset-top);
  }
  .chat-head {
    padding: .9rem 1rem;
    position: sticky; top: 0;
    background: linear-gradient(135deg, rgba(32,182,132,0.18), #f7f8fa);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(11,18,32,0.056);
    z-index: 2;
  }
  .chat-close {
    width: 48px; height: 48px;
    font-size: 2rem;
    color: #0a0f19;
    background: rgba(11,18,32,0.07) !important;
    border-radius: 50% !important;
    border: 1px solid rgba(11,18,32,0.126);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .chat-close:active { background: rgba(11,18,32,0.14) !important; }
  .chat-body { padding: .85rem 1rem; }
  .chat-quick {
    padding: .55rem .8rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .chat-quick::-webkit-scrollbar { display: none; }
  .chat-quick button { flex-shrink: 0; font-size: .78rem; padding: .4rem .75rem; }
  .chat-handoff-btn {
    width: calc(100% - 1.6rem);
    margin: 0 .8rem .15rem;
    padding: .5rem .8rem;
    font-size: .8rem;
  }
  .chat-form { padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); }
  .chat-form button[type="submit"] { width: 42px; height: 42px; }
}

/* ===== To Top ===== */
#toTop {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #011710;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .2s, opacity .2s;
}
#toTop[hidden] { display: none; }
#toTop:hover { transform: translateY(-2px); background: var(--accent); }

/* ===== Motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .fast-ring, .fast-ring-2, .q-marks, .fast-num-q { animation: none !important; }
  .chancebot { transition: none !important; }
  .fast-num-answer, .fast-num-q { transform: none !important; opacity: 1 !important; }
  .spray-particle { display: none !important; }
}

/* Low-end mobile: lighter bot + skip heavy effects */
@media (max-width: 480px) {
  .chancebot-toggle { width: 112px; height: 136px; }
  .chancebot-bubble { display: none; }
  .fast-ring, .fast-ring-2 { opacity: .4; }
  .glow { filter: blur(40px); }
}

/* ===== Service Detail Pages ===== */
.breadcrumb {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.breadcrumb a {
  color: var(--muted);
  transition: color .2s;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span {
  color: var(--border);
}
.breadcrumb span:last-child {
  color: var(--text);
  font-weight: 600;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  counter-reset: process;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.process-list li {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color .2s, transform .2s;
}
.process-list li:hover {
  border-color: rgba(32,182,132,0.35);
  transform: translateX(4px);
}
.process-num {
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  width: 70px;
}
.process-list li h3 {
  margin: 0 0 .5rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.process-list li p {
  margin: 0;
  color: #3f556e;
  font-size: .95rem;
  line-height: 1.7;
}
@media (max-width: 560px) {
  .process-list li { flex-direction: column; gap: .6rem; padding: 1.2rem; }
  .process-num { font-size: 1.6rem; width: auto; }
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: border-color .2s, transform .2s;
}
.case-card:hover {
  border-color: rgba(32,182,132,0.35);
  transform: translateY(-2px);
}
.case-card h3 {
  margin: 0 0 .8rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.case-card p {
  color: #3f556e;
  margin: 0 0 1rem;
  line-height: 1.6;
}
.case-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.case-card ul li {
  font-size: .92rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}
.case-card ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.case-card ul li b {
  color: var(--text);
  font-weight: 700;
  margin-right: .3rem;
}

.auto-item {
  padding: .9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: #3f556e;
  transition: border-color .2s, background .2s;
}
.auto-item:hover {
  border-color: rgba(32,182,132,0.35);
  background: rgba(32,182,132,0.05);
}

.svc-more {
  display: inline-flex;
  align-items: center;
  margin-top: 1.1rem;
  color: var(--primary);
  font-weight: 800;
  font-size: .92rem;
  transition: color .2s, transform .2s;
}
.svc-more:hover {
  color: #0aa370;
  transform: translateX(4px);
}

/* ===== Nav Dropdown ===== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  cursor: pointer;
}
.nav-caret {
  font-size: .7rem;
  opacity: .6;
  transition: transform .2s, opacity .2s;
  display: inline-block;
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + .6rem);
  left: -1rem;
  min-width: 340px;
  background: rgba(11,18,32,0.441);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(11,18,32,0.225);
  padding: .7rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 90;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .95rem 1.15rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background .2s, color .2s;
}
.nav-dropdown-menu a:hover {
  background: rgba(32,182,132,0.1);
  color: var(--primary);
}
.nav-dropdown-menu a b {
  font-size: 1.08rem;
  font-weight: 800;
  color: inherit;
}
.nav-dropdown-menu a small {
  font-size: .86rem;
  color: var(--muted);
  letter-spacing: .01em;
}
.nav-dropdown-menu a:hover small {
  color: #3f556e;
}
.nav-dropdown-all {
  border-top: 1px solid var(--border);
  margin-top: .3rem;
  padding-top: .8rem !important;
}
.nav-dropdown-all b {
  color: var(--primary) !important;
  font-size: .98rem !important;
}

/* mobile menu sub items */
.mobile-menu-label {
  font-weight: 700 !important;
  color: var(--muted) !important;
  font-size: .85rem !important;
  letter-spacing: .05em;
  pointer-events: none;
}
.mobile-sub {
  padding-left: 1.2rem !important;
  font-size: .95rem !important;
}

/* Hide dropdown on mobile (we use mobile menu instead) */
@media (max-width: 960px) {
  .nav-dropdown-menu { display: none; }
  .nav-caret { display: none; }
}

/* ========================================
   2026-06-09h: P0/P1 감사 결과 반영
   ======================================== */

/* 한글 제목 자연 줄바꿈 + 균형 */
.hero-title { text-wrap: balance; word-break: keep-all; }
.section-title { text-wrap: balance; word-break: keep-all; }

/* 모바일에서 hero 영상 위 텍스트 가독성 위해 최대 폰트 살짝 축소 */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.7rem, 1rem + 4.5vw, 2.5rem); }
}

/* hero-chips 한 칩이 한 줄에 떨어지도록 */
.hero-chips li { white-space: nowrap; }
@media (max-width: 480px) {
  .hero-chips li { font-size: .8rem; padding: .35rem .7rem; }
}

/* 서비스 5카드 그리드 1024-1280 구간에서 3열 강제 (4+1 방지) */
@media (min-width: 1024px) and (max-width: 1380px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* num-swap 폭 안정화 */
.num-swap { min-width: 2em; display: inline-block; text-align: center; }

/* 모바일 hover 효과 제거 (터치 디바이스에서 의도치 않은 잔존) */
@media (hover: none) {
  .svc-card:hover, .case-card:hover, .work-card:hover,
  .erp-mod:hover, .erp-feature-card:hover, .erp-bot-card:hover,
  .demo-banner:hover {
    transform: none !important;
  }
}

/* hero-sub-link 모바일 터치 영역 강화 */
@media (max-width: 640px) {
  .hero-sub-link {
    display: inline-block;
    padding: .55rem 1rem;
    margin-top: .35rem;
    color: #3f556e;
    background: rgba(11,18,32,0.028);
    border: 1px solid rgba(11,18,32,0.056);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
  }
}

/* PC 전용 br - 모바일에선 띄어쓰기로 대체 */
.br-pc-only { display: none; }
@media (min-width: 720px) { .br-pc-only { display: inline; } }

/* 햄버거 버튼 940px까지 살짝 일찍 등장 (태블릿 빡빡함 해소) */
@media (max-width: 940px) and (min-width: 821px) {
  .mobile-menu {
    display: block;
    position: absolute; left: 0; right: 0; top: 64px;
    background: rgba(11,18,32,0.436);
    border-bottom: 1px solid var(--border);
    padding: .5rem 0;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { display: block; padding: .9rem 7%; color: var(--text); border-bottom: 1px solid rgba(11,18,32,0.028); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-toggle { display: inline-block; }
  .nav-links { display: none; }
}

/* JS로 토글된 드롭다운 상태 */
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}


/* ===== 모바일 가로 오버플로우 가드 (2026-07-28) ===== */
@media (max-width: 700px) {
  html, body { overflow-x: hidden; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > *, .hero-copy > * { min-width: 0; max-width: 100%; }
  .hero-title { font-size: clamp(1.6rem, 7.6vw, 2.3rem); }
  .hero-desc { max-width: 100%; }
  .eyebrow { white-space: normal; letter-spacing: .16em; line-height: 1.9; }
  .container { overflow-wrap: break-word; }
}


/* ===== PROCESS 5단계: 데스크탑 가로 배치 (2026-07-28) ===== */
@media (min-width: 960px) {
  .step-list { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .step-list li {
    display: block;
    padding: 1.4rem 1.2rem;
  }
  .step-list li > .step-num { display: block; margin-bottom: .7rem; }
  .step-list h3 { font-size: 1.02rem; }
  .step-list p { font-size: .86rem; }
}

/* === 메인 개편: 히어로 칩 · 신뢰 스트립 · WHAT WE DO === */
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 26px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 999px;
  background: rgba(11,18,32,0.042); border: 1px solid rgba(11,18,32,0.098);
  color: #1d283f; font-size: 13.5px; font-weight: 700; text-decoration: none;
  transition: transform .25s, border-color .25s, background .25s, color .25s;
}
.hero-chip:hover { transform: translateY(-2px); border-color: var(--accent); color: #0a0f19; background: rgba(32,182,132,0.09); }

.what-section { padding-top: 3.5rem; }
.trust-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 14px; margin-bottom: 3.6rem; padding: 22px 10px;
  border-top: 1px solid rgba(11,18,32,0.056); border-bottom: 1px solid rgba(11,18,32,0.056);
}
.trust-item { text-align: center; }
.trust-item b { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 900; color: #0a0f19; letter-spacing: -.01em; }
.trust-item b span { color: var(--accent); }
.trust-item b i { font-style: normal; font-size: .55em; font-weight: 800; color: #3f556e; margin-left: 2px; }
.trust-item b.trust-text { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; color: var(--accent); }
.trust-item small { display: block; margin-top: 4px; color: #505762; font-size: 13px; font-weight: 600; }

.what-grid { margin-top: 2.2rem; }
.what-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: rgba(11,18,32,0.021); border: 1px solid rgba(11,18,32,0.063);
  border-radius: 20px; padding: 26px 24px 22px; text-decoration: none; color: inherit;
  overflow: hidden;
}
.what-card:hover { border-color: rgba(32,182,132,0.45); box-shadow: 0 18px 44px rgba(11,18,32,0.158); }
.what-card::after {
  content: "→"; position: absolute; top: 22px; right: 22px;
  color: #6c747f; font-weight: 800; transition: transform .25s, color .25s;
}
.what-card:hover::after { transform: translateX(4px); color: var(--accent); }
.what-ico { font-size: 30px; line-height: 1; }
.what-card h3 { margin: 6px 0 0; font-size: 18.5px; font-weight: 800; color: #111928; }
.what-card p { margin: 0; color: #505762; font-size: 13.8px; line-height: 1.65; font-weight: 500; }
.what-meta {
  margin-top: auto; padding-top: 12px; align-self: flex-start;
  display: inline-block; padding: 5px 11px; border-radius: 999px; margin-top: 10px;
  background: rgba(32,182,132,0.1); color: var(--accent);
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
@media (max-width: 700px) {
  .hero-chips { gap: 7px; }
  .hero-chip { font-size: 12.5px; padding: 7px 12px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

/* 네비 테트리스 링크 */
.nav-links .nav-game { color: var(--accent); font-weight: 800; }
.nav-links .nav-game:hover { color: #0aa370; }

/* ===== Chance custom icon system ===== */
.chance-icon {
  display:inline-block;width:1.14em;height:1.14em;flex:0 0 auto;
  vertical-align:-.19em;margin-right:.16em;overflow:visible;
  filter:drop-shadow(0 0 5px rgba(32,182,132,0.2));
}
.shop-ico .chance-icon,.what-ico .chance-icon{width:34px;height:34px;margin:0;vertical-align:middle;filter:drop-shadow(0 5px 10px rgba(32,182,132,0.22))}
.eyebrow .chance-icon{width:1.25em;height:1.25em;margin-right:.35em}
.btn .chance-icon{width:1.12em;height:1.12em;margin-right:.24em}
.nav-links .chance-icon,.mobile-menu .chance-icon{width:1.06em;height:1.06em}
.detail-tile .chance-icon,.shop-card h3 .chance-icon{width:1.18em;height:1.18em}
@media (prefers-reduced-motion:no-preference){.shop-card:hover>.shop-ico .chance-icon,.what-card:hover .chance-icon{animation:chanceIconLift .55s ease both}@keyframes chanceIconLift{50%{transform:translateY(-3px) scale(1.06)}100%{transform:none}}}

/* ===== 메인 히어로 김비서 카드 ===== */
.kb-hero{max-width:440px;margin:0 auto;background:linear-gradient(180deg,rgba(247,248,250,0.966),rgba(247,248,250,0.987));border:1px solid rgba(32,182,132,0.25);border-radius:24px;padding:22px;box-shadow:0 30px 80px rgba(11,18,32,0.203);backdrop-filter:blur(12px)}
.kb-hero-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.kb-hero-avatar{width:56px;height:56px;border-radius:50%;object-fit:cover;border:2px solid rgba(10,163,112,0.5);box-shadow:0 8px 20px rgba(11,18,32,0.158)}
.kb-hero-id b{display:block;font-size:16.5px;font-weight:900;color:#111928}
.kb-hero-id small{display:flex;align-items:center;gap:6px;color:#505762;font-size:12px;font-weight:600;margin-top:2px}
.kb-dot{width:8px;height:8px;border-radius:50%;background:#1f8f66;box-shadow:0 0 0 4px rgba(38,176,126,0.16);animation:erpPulse 2s infinite}
@keyframes erpPulse{0%,100%{box-shadow:0 0 0 4px rgba(38,176,126,0.16)}50%{box-shadow:0 0 0 7px rgba(38,176,126,0.06)}}
.kb-hero-bubble{background:rgba(32,182,132,0.09);border:1px solid rgba(32,182,132,0.2);border-radius:4px 16px 16px 16px;padding:14px 16px;color:#1a253a;font-size:14.5px;line-height:1.65;font-weight:500}
.kb-hero-bubble b{color:#0aa370}
.kb-hero-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.kb-hero-chips button{background:rgba(11,18,32,0.035);border:1px solid rgba(11,18,32,0.084);border-radius:11px;color:#3f556e;font-size:13px;font-weight:700;padding:11px 10px;cursor:pointer;transition:border-color .2s,background .2s;font-family:inherit}
.kb-hero-chips button:hover{border-color:rgba(10,163,112,0.5);background:rgba(32,182,132,0.1);color:#0a0f19}
.kb-hero-form{display:flex;gap:8px;margin-top:12px}
.kb-hero-form input{flex:1;background:rgba(11,18,32,0.042);border:1.5px solid rgba(11,18,32,0.105);border-radius:12px;padding:12px 14px;color:#111928;font-size:14px;font-family:inherit}
.kb-hero-form input:focus{outline:none;border-color:#0aa370}
.kb-hero-form button{width:46px;border:0;border-radius:12px;background:linear-gradient(135deg,#0aa370,#2563eb);color:#0a0f19;font-size:18px;font-weight:900;cursor:pointer}
.kb-hero-note{margin:10px 2px 0;color:#6c747f;font-size:11.5px;font-weight:600}
/* 메인 히어로 표시 중엔 코너 김비서 숨김 */
body.kb-hero-mode .chancebot{opacity:0;pointer-events:none;transform:translateY(24px) scale(.9);transition:opacity .4s,transform .4s}
.chancebot{transition:opacity .4s,transform .4s}

/* ===== 김비서 채팅 — ERP 실사 스타일 라이트 스킨 ===== */
.chat-widget{background:#1b263c url('/images/secretary/hello.jpg') 82% 12%/cover no-repeat;border:1px solid rgba(11,18,32,0.054)}
.chat-widget.kb-idle{background-image:url('/images/secretary/idle.jpg')}
.chat-widget.kb-thinking{background-image:url('/images/secretary/thinking.jpg')}
.chat-widget::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(180deg,rgba(11,18,32,0.196),rgba(11,18,32,0) 22%,rgba(11,18,32,0) 62%,rgba(11,18,32,0.385) 100%)}
.chat-widget>*{position:relative;z-index:1}
.chat-head{background:rgba(11,18,32,0.462);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid rgba(11,18,32,0.036)}
.chat-head strong{color:#edeff1}
.chat-head small{color:#6c757e}
.chat-close{color:#42506b}
.chat-avatar{background:url('/images/secretary/hello.jpg') 62% 18%/220% no-repeat;border:2px solid #0a0f19;box-shadow:0 4px 12px rgba(11,18,32,0.081)}
.chat-avatar::before,.chat-avatar::after{display:none}
.chat-body{scrollbar-color:rgba(11,18,32,0.09) transparent}
.msg-bot{background:rgba(11,18,32,0.658);color:#e9ecee;box-shadow:0 6px 18px rgba(11,18,32,0.063);border:1px solid rgba(11,18,32,0.023)}
.msg-user{background:#3182f6;color:#0a0f19;box-shadow:0 6px 16px rgba(49,130,246,0.35)}
.msg-suggest{background:rgba(11,18,32,0.665);color:#1b64da !important;border:1px solid rgba(49,130,246,0.35);box-shadow:0 6px 16px rgba(11,18,32,0.054)}
.msg-suggest:hover{background:#0a0f19;border-color:#3182f6}
.chat-quick{background:rgba(11,18,32,0.476);backdrop-filter:blur(8px);border-top:1px solid rgba(11,18,32,0.027)}
.chat-quick button{background:#0a0f19;border:1px solid rgba(11,18,32,0.063);color:#dee2e7;box-shadow:0 2px 8px rgba(11,18,32,0.036)}
.chat-quick button:hover{border-color:#3182f6;color:#1b64da;background:#0f1522}
.chat-handoff-btn{background:linear-gradient(135deg,#3182f6,#1b64da);color:#0a0f19;border:0}
.chat-form{background:rgba(11,18,32,0.56);backdrop-filter:blur(8px);border-top:1px solid rgba(11,18,32,0.027)}
.chat-form input{background:#0a0f19;border:1.5px solid rgba(11,18,32,0.063);color:#edeff1;border-radius:999px}
.chat-form input::placeholder{color:#5e656d}
.chat-form input:focus{border-color:#3182f6}
.chat-form button[type="submit"]{background:#3182f6;color:#0a0f19;border-radius:50%}
.chat-form button[type="submit"]:hover{background:#1b64da}
.msg-bot .typing-dot,.typing i{background:#3182f6}

/* ===== 김비서 히어로 도킹 ===== */
.kb-dock{position:relative;max-width:480px;margin:0 auto;min-height:620px}
.kb-dock-skeleton{position:relative;height:620px;border-radius:20px;overflow:hidden;border:1px solid rgba(11,18,32,0.068);box-shadow:0 30px 80px rgba(11,18,32,0.203)}
.kb-dock-skeleton img{width:100%;height:100%;object-fit:cover;object-position:68% 12%}
.kb-dock-skeleton span{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);background:rgba(11,18,32,0.63);color:#dee2e7;font-size:12.5px;font-weight:800;padding:8px 14px;border-radius:999px}
.kb-dock-skeleton[hidden]{display:none}
.chat-widget.kb-docked{position:static;width:100%;max-width:480px;height:620px;max-height:none;margin:0 auto;bottom:auto;right:auto;box-shadow:0 30px 80px rgba(11,18,32,0.225)}
.chat-widget.kb-docked .chat-close{display:none}
body.kb-docked-page .chancebot{opacity:0;pointer-events:none;transform:translateY(24px) scale(.9)}
@media (max-width:760px){.kb-dock{min-height:540px}.kb-dock-skeleton{height:540px}.chat-widget.kb-docked{height:540px}}

/* 김비서 얼굴 가림 방지 — 말풍선은 왼쪽, 우측은 얼굴 공간 */
.chat-widget .chat-body{padding-right:36%}
.chat-widget .chat-body .msg{align-self:flex-start;max-width:100%}
.chat-widget .chat-body .msg-user{background:#101826;color:#e9ecee;border:1px solid rgba(49,130,246,0.25)}
.chat-widget .chat-body .msg-user::before{content:"나 · ";font-weight:800;color:#3182f6}
@media (max-width:760px){.chat-widget .chat-body{padding-right:30%}}

/* 채팅 헤더 제거 — 닫기 버튼만 우상단 플로팅 */
.chat-widget .chat-head{position:absolute;top:8px;right:8px;left:auto;background:none!important;border:0!important;padding:0;z-index:6;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.chat-widget .chat-head-left{display:none}
.chat-widget .chat-close{width:34px;height:34px;border-radius:50%;background:rgba(11,18,32,0.203);color:#0a0f19;font-size:19px;line-height:1;display:flex;align-items:center;justify-content:center}
.chat-widget .chat-body{padding-top:1.1rem}

/* 김비서 입력창 — 페이지별 전역 input 스타일와 무관하게 항상 동일한 다크 스킨 유지 */
#chatWidget #chatForm #chatInput,
#chatWidget #chatForm #chatInput:hover,
#chatWidget #chatForm #chatInput:focus,
#chatWidget #chatForm #chatInput:active{
  appearance:none;
  -webkit-appearance:none;
  background:#071323;
  background-image:none;
  border:1.5px solid rgba(10,163,112,0.72);
  color:#0e1421;
  caret-color:#0aa370;
  box-shadow:inset 0 1px 3px rgba(11,18,32,0.099);
  outline:none;
}
#chatWidget #chatForm #chatInput:focus{
  border-color:#0aa370;
  box-shadow:0 0 0 3px rgba(32,182,132,0.13),inset 0 1px 3px rgba(11,18,32,0.099);
}
#chatWidget #chatForm #chatInput::placeholder{color:#646b75;opacity:1}
#chatWidget #chatForm #chatInput:-webkit-autofill,
#chatWidget #chatForm #chatInput:-webkit-autofill:hover,
#chatWidget #chatForm #chatInput:-webkit-autofill:focus{
  -webkit-text-fill-color:#0e1421;
  box-shadow:0 0 0 1000px #071323 inset;
  caret-color:#0aa370;
}

/* ===== 김비서 모바일 전용 상담 화면 — 큰 폰·가로모드·태블릿까지 전체화면 (대표 요청 2026-09-16: 떠있는 패널이 페이지를 반쯤 가려 지저분) ===== */
@media (max-width:900px){
  body.kb-mobile-chat-open{overflow:hidden;overscroll-behavior:none}
  body.kb-mobile-chat-open .chancebot{opacity:0!important;pointer-events:none!important}

  #chatWidget.chat-widget:not(.kb-docked){
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100dvh!important;
    max-height:none!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background-color:#101725!important;
    background-position:50% 8%,50% 8%!important;
    background-size:100% 47dvh,cover!important;
    background-repeat:no-repeat!important;
  }
  #chatWidget.chat-widget:not(.kb-docked)::after{
    border-radius:0;
    background:linear-gradient(180deg,rgba(11,18,32,0) 28%,rgba(11,18,32,0.14) 36%,#101725 49%,#101725 100%);
  }

  #chatWidget.chat-widget:not(.kb-docked) .chat-head{
    position:absolute!important;
    top:max(14px,env(safe-area-inset-top))!important;
    right:14px!important;
    left:14px!important;
    width:auto!important;
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    padding:0!important;
    background:none!important;
    border:0!important;
    z-index:20;
  }
  #chatWidget.chat-widget:not(.kb-docked) .chat-head-left{
    display:flex!important;
    align-items:center;
    gap:8px;
    min-height:52px;
    padding:6px 14px 6px 7px;
    border:1px solid rgba(11,18,32,0.574);
    border-radius:999px;
    background:rgba(11,18,32,0.63);
    box-shadow:0 8px 24px rgba(11,18,32,0.072);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }
  #chatWidget.chat-widget:not(.kb-docked) .chat-head-left strong{
    display:block;
    color:#ecedf0;
    font-size:18px;
    line-height:1;
  }
  #chatWidget.chat-widget:not(.kb-docked) .chat-head-left small{display:none}
  #chatWidget.chat-widget:not(.kb-docked) .chat-avatar{width:38px;height:38px;flex:0 0 38px}

  /* 밝은 사진 위에서도 사라지지 않는 짙은 닫기 버튼 */
  #chatWidget.chat-widget:not(.kb-docked) .chat-close{
    position:fixed!important;
    top:max(14px,env(safe-area-inset-top))!important;
    right:14px!important;
    width:52px!important;
    height:52px!important;
    flex:0 0 52px;
    border:1px solid rgba(11,18,32,0.294)!important;
    border-radius:50%!important;
    background:rgba(11,18,32,0.306)!important;
    color:#0a0f19!important;
    font-size:31px!important;
    font-weight:300!important;
    line-height:1!important;
    box-shadow:0 8px 24px rgba(11,18,32,0.099)!important;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }
  #chatWidget.chat-widget:not(.kb-docked) .chat-close:active{background:rgba(3,7,18,0.88)!important;transform:scale(.96)}

  #chatWidget.chat-widget:not(.kb-docked) .chat-body{
    flex:1 1 auto!important;
    min-height:0;
    margin-top:37dvh!important;
    padding:74px 18px calc(112px + env(safe-area-inset-bottom))!important;
    padding-right:18px!important;
    background:linear-gradient(180deg,rgba(11,18,32,0),#101725 70px)!important;
    scroll-padding-bottom:120px;
    box-sizing:border-box!important;
    width:100%!important;
  }
  #chatWidget.chat-widget:not(.kb-docked) .chat-body .msg{
    max-width:calc(100% - 42px)!important;
    padding:13px 15px;
    border-radius:18px;
    font-size:15px;
    line-height:1.58;
    box-sizing:border-box;
    overflow-wrap:anywhere;
  }
  #chatWidget.chat-widget:not(.kb-docked) .chat-body .msg-bot{
    align-self:flex-start;
    margin-left:34px;
    background:rgba(11,18,32,0.672);
  }
  #chatWidget.chat-widget:not(.kb-docked) .chat-body .msg-user{
    align-self:flex-end;
    margin-left:42px;
    background:#3182f6;
    color:#0a0f19;
    border:0;
  }
  #chatWidget.chat-widget:not(.kb-docked) .chat-body .msg-user::before{color:#172033}

  #chatWidget.chat-widget:not(.kb-docked) .chat-quick{
    position:absolute;
    left:0;
    right:0;
    bottom:calc(78px + env(safe-area-inset-bottom));
    z-index:12;
    padding:8px 14px;
    background:linear-gradient(180deg,rgba(11,18,32,0),rgba(11,18,32,0.672) 34%);
    border:0;
  }
  #chatWidget.chat-widget:not(.kb-docked) .chat-form{
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:14;
    min-height:78px;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom))!important;
    gap:9px;
    background:rgba(11,18,32,0.658)!important;
    border-top:1px solid rgba(11,18,32,0.036)!important;
    box-shadow:0 -12px 30px rgba(11,18,32,0.036);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    width:100%!important;
    box-sizing:border-box!important;
  }
  #chatWidget.chat-widget:not(.kb-docked) #chatForm #chatInput{
    min-width:0;
    height:54px;
    padding:0 20px;
    border-radius:999px!important;
    font-size:16px;
  }
  #chatWidget.chat-widget:not(.kb-docked) .chat-form button[type="submit"]{
    width:54px;
    height:54px;
    flex:0 0 54px;
    font-size:24px;
    box-shadow:0 8px 18px rgba(49,130,246,0.28);
  }
}
