:root {
  --navy: #10205A;
  --navy-deep: #1236C2;
  --navy-mid: #1A47D9;
  --ink: #10205A;
  --ink-2: #4A5878;
  --blue-50: #EEF3FF;
  --blue-100: #D9E5FF;
  --blue-600: #1A47D9;
  --blue: #1557E0;
  --blue-dark: #0F3FB8;
  --sky: #0091D9;
  --sky-light: #9DD6E8;
  --cyan: #2FB2F6;
  --pale: #E6EEFF;
  --g900: #141A26;
  --g700: #3F4756;
  --g500: #7B8496;
  --g300: #C9CFDA;
  --g200: #E6E9EF;
  --g100: #F3F5F9;
  --white: #FFFFFF;
  --hero-blue-grad: linear-gradient(135deg, #2366FF 0%, #0E3FE6 45%, #0821A8 100%);
  --mv-grad: var(--hero-blue-grad);
  --mv-1: #2366FF;
  --mv-2: #0E3FE6;
  --mv-3: #0821A8;
  --card-shadow: 0 16px 40px rgba(18, 54, 194, .16);
  --glass: rgba(255, 255, 255, .14);
  --glass-line: rgba(255, 255, 255, .3);

  --font: 'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --container: 1320px;
  --gutter: 40px;
  --header-h: 90px;
  --radius-lg: 36px;
  --radius-md: 28px;
  --card-pad: 28px;
  --gap-1: 12px;
  --gap-2: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--g900);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.blind {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background .3s, color .3s, box-shadow .3s;
}
.header__inner {
  display: flex; align-items: center; height: 100%;
  padding: 0 40px;
}
.header__logo a { position: relative; display: block; width: 106px; height: 35px; }
.header__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.header__logo .logo-color { opacity: 0; }

.gnb { flex: 1; display: flex; justify-content: center; align-self: stretch; }
.gnb__list { display: flex; gap: 8px; height: 100%; }
.gnb__item { position: relative; display: flex; align-items: center; }
.gnb__link {
  position: relative; display: block; padding: 10px 36px;
  font-size: 17px; font-weight: 700;
}
.gnb__link::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: currentColor; transition: width .3s var(--ease), left .3s var(--ease);
}
.gnb__item:hover > .gnb__link::after,
.gnb__item:focus-within > .gnb__link::after,
.gnb__link.is-current::after { left: 36px; width: calc(100% - 72px); }
.gnb__link.is-current::after { background: var(--sky); }

.gnb__sub {
  position: absolute; left: 50%; top: calc(100% - 8px);
  min-width: 300px; padding: 12px; border-radius: 24px;
  background: var(--white); color: var(--g900);
  box-shadow: 0 20px 48px rgba(13, 42, 94, .18);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.gnb__item:hover .gnb__sub,
.gnb__item:focus-within .gnb__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb__item.is-closing .gnb__sub { opacity: 0; visibility: hidden; transform: translate(-50%, 8px); }
.gnb__sub a {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 14px;
  transition: background .2s;
}
.gnb__sub a:hover, .gnb__sub a:focus-visible { background: var(--g100); }
.gnb__sub strong { font-size: 16px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.gnb__sub span { font-size: 13px; color: var(--g500); }

.header__util { display: flex; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; transition: background .2s, color .2s;
}
.chip--ghost { background: rgba(255, 255, 255, .2); }
.chip--ghost:hover { background: rgba(255, 255, 255, .32); }
.chip--solid { background: var(--white); color: var(--blue); }
.lang { display: flex; gap: 12px; margin: 0 18px 0 16px; font-size: 13px; font-weight: 700; }
.lang a { opacity: .5; }
.lang a.is-active { opacity: 1; }

.btn-menu { position: relative; display: none; width: 28px; height: 28px; }
.btn-menu span {
  position: absolute; left: 2px; width: 24px; height: 2px; border-radius: 1px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.btn-menu span:nth-child(1) { top: 7px; }
.btn-menu span:nth-child(2) { top: 13px; }
.btn-menu span:nth-child(3) { top: 19px; }

.header.is-scrolled { background: var(--white); color: var(--g900); box-shadow: 0 1px 0 var(--g200); }
.header.is-scrolled .logo-white { opacity: 0; }
.header.is-scrolled .logo-color { opacity: 1; }
.header.is-scrolled .chip--ghost { background: var(--g100); }
.header.is-scrolled .chip--solid { background: var(--blue); color: var(--white); }

body.is-menu-open { overflow: hidden; }
body.is-menu-open .header { background: transparent; color: var(--white); box-shadow: none; }
body.is-menu-open .header .logo-white { opacity: 1; }
body.is-menu-open .header .logo-color { opacity: 0; }
body.is-menu-open .header .chip--ghost { background: rgba(255, 255, 255, .2); }
body.is-menu-open .header .chip--solid { background: var(--white); color: var(--blue); }
body.is-menu-open .gnb { opacity: 0; visibility: hidden; }
.gnb { transition: opacity .3s, visibility .3s; }
body.is-menu-open .btn-menu span:nth-child(1) { top: 13px; transform: rotate(45deg); }
body.is-menu-open .btn-menu span:nth-child(2) { opacity: 0; }
body.is-menu-open .btn-menu span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

.allmenu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--mv-grad);
  color: var(--white);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.allmenu.is-open { opacity: 1; visibility: visible; }
.allmenu__inner { display: flex; align-items: center; height: 100%; padding: var(--header-h) 10vw 0; overflow-y: auto; }
.sitemap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; width: 100%; }
.sitemap__item { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .25); }
.sitemap__title {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(28px, 2.8vw, 44px); font-weight: 800; letter-spacing: -.03em;
  transition: opacity .2s, transform .3s var(--ease);
}
.sitemap__title:hover { transform: translateX(6px); }
.sitemap__title em { font-size: 15px; font-weight: 600; opacity: .6; }
.sitemap__sub { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.sitemap__sub a { font-size: 17px; font-weight: 500; opacity: .7; transition: opacity .2s; }
.sitemap__sub a:hover { opacity: 1; }

.toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 200;
  padding: 14px 24px; border-radius: 999px;
  background: var(--g900); color: var(--white); font-size: 15px; font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Common UI */
.dot-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 700; line-height: 1.4;
}

