:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --border-soft: #e2e6f0;
  --text-main: #111827;
  --text-sub: #6b7280;
  --accent: #e11f2a;
  --accent-soft: #fde4e4;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.1);
}

/* ------------------------------
   기본 리셋 & 타이포
-------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}

/* ------------------------------
   레이아웃 공통
-------------------------------- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------
   헤더 / 네비게이션
-------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 로고 */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 28px;
  width: auto;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text-main {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.5px;
  line-height: 1.05;
}

.logo-text-highlight {
  color: var(--accent);
}
.logo-text-sub {
  font-size: 12px;
  color: var(--text-sub);
}

/* PC 메뉴 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-sub);
}

.nav-links a:hover {
  color: var(--text-main);
}

/* PC CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 햄버거 버튼 */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* ------------------------------
   모바일 메뉴
-------------------------------- */
.mobile-menu-overlay {
  position: fixed;
  left: 0;
  top: 56px;
  width: 100%;
  height: calc(100vh - 56px);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 999;
}

.mobile-menu-overlay.is-open {
  display: block;
}

.mobile-menu-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-links a {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.mobile-menu-cta {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  justify-content: center;
}

/* ------------------------------
   버튼 스타일
-------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #c31823;
  color: #fff;
  border: 1px solid #b71721;
  box-shadow: 0 10px 30px rgba(195, 24, 35, 0.3);
}

.btn-primary:hover {
  background: #a70f1a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: var(--bg-soft);
}

/* ------------------------------
   히어로 섹션
-------------------------------- */
.hero {
  padding: 40px 0 60px;
  background: radial-gradient(
    circle at top left,
    #e0f2fe 0,
    #eef2ff 40%,
    #ffffff 70%
  );
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.hero-content {
  max-width: 520px;
}

.hero-title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0 0 16px;
}

.hero-title span {
  color: var(--accent);
}

.hero-desc {
  font-size: 15px;
  color: var(--text-sub);
  margin: 0 0 18px;
  max-width: 470px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
  margin: 12px 0 16px;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-soft);
}

.hero-buttons a.btn {
  width: 100%;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
}

/* ------------------------------
   히어로 갤러리 (슬라이더)
-------------------------------- */
.hero-gallery-wrapper {
  background: transparent; /* 흰색 박스 없애기 */
  border-radius: 24px;
  padding: 0;
  box-shadow: none;
  border: none;
  max-width: 100%;
  margin-left: 0;
}

.hero-gallery {
  position: relative;
}

.hero-gallery-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 8px;

  aspect-ratio: 16 / 9;
  max-height: 480px;

  /* 뷰포트 크기 확인용 */
  /* background: rgba(255, 0, 0, 0.2); */
  /* outline: 2px dashed red; */
}

/* 슬라이드 */
.hero-slide {
  display: none;
  margin: 0;
}
.hero-slide.is-active {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 캡션 */
.hero-gallery-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.25)
  );
  color: #e5e7eb;
  font-size: 11px;
}

.hero-gallery-caption-title {
  font-weight: 600;
  font-size: 12px;
  color: #f9fafb;
}

.hero-gallery-caption-text {
  opacity: 0.9;
  margin-top: 2px;
}

/* 네비 버튼 */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  /* 클릭영역 넓게, 배경 투명 */
  width: 44px; /* 26px */
  height: 44px; /* 26px */
  padding: 0;
  border: none;
  /* border-radius: 999px;  */
  background: transparent; /* rgba(15, 23, 42, 0.7) */
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  /* 화살표 스타일 */
  color: #fff; /* #fff */
  font-size: 28px; /* 28px */
  font-weight: 700;
  line-height: 1;
}

.hero-nav-prev {
  left: 4px; /* 8px */
}
.hero-nav-next {
  right: 4px; /* 8px */
}

.hero-nav:hover {
  color: #fff;
  /* background: rgba(15, 23, 42, 0.9); */
}

