/* =================================================================
   COMMON — Design Tokens · Typography · Header · Footer · Utilities
   ================================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700;900&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.css');

/* ---------- Design Tokens ---------- */
:root {
  /* Palette */
  --navy-900: #071A30;
  --navy-800: #0B2545;
  --navy-700: #13315C;
  --steel: #1565C0;
  --steel-light: #3B82F6;
  --cyan: #00B4D8;
  --gold: #C8A464;
  --gold-soft: #E6D5B3;
  --ivory: #F4EBD0;

  --ink: #111827;
  --gray-50: #F7F9FC;
  --gray-100: #EEF2F7;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-700: #334155;
  --border: #E2E8F0;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.05);
  --shadow-md: 0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, 0.18);

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container: 1280px;
  --header-h: 74px;
  --util-h: 38px;
  --total-top: calc(var(--header-h) + var(--util-h));
}

/* ---------- Body / Typography ---------- */
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 15px;
  font-weight: 400;
  font-feature-settings: "ss01" on, "cv11" on;
}
.serif { font-family: "Noto Serif KR", "Source Serif Pro", Georgia, serif; }
.mono  { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace; }

/* ---------- Container ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ---------- Utility Top Bar ---------- */
.util {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}
.util-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--util-h);
}
.util-left { display: flex; gap: 24px; }
.util-left .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
  vertical-align: middle;
}
.util-left strong { color: var(--gold); font-weight: 500; }
.util-right { display: flex; gap: 8px; align-items: center; }
.lang-btn {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  letter-spacing: 0.15em;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}
.lang-btn.active { background: var(--gold); color: var(--navy-800); border-color: var(--gold); }
.lang-btn:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ---------- Header ---------- */
header.site {
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow 0.3s;
}
header.site.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.nav-group {
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 4px;
}
.brand img { height: 40px; width: auto; display: block; }
.brand-text {
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy-800);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 9px;
  color: var(--gray-500);
  letter-spacing: 0.3em;
  margin-top: 4px;
}
nav.main {
  display: flex;
  gap: 36px;
}
nav.main a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
  white-space: nowrap;
}
nav.main a .mn-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--gold);
  margin-right: 4px;
  letter-spacing: 0.08em;
}
nav.main a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--steel));
  transition: width 0.35s var(--ease);
}
nav.main a:hover { color: var(--navy-800); }
nav.main a:hover::after { width: 100%; }
nav.main a.current { color: var(--navy-800); font-weight: 700; }
nav.main a.current::after { width: 100%; }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--navy-800);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--steel); transform: translateY(-1px); color: #fff; }
.header-cta::before { content: '☏'; font-size: 14px; color: var(--gold); }

/* Mobile menu button */
.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: transparent;
  cursor: pointer;
}
.mobile-toggle span {
  width: 22px; height: 2px;
  background: var(--navy-800);
  transition: all 0.25s;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-800);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  color: var(--navy-800);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
  color: #fff;
}
.btn-solid {
  background: var(--navy-800);
  color: #fff;
}
.btn-solid:hover {
  background: var(--steel);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border: 1px solid var(--navy-800);
}
.btn-outline:hover {
  background: var(--navy-800);
  color: #fff;
}

/* ---------- Section Heads ---------- */
.sec-head { margin-bottom: 72px; }
.sec-head.center { text-align: center; }
.sec-num {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--steel);
  margin-bottom: 20px;
  font-weight: 500;
}
.sec-num::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}
.sec-head.center .sec-num::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}
.sec-title {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.sec-title em {
  font-style: normal;
  color: var(--steel);
}
.sec-sub {
  color: var(--gray-500);
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.8;
  max-width: 680px;
}
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }

/* ---------- Page Hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/assets/images/banner/main-visual-01.jpg') center/cover;
  filter: brightness(0.55);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,26,48,0.55) 0%, rgba(11,37,69,0.8) 100%);
}
.page-hero-inner {
  position: relative; z-index: 2;
  max-width: 900px;
  padding: 0 32px;
}
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 24px;
}
.page-hero .eyebrow::before,
.page-hero .eyebrow::after {
  content: '';
  width: 40px; height: 1px;
  background: var(--gold);
}
.page-hero h1 {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p {
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}

/* Breadcrumb under page hero */
.breadcrumb {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}
.breadcrumb-inner {
  display: flex; align-items: center; gap: 12px;
  height: 48px;
}
.breadcrumb a { color: var(--gray-500); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--navy-800); }
.breadcrumb .sep { color: var(--gray-300); }
.breadcrumb .current { color: var(--navy-800); font-weight: 500; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 36px;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
footer.site::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand-text {
  color: #fff;
  font-size: 24px;
}
.footer-brand .brand-text small {
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-top: 6px;
}
.footer-brand p {
  margin-top: 18px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
.footer-col h5 {
  font-family: "Noto Serif KR", serif;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 0.05em;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200,164,100,0.3);
  display: inline-block;
  padding-right: 32px;
}
.footer-col ul { list-style: none; }
.footer-col li {
  padding: 6px 0;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.footer-col li strong {
  color: var(--gold);
  font-weight: 500;
  display: inline-block;
  min-width: 60px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  margin-right: 4px;
}
.footer-col a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
}
.footer-bottom strong { color: var(--gold); font-weight: 500; }

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ---------- Mobile Menu Drawer ---------- */
.mobile-drawer {
  background: #fff;
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  box-shadow: var(--shadow-md);
}
.mobile-drawer.open { max-height: 480px; }
.mobile-drawer ul {
  padding: 8px 20px 20px;
}
.mobile-drawer li a {
  display: block;
  padding: 14px 8px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 500;
}
.mobile-drawer li a:hover { color: var(--navy-800); }
.mobile-drawer li a .mn-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--gold);
  margin-right: 10px;
  letter-spacing: 0.08em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  nav.main { display: none; }
  .mobile-toggle { display: flex; }
  .header-cta span { display: none; }
  .header-inner { gap: 12px; }
  .nav-group { gap: 12px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .util-left span:nth-child(3) { display: none; }
  .util-left { gap: 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .page-hero { height: 340px; }
}
