/* 파트 A: GNB, 모바일 메뉴, S1 히어로, S1-2 데모, S2 비효율, S2-2 효과 */

/* ---------- GNB ---------- */
.gnb { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--gnb-h); background: transparent; color: var(--white); transition: background-color .2s ease-out, box-shadow .2s ease-out, color .2s ease-out; }
.gnb.is-scrolled { background: var(--white); color: var(--text-2); box-shadow: 0 4px 16px rgba(11,32,86,.08); }
.gnb__inner { display: flex; align-items: center; gap: 48px; height: 100%; }
.gnb__logo { flex: none; display: block; }
.gnb__logo img { width: auto; height: 32px; }
.gnb .logo-dark { display: none; }
.gnb.is-scrolled .logo-light { display: none; }
.gnb.is-scrolled .logo-dark { display: block; }
.gnb__list { display: flex; gap: 32px; }

/* ::after 로 굵은 글자 폭을 미리 잡아 hover 때 메뉴가 밀리지 않게 한다 */
.gnb__link { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; height: var(--gnb-h); font-size: 16px; font-weight: 500; white-space: nowrap; }
.gnb__link::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 700; }
.gnb__link::before { content: ''; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: currentColor; opacity: 0; }
.gnb__link:hover { font-weight: 700; }
.gnb.is-scrolled .gnb__link:hover { color: var(--text); }
.gnb__link.is-active { color: var(--cyan); font-weight: 700; }
.gnb__link.is-active::before { opacity: 1; }
.gnb.is-scrolled .gnb__link.is-active { color: var(--blue); }

.gnb__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gnb__burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; color: var(--white); }
.gnb.is-scrolled .gnb__burger { color: var(--text); }

/* 다크 배경에서 기본 파란 포커스 링이 묻히지 않게 한다 */
.gnb:not(.is-scrolled) :focus-visible, .hero :focus-visible, .effect :focus-visible { outline-color: var(--white); box-shadow: none; }

/* ---------- 모바일 전체 화면 메뉴 ---------- */
.mnav { position: fixed; inset: 0; z-index: 1100; display: none; flex-direction: column; height: 100vh; height: 100dvh; background: var(--white); color: var(--text); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s ease-out, visibility .2s ease-out; }
.mnav.is-open { visibility: visible; opacity: 1; }
.mnav__top { flex: none; display: flex; align-items: center; justify-content: space-between; height: var(--gnb-h); padding-inline: var(--gutter); }
.mnav__logo { width: auto; height: 26px; }
.mnav__close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; }
.mnav__body { flex: 1; display: flex; flex-direction: column; padding: 24px var(--gutter) 32px; }
.mnav__list .mnav__link { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; border-bottom: 1px solid var(--border); font-size: 28px; font-weight: 700; line-height: 1.3; }
.mnav__list .mnav__link.is-active { color: var(--blue); }
.mnav__list svg { flex: none; color: var(--text-3); }
.mnav__list .mnav__link.is-active svg { color: var(--blue); }
.mnav__foot { margin-top: auto; padding-top: 32px; }
.mnav__hint { margin-top: 12px; color: var(--text-2); font-size: 14px; text-align: center; }

/* ---------- S1 히어로 ---------- */
.hero { position: relative; height: 773px; overflow: hidden; background: var(--navy); color: var(--white); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,32,86,0) 28%, rgba(11,32,86,.58) 50%, rgba(11,32,86,.72) 70%, #0B2056 100%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; height: 100%; padding-top: 330px; padding-bottom: 80px; text-align: center; text-shadow: 0 2px 16px rgba(11,32,86,.55); }
.hero__actions .btn { text-shadow: none; }
.hero__title { font-family: var(--font-title); line-height: 1.14; letter-spacing: -0.02em; }
.hero__title-1, .hero__title-2 { display: block; }
.hero__title-1 { font-size: 78px; font-weight: 900; }
.hero__title-2 { font-size: 60px; font-weight: 400; }
.hero__sub { margin-top: 20px; font-size: 24px; font-weight: 700; line-height: 1.5; }
.hero__actions { display: flex; justify-content: center; gap: 12px; margin-top: auto; }

/* ---------- S1-2 데모 ---------- */
.demo { padding-bottom: 0; }
.demo__title { margin-bottom: var(--section-gap); }
.demo__video { width: 100%; max-width: 1440px; height: auto; aspect-ratio: 1440 / 750; margin-inline: auto; object-fit: cover; }

