@charset "UTF-8";

/* ============================================ */
/*  🎨 1. CSS 커스텀 속성 및 전역 초기화        */
/* ============================================ */
:root {
  --bg-dark: #07090f;
  --bg-deep: #050710;
  --navy: #0d1b2a;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --blue-glow: #3b82f6;
  --green-blog: #03c75a;
  --white: #ffffff;
  --off-white: #f8f9fb;
  --gray-50: #f9fafb;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --text-dark: #0f172a;
  --font: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; font-size: 16px; }

body { 
  font-family: var(--font); 
  background: var(--white); 
  color: var(--text-dark); 
  overflow-x: hidden; 
  -webkit-font-smoothing: antialiased; 
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================ */
/*  2. GNB (상단 네비게이션) 공통 스타일        */
/* ============================================ */
.gnb {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 0 48px; height: 68px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(7, 9, 15, .18); backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background .4s, backdrop-filter .4s, box-shadow .4s, border-color .4s;
}

.gnb.scrolled {
  background: rgba(7, 9, 15, .5); backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%); box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  border-color: rgba(255, 255, 255, .12);
}

.gnb-left { display: flex; align-items: center; gap: 10px; }
.gnb-logo-img { height: 32px; width: auto; }
/* 🔧 로고 텍스트 줄바꿈 방지 추가 */
.gnb-logo-text { font-size: 1.2rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; white-space: nowrap; }

.gnb-center { display: flex; align-items: center; gap: 24px; }
.gnb-center a { font-size: 1.05rem; font-weight: 500; color: var(--gray-400); transition: color .3s; letter-spacing: -.01em; }
.gnb-center a:hover { color: var(--white); }

.gnb-right { display: flex; align-items: center; gap: 14px; }
/* 🔧 우측 모든 버튼/링크 텍스트 세로 깨짐 방지 추가 */
.gnb-right a, 
.gnb-right button {
  white-space: nowrap !important;
}

.gnb-blog, .gnb-phone { width: 36px; height: 36px; border-radius: 50%; background: var(--green-blog); display: flex; align-items: center; justify-content: center; transition: transform .3s, box-shadow .3s; position: relative; }
.gnb-blog:hover, .gnb-phone:hover { transform: scale(1.08); box-shadow: 0 0 16px rgba(3, 199, 90, .35); }
.gnb-blog svg, .gnb-phone svg { width: 18px; height: 18px; fill: var(--white); }

.gnb-phone-tip { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) scale(.9); background: rgba(7, 9, 15, .92); color: var(--white); padding: 10px 18px; border-radius: 10px; font-size: 0.95rem; font-weight: 700; white-space: nowrap; pointer-events: none; opacity: 0; transition: all .25s var(--ease); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.gnb-phone-tip::before { content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: rgba(7, 9, 15, .92); border-top: 1px solid rgba(255, 255, 255, .1); border-left: 1px solid rgba(255, 255, 255, .1); }
.gnb-phone:hover .gnb-phone-tip { opacity: 1; transform: translateX(-50%) scale(1); pointer-events: auto; }

