/* common.css - VIA GOLD (Premium Dark + Gold) */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root{
  --bg:#111214;
  --bg2:#1B1E22;
  --card:rgba(255,255,255,.03);
  --line:rgba(255,255,255,.08);
  --text:#EDEFF3;
  --sub:#A7ABB3;
  --gold:#FFD800;
  --shadow: 0 18px 46px rgba(0,0,0,.45);
  --radius:22px;
  --container: 1100px;
  --header-h: 64px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
   padding-top: var(--header-h);
  background: radial-gradient(1200px 800px at 70% 10%, rgba(255,216,0,.07), transparent 55%),
              radial-gradient(900px 700px at 10% 40%, rgba(255,255,255,.05), transparent 55%),
              var(--bg);
  color:var(--text);
  font-family: Pretendard, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
  letter-spacing:-0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
button{ font-family:inherit; }

.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

.section{
  padding: 56px 0;
}

.section--tight{ padding: 38px 0; }

.section-title{
  margin: 0 0 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.section-title__kicker{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color: rgba(255,216,0,.85);
}
.section-title__h2{
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 700;
  margin:0;
  letter-spacing:-0.5px;
}
.section-title__desc{
  margin:0;
  color: var(--sub);
  line-height:1.6;
  font-size:14px;
  max-width: 62ch;
}

.hr{
  height:1px;
  background: var(--line);
  margin: 18px 0 0;
}

/* --- Header --- */
/* --- Header (FIX: sticky -> fixed) --- */
.header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;

  height: var(--header-h);
  display:flex;
  align-items:center;

  background: rgba(17,18,20,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,.06);

  /* ✅ 일부 기기에서 fixed + blur 렌더 안정화 */
  transform: translateZ(0);
  will-change: transform;
}

.header__inner{
  width:min(var(--container), calc(100% - 28px));
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  min-width: 120px;
}
.brand img{
  height: 38px;
  width:auto;
  object-fit:contain;
}
.header__icons{
  display:flex;
  align-items:center;
  gap:18px;
}
.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border:0;
  background: transparent;
  color: rgba(237,239,243,.9);
  cursor:pointer;
  transition: transform .18s var(--ease), color .18s var(--ease), opacity .18s var(--ease);
  opacity:.92;
}
.icon-btn:hover{
  color: var(--gold);
  transform: translateY(-1px);
  opacity:1;
}

/* --- Top nav (sub pages) --- */
.navbar{
  display:flex;
  gap:16px;
  align-items:center;
}
.navlink{
  font-size:13px;
  color: rgba(237,239,243,.75);
  letter-spacing:.02em;
  padding: 10px 8px;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.navlink:hover{ color: rgba(255,216,0,.95); }
.navlink.is-active{
  color: rgba(255,216,0,.95);
  border-color: rgba(255,216,0,.55);
}

/* --- Cards / Buttons --- */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn-row{ display:flex; gap:12px; flex-wrap:wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: rgba(237,239,243,.92);
  cursor:pointer;
  transition: transform .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,216,0,.55); color: rgba(255,216,0,.95); }
.btn--primary{
  border-color: rgba(255,216,0,.55);
  color: rgba(255,216,0,.95);
}
.btn--primary:hover{ background: rgba(255,216,0,.08); }
.btn--ghost{
  border-color: rgba(255,255,255,.10);
  color: rgba(237,239,243,.8);
}

/* --- Fade-up reveal --- */
.reveal{
  opacity:0;
  transform: translateY(12px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.is-in{
  opacity:1;
  transform: translateY(0);
}

/* --- Footer --- */
.footer{
  padding: 44px 0 34px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.16);
}
.footer__top{
  display:flex;
  gap:22px;
  align-items:flex-start;
  justify-content: space-between;
  flex-wrap:wrap;
}
.footer__brand{
  max-width: 420px;
}
.footer__brand h3{
  margin:0 0 10px;
  font-size:18px;
  letter-spacing:-0.4px;
}
.footer__brand p{
  margin:0;
  color: var(--sub);
  line-height:1.6;
  font-size:13px;
}
.footer__cols{
  display:flex;
  gap:26px;
  flex-wrap:wrap;
}
.footer__col h4{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color: rgba(255,216,0,.9);
}
.footer__col a{
  display:block;
  padding: 6px 0;
  font-size:13px;
  color: rgba(237,239,243,.78);
}
.footer__col a:hover{ color: rgba(255,216,0,.95); }

.footer__bottom{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer__meta{
  color: rgba(237,239,243,.55);
  font-size:12px;
  line-height:1.6;
}
.footer__social{
  display:flex;
  gap:14px;
  align-items:center;
}
.footer__social a{
  color: rgba(237,239,243,.78);
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer__social a:hover{ color: var(--gold); transform: translateY(-1px); }

/* --- Responsive --- */
@media (max-width: 980px){
  .navbar{ display:none; } /* 모바일은 상단 네비 숨기고(앱 느낌) 헤더는 아이콘만 */
}
@media (max-width: 560px){
  :root{ --header-h: 60px; }
  .container{ width: calc(100% - 32px); }
  .section{ padding: 48px 0; }
}
/* =========================
   Mobile Menu Panel
========================= */

/* =========================
   Mobile Menu Panel (FIX)
   - display:none 제거
   - is-open으로만 노출 제어
========================= */

.icon-btn--menu{
  display:none; /* PC에서는 숨김 */
  position:relative;
}
.icon-btn--menu .icon-close{ display:none; }

.header.is-open .icon-btn--menu .icon-menu{ display:none; }
.header.is-open .icon-btn--menu .icon-close{ display:inline-block; }

/* ✅ 패널은 항상 렌더링(숨김은 height/opacity로만) */
.mobile-panel{
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 998;

  background: rgba(17,18,20,.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);

  /* 닫힘 상태 */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;

  transition: max-height .28s var(--ease),
              opacity .20s var(--ease),
              transform .20s var(--ease);
}

.mobile-panel__inner{
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 16px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

/* ✅ 열림 상태 */
.header.is-open .mobile-panel{
  max-height: 160px; /* 2줄(아이콘+네비) 충분 */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 모바일에서만: 헤더에는 햄버거만 보이게 */
@media (max-width: 980px){
  .navbar{ display:none; }

  .header__icons .icon-btn:not(.icon-btn--menu){
    display:none;
  }
  .icon-btn--menu{
    display:inline-flex;
  }
}

/* 1줄: 아이콘 */
.m-icons{
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content:center;
}
.m-icon{
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: rgba(237,239,243,.92);
  cursor:pointer;
  transition: transform .18s var(--ease), color .18s var(--ease);
}
.m-icon:hover{
  transform: translateY(-1px);
  color: var(--gold);
}

/* 2줄: 네비 한 줄(가로 스크롤) */
.m-nav{
  display:flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
}
.m-nav::-webkit-scrollbar{ display:none; }

.m-navlink{
  flex: 0 0 auto;
  font-size: 13px;
  color: rgba(237,239,243,.78);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  transition: border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
  
}
.m-navlink:first-child{
  margin-left: 190px;
}
.m-navlink:hover{
  transform: translateY(-1px);
  border-color: rgba(255,216,0,.35);
  color: rgba(255,216,0,.92);
}

/* 메뉴 열렸을 때 스크롤 잠금 */
/* body.is-menu-open{
  overflow:hidden;
} */