/* ---------- S2 비효율 ---------- */
.why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); }
.why__item { display: flex; flex-direction: column; }
.why__card { position: relative; flex: 1; display: flex; flex-direction: column; padding: 28px; border-radius: 28px; background: var(--bg-canvas); overflow: hidden; }
.why__badge { position: absolute; top: 0; right: 0; padding: 12px 16px; border-bottom-left-radius: 20px; background: var(--orange); color: var(--white); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; }
.why__name { font-size: 26px; text-align: center; font-weight: 700; line-height: 1.3; }
.why__label { margin-top: 4px; text-align: center; color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: .14em; }
.why__now { display: flex; align-items: center; justify-content: center; flex: 1; margin-top: 24px; padding: 20px; text-align: center; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
.why__now-tag { color: var(--text-2); font-size: 14px; font-weight: 600; }
.why__now-text { margin-top: 4px; font-size: 16px; line-height: 1.5; }
.why__arrow { flex: none; margin: 12px auto; color: var(--blue); }
.why__after { padding: 20px 24px; text-align: center; border-radius: 16px; background: var(--blue); color: var(--white); }
.why__after-logo { width: auto; height: 22px; margin-inline: auto; }
.why__after-text { margin-top: 8px; font-size: 24px; font-weight: 700; line-height: 1.3; }

/* ---------- S2-2 효과 ---------- */
.effect__note { margin-top: 16px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.6; text-align: center; }
.effect__compare { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; padding: 40px; }
.effect__bars { display: grid; gap: 28px; }
.effect__row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.effect__row-name { font-size: 19px; font-weight: 700; color: var(--white); }
.effect__row-name--cyan { color: var(--cyan); }
.effect__row-desc { color: rgba(255,255,255,.72); font-size: 14px; }

/* 값 라벨이 들어갈 몫을 뺀 폭을 기준으로 두 막대 길이 비를 82/507 로 맞춘다 */
.effect__track { --value-w: 168px; display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.effect__bar-box { flex: none; width: calc((100% - var(--value-w)) * var(--bar-ratio)); }
.effect__bar-box--now { --bar-ratio: 1; }
.effect__bar-box--ice { --bar-ratio: calc(82 / 507); }
.effect-bar { width: 100%; height: 40px; border-radius: 8px; }
.effect-bar--now { background: rgba(255,255,255,.7); }
.effect-bar--ice { background: var(--cyan); }
.effect__value { flex: none; font-size: 19px; font-weight: 700; white-space: nowrap; }
.effect__value--ice { color: var(--cyan); font-size: 32px; font-weight: 800; line-height: 1.2; }

.effect__total { padding-left: 56px; border-left: 1px solid rgba(255,255,255,.12); text-align: center; }
.effect__total-label { font-size: 19px; font-weight: 700; }
.effect__total-num { margin-top: 4px; color: var(--orange); font-family: var(--font-title); font-size: 80px; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }

.effect__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); margin-top: var(--card-gap); }
.effect-kpi { padding: 32px 24px; text-align: center; }
.effect__kpi-label { font-size: 17px; font-weight: 700; }
.effect__kpi-num { margin-top: 12px; font-size: 19px; font-weight: 700; line-height: 1.2; }
.effect__kpi-num strong { color: var(--white); font-family: var(--font-title); font-size: 44px; font-weight: 900; letter-spacing: -0.02em; }
.effect__kpi-from { color: rgba(255,255,255,.72); font-size: 17px; }
.effect__kpi-desc { margin-top: 12px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.5; }
.effect__foot { margin-top: 24px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.6; text-align: center; }

/* ---------- 1024–1439 ---------- */
@media (max-width: 1439px) {
  .hero__title-1 { font-size: 66px; }
  .hero__title-2 { font-size: 51px; }
  .why__after-text { font-size: 22px; }
  .effect__compare { gap: 40px; }
  .effect__total { padding-left: 40px; }
}

/* ---------- 768–1023 ---------- */
@media (max-width: 1023px) {
  .gnb__inner { gap: 32px; }
  .gnb__list { gap: 24px; }
  .hero__title-1 { font-size: 58.5px; }
  .hero__title-2 { font-size: 45px; }
  .hero__sub { font-size: 21px; }
  .why__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .why__after-text { font-size: 24px; }
  .effect__compare { gap: 28px; padding: 32px; }
  .effect__total { padding-left: 28px; }
  .effect__total-num { font-size: 64px; }
  .effect__track { --value-w: 144px; }
  .effect__value--ice { font-size: 26px; }
  .effect-kpi { padding: 24px 16px; }
  .effect__kpi-num strong { font-size: 34px; }
  .effect__kpi-from { font-size: 14px; }
}

/* ---------- ≤767 ---------- */
@media (max-width: 767px) {
  .mnav { display: flex; }
  .gnb__nav { display: none; }
  .gnb__logo img { height: 26px; }
  .gnb__burger { display: flex; }
  .gnb__link { height: var(--gnb-h); }

  .hero { height: 620px; }
  .hero__inner { padding-top: 248px; padding-bottom: 56px; }
  .hero__title-1 { font-size: 39px; }
  .hero__title-2 { font-size: 30px; }
  .hero__sub { margin-top: 12px; font-size: 17px; }
  .hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .hero__actions .btn { padding-inline: 8px; font-size: 16px; }

  .why__card { padding: 24px; }
  .why__name { font-size: 24px; }

  .effect__compare { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px; }
  .effect__track { --value-w: 112px; gap: 8px; }
  .effect-bar { height: 32px; }
  .effect__value { font-size: 16px; }
  .effect__value--ice { font-size: 22px; }
  .effect__total { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .effect__total-num { font-size: 72px; }
  .effect__kpis { grid-template-columns: minmax(0, 1fr); }
  .effect__kpi-num strong { font-size: 40px; }
  .effect__kpi-from { font-size: 17px; }
}
