/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --deep-blue: #1a365d;
  --blue-dark: #0f2440;
  --blue-light: #2a5298;
  --gold: #c9a84c;
  --gold-light: #dfc678;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

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

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

.logo-icon {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  background: var(--deep-blue);
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-blue);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--deep-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep-blue);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--blue-light) 50%, var(--deep-blue) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(201, 168, 76, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(42, 82, 152, 0.3) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gold);
  color: var(--blue-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--deep-blue);
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-desc {
  text-align: center;
  color: var(--gray-600);
  font-size: 17px;
  margin-bottom: 60px;
}

/* ===== About ===== */
.about-content {
  margin-top: 48px;
}

.about-text {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.about-lead {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--deep-blue);
}

.about-text p {
  color: var(--gray-600);
  font-size: 16px;
  margin-bottom: 12px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--gold);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--deep-blue);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== Marketplace ===== */
.marketplace-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.marketplace-lead {
  font-size: 24px;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 16px;
}

.marketplace-text p {
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.7;
}

.marketplace-list {
  margin-bottom: 32px;
}

.marketplace-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--gray-800);
  font-weight: 500;
}

.marketplace-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.marketplace-visual {
  display: flex;
  justify-content: center;
}

.marketplace-card {
  background: linear-gradient(135deg, var(--deep-blue), var(--blue-light));
  color: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  text-align: center;
  width: 300px;
  box-shadow: var(--shadow-lg);
}

.marketplace-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--gold);
}

.marketplace-icon svg {
  width: 100%;
  height: 100%;
}

.marketplace-card span {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.marketplace-card p {
  font-size: 14px;
  opacity: 0.8;
}

/* ===== Contact ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  color: var(--deep-blue);
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

.contact-item a {
  color: var(--blue-light);
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-map iframe {
  display: block;
}

/* ===== Footer ===== */
.footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo .logo-icon {
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 14px;
  padding: 4px 10px;
}

.footer-logo .logo-text {
  color: var(--white);
  font-size: 15px;
}

.footer-desc {
  font-size: 14px;
  opacity: 0.6;
}

.footer-legal h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--gold);
}

.footer-legal ul li {
  font-size: 13px;
  line-height: 2;
  opacity: 0.7;
}

.footer-legal ul li strong {
  opacity: 1;
  font-weight: 500;
}

.footer-legal a {
  color: var(--gold-light);
  transition: opacity var(--transition);
}

.footer-legal a:hover {
  opacity: 0.8;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  opacity: 0.5;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 44px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px 0;
    font-size: 16px;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 28px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 300px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 15px;
  }

  .section-title {
    font-size: 24px;
  }

  .marketplace-card {
    width: 100%;
  }
}
