/* =============== 기본 =============== */
:root {
  --blue-bg: #0d111c;
  --deep-bg: #0b0f19;
  --txt-light: #ffffff;
  --txt-sub: #9aa0ae;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 18px;
}
body {
  font-family: "Inter", "Pretendard", sans-serif;
  background: var(--deep-bg);
  color: var(--txt-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
.no-scroll {
  overflow: hidden;
}

/* 공통 컨테이너 (좌우 72px 기준선) */
.inner {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 72px;
}

/* =============== HERO =============== */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.slider,
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide {
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s;
}
.slide.active {
  opacity: 1;
}

/* header */

/* ===== Header Actions ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* .header-actions.flex-column {
  display: flex;
} */

/* ===== Language Switcher ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  border-radius: 9999px; /* pill */
  padding: 0.1rem;
}

.lang-btn {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.4;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.lang-btn + .lang-btn {
  margin-left: 0.2rem;
}

/* .lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
} */

.lang-btn.active {
  opacity: 1;
}

/* (선택) 모바일용 언어 리스트 */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  /* 만약 모바일 메뉴에 추가하려면 여기에 스타일 작성 */
}

/* ─ GNB ─ */
.gnb {
  position: relative;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 48px 0 72px;
}
.logo img {
  height: 34px;
}
.nav-desktop {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.nav-desktop ul {
  display: flex;
  gap: 80px;
  list-style: none;
  justify-content: flex-end;
}
.nav-desktop a {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}
.cta {
  display: inline-block;
  padding: 10px 28px;
  font-size: 18px;
  line-height: 1;
  color: #fff; /* 흰 글자 */
  background: transparent; /* 배경 투명 */
  border: 2px solid #fff; /* 흰색 2px 선 */
  border-radius: 6px; /* 스크린샷의 둥근 모서리 */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.cta:hover {
  background: #fff; /* 마우스오버 시 흰색 채우기 */
  color: #0d111c; /* 글자 어두운 남색 */
}

/* “문의하기” 제목을 클릭표시 */
.ask-title {
  cursor: pointer;
}
/* .desktop-only {
  display: inline-block;
} */
.mobile-only {
  display: none;
}

.mobile-only .mobile-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-only .mobile-actions .cta {
  /* 버튼 너비 꽉 채우기 등 필요시 조정 */
  width: 100%;
}
.mobile-only .mobile-switcher {
  display: flex;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.2rem;
}
.mobile-only .mobile-switcher .lang-btn {
  flex: 1;
  text-align: center;
  padding: 0.4rem 0;
  font-weight: 600;
}
.mobile-only .mobile-switcher .lang-btn + .lang-btn {
  margin-left: 0.2rem;
}
.mobile-only .mobile-switcher .lang-btn.active {
  /* background: #fff; */
  color: #333;
}

/* 햄버거 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 26px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 100;
}
.hamburger span {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.5s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 모바일 슬라이드 메뉴 */
#gnb-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 60%;
  background: rgba(13, 17, 28, 0.96);
  padding: 120px 48px;
  display: flex;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 99;
}
#gnb-menu.open {
  transform: translateX(0);
}
#gnb-menu ul {
  flex-direction: column;
  gap: 40px;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}
#gnb-menu a {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

#gnb-menu .lang-btn {
  color: white;
}

/* #gnb-menu a:visited {
  color: #fff;
} */
#gnb-menu a:hover {
  text-decoration: underline;
}

/* 오버레이 */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
  z-index: 98;
}
#menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* 히어로 카피 */
.hero-copy {
  position: absolute;
  top: 50%;
  left: 72px;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 600px;
}
.hero-copy h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}
.hero-copy p {
  margin-top: 22px;
  font-size: 20px;
  color: var(--txt-sub);
}

/* =============== SECTION 공통 =============== */
.dark {
  background: var(--blue-bg);
}
.title {
  font-size: 36px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 36px;
}
.desc {
  font-size: 19px;
  color: var(--txt-sub);
  text-align: left;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* =============== PRODUCTS =============== */
#products {
  padding: 100px 0;
}

#products .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.card strong {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
}

/* =============== VIDEO =============== */
#video {
  padding: 100px 0;
}

#video .videobox {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: -150px; /* 흰색 영역으로 120px 내려옴 */
}
#video video {
  flex: 1 1 280px;
  border-radius: 10px;
  background: #000;
}

