/* 기본 */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #F6F8FB;
  color: #111;
  line-height: 1.6;
}

a {
  color: #0F2147;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #00C2D1;
}

/* 헤더 */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

/* 네비게이션 (Desktop) */
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav a {
  color: #334155;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
}

.nav a:hover,
.nav a.active {
  background: rgba(15, 33, 71, 0.05);
  color: #0F2147;
}

/* 언어 버튼 */
.lang {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 20px;
}

.lang button {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #64748B;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.lang button.active {
  background: #0F2147;
  color: #fff;
  border-color: #0F2147;
}

/* 모바일 메뉴 버튼 (기본 숨김) */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background: #0F2147;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 100px;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transform: scale(1.1);
  /* Parallax 여유분 */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.3) 0%, rgba(246, 248, 251, 0.8) 100%);
  z-index: 0;
}

/* Hero Title Box */
.hero-title {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 60px;
}

.hero-box {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  max-width: 580px;
  width: 100%;
}

.hero-box h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0F2147;
  margin: 0 0 16px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-box ul {
  margin: 0;
  padding-left: 20px;
}

.hero-box li {
  margin-bottom: 8px;
  color: #334155;
  font-size: 1.05rem;
}

/* Cards Section */
.hero-bottom-cards {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.k-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.k-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 194, 209, 0.3);
}

.k-card h3 {
  color: #0F2147;
  font-size: 1.25rem;
  margin: 0 0 16px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.k-card h3::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: #00C2D1;
  margin-right: 10px;
  border-radius: 2px;
}

.k-card ul {
  margin: 0;
  padding-left: 20px;
  color: #475569;
}

.k-card li {
  margin-bottom: 6px;
}

/* Footer */
.footer {
  background: #0F2147;
  color: #94A3B8;
  padding: 40px 0;
  margin-top: 60px;
}

.footer .container {
  text-align: center;
  font-size: 0.9rem;
}

.footer strong {
  color: #fff;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header .container {
    height: 60px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Mobile Nav Drawer */
  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid #eee;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .nav.active {
    transform: translateY(0);
  }

  .nav a {
    width: 100%;
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 16px;
  }

  .lang {
    display: none;
  }

  /* 모바일에서 언어 버튼 위치 조정 필요 시 수정 */

  /* Mobile Menu Button Animation */
  .mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* Hero Mobile */
  .hero-wrap {
    padding-top: 40px;
    min-height: auto;
  }

  .hero-title {
    justify-content: center;
    margin-bottom: 40px;
  }

  .hero-box {
    padding: 24px;
    text-align: left;
  }

  .hero-box h1 {
    font-size: 1.75rem;
  }

  /* Cards Mobile */
  .hero-bottom-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .k-card {
    padding: 24px;
  }
}

/* --- Subpage Styles --- */

/* Sub Hero */
.sub-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F2147;
  /* Fallback */
  overflow: hidden;
  margin-bottom: 60px;
}

.sub-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.sub-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.sub-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sub-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.6;
}

/* Page Content Container */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Styling */
.section-wrap {
  margin-bottom: 80px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0F2147;
  margin-bottom: 30px;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: #00C2D1;
  border-radius: 2px;
}

/* Info Grid (Company Overview) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.info-box {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s;
}

.info-box:hover {
  transform: translateY(-4px);
}

.info-label {
  font-size: 0.9rem;
  color: #64748B;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

.info-value {
  font-size: 1.1rem;
  color: #0F2147;
  font-weight: 700;
}

/* Feature Grid (Services/Advantages) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 194, 209, 0.3);
}

.feature-header {
  background: #F8FAFC;
  padding: 20px 24px;
  border-bottom: 1px solid #EEF2F6;
}

.feature-header h3 {
  margin: 0;
  color: #0F2147;
  font-size: 1.2rem;
}

.feature-body {
  padding: 24px;
}

.feature-body p {
  color: #475569;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #00C2D1;
  font-weight: bold;
  font-size: 0.8rem;
  top: 2px;
}

/* Profile Card (CEO) */
.profile-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
}

.profile-header {
  background: linear-gradient(135deg, #0F2147 0%, #1E3A8A 100%);
  padding: 40px;
  text-align: center;
  color: #fff;
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-title {
  opacity: 0.8;
  font-size: 1rem;
}

.profile-body {
  padding: 40px;
}

.profile-section {
  margin-bottom: 24px;
}

.profile-section h4 {
  color: #0F2147;
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.profile-list {
  list-style: none;
  padding: 0;
}

.profile-list li {
  margin-bottom: 8px;
  color: #475569;
  padding-left: 16px;
  position: relative;
}

.profile-list li::before {
  content: '•';
  color: #00C2D1;
  position: absolute;
  left: 0;
  font-weight: bold;
}

@media (max-width: 768px) {
  .sub-hero {
    height: 240px;
  }

  .sub-hero h1 {
    font-size: 1.8rem;
  }

  .page-content {
    padding: 0 16px;
  }

  .profile-body {
    padding: 24px;
  }
}