/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans KR', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: #0b1220;
  color: #e2e8f0;
  line-height: 1.7;
  overflow-x: hidden;
}

/* === HEADER === */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(96, 165, 250, 0.1);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

header.scrolled {
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(24px);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.logo-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

nav a:hover {
  color: #60a5fa;
}

.cta-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.4);
}

/* === FOOTER === */
footer {
  border-top: 1px solid rgba(96, 165, 250, 0.1);
  padding: 2rem;
  text-align: center;
}

.site-footer {
  position: relative;
  z-index: 20;
  isolation: isolate;
  background: #0f172a;
  border-top: 1px solid rgba(96, 165, 250, 0.12);
  padding: 2rem 1.5rem 2.5rem;
  text-align: left;
  color: #e2e8f0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.site-footer .footer-container {
  max-width: 980px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-brand-block {
  max-width: 520px;
}

.footer-brand {
  color: #f8fafc;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-brand-copy {
  margin-top: 0.45rem;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-brand:hover,
.footer-back-to-top:hover {
  color: #93c5fd;
}

.footer-back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  z-index: 1200;
}

.footer-back-to-top svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.footer-business {
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.footer-business strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-business p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.7;
}

.footer-business a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-business a:hover {
  color: #93c5fd;
}

.footer-menu-links {
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.footer-secondary-links {
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #cbd5e1;
}

.footer-social:hover {
  color: #93c5fd;
}

.footer-social svg {
  width: 100%;
  height: 100%;
}

.footer-social-disabled {
  opacity: 0.7;
}

.site-footer .footer-copyright {
  color: #64748b;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem 1.6rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #93c5fd;
}

.footer-copyright {
  color: #475569;
  font-size: 0.875rem;
}

/* === SUB PAGE LAYOUT === */
.page-main {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
}

.page-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(96, 165, 250, 0.1);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(12px);
}

.page-card h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-card .date {
  color: #94a3b8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.page-card hr {
  border: none;
  border-top: 1px solid rgba(96, 165, 250, 0.2);
  margin: 2rem 0;
}

.page-card h2 {
  font-size: 1.5rem;
  color: #60a5fa;
  margin: 2rem 0 1rem;
}

.page-card h3 {
  font-size: 1.1rem;
  color: #a78bfa;
  margin: 1.25rem 0 0.75rem;
}

.page-card p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.page-card ol,
.page-card ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-card li {
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

.page-card b,
.page-card strong {
  color: #60a5fa;
  font-weight: 600;
}

.page-card a {
  color: #60a5fa;
  text-decoration: none;
}

.page-card a:hover {
  text-decoration: underline;
}

.page-card table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.page-card th,
.page-card td {
  padding: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.2);
  text-align: left;
}

.page-card th {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  font-weight: 600;
}

.page-card td {
  color: #cbd5e1;
}

/* === INFO BOX === */
.info-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.15);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-top: 1.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .logo-icon {
    width: 48px;
    height: 48px;
  }

  nav {
    gap: 1rem;
  }

  nav a:not(.cta-button) {
    display: none;
  }

  .page-card {
    padding: 2rem 1.5rem;
  }

  .page-card h1 {
    font-size: 2rem;
  }

  .footer-links {
    gap: 1rem;
  }

  .site-footer {
    padding: 1.8rem 1.2rem 2.2rem;
  }

  .footer-top {
    align-items: flex-start;
    margin-bottom: 1.25rem;
  }

  .footer-back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .footer-brand {
    font-size: 1.08rem;
  }

  .footer-brand-copy {
    font-size: 0.9rem;
  }

  .footer-business strong {
    font-size: 1rem;
  }

  .footer-business p {
    font-size: 0.95rem;
  }

  .footer-links {
    gap: 0.8rem 1.1rem;
  }
}
