@charset "utf-8";

/* 헤더 기본 설정 */
#header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: #0f1828;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition:
    top .35s ease,
    background .35s ease,
    border-color .35s ease,
    backdrop-filter .35s ease;
}

#header .inner {
  width: min(100% - 96px, 1800px);
  margin: 0 auto;
  transition: width .35s ease;
}

#header .header_wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 92px;
  transition:
    height .35s ease,
    padding .35s ease,
    border-color .35s ease,
    border-radius .35s ease,
    background .35s ease,
    box-shadow .35s ease,
    backdrop-filter .35s ease;
}

/* 스크롤 활성화 상태 */
#header.is_scroll {
  top: 14px;
  background: transparent;
  border-bottom-color: transparent;
}

#header.is_scroll .inner {
  width: min(100% - 40px, 1280px);
}

#header.is_scroll .header_wrap {
  height: 68px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(17, 24, 39, .88) 0%, rgba(17, 24, 39, .72) 100%);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .03);
}

/* 로고 */
#header .logo {
  justify-self: start;
}

#header .logo a {
  display: flex;
  align-items: center;
}

#header .logo img {
  height: 30px;
  transition:
    height .35s ease,
    transform .35s ease;
}

#header.is_scroll .logo img {
  height: 28px;
}

/* 네비게이션 (GNB) */
#header .gnb {
  justify-self: center;
}

#header .gnb_pc {
  display: flex;
}

#header .gnb_mobile {
  display: none;
}

#header .gnb ul {
  display: flex;
  align-items: center;
  gap: 42px;
}

#header .gnb a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, .76);
  transition:
    color .25s ease,
    transform .25s ease;
}

#header .gnb a:hover {
  color: #ffffff;
}

#header .gnb_pc>ul>li {
  position: relative;
}

#header .gnb_pc .has_lnb>a::after {
  content: "\f107";
  margin-left: 7px;
  font-family: "Font Awesome 6 Free";
  font-size: 11px;
  font-weight: 900;
  opacity: .55;
}

/* 서브 네비게이션 (LNB) */
#header .gnb_pc .lnb {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 190px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 24, 39, .96) 0%, rgba(15, 23, 42, .96) 100%);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .03);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition:
    opacity .2s ease,
    visibility .2s ease,
    transform .2s ease;
}

#header .gnb_pc .has_lnb:hover .lnb {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

#header .gnb_pc .lnb li {
  width: 100%;
}

#header .gnb_pc .lnb a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-sizing: border-box;
}

#header .gnb_pc .lnb a:hover {
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

/* 우측 영역 및 버튼 */
#header .header_right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

#header .member_links {
  display: flex;
  align-items: center;
  gap: 10px;
}

#header .member_btn,
#header .download_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition:
    height .35s ease,
    padding .35s ease,
    background .25s ease,
    border-color .25s ease,
    color .25s ease,
    transform .25s ease;
}

#header .member_btn {
  border: 1px solid transparent;
  color: rgba(255, 255, 255, .82);
}

#header .member_btn:hover {
  color: #ffffff;
}

#header .download_btn {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: #ffffff;
}

#header .download_btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .1);
}

/* 스크롤 시 버튼 스타일 변경 */
#header.is_scroll .member_btn,
#header.is_scroll .download_btn {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

#header.is_scroll .member_btn {
  border-color: rgba(255, 255, 255, .08);
}

#header.is_scroll .member_btn:hover {
  border-color: rgba(255, 255, 255, .18);
}

#header.is_scroll .download_btn {
  border-color: rgba(255, 255, 255, .14);
}

/* 모바일 요소 초기화 및 다국어 선택기 */
#header .menu_btn,
#header .mobile_dim,
#header .mobile_member {
  display: none;
}

body.menu_open {
  overflow: hidden;
}

.lang_switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 14px;
}

.lang_switcher a,
.lang_switcher span {
  position: relative;
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
}

.lang_switcher a:hover {
  color: rgba(255, 255, 255, .8);
}

.lang_switcher .active {
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.lang_switcher a:not(:last-child)::after,
.lang_switcher span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, .14);
  transform: translateY(-50%);
}

/* 태블릿 (해상도: 768px ~ 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  #header .inner {
    width: min(100% - 56px, 1200px);
  }

  #header .header_wrap {
    height: 82px;
  }

  #header .gnb ul {
    gap: 28px;
  }

  #header .gnb a {
    font-size: 14px;
  }

  #header .member_btn,
  #header .download_btn {
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
  }

  #header.is_scroll .inner {
    width: min(100% - 32px, 1120px);
  }
}

/* 모바일 (해상도: 767px 이하) */
@media (max-width: 767px) {
  #header .inner {
    width: min(100% - 28px, 767px);
  }

  #header .header_wrap {
    display: flex;
    justify-content: space-between;
    height: 72px;
  }

  #header.is_scroll {
    top: 10px;
  }

  #header.is_scroll .inner {
    width: min(100% - 20px, 767px);
  }

  #header.is_scroll .header_wrap {
    height: 58px;
    padding: 0 18px;
  }

  #header .logo img {
    height: 26px;
  }

  #header.is_scroll .logo img {
    height: 24px;
  }

  #header .member_links,
  #header .member_btn,
  #header .download_btn {
    display: none;
  }

  #header .menu_btn {
    position: relative;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
  }

  #header .menu_btn i {
    transition:
      transform .25s ease,
      opacity .25s ease;
  }

  #header .menu_btn.is_open i {
    transform: rotate(90deg);
  }

  #header .menu_btn.menu_btn_close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1300;
  }

  #header .mobile_dim {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: block;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity .3s ease,
      visibility .3s ease;
  }

  #header .mobile_dim.is_open {
    opacity: 1;
    visibility: visible;
  }

  #header .gnb {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    width: min(82vw, 320px);
    height: 100vh;
    padding: 96px 28px 28px;
    background: #111827;
    border-left: 1px solid rgba(255, 255, 255, .08);
    transform: translateX(110%);
    transition:
      transform .32s ease,
      box-shadow .32s ease;
  }

  #header .gnb_pc {
    display: none;
  }

  #header .gnb_mobile {
    display: flex;
  }

  #header .gnb.is_open {
    transform: translateX(0);
    box-shadow: -24px 0 60px rgba(0, 0, 0, .38);
  }

  #header .gnb ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  #header .gnb li {
    width: 100%;
  }

  #header .gnb a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
  }

  #header .gnb_mobile .has_lnb>a::after {
    content: "\f107";
    margin-left: auto;
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
    opacity: .55;
  }

  #header .gnb_mobile .mobile_lnb {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0 12px;
    padding: 8px 0 8px 14px;
    border-left: 2px solid rgba(255, 255, 255, .12);
  }

  #header .gnb_mobile .mobile_lnb li {
    width: 100%;
  }

  #header .gnb_mobile .mobile_lnb a {
    min-height: 40px;
    padding: 0 10px;
    border-bottom: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    font-weight: 700;
  }

  #header .gnb_mobile .mobile_lnb a:hover {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
  }

  #header .mobile_download_item {
    width: 100%;
  }

  #header .mobile_member {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 32px;
  }

  #header .mobile_member_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
  }
}