/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 50px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  height: 40px;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-white {
  display: block;
}

.logo-color {
  display: none;
}

.nav-pc {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-pc a {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
  transition: opacity 0.2s ease;
}

.nav-pc a:hover {
  opacity: 0.8;
}

.nav-external {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  transition: opacity 0.2s ease;
}

.nav-external:hover {
  opacity: 0.8;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 2px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

/* 스크롤 시 헤더 반전 */
.header.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header.scrolled .logo-white {
  display: none;
}

.header.scrolled .logo-color {
  display: block;
}

.header.scrolled .nav-pc a {
  color: #333;
}

.header.scrolled .nav-external {
  color: #666;
}

.header.scrolled .hamburger span {
  background-color: #333;
}

/* ===== Side Menu (Mobile) ===== */
.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-overlay.open {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: #fff;
  z-index: 1200;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

.side-logo img {
  height: 32px;
  width: auto;
}

.side-close {
  font-size: 28px;
  color: #333;
  line-height: 1;
}

.side-nav {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.side-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.side-nav a:last-child {
  border-bottom: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  /* min-height: 100vh; */
  height: 650px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #0a0a1a;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-mobile {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px 80px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-title .highlight {
  color: #00d4aa;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}

.hero-subtitle strong {
  color: #00d4aa;
  font-weight: 500;
}

/* Hero - 비 main 전용 */
.hero-normal {
  height: 400px;
  align-items: center;
}

.hero-normal .hero-content {
  padding: 0;
}

.hero-title-normal {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 0;
}

/* ===== Business Section ===== */
.business-section {
  padding: 80px 0;
  background: #fff;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 50px;
}

.support-section .section {
  margin-bottom: 30px;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.business-item {
  text-align: center;
  padding: 30px 20px;
}

.business-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.business-icon svg {
  width: 100%;
  height: 100%;
}

.business-item h3 {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
}

.business-item p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

/* ===== Future Section ===== */
.future-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.future-bg {
  position: absolute;
  inset: 0;
  clip: rect(0, auto, auto, 0);
}

.future-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: fixed;
  top: 0;
  left: 0;
}

.future-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
  width: 100%;
}

.future-content h2 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  white-space: nowrap;
}

/* ===== Partner Section ===== */
.partner-section {
  padding: 80px 0;
  background: #fff;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 20px; */
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  min-height: 80px;
  transition: box-shadow 0.2s ease;
}

.partner-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.partner-item img {
  /* max-height: 40px; */
  max-width: 100%;
  object-fit: contain;
}

/* ===== Support Section ===== */
.support-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.support-section .section-title {
  font-size: 36px;
}

.support-desc {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 60px;
}

.support-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.support-item {
  text-align: center;
}

.support-icon {
  width: 252px;
  margin: 0 auto 12px;
}

.support-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.support-label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.support-value {
  font-size: 20px;
  font-weight: 600;
  color: #222;
}

/* ===== Footer ===== */
.footer {
  background: #1a1d2e;
  padding: 40px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo img {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer-address,
.footer-contact {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.btn-top {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.btn-top:hover {
  color: #fff;
}

.btn-top svg {
  width: 100%;
  height: 100%;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
  .header {
    padding: 0 16px;
    height: 50px;
  }

  .logo img {
    height: 32px;
  }

  .nav-pc,
  .nav-external {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    height: 250px;
    align-items: flex-end;
  }

  .hero-content {
    padding-bottom: 30px;
  }

  .hero-bg-pc {
    display: none;
  }

  .hero-bg-mobile {
    display: block;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-normal {
    height: 220px;
    align-items: center;
  }

  .hero-title-normal {
    font-size: 36px;
  }

  .business-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .business-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .business-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    gap: 8px 16px;
  }

  .business-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin: 0;
  }

  .business-item h3 {
    font-size: 16px;
    margin-bottom: 0;
    flex: 1;
    align-self: center;
  }

  .business-item p {
    font-size: 13px;
    width: 100%;
  }

  .future-section {
    min-height: auto;
    height: 175px;
  }

  .future-bg img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .future-content h2 {
    font-size: 18px;
    white-space: normal;
  }

  .partner-section {
    padding: 50px 0;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .partner-item {
    /* padding: 16px; */
    min-height: 60px;
  }

  /* .partner-item img {
    max-height: 32px;
  } */

  .support-section {
    padding: 50px 0;
  }

  .support-section .section-title {
    font-size: 24px;
  }

  .support-desc {
    font-size: 15px;
  }

  .support-grid {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .support-value {
    font-size: 18px;
  }

  .footer {
    padding: 30px 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
    position: relative;
  }

  .footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-top {
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .btn-top {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 20px;
  }

  .hero-title-normal {
    font-size: 36px;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
