/* X-ON 공통 레이아웃 (header · footer · drawer) */
:root {
  --site-bg: #0a0b0f;
  --site-bg-2: #0e1014;
  --site-card: #14161c;
  --site-line: #23262d;
  --site-line-soft: #1a1d23;
  --site-txt: #ffffff;
  --site-txt-2: #c5cbd4;
  --site-txt-3: #888f9b;
  --site-blue: #4d8dff;
  --site-blue-soft: #7db0ff;
  --site-blue-deep: #2563eb;
  --site-radius-lg: 26px;
  --site-maxw: 1200px;
  --site-ease: cubic-bezier(.22, .61, .36, 1);
  --site-ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 이미지·미디어 드래그 고스트 방지 (사이트 전역) */
img,
picture,
video {
  -webkit-user-drag: none;
  user-drag: none;
}

.only-pc {
  display: block;
}

.only-mobile {
  display: none;
}

@media (max-width: 768px) {
  .only-pc {
    display: none;
  }
  .only-mobile {
    display: block;
  }
}

.site-wrap {
  width: 100%;
  max-width: var(--site-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.site-bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 80% -5%, rgba(77, 141, 255, .12), transparent 60%),
    radial-gradient(800px 460px at 10% 8%, rgba(167, 139, 250, .10), transparent 60%);
}

.site-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--site-blue), var(--site-blue-soft));
  box-shadow: 0 0 14px rgba(77, 141, 255, .7);
  transition: width .1s linear;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 110;
  background: rgba(10, 11, 15, .72);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--site-line-soft);
  transition: transform .35s var(--site-ease), border-color .3s ease;
}

/* 페이지별 legacy .nav 규칙보다 우선 — 햄버거·드로어 클릭 보장 */
header#nav.site-nav {
  z-index: 110;
}

.site-nav.hide {
  transform: translateY(-100%);
}

.site-nav.scrolled {
  border-bottom-color: var(--site-line);
}

.site-nav-in {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  align-items: center;
}

.site-brand img {
  height: 26px;
  width: auto;
  display: block;
}

.site-menu-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--site-line);
  background: rgba(255, 255, 255, .02);
  transition: border-color .2s, background .2s;
}

.site-menu-btn:hover {
  border-color: #34394a;
}

.site-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
}

.site-menu-btn span::before,
.site-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
}

.site-menu-btn span::before {
  top: -6px;
}

.site-menu-btn span::after {
  top: 6px;
}

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(0, 0, 0, .97);
  display: flex;
  flex-direction: column;
  padding: 90px 30px 40px;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform .4s var(--site-ease);
}

.site-drawer.open {
  transform: none;
  pointer-events: auto;
}

.site-drawer:not(.open) {
  pointer-events: none;
}

.site-drawer a {
  font-size: 25px;
  font-weight: 800;
  padding: 17px 0;
  border-bottom: 1px solid var(--site-line-soft);
  color: var(--site-txt);
  transition: color .2s, padding-left .2s;
}

.site-drawer a:hover,
.site-drawer a.cur {
  color: var(--site-blue-soft);
  padding-left: 8px;
}

.site-drawer a small {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--site-txt-3);
  margin-top: 3px;
}

.site-drawer .site-drawer-close {
  position: absolute;
  top: 24px;
  right: 26px;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.site-drawer .legal-link {
  font-size: 25px;
  font-weight: 800;
  padding: 17px 0;
  width: 100%;
  border-bottom: 1px solid var(--site-line-soft);
  color: var(--site-txt);
  text-align: left;
  transition: color .2s, padding-left .2s;
}

.site-drawer .legal-link:hover {
  color: var(--site-blue-soft);
  padding-left: 8px;
}

.site-drawer button[data-contact-open] {
  font-size: 25px;
  font-weight: 800;
  padding: 17px 0;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--site-line-soft);
  background: none;
  color: var(--site-txt);
  text-align: left;
  cursor: pointer;
  transition: color .2s, padding-left .2s;
}

.site-drawer button[data-contact-open]:hover {
  color: var(--site-blue-soft);
  padding-left: 8px;
}

.site-drawer button[data-contact-open] small {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--site-txt-3);
  margin-top: 3px;
}

