/* 기본 스타일 설정 */
* {margin: 0; padding: 0; box-sizing: border-box;}
a {text-decoration: none; color: #000;}
*:where([style*="Pretendard"]), 
body, *:not(code):not(pre):not(kbd) {letter-spacing: -0.3px;}
body.fixed{overflow: hidden;}
:root {
  --outtye-color: #4C65C8;
  --shellBlack-color: #1C1C1E;
  --white-100-color: #fff;
  --white-90-color: rgba(255,255,255,0.9);
  --white-80-color: rgba(255,255,255,0.8);
  --black-100-color: #000;
  --black-90-color: rgba(0,0,0,0.9);
  --black-40-color: rgba(0,0,0,0.4);
  --gray-01-color: #333333;
  --gray-02-color: #797979;
  --gray-03-color: #a8a8a8;
  --border-color: #D5D5D5;
}
.RPCO{display: block;}
.RPMO{display: none;}
body {font-family: 'Pretendard', sans-serif; line-height: 1.6; background-color: var(--white-100-color); color: var(--gray-01-color);}

/* 헤더 스타일 */
header {position: fixed; display: flex; top: 0; width: 100%; height: 80px; justify-content: space-between; align-items: center; padding: 20px 80px; transition: all 0.3s ease; z-index: 99;}
body.fixed > header.scroll{background: unset; backdrop-filter: unset;}
header.scroll{background-color: var(--white-80-color); backdrop-filter: blur(10px);}
header .logo img {width: 100px;}
header .logo img.wh{display: none;}
header nav ul {display: flex; list-style: none; gap: 80px;}

header nav ul li a {display: inline-block; height: 26px; font-weight: 500; border: 0; box-sizing: border-box;}
header nav ul li a:hover{font-weight: 700; border-bottom: 1px solid;}
header .chat-btn{display: flex; padding: 10px 24px; background: var(--outtye-color); border-radius: 300px;}
header .chat-btn:hover{animation: moveUpDown 3s ease-in-out infinite;}
header .chat-btn a{font-size: 16px; font-weight: 600; color: #fff;}

header.wh a{color: var(--white-100-color);}
header.wh .chat-btn a{color: var(--shellBlack-color)}
header.wh .logo img.wh{display: block;}
header.wh .logo img.bk{display: none;}

header.wh .hamburger span{background-color: #fff;}

/* 푸터 */
footer {text-align: center; padding: 60px 0 50px; background-color: var(--black-100-color); color: var(--white-100-color);}
footer h5{margin: 0; font-size: 16px; line-height: 30px; font-weight: 500; color: var(--white-100-color);}
footer .cta-btn{display: flex; justify-content: center; align-items: center; gap: 12px;}
footer .cta-btn a{width: 180px; margin: 40px 0; line-height: 50px; background: rgba(223,223,223,0.4); border-radius: 15px; transition: background 0.5s ease;}
footer .cta-btn a:hover{background: var(--white-100-color);}
footer .fotter-btn{display: flex; font-size: 12px; cursor: pointer; justify-content: center; align-items: center; gap: 4px;}
footer .fotter-btn img{width: 12px; transform: rotate(0deg); transition: transform 0.5s ease;}
.fotter-btn img.show {transform: rotate(180deg);}
footer .fotter-inner {visibility: hidden; max-height: 0; overflow: hidden; transition: all 0.5s ease;}
footer .fotter-inner.show{visibility: visible; max-height: 200px;}
footer .fotter-inner .fotter-info{margin-top: 20px; padding-top: 20px; border-top: .4px solid var(--white-100-color);}
footer .fotter-inner .fotter-info span{display: block; margin-bottom: 6px; font-weight: 600;}
footer .fotter-inner .fotter-info p{margin-bottom: 2px; font-size: 12px; font-weight: 300;}
footer .fotter-inner .fotter-info p a{color: #fff;}

/* 최하단 scroll top */
.main-icon {position: fixed; bottom: 40px; right: 40px; width: 50px; cursor: pointer; transition: transform 0.3s ease; z-index: 1000;}
#reload {transition: transform 0.05s linear;}


/* ====== Mobile Hamburger Menu ====== */



/* 모바일 스타일 */
@media (max-width: 768px) {
  .RPMO{display: block;}
  .RPCO{display: none;}
  nav, header .chat-btn{display: none;}
  header{height: 60px; padding: 0 20px;}
  header .logo img{width: 90px;}
  .hamburger { width: 24px; height: auto; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0; border: none; background: transparent; cursor: pointer; }
  .hamburger span { display: block; width: 100%; height: 3px; background-color: var(--shellBlack-color); border-radius: 9999px; }
  
  footer .cta-btn{margin: 0 34px;}
  footer .cta-btn a{width: 100%; line-height: 48px; gap: 8px;}

  .hamburger {width: 24px; height: 20px; display: flex; flex-direction: column; justify-content: space-between; border: none; background: none; cursor: pointer; z-index: 9999;}
.hamburger span {display: block; height: 2px; background: #000; border-radius: 2px; transition: all 0.4s ease;}
.hamburger.active span:nth-child(1) {transform: translateY(7px) rotate(45deg);}
.hamburger.active span:nth-child(2) {opacity: 0;}
.hamburger.active span:nth-child(3) {transform: translateY(-9px) rotate(-45deg);}
.mobile-menu {position: fixed; top: 0; left: 0; right: 0; height: 100vh; background: rgb(255 255 255 / 60%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 9; transition: all 0.4s ease;}
.mobile-menu.on {display: flex;}
.mobile-menu ul {list-style: none; padding: 0;}
.mobile-menu li {margin: 40px 0; text-align: center;}
.mobile-menu a {font-size: 18px; font-weight: 500; text-decoration: none;}
.mobile-menu a:hover {color: var(--outtye-color);}
}

@keyframes moveUpDown {
  0% {margin-top: 0;} 
  30% {margin-top: -8px;}
  50%{margin-top: 0;}
  60%{margin-top: -4px;}
  80%{margin-top: 0;}
  100%{margin-top: 0;}
}

/* Thin */
@font-face {
  font-family: 'Pretendard';
  src: url('/font/Pretendard-Thin.woff') format('woff');
  font-weight: 100; /* Thin */
  font-style: normal;
  letter-spacing: -0.3px;
}

/* ExtraLight */
@font-face {
  font-family: 'Pretendard';
  src: url('/font/Pretendard-ExtraLight.woff') format('woff');
  font-weight: 200; /* ExtraLight */
  font-style: normal;
}

/* Light */
@font-face {
  font-family: 'Pretendard';
  src: url('/font/Pretendard-Light.woff') format('woff');
  font-weight: 300; /* Light */
  font-style: normal;
}

/* Regular */
@font-face {
  font-family: 'Pretendard';
  src: url('/font/Pretendard-Regular.woff') format('woff');
  font-weight: 400; /* Regular */
  font-style: normal;
}

/* Medium */
@font-face {
  font-family: 'Pretendard';
  src: url('/font/Pretendard-Medium.woff') format('woff');
  font-weight: 500; /* Medium */
  font-style: normal;
}

/* SemiBold */
@font-face {
  font-family: 'Pretendard';
  src: url('/font/Pretendard-SemiBold.woff') format('woff');
  font-weight: 600; /* SemiBold */
  font-style: normal;
}

/* Bold */
@font-face {
  font-family: 'Pretendard';
  src: url('/font/Pretendard-Bold.woff') format('woff');
  font-weight: 700; /* Bold */
  font-style: normal;
}

/* ExtraBold */
@font-face {
  font-family: 'Pretendard';
  src: url('/font/Pretendard-ExtraBold.woff') format('woff');
  font-weight: 800; /* ExtraBold */
  font-style: normal;
}

/* Black */
@font-face {
  font-family: 'Pretendard';
  src: url('/font/Pretendard-Black.woff') format('woff');
  font-weight: 900; /* Black */
  font-style: normal;
}