/* 인디케이터 */
.hero-indicator {
  margin-top: 10px;
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.hero-indicator-current {
  font-weight: 600;
}
.hero-indicator-total {
  opacity: 0.7;
}

/* ------------------------------
   섹션 공통
-------------------------------- */
.section {
  padding: 24px 0 60px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; /* p 텍스트도 자연스럽게 중앙 */
  gap: 12px;
  margin-bottom: 22px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
}
.section-sub {
  font-size: 13px;
  color: var(--text-sub);
}
.section-actions {
  font-size: 12px;
}

/* ------------------------------
   제품 그리드
-------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px; /* 카드 간격 넉넉하게 */
  max-width: 900px; /* 그리드를 너무 넓게 퍼지지 않게 중앙 집중 */
  margin: 0 auto; /* 섹션 가운데 정렬 */
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: 0.15s ease;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.8);
}

.product-card-thumb {
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  min-height: 260px; /* 기존 120px → 240px 로 두 배 */
}

.product-card-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.product-card-name {
  font-size: 16px;
  font-weight: 600;
}

.product-card-tagline {
  font-size: 13px;
  color: var(--text-sub);
}

/* 카드 메타 전체 영역 */
.product-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 2px 4px;
}

/* 제품명 */
.product-card-name {
  font-size: 16px; /* 기존보다 조금 크게 */
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

/* 한 줄 설명 */
.product-card-tagline {
  font-size: 13px; /* 기존 11 → 13 */
  color: var(--text-sub);
  line-height: 1.5;
}

/* ------------------------------
   푸터
-------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: #f9fafb;
  margin-top: auto;
  padding: 32px 0 28px; /* 약간 더 여백 */
  font-size: 14px; /* 전체 기본값 +1 증가 */
  color: var(--text-sub);
}

/* 저작권 줄 */

.footer-copy {
  margin: 0 0 18px;
  font-size: 13px; /* 기존 12 → 13 */
  color: var(--text-main);
}

/* 주소 블록 래퍼 */

.footer-flex-group {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 44px;
  align-items: flex-start;
  justify-content: space-between;
}

/* 개별 블록 (본사/인도사무소) */

.footer-block {
  flex: 1 1 260px;
  max-width: 420px;
}

/* 블록 타이틀 */

.footer-title {
  margin: 0 0 10px;
  font-size: 15px; /* 기존 13 → 15 */
  font-weight: 600;
  color: var(--text-main);
}

/* 블록 안 일반 텍스트 */

.footer-block p {
  margin: 0 0 6px;
  line-height: 1.55;
  font-size: 14px; /* 기존 12 → 14 */
  color: var(--text-sub);
}

/* 마지막 줄 아래 여백 제거 */

.footer-block p:last-child {
  margin-bottom: 0;
}

/* 마지막 줄 간격 조금 더 띄우기 */
.footer-block p:last-child {
  margin-bottom: 0;
}

/* ------------------------------
   반응형
-------------------------------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    border-radius: 24px;
  }
  .hero {
    padding-top: 28px;
  }

  .hero-gallery-viewport {
    min-height: 220px;
  }
  .hero-gallery-wrapper {
    max-width: 100%;
    margin-top: 16px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(26px, 7vw, 32px);
  }
  .container {
    padding: 0 14px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* =========================
   404 ERROR PAGE
========================= */

.error-section {
  padding: 80px 0 100px;
  background: radial-gradient(
    circle at top left,
    #fee2e2 0,
    #f9fafb 40%,
    #ffffff 80%
  );
}

.error-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 32px 32px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  text-align: center;
}

.error-code {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.error-message-ko,
.error-message-en {
  margin: 4px 0;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

.error-message-en {
  font-size: 13px;
  opacity: 0.9;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 12px;
}

.error-btn-main {
  min-width: 170px;
}

.error-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* 모바일에서 여백 조정 */
@media (max-width: 720px) {
  .error-section {
    padding: 60px 0 80px;
  }

  .error-card {
    padding: 32px 20px 24px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-title {
    font-size: 20px;
  }
}