/* 공통 푸터 (전 페이지 — 레거시 .foot* 클래스 병행) */
.site-foot,
.foot {
  border-top: 1px solid var(--site-line-soft);
  background: var(--site-bg-2);
  padding: 56px 0 80px;
}

body:has(.sticky-cta) .site-foot,
body:has(.sticky-cta) .foot {
  padding-bottom: 140px;
}

.site-foot-cta,
.foot-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 40px;
}

.site-foot-cta a,
.foot-cta a {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  padding: 20px 18px;
  font-weight: 800;
  font-size: 16px;
  color: #3a424f;
  background: linear-gradient(180deg, #f0f2f5, #e2e6ec);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .45);
  transition: transform .2s var(--site-ease), box-shadow .2s, background .2s, border-color .2s;
}

.site-foot-cta a svg,
.foot-cta a svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.site-foot-cta a:hover,
.foot-cta a:hover {
  color: #252b35;
  background: linear-gradient(180deg, #f6f7f9, #e8ecf1);
  border-color: rgba(255, 255, 255, .22);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .5);
}

@media (max-width: 560px) {
  .site-foot-cta,
  .foot-cta {
    flex-direction: column;
  }

  .site-foot-cta a,
  .foot-cta a {
    flex: none;
    width: 100%;
  }
}

.site-foot-mid,
.foot-mid {
  text-align: center;
  border-top: 1px solid var(--site-line-soft);
  padding-top: 38px;
}

.site-foot .site-flogo,
.site-foot .flogo,
.foot .site-flogo,
.foot .flogo {
  display: inline-block;
  margin-bottom: 14px;
}

.site-foot .site-flogo img,
.site-foot .site-flogo .xlogo,
.site-foot .site-flogo .site-foot-logo,
.site-foot .flogo img,
.site-foot .flogo .xlogo,
.foot .site-flogo img,
.foot .flogo img,
.foot .flogo .xlogo,
.foot .flogo .site-foot-logo {
  height: 30px;
  width: auto;
  max-height: 30px;
  display: block;
  margin: 0 auto;
}

.site-foot .site-ftag,
.site-foot .ftag,
.foot .site-ftag,
.foot .ftag {
  font-size: 14px;
  color: var(--site-txt-3);
}

.site-foot-tabs,
.foot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 5px;
  justify-content: center;
  margin: 26px 0 10px;
}

.site-foot-tabs a,
.foot-tabs a {
  font-size: 13px;
  font-weight: 800;
  color: var(--site-txt);
  background: var(--site-card);
  border: 1px solid var(--site-line);
  padding: 9px 12px;
  border-radius: 999px;
  transition: border-color .2s, color .2s;
}

.site-foot-tabs a:hover,
.foot-tabs a:hover {
  border-color: var(--site-blue);
  color: var(--site-blue-soft);
}

.site-foot-legal,
.foot-legal {
  margin-top: 8px;
}

.site-foot-legal .legal-link,
.site-foot-legal,
.foot-legal .legal-link,
.foot-legal {
  font-size: 13px;
  color: var(--site-txt-3);
  text-decoration: none;
}

.site-foot-legal .legal-link,
.foot-legal .legal-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.site-foot-legal .legal-link:hover,
.site-foot-legal a:hover,
.foot-legal .legal-link:hover,
.foot-legal a:hover {
  color: #fff;
}

.site-foot .site-copy,
.site-foot .copy,
.foot .site-copy,
.foot .copy {
  margin-top: 22px;
  font-size: 12px;
  color: #565d68;
}

.site-to-top,
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--site-line);
  background: rgba(20, 22, 28, .92);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s, visibility .25s, transform .25s var(--site-ease);
}

body:has(.sticky-cta) .site-to-top,
body:has(.sticky-cta) .to-top {
  bottom: 90px;
}

.site-to-top.show,
.to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-to-top:hover,
.to-top:hover {
  transform: translateY(-3px);
  border-color: var(--site-blue);
}

/* 개인정보 모달 */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.legal-modal[hidden] {
  display: none !important;
}

body.legal-modal-open {
  overflow: hidden;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 44rem;
  max-height: 85vh;
  background: var(--site-card);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  overflow: hidden;
}

.legal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--site-line-soft);
}