.sec-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--g900);
}
.sec-label--light { color: var(--white); }

.sec-title {
  margin-top: 14px;
  font-size: 52px; font-weight: 700; line-height: 1.34; letter-spacing: -.035em; color: var(--g900);
}
.sec-title--light { color: var(--white); }

.circle-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--g300);
  font-size: 14px; font-weight: 700; color: var(--g900);
  transition: background .2s, color .2s, border-color .2s, transform .3s var(--ease);
}
.circle-btn--line { background: transparent; }
.circle-btn--sm { width: 30px; height: 30px; font-size: 13px; }

.badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px;
  background: var(--g100); font-size: 12px; font-weight: 600; color: var(--g700);
}
.badge--accent { background: var(--pale); color: var(--blue); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Footer */
.footer { background: var(--hero-blue-grad); color: var(--white); border-top: 1px solid rgba(255, 255, 255, .18); }
.footer__inner { padding: 36px 52px 34px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; }
.footer__logo { width: 96px; height: auto; }

.family { position: relative; width: 234px; }
.family__btn {
  display: flex; justify-content: space-between; align-items: center; width: 100%; height: 46px; padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 23px; background: rgba(255, 255, 255, .1);
  font-size: 14px; font-weight: 600;
}
.family__btn span { font-size: 18px; font-weight: 500; transition: transform .3s; }
.family__list {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px);
  padding: 10px; border-radius: 18px; background: var(--white); color: var(--g900);
  box-shadow: 0 16px 40px rgba(8, 28, 66, .25);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease);
}
.family__list a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.family__list a:hover { background: var(--g100); }
.family.is-open .family__list { opacity: 1; visibility: visible; transform: none; }
.family.is-open .family__btn span { transform: rotate(45deg); }

.footer__info { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 44px; font-size: 13px; font-weight: 500; opacity: .8; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.footer__policy { display: flex; gap: 28px; font-size: 13px; font-weight: 500; }
.footer__policy a { opacity: .85; }
.footer__policy a:hover { opacity: 1; text-decoration: underline; }
.btn-top { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.btn-top .circle-btn { background: rgba(255, 255, 255, .15); border: 0; color: var(--white); }
.btn-top:hover .circle-btn { transform: translateY(-3px); }

@media (max-width: 1280px) {
  .gnb__link { padding: 10px 20px; font-size: 16px; }
  .gnb__item:hover > .gnb__link::after,
  .gnb__item:focus-within > .gnb__link::after,
  .gnb__link.is-current::after { left: 20px; width: calc(100% - 40px); }
  .sec-title { font-size: 44px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; --header-h: 72px; }
  .sitemap { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .header__inner { padding: 0 28px; }
  .btn-menu { display: block; }
  .gnb, .header__util .chip--ghost { display: none; }
  .header__util { margin-left: auto; }
  .sec-label { font-size: 22px; }
  .sec-title { font-size: 38px; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --header-h: 64px; --card-pad: 24px; }
  .header__inner { padding: 0 20px; }
  .header__logo a { width: 84px; height: 28px; }
  .lang { margin: 0 10px; }
  .sec-label { font-size: 18px; gap: 9px; }
  .sec-title { font-size: 28px; }
  .sitemap { grid-template-columns: 1fr; gap: 0; }
  .sitemap__item { padding: 18px 0; }
  .sitemap__title { font-size: 26px; }
  .sitemap__sub { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
  .sitemap__sub a { font-size: 15px; }
  .footer__inner { padding: 32px 20px; }
  .footer__top { flex-direction: column; gap: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__policy { flex-wrap: wrap; gap: 8px 18px; }
}
