/* 기능 소개 페이지 — 다크 톤, patent/mic 페이지와 동일 구조 */

/* 고정 배경 (사이트 공통 body::before 석상 SVG를 그대로 노출) */
body.page-feature::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #000; /* FOUC 방지용 밑색 */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.page-feature {
  margin: 0;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

.ft-root {
  position: relative;
  min-height: 100vh;
  background: transparent;
}

.ft-main {
  position: relative;
  z-index: 1;
}

.page-feature .header_block {
  padding-bottom: 0;
}

.page-feature .footer_widget,
.page-feature .inquire_footer,
.page-feature #footer {
  position: relative;
  z-index: 1;
}

/* 헤더 현재메뉴 강조 */
.page-feature .nav-feature-current span,
.header_menu_button.nav-feature-current span {
  color: #fff;
}

/* ===================== 히어로 ===================== */
.ft-hero {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 10vw, 140px) 24px clamp(40px, 5vw, 72px);
}

.ft-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.ft-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: #4173fa;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
  line-height: 1;
}

.ft-hero-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.5px;
  font-size: clamp(26px, 3.4vw, 46px);
  word-break: keep-all;
}

.ft-blue {
  color: #4191fa;
}

.ft-hero-lead {
  margin: 0;
  max-width: 100%;
  color: #b9c0cc;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.2px;
  font-size: clamp(15px, 1.2vw, 18px);
  word-break: keep-all;
}

/* ===================== 기능 영상 ===================== */
.ft-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) 24px clamp(60px, 8vw, 120px);
  box-sizing: border-box;
}

.ft-feature {
  scroll-margin-top: 100px;
}

/* 제목 + 영상 정보 */
.ft-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.ft-head-text {
  min-width: 0;
}

.ft-category {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(65, 115, 250, 0.18);
  color: #7aa0ff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
}

.ft-title {
  margin: 0 0 12px;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-size: clamp(24px, 2.4vw, 36px);
  word-break: keep-all;
}

.ft-desc {
  margin: 0;
  color: #aeb5c2;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.2px;
  font-size: clamp(15px, 1.1vw, 17px);
  word-break: keep-all;
}

/* 설명의 각 줄 — 좁은 화면에서 끝줄에 단어 하나만 남지 않도록 줄 길이를 고르게 나눔 */
.ft-desc-line {
  display: block;
  text-wrap: balance;
}

.ft-meta {
  flex: none;
  display: flex;
  margin: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ft-meta-item {
  padding: 14px 24px;
  text-align: center;
}

.ft-meta-item + .ft-meta-item {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.ft-meta dt {
  margin: 0 0 6px;
  color: #8b93a2;
  font-size: 13px;
  font-weight: 500;
}

.ft-meta dd {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}

/* 영상 (mic 페이지 히어로 영상과 동일한 파란 테두리) */
.ft-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid #4173fa;
  border-radius: 24px;
  overflow: hidden;
  background: #0c0c0c;
  box-shadow: 0 24px 120px rgba(65, 115, 250, 0.28);
  box-sizing: border-box;
}

.ft-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c0c0c;
}

/* 단계별 바로가기 */
.ft-chapters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: clamp(36px, 4vw, 56px) 0 18px;
}

.ft-chapters-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.3px;
}

.ft-chapters-hint {
  margin: 0;
  color: #8b93a2;
  font-size: 14px;
  word-break: keep-all;
}

.ft-chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ft-chapter {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 20px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.ft-chapter:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.ft-chapter:focus-visible {
  outline: 2px solid #7aa0ff;
  outline-offset: 2px;
}

.ft-chapter.is-active {
  border-color: #4173fa;
  background: rgba(65, 115, 250, 0.14);
}

.ft-chapter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ft-chapter-num {
  color: #4191fa;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ft-chapter-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #c7ccd6;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ft-chapter-time::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent currentColor;
}

.ft-chapter.is-active .ft-chapter-time {
  background: #4173fa;
  color: #fff;
}

.ft-chapter-title {
  margin-bottom: 6px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
  word-break: keep-all;
}

.ft-chapter-desc {
  white-space: pre-line; /* 데이터의 \n 줄바꿈 반영 */
  color: #aeb5c2;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.2px;
  word-break: keep-all;
  text-wrap: balance; /* 두 줄로 넘어갈 때 줄 길이를 고르게 나눠 끝줄에 단어 하나만 남는 것 방지 */
}

/* 현재 단계 진행 막대 */
.ft-chapter-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
}

.ft-chapter-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: #4173fa;
}

/* ===================== 목록 화면 ===================== */
.ft-section[hidden] {
  display: none;
}

.ft-list-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.ft-list-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: clamp(20px, 1.7vw, 24px);
  letter-spacing: -0.3px;
}

