/* ============================================
   WRAP
   ============================================ */
/* clip : 가로 넘침만 자르고 sticky는 유지 */
#wrap { overflow-x: clip; }

/* ============================================
   HEADER
   ============================================ */
#header { position: fixed; top: 0; left: 0; right: 0; z-index: 500; height: var(--header-h); transition: background 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-out); }
/* 아래로 스크롤하면 위로 숨김 (common.js) */
#header.is-hidden { transform: translateY(-100%); }
#header.is-scrolled,
#header.is-open { background: rgba(255, 255, 255, 0.88); box-shadow: 0 1px 0 var(--color-page-line); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }

.header-inner { display: flex; align-items: center; gap: 36px; max-width: var(--container-w); height: 100%; margin: 0 auto; padding: 0 var(--content-pad); }

.logo { display: flex; flex: none; align-items: center; gap: 8px; }
.logo-img { display: block; width: auto; height: 24px; }

/* GNB */
.gnb { flex: 1; }
.gnb-list { display: flex; gap: 4px; }
.gnb-link { display: block; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--color-page-text-sub); transition: background 0.2s, color 0.2s; }
.gnb-link:hover { background: var(--color-bg-gray); color: var(--color-page-text); }

.header-util { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* 모바일 메뉴 버튼 */
.btn-menu { display: none; position: relative; width: 40px; height: 40px; margin-right: -8px; }
.btn-menu span,
.btn-menu::before,
.btn-menu::after { position: absolute; left: 11px; width: 18px; height: 2px; border-radius: 2px; background: var(--color-page-text); content: ''; transition: transform 0.3s var(--ease), opacity 0.2s; }
.btn-menu span { top: 19px; }
.btn-menu::before { top: 13px; }
.btn-menu::after { top: 25px; }
#header.is-open .btn-menu span { opacity: 0; }
#header.is-open .btn-menu::before { transform: translateY(6px) rotate(45deg); }
#header.is-open .btn-menu::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .header-inner { gap: 16px; }
  .gnb { position: fixed; top: var(--header-h); left: 0; right: 0; padding: 8px var(--content-pad) 24px; background: var(--color-page); box-shadow: 0 16px 32px rgba(36, 48, 90, 0.08); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s; }
  #header.is-open .gnb { opacity: 1; visibility: visible; transform: none; }
  .gnb-list { flex-direction: column; gap: 0; }
  .gnb-link { padding: 18px 4px; border-bottom: 1px solid var(--color-page-line); border-radius: 0; font-size: 17px; font-weight: 600; color: var(--color-page-text); }
  .gnb-link:hover { background: none; }
  .btn-menu { display: block; }
}

/* ============================================
   FOOTER
   ============================================ */
#footer { position: relative; overflow: hidden; padding: 56px 0 44px; background: #1b2230; color: #fff; isolation: isolate; }
/* 그라디언트 배경 : 가장자리는 어둡게, 가운데 아래로 브랜드 컬러 빛 */
.footer-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(34% 60% at 64% 118%, rgba(200, 194, 255, 0.45), rgba(140, 125, 255, 0.22) 40%, transparent 72%),
  radial-gradient(36% 80% at 28% 70%, rgba(75, 71, 245, 0.28), transparent 70%),
  radial-gradient(34% 80% at 86% 25%, rgba(176, 108, 255, 0.22), transparent 70%),
  linear-gradient(90deg, #11131f, #1b2040 45%, #141726); }
.footer-inner { display: flex; flex-direction: column; gap: 44px; }
.footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer-row.is-mid { align-items: flex-end; }
.footer-row.is-bottom { align-items: center; }

.footer-info { font-size: 14px; line-height: 1.9; color: rgba(255, 255, 255, 0.85); }
.footer-info b { margin-right: 18px; font-weight: 600; color: #fff; }
.footer-info .bar { margin: 0 10px; opacity: 0.4; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.footer-nav a { font-size: 18px; font-weight: 700; color: #fff; transition: opacity 0.2s; }
.footer-nav a:hover { opacity: 0.7; }

.footer-cta-tit { font-size: 22px; font-weight: 700; }
.footer-cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(440px, 100%); height: 60px; margin-top: 18px; padding: 0 24px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); font-size: 15px; color: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background 0.2s; }
.footer-cta-box:hover { background: rgba(255, 255, 255, 0.22); }
.footer-cta-box .ico { width: 22px; height: 22px; transition: transform 0.25s var(--ease); }
.footer-cta-box:hover .ico { transform: translateX(4px); }
.footer-wordmark { font-size: clamp(48px, 6vw, 96px); font-weight: 800; line-height: 0.8; letter-spacing: -0.05em; color: #fff; }

.footer-copy { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.footer-policy { display: flex; gap: 28px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.footer-policy strong { font-weight: 700; color: #fff; }
.footer-policy a:hover { color: #fff; }

@media (max-width: 1024px) {
  .footer-row { flex-direction: column; }
  .footer-row.is-bottom { align-items: flex-start; }
  .footer-row.is-mid { flex-direction: column-reverse; align-items: flex-start; }
  .footer-nav a { font-size: 16px; }
}
@media (max-width: 768px) {
  #footer { padding: 44px 0 36px; }
  .footer-inner { gap: 36px; }
  .footer-row { gap: 24px; }
  .footer-info { font-size: 13px; }
  .footer-nav { gap: 8px 24px; }
  .footer-cta-tit { font-size: 18px; }
  .footer-cta-box { height: 54px; padding: 0 18px; font-size: 14px; }
  .footer-row.is-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .footer-policy { gap: 20px; font-size: 13px; }
}

/* 맨 위로 버튼 */
.btn-top { position: fixed; right: 32px; bottom: 32px; z-index: 400; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s; }
.btn-top.is-show { opacity: 1; visibility: visible; transform: none; }

@media (max-width: 768px) {
  .btn-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
