:root {
  color-scheme: light;
  --ink: #13202d;
  --muted: #5d6b78;
  --line: rgba(25, 45, 61, 0.12);
  --paper: #ffffff;
  --mist: #f6fbf7;
  --blue: #0877d8;
  --teal: #10a6a0;
  --green: #28b867;
  --amber: #f4a51c;
  --coral: #f06d53;
  --red: #ed3835;
  --shadow: 0 22px 70px rgba(29, 61, 75, 0.16);
  --soft-shadow: 0 12px 34px rgba(35, 56, 70, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background: var(--mist);
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

/* 헤더 & 네비게이션 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(248, 251, 247, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 145, 132, 0.24);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #435361;
  font-size: 14px;
  font-weight: 700;
}

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

/* 다국어 전환 토글 */
.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.76);
}

.lang-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-width: 42px;
}

.lang-toggle button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
}

.language-picker {
  position: relative;
  min-width: 108px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
}

.language-picker select {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  padding: 0 32px 0 14px;
  color: var(--ink);
  background: transparent;
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.language-picker select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.language-picker svg {
  position: absolute;
  right: 10px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* 공통 CTA 버튼 */
.header-cta,
.primary-cta,
.secondary-cta {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 850;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.header-cta,
.primary-cta {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(19, 32, 45, 0.18);
}

.header-cta:hover,
.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(19, 32, 45, 0.26);
}

.secondary-cta {
  border: 1px solid rgba(19, 32, 45, 0.16);
  background: rgba(255, 255, 255, 0.76);
}

.secondary-cta:hover {
  background: #fff;
  border-color: rgba(19, 32, 45, 0.28);
  transform: translateY(-1px);
}

/* 푸터 영역 */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.62);
  background: #142333;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  font-weight: 650;
}

/* i18n 애니메이션 */
[data-i18n], [data-i18n-html] {
  transition: opacity 0.12s ease;
}

.is-switching [data-i18n], .is-switching [data-i18n-html] {
  opacity: 0;
}
