/* ---------- Base ---------- */
:root {
  --bg: #0b1018;
  --ink: #ffffff;
  --ink-70: rgba(255, 255, 255, 0.7);
  --ink-60: rgba(255, 255, 255, 0.6);
  --ink-50: rgba(255, 255, 255, 0.5);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --blur: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  --nav-h: 56px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 400 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto,
    Apple SD Gothic Neo, Malgun Gothic, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 25px;
}
.ta-center {
  text-align: center;
}
.section {
  padding: 150px 0;
}
.section--hero {
  padding-top: 140px;
  position: relative;
  overflow: hidden;
}
.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0b1220, #0d1222 40%, #0b1018 100%);
}
.lede {
  color: var(--ink-70);
  max-width: 760px;
  margin: 16px auto 35px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  backdrop-filter: blur(var(--blur));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
}
.nav__brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.nav__links {
  display: flex;
  gap: 8px;
}
.nav__link {
  color: var(--ink-70);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
}
.nav__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

h1 {
  margin: 0 0 12px 0;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h2 {
  margin: 0 0 10px 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
}
h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

h1,
h2,
h3,
.lede,
.panel__title {
  /* 한글/영문 모두 단어 단위로 줄바꿈(영문은 띄어쓰기 기준, 한글은 과도한 분해 방지) */
  word-break: keep-all;
  hyphens: none; /* 영문 자동 하이픈 제거(원치 않을 경우) */
}

.card p {
  word-break: keep-all;
  hyphens: none; /* 영문 자동 하이픈 제거(원치 않을 경우) */
}

.kpi p {
  word-break: break-all; /* KPI 수치가 길 경우 줄바꿈 허용 */
}

@media (min-width: 640px) {
  h1 {
    font-size: 56px;
  }
  h2 {
    font-size: 36px;
  }
}

@supports (text-wrap: balance) {
  h1,
  h2,
  h3,
  .lede,
  .panel__title {
    text-wrap: balance;
  }
  .card p {
    text-wrap: pretty; /* 카드 설명이 길 경우 줄바꿈 허용 */
  }
  .kpi p {
    text-wrap: balance; /* KPI 수치가 길 경우 줄바꿈 허용 */
  }
  .kpiSmall span {
    text-wrap: balance; /* KPI 수치가 길 경우 줄바꿈 허용 */
  }
}

/* 보편적 대안: 과도한 들쭉날쭉을 완화(완전한 balance는 아님) */
@supports not (text-wrap: balance) {
  h1,
  h2,
  h3,
  .lede,
  .panel__title {
    text-wrap: pretty;
  }
}

.chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 640px) {
  .kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.kpi {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  padding: 14px;
  box-shadow: var(--shadow);
}
.kpi__label {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 0;
}
.kpi__val {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
}
/* general muted */
.muted {
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-60);
  margin-left: 0;
}
/* KPI sub text below value (request) */
.kpi__val .muted {
  display: block;
  margin: 4px 0 0 0;
}

/* Cards (dept & roadmap) */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.cards--thirds {
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .cards--thirds {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.card__title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card__icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__desc {
  color: var(--ink-70);
  margin: 8px 0 2px;
}
.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-80);
}

/* Bookshelf (mobile & desktop unified: horizontal spines + panel below) */
.bookshelf {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.bookshelf .panel {
  width: 100%;
}

.spines {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  width: 100%;
}

.spine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 48px;
  min-width: 11rem;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-70);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.spine[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  padding: 22px;
  box-shadow: var(--shadow);
  min-height: 220px;
}

.panel__top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-left: 18px;
}

/* CTA 버튼 (파란색, 새 탭 이동 느낌) */
.panel__cta {
  margin-top: 30px;
  text-align: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.05s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.btn--primary {
  color: #fff;
  background: #2563eb; /* blue-600 */
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.btn--primary:hover {
  background: #1d4ed8; /* blue-700 */
}
.btn--primary:active {
  transform: translateY(1px);
}
.btn--primary:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .bullets {
    grid-template-columns: repeat(2, 1fr);
  }
}
.kpiStack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.kpiSmall {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-left-width: 3px;
  border-left-color: rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  padding: 10px;
}
.kpiSmall .lab {
  font-size: 12px;
  letter-spacing: 0.11em;
  color: var(--ink-60);
  text-transform: uppercase;
  margin: 0;
}
.kpiSmall .val {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
}
.kpiSmall .val .muted {
  display: block; /* 부가설명 줄바꿈 */
  margin: 2px 0 0;
  margin-left: 0;
}
.twocol {
  display: grid;
  gap: 12px;
}
@media (min-width: 768px) {
  .twocol {
    grid-template-columns: repeat(2, 1fr);
  }

  .kpiSmall {
    flex-direction: row;
    align-items: baseline;
    gap: 15px;
  }
  .kpiSmall .val {
    margin-top: 0;
    text-align: right; /* 값 오른쪽 정렬 */
  }
  .kpiSmall .val .muted {
    display: inline; /* 부가설명 인라인 */
    margin-left: 6px;
    margin-top: 0;
  }
}
.twocol .box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  padding: 12px;
}
.tag {
  font-size: 11px;
  letter-spacing: 0.11em;
  color: var(--ink-60);
  text-transform: uppercase;
  margin: 0;
}

/* Reveal (fade-up) */
.fx {
  opacity: 0;
  transform: translateY(10px);
}
.fx.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up {
}
.delay-1 {
  transition-delay: 0.12s;
}
.delay-2 {
  transition-delay: 0.24s;
}
.delay-3 {
  transition-delay: 0.36s;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--ink-60);
}

/* Utilities */
.hidden {
  display: none !important;
}