.video-frame {
  flex: 1 1 420px; /* 기본 너비 420px, 남으면 더 넓어질 수 있음 */
  aspect-ratio: 16/9; /* 높이 자동 = 너비×9/16 */
  background: #000; /* 레터박스 색상 */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 원본 전체를 보여 주고 여분 공간은 레터박스 */
}

#partners {
  padding-top: 150px;
  padding-bottom: 120px;
} /* 겹친만큼 위 여백 보충 */

/* =============== PARTNERS =============== */
#partners {
  background: #fff;
  color: #000;
}
#partners .title {
  color: #000;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
  align-items: center;
  justify-items: center;
}
.logo-grid img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* =============== INQUIRY =============== */
/* 문의하기 모달 공통 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.open {
  display: flex;
}
.modal-content {
  position: relative;
  background: #fff;
  color: #000;
  padding: 32px;
  border-radius: 8px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-family: inherit;
}
.modal-content h3 {
  margin-bottom: 8px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}
#inquiry-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: #333;
}
#inquiry-form input,
#inquiry-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.submit-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: #6b7dff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}
.submit-btn:hover {
  opacity: 0.9;
}

#inquiry .inner {
  padding-left: 72px;
  padding-right: 72px;
  padding-top: 50px;
}
.ask-title {
  color: #6b7dff; /* 파란색 */
  font-size: 36px;
  font-weight: 700;
  display: inline-flex;
  gap: 8px; /* 화살 여백 */
}
.ask-title::after {
  content: "\203A"; /* › */
  font-size: 1.1em;
}

/* ─── Footer 레이아웃 ─── */
.footer-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 28px;
  justify-content: space-between;
}
.corp-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  column-gap: 28px;
  font-size: 14px;
  color: var(--txt-sub);
  max-width: 65%; /* 로고 공간 확보 */
}
.corp-info a {
  color: var(--txt-sub);
  text-decoration: none;
  cursor: default;
}
.footer-logo img {
  height: 36px;
}

.footer-divider {
  border: none;
  border-top: 1px solid #4b4f5a;
  margin: 0 72px 16px; /* 좌우 72px 기준선과 동일 */
}
footer .copyright {
  font-size: 13px;
  color: #8b90a0;
  max-width: 1700px;
  margin: 0 auto;
  padding: 6px 72px;
}

/* =============== Responsive =============== */
@media (max-width: 980px) {
  .inner,
  footer .inner {
    padding: 0 24px;
  }
  #inquiry .inner {
    padding: 24px 24px 0 24px;
  }

  .gnb {
    padding: 24px 24px 0;
    gap: 0;
  }
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: flex;
  }
  .logo img {
    height: 28px;
  }
  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .hero-copy {
    left: 24px;
    right: 24px;
    text-align: left;
  }
  .hero-copy h2 {
    font-size: 32px;
  }
  .hero-copy p {
    font-size: 16px;
  }
  #video .videobox {
    margin-bottom: -80px;
  }

  .video-frame {
    max-width: 100%;
    flex: 1 1 100%;
  }
  #video .videobox {
    gap: 24px;
  }

  #partners {
    padding-top: 120px;
  }

  .title {
    font-size: 30px;
    margin-bottom: 30px;
  }
  .desc {
    font-size: 17px;
    margin-bottom: 30px;
  }
  .ask-title {
    font-size: 30px;
  }
  .footer-logo {
    display: none;
  }
  .footer-divider {
    display: none;
  }
  footer .copyright {
    padding-left: 24px; /* 왼쪽 기준선(24px) */
    text-align: left;
    padding-top: 10px;
  }

  .corp-info {
    max-width: fit-content;
  }
}

@media (min-width: 769px) and (max-width: 1000px) {
  /* 1)  헤더 좌우 여백 축소 */
  .gnb {
    padding: 24px 32px 0; /* 48→32 , 72→32 */
    gap: 20px; /* 로고-메뉴-CTA 간격도 축소 */
  }

  /* 2) 메뉴 항목 간격 축소 */
  .nav-desktop ul {
    gap: 48px;
  } /* 80→48 */

  /* 3) CTA 버튼 폭·글자 크기 살짝 줄이기 */
  .cta {
    padding: 8px 20px;
    font-size: 18px;
  }

  /* 4) 로고 약간 작게 */
  .logo img {
    height: 30px;
  } /* 34→30 */
}