.ft-list-count {
  color: #7aa0ff;
  font-weight: 700;
  font-size: clamp(16px, 1.3vw, 19px);
  font-variant-numeric: tabular-nums;
}

/* 영상이 적을 땐 카드가 폭을 채우고, 많아지면 3열로 나열 */
.ft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.ft-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ft-vcard {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.ft-vcard:hover {
  border-color: #4173fa;
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-4px);
}

.ft-vcard:focus-visible {
  outline: 2px solid #7aa0ff;
  outline-offset: 3px;
}

.ft-vcard-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c0c0c;
}

.ft-vcard-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ft-vcard:hover .ft-vcard-thumb img {
  transform: scale(1.03);
}

.ft-vcard-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.ft-vcard-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.ft-vcard-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ft-vcard-category {
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(65, 115, 250, 0.18);
  color: #7aa0ff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.ft-vcard-steps {
  color: #8b93a2;
  font-size: 13px;
  font-weight: 500;
}

.ft-vcard-title {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
  word-break: keep-all;
}

.ft-vcard-desc {
  flex: 1;
  color: #aeb5c2;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.2px;
  word-break: keep-all;
}

.ft-vcard-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  color: #7aa0ff;
  font-size: 15px;
  font-weight: 600;
}

.ft-grid-compact .ft-vcard-body {
  padding: 18px 20px 20px;
}

.ft-grid-compact .ft-vcard-title {
  font-size: 17px;
}

.ft-grid-compact .ft-vcard-desc,
.ft-grid-compact .ft-vcard-cta {
  display: none;
}

/* 영상 추가 예정 안내 카드 (마지막 줄 빈자리 채움) */
.ft-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 32px 24px;
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  box-sizing: border-box;
}

.ft-soon[hidden] {
  display: none;
}

.ft-soon-badge {
  margin-bottom: 12px;
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #c7ccd6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.ft-soon-title {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
  word-break: keep-all;
}

.ft-soon-desc {
  color: #8b93a2;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.2px;
  word-break: keep-all;
}

/* ===================== 상세 화면 ===================== */
.ft-detail {
  padding-top: clamp(36px, 5vw, 64px);
}

.ft-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: clamp(24px, 3vw, 36px);
  padding: 8px 16px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 29px;
  background: rgba(255, 255, 255, 0.06);
  color: #e4e7ec;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ft-back:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.ft-more {
  margin-top: clamp(48px, 6vw, 80px);
}

.ft-more[hidden] {
  display: none;
}

.ft-more-title {
  margin: 0 0 18px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.3px;
}

/* ===================== 이용가이드 안내 ===================== */
.ft-guide {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px clamp(80px, 10vw, 160px);
  box-sizing: border-box;
}

.ft-guide-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 3.5vw, 48px) clamp(28px, 4vw, 56px);
  border-radius: 30px;
}

.ft-guide-title {
  margin: 0 0 10px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.4px;
  word-break: keep-all;
}

.ft-guide-desc {
  margin: 0;
  color: #aeb5c2;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
  word-break: keep-all;
}

.ft-guide-actions {
  flex: none;
  display: flex;
  gap: 12px;
}

.ft-guide-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 0 22px;
  border: 1px solid #4173fa;
  border-radius: 29px;
  background: #4173fa;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ft-guide-button:hover {
  background: #3462e0;
  border-color: #3462e0;
}

.ft-guide-button-line {
  border-color: #767676;
  background: rgba(255, 255, 255, 0.1);
}

.ft-guide-button-line:hover {
  border-color: #a0a0a0;
  background: rgba(255, 255, 255, 0.16);
}

.ft-guide-button svg {
  flex: none;
  pointer-events: none;
}

/* ===================== 반응형 ===================== */
@media screen and (max-width: 1079.98px) {
  .ft-chapters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ft-guide-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 767.98px) {
  .ft-head {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .ft-meta-item {
    flex: 1;
  }
  .ft-chapters-head {
    flex-direction: column;
    gap: 6px;
  }
  .ft-player {
    border-radius: 16px;
  }
}

@media screen and (max-width: 599.98px) {
  .ft-grid,
  .ft-grid-compact {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .ft-vcard {
    border-radius: 18px;
  }
  .ft-vcard-body {
    padding: 18px 20px 20px;
  }
  .ft-chapters {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .ft-chapter {
    padding: 16px 18px 18px;
    border-radius: 14px;
  }
  .ft-chapter-top {
    margin-bottom: 10px;
  }
  .ft-guide-card {
    border-radius: 20px;
  }
  .ft-guide-actions {
    flex-direction: column;
    width: 100%;
  }
  .ft-guide-button {
    justify-content: center;
    width: 100%;
  }
}