.gnb-download { padding: 10px 24px; border-radius: 100px; background: #10b981; color: var(--white); font-size: 0.95rem; font-weight: 600; letter-spacing: -.01em; transition: all .3s; }
.gnb-download:hover { background: #059669; box-shadow: 0 0 20px rgba(16, 185, 129, .35); }
.gnb-consult { padding: 10px 24px; border-radius: 100px; background: var(--blue); color: var(--white); font-size: 0.95rem; font-weight: 600; letter-spacing: -.01em; transition: all .3s; }
.gnb-consult:hover { background: var(--blue-light); box-shadow: 0 0 20px rgba(37, 99, 235, .35); }

/* 모바일 햄버거 메뉴 */
.gnb-toggle { display: none; background: none; width: 28px; height: 28px; position: relative; }
.gnb-toggle span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; position: absolute; left: 50%; transform: translateX(-50%); transition: all .3s; }
.gnb-toggle span:nth-child(1) { top: 8px }
.gnb-toggle span:nth-child(2) { top: 14px }
.gnb-toggle span:nth-child(3) { top: 20px }
.gnb-toggle.active span:nth-child(1) { top: 14px; transform: translateX(-50%) rotate(45deg) }
.gnb-toggle.active span:nth-child(2) { opacity: 0 }
.gnb-toggle.active span:nth-child(3) { top: 14px; transform: translateX(-50%) rotate(-45deg) }

/* ============================================ */
/*  3. Footer 공통 스타일                       */
/* ============================================ */
.footer { background: var(--bg-dark); padding: 56px 24px 36px; border-top: 1px solid rgba(255, 255, 255, .05); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; color: var(--gray-400); }
.footer-logo img { height: 26px; width: auto; }
.footer-youtube { display: inline-flex; align-items: center; margin-left: 12px; color: var(--gray-500); transition: color .3s; }
.footer-youtube:hover { color: #ff0000; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 1rem; color: var(--gray-500); transition: color .3s; }
.footer-links a:hover { color: var(--gray-300); }
.footer-copy { width: 100%; text-align: center; font-size: 0.85rem; color: var(--gray-500); margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .04); }

/* 쿠키 배너 */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; padding: 20px 28px; background: rgba(7, 9, 15, .75); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-top: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; transform: translateY(100%); opacity: 0; transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .5s; }
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-text { font-size: 0.95rem; color: var(--gray-300); line-height: 1.5; }
.cookie-btn { padding: 12px 32px; border-radius: 10px; border: none; background: var(--blue); color: var(--white); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all .3s var(--ease); }
.cookie-btn:hover { background: #1d4ed8; transform: translateY(-1px); }

/* ============================================ */
/*  4. 반응형 (모바일) 공통 스타일              */
/* ============================================ */
@media(max-width:900px) {
  /* 🔧 헤더 좌우 여백을 줄여서 중앙 공간 확보 */
  .gnb { padding: 0 12px !important; }
  
  .gnb-center { display: none; position: fixed; top: 68px; left: 0; right: 0; background: rgba(7, 9, 15, .96); backdrop-filter: blur(24px); flex-direction: column; padding: 28px 24px; gap: 20px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .gnb-center.open { display: flex; }
  .gnb-center a { font-size: 1.15rem; color: var(--gray-300); }
  .gnb-toggle { display: block; }
  
  /* 🔧 우측 아이콘과 버튼들 사이의 간격 최소화 */
  .gnb-right { gap: 5px !important; }
  
  /* 🔧 버튼들의 내부 여백과 글자 크기 최적화 (인라인 스타일 덮어쓰기 위해 !important 유지) */
  #gnbLoginBtn, #gnbLogoutBtn, #gnbMypageBtn, .gnb-consult, .gnb-download { 
    padding: 6px 8px !important; 
    font-size: 0.75rem !important; 
    letter-spacing: -0.02em; 
  }
  
  /* 🔧 동그란 아이콘 크기 축소 */
  .gnb-phone, .gnb-blog { 
    width: 28px !important; 
    height: 28px !important; 
  }
  .gnb-phone svg, .gnb-blog svg { 
    width: 14px !important; 
    height: 14px !important; 
  }
  
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

/* 🔧 아주 좁은 화면(스마트폰 세로) 대응 분기점 추가 */
@media (max-width: 580px) {
  /* 로고 마크만 남기고 글씨 숨김 */
  .gnb-logo-text { display: none !important; }
  
  /* 우선순위가 낮은 블로그 아이콘 숨김 */
  .gnb-blog { display: none !important; }
}

@media(max-width:480px) {
  /* 580px에서 이미 숨김 처리했으므로 이 부분은 유지하거나 생략해도 무방합니다. */
  .gnb-logo-text { font-size: 1rem; }
}