:root {
  --bg: #0b0c10;
  --fg: #0f172a;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --text-inv: #ffffff;
  --brand: #6366f1;
  --brand-2: #7c3aed;
  --surface: #0b0c10;
  --ring: rgba(99, 102, 241, 0.25);
  --focus-ring: 0 0 0 4px rgba(99, 102, 241, 0.45);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto,
    'Helvetica Neue', 'Segoe UI', 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: linear-gradient(120deg, #0b1220 0%, #0f172a 40%, #111827 100%);
  line-height: 1.6;
}

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

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

button,
a {
  min-height: 44px;
  min-width: 44px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(15, 23, 42, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top, 0px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

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

.nav-actions .nav-toggle {
  margin-left: 4px;
}

.primary-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-dropdown {
  position: relative;
  z-index: 25;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.language-button:hover {
  filter: brightness(1.12);
}

.language-button:active {
  transform: translateY(1px);
}

.language-code {
  font-size: 0.95rem;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  list-style: none;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.language-menu li {
  list-style: none;
}

.language-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.language-option:hover {
  background: rgba(99, 102, 241, 0.18);
}

.language-option[aria-checked='true'] {
  background: rgba(99, 102, 241, 0.24);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.45);
}

.language-option .language-flag {
  font-size: 1.1rem;
}

.language-option .language-name {
  font-size: 0.95rem;
}

.language-dropdown[data-open='true'] .language-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.language-dropdown[data-open='true'] .language-button {
  border-color: rgba(99, 102, 241, 0.6);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

/* .nav-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
} */

.nav-toggle:hover {
  filter: brightness(1.15);
}

.nav-toggle:active {
  transform: translateY(1px);
}

.nav-toggle-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-icon::before {
  transform: translateY(-7px);
}

.nav-toggle-icon::after {
  transform: translateY(7px);
}

.nav-toggle.is-open .nav-toggle-icon {
  background: transparent;
}

.nav-toggle.is-open .nav-toggle-icon::before {
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-icon::after {
  transform: rotate(-45deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff !important;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav a,
.nav a.btn,
.nav {
  color: #fff !important;
}

.nav a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 12px 18px;  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);

  .nav-menu a[ia-current='page'] {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.45);
}

}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--text-inv);
  font-weight: 700;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease;
}

.btn-primary,
.btn-ghost,
.nav a.btn,
.nav-toggle {
  min-height: 44px;
  min-width: 44px;
}

.btn-primary:focus-visible {
  box-shadow: var(--shadow), var(--focus-ring);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: #e5e7eb;
}

.btn-ghost:focus-visible {
  box-shadow: var(--focus-ring);
}

.hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(800px 400px at 50% -50%, rgba(99, 102, 241, 0.35), transparent 60%),
    radial-gradient(600px 300px at 80% 10%, rgba(124, 58, 237, 0.25), transparent 60%);
}

.hero .card,
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.15);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

h1 {
  margin: 14px 0 6px;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  color: #fff;
}

.sub {
  color: #cbd5e1;
  font-size: clamp(16px, 2.4vw, 18px);
  margin: 10px 0 22px;
}

.row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.kpis {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.kpis span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

@media (max-width: 879px) {
  .nav {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(280px, calc(100vw - 40px));
    padding: 18px;
    background: rgba(11, 12, 16, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    overflow-y: auto;
    max-height: calc(100dvh - 120px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .nav-menu[data-open='true'] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu .btn,
  .nav-menu .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .nav-actions {
    gap: 8px;
  }

  .language-button {
    padding: 10px 12px;
  }

  .language-menu {
    right: -4px;
  }
}

section {
  padding: 56px 0;
}

.panel {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 880px) {
  .grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

h2 {
  color: #e2e8f0;
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.muted {
  color: var(--muted);
}

footer {
  padding: 32px 0;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li {
  margin: 6px 0;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.anchor {
  scroll-margin-top: 84px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-badge {
  width: 120px;
  height: 120px;
  flex: 0 0 auto;
  border-radius: 50%;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.hero-copy {
  min-width: 260px;
  flex: 1 1 420px;
}

@media (min-width: 880px) {
  .nav-menu {
    position: static;
    padding: 0;
    background: transparent;
    flex-direction: row;
    gap: 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    height: auto;
    overflow: visible;
  }

  .nav-menu .btn,
  .nav-menu .btn-primary {
    width: auto;
  }

  .hero-card {
    gap: 32px;
  }

  .hero-badge {
    width: 132px;
    height: 132px;
  }
}
/* 버튼 호버 시 살짝 밝아지는 효과 */
.btn:hover, .btn-primary:hover, .btn-ghost:hover {
    filter: brightness(1.15);
    transform: translateY(-2px); /* 살짝 떠오르는 느낌 */
    transition: all .2s ease; /* 부드러운 전환 효과 */
}

/* 패널(카드) 호버 시 테두리 색상 강조 */
.panel:hover {
    border-color: rgba(99, 102, 241, .4);
    transition: border-color .2s ease;
}

#scrollTopBtn {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));

  /* 기본 상태 (숨김) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;

  /* 스타일 */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); /* 그라데이션으로 변경 */
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

/* JavaScript가 추가할 클래스 (보임) */
#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  filter: brightness(1.1);
}