.legal-modal__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--site-txt);
}

.legal-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--site-txt-3);
  cursor: pointer;
}

.legal-modal__close:hover {
  color: var(--site-txt);
  background: rgba(255, 255, 255, .06);
}

.legal-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  color: var(--site-txt-2);
  font-size: 15px;
  line-height: 1.65;
}

.legal-modal__panel-content[hidden] {
  display: none !important;
}

.legal-modal__intro {
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--site-line-soft);
  border-radius: 14px;
}

.legal-modal__section-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .75rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--site-txt);
}

.legal-modal__section-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d3e0;
}

.legal-modal__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-modal__list li {
  display: flex;
  gap: .5rem;
  margin-bottom: .45rem;
}

/* 상담 신청 모달 */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal[hidden] {
  display: none !important;
}

body.contact-modal-open {
  overflow: hidden;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 34rem;
  max-height: 90vh;
  background: linear-gradient(180deg, #101218, #0a0b0f);
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  overflow: hidden;
}

.contact-modal.is-open .contact-modal__panel {
  animation: contact-modal-in .3s var(--site-ease-out);
}

.contact-modal.is-open .contact-modal__backdrop {
  animation: contact-modal-fade-in .25s ease;
}

@keyframes contact-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes contact-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.contact-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--site-line-soft);
  flex-shrink: 0;
}

.contact-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--site-txt);
}

.contact-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .45rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--site-txt-3);
  cursor: pointer;
}

.contact-modal__close:hover {
  color: var(--site-txt);
  background: rgba(255, 255, 255, .06);
}

.contact-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.35rem 1.5rem;
}

.contact-modal__lead {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--site-txt-2);
  text-align: center;
}

.contact-modal__card {
  border: 1px solid var(--site-line);
  border-radius: 18px;
  padding: clamp(22px, 5vw, 32px);
  background: rgba(0, 0, 0, .2);
}

.contact-field {
  margin-bottom: 18px;
}

.contact-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--site-txt-2);
  margin-bottom: 8px;
}

.contact-req {
  color: #ff2f2f;
}

.contact-opt {
  color: var(--site-txt-3);
  font-weight: 600;
}

.contact-field input {
  width: 100%;
  background: #0b0c10;
  border: 1px solid var(--site-line);
  border-radius: 13px;
  padding: 14px 16px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.contact-field input:focus {
  outline: none;
  border-color: #ff2f2f;
  box-shadow: 0 0 0 3px rgba(255, 47, 47, .16);
}

.contact-field input::placeholder {
  color: #5a606b;
}

.contact-agree {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 4px 0 20px;
  font-size: 14px;
  color: var(--site-txt-2);
  cursor: pointer;
}

.contact-agree input {
  width: 18px;
  height: 18px;
  accent-color: #ff2f2f;
  flex-shrink: 0;
}

.contact-agree button {
  padding: 0;
  border: none;
  background: none;
  color: var(--site-blue-soft);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.contact-agree button:hover {
  color: var(--site-txt);
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form-error {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #ffb4b4;
  background: rgba(255, 80, 80, .12);
  border: 1px solid rgba(255, 120, 120, .25);
}

.contact-form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(180deg, #ff2f2f, #e01010);
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  padding: 17px;
  border-radius: 14px;
  transition: transform .2s var(--site-ease);
}

.contact-form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
}

.contact-form-submit:disabled {
  opacity: .7;
  cursor: wait;
}

.contact-form-ok {
  text-align: center;
  padding: 28px 8px;
}

.contact-form-ok__ic {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(55, 224, 138, .14);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid rgba(55, 224, 138, .4);
}

.contact-form-ok h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--site-txt);
}

.contact-form-ok p {
  margin: 10px 0 0;
  color: var(--site-txt-2);
  font-size: 15px;
}

.site-foot-tabs button[data-contact-open],
.foot-tabs button[data-contact-open] {
  font-size: 14px;
  font-weight: 800;
  color: var(--site-txt);
  background: var(--site-card);
  border: 1px solid var(--site-line);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.site-foot-tabs button[data-contact-open]:hover,
.foot-tabs button[data-contact-open]:hover {
  border-color: var(--site-blue);
  color: var(--site-blue-soft);
}
