/* =======================================================
   💎 [Aiedge CSS 분할] 2. layout.css (공통 구조 & 헤더 / 푸터)
   ======================================================= */
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* 상단 글로벌 헤더 구역 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(3, 10, 26, .68);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: .25s ease;
}

.site-header.scrolled {
  background: rgba(3, 10, 26, .92);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.logo-box {
  width: 112px;
  aspect-ratio: 2.4/1;
  background: var(--royal);
  display: grid;
  place-items: center;
  border-radius: 0;
  overflow: hidden;
}

.logo-box img {
  width: 88%;
  height: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}

.logo-text .company-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  opacity: .98;
  letter-spacing: -.02em;
}

.logo-text small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em;
  white-space: nowrap;
}

.logo-text small .ai-word {
  color: #8de7ff;
}

/* 네비게이션 메뉴 */
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  color: #dce7fb;
  margin-left: auto; /* ✨ 핵심 치트키: 남는 공간을 모두 왼쪽 여백으로 써서 메뉴를 우측으로 밀어버림 */
}

.nav a {
  position: relative;
  white-space: nowrap;
  color: #dce7fb;
}

.nav a:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: .2s ease;
}

.nav a:hover, 
.nav a.active {
  color: #fff;
}

.nav a:hover:after, 
.nav a.active:after {
  transform: scaleX(1);
}

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

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 22px;
}

/* 서브 네비게이션 (Sticky 바) */
.subnav {
  position: sticky;
  top: 78px;
  z-index: 20;
  background: rgba(3, 10, 26, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.subnav .container {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 13px 0;
}

.subnav a {
  white-space: nowrap;
  color: #b9c8de;
  font-weight: 700;
  font-size: 14px;
}

.subnav a:hover {
  color: #fff;
}

/* 하단 글로벌 푸터 구역 */
.footer {
  background: #020713;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 54px 0 34px;
  color: #aebcd0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 34px;
}

.footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.footer p, 
.footer-address {
  line-height: 1.5 !important;
  margin: 0;
  color: #a0a7b5;
}

.footer a {
  color: #b9c8de;
}

.footer a:hover {
  color: #fff;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-logo img {
  width: 112px;
}

.footer .copy {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
  color: #8190a6;
}
