/**
 * X-NEO Lead Capture Popup Styles
 *
 * 다크 모드·접근성·모바일 우선 디자인
 */

.xneo-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .26s ease;
}

.xneo-popup--open {
  opacity: 1;
  pointer-events: auto;
}

.xneo-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 41, .68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.xneo-popup__card {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: #fff;
  color: #0C0E14;
  border-radius: 18px;
  padding: 36px 28px 28px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .35),
    0 0 0 1px rgba(125, 184, 236, .18);
  transform: translateY(8px) scale(.97);
  opacity: 0;
  transition: transform .26s cubic-bezier(.2, .8, .25, 1), opacity .2s ease;
}

.xneo-popup--open .xneo-popup__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.xneo-popup__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #64748B;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.xneo-popup__close:hover {
  background: #f1f5f9;
  color: #0C0E14;
}

.xneo-popup__close:focus-visible {
  outline: 2px solid #0068B3;
  outline-offset: 2px;
}

.xneo-popup__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0068B3;
  background: #eaf4fc;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.xneo-popup__title {
  font-family: var(--font-display, 'Pretendard', sans-serif);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #0C0E14;
}

.xneo-popup__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 22px;
}

.xneo-popup__ctas {
  display: grid;
  gap: 10px;
}

.xneo-popup__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #0C0E14;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.xneo-popup__cta:hover {
  border-color: #0068B3;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 104, 179, .14);
}

.xneo-popup__cta:focus-visible {
  outline: 2px solid #0068B3;
  outline-offset: 2px;
}

.xneo-popup__cta--primary {
  background: linear-gradient(135deg, #0068B3 0%, #1a3554 100%);
  color: #fff;
  border-color: transparent;
}

.xneo-popup__cta--primary:hover {
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(0, 104, 179, .35);
}

.xneo-popup__cta--primary .xneo-popup__cta-body small {
  color: rgba(255, 255, 255, .85);
}

.xneo-popup__cta-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(0, 104, 179, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.xneo-popup__cta--primary .xneo-popup__cta-icon {
  background: rgba(255, 255, 255, .15);
}

.xneo-popup__cta-body {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.xneo-popup__cta-body strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.xneo-popup__cta-body small {
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.3;
}

.xneo-popup__trust {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
  color: #94A3B8;
  text-align: center;
  letter-spacing: .04em;
}

/* 다크 모드 */
@media (prefers-color-scheme: dark) {
  .xneo-popup__card { background: #1a2638; color: #f8fafc; }
  .xneo-popup__title { color: #f8fafc; }
  .xneo-popup__desc { color: #cbd5e1; }
  .xneo-popup__cta { background: #2c3a52; border-color: #3b4a66; color: #f8fafc; }
  .xneo-popup__cta-icon { background: rgba(125, 184, 236, .14); }
  .xneo-popup__cta-body small { color: #94a3b8; }
  .xneo-popup__close { color: #94a3b8; }
  .xneo-popup__close:hover { background: #2c3a52; color: #f8fafc; }
  .xneo-popup__trust { color: #64748B; border-color: #3b4a66; }
  .xneo-popup__eyebrow { background: rgba(125, 184, 236, .14); color: #7db8ec; }
}

/* 모바일 */
@media (max-width: 480px) {
  .xneo-popup__card { padding: 28px 20px 22px; border-radius: 14px; }
  .xneo-popup__title { font-size: 19px; }
  .xneo-popup__cta { padding: 12px 14px; }
  .xneo-popup__cta-icon { width: 36px; height: 36px; font-size: 17px; }
  .xneo-popup__cta-body strong { font-size: 14px; }
  .xneo-popup__cta-body small { font-size: 11px; }
}

/* 접근성 — reduced motion */
@media (prefers-reduced-motion: reduce) {
  .xneo-popup, .xneo-popup__card { transition: none; }
}
