/* ============================================================================
   화성인사이드 랜딩 전용 레이어 (inside-landing.css)
   ----------------------------------------------------------------------------
   - inside/index.html 전용. 로드 순서: landing-v2.css 뒤, theme-inside.css 앞.
   - 색은 theme-inside.css의 --hi-* 토큰만 사용한다(hex 하드코딩 금지).
   - 새 클래스는 hil- 접두사. 기존 public-site.css 클래스를 재사용할 때는
     body.hi-landing 스코프로 의도적으로 오버라이드한다.
   - 모바일 퍼스트: min-width 640 / 1024 / 1280.

   차례
     §1  페이지 공통 (배경·섹션 리듬·재사용 클래스 오버라이드)
     §2  히어로 — EP.01 티저 영상
     §3  EP.01 에피소드 (정보 카드 + 다음 이야기)
     §4  화성 네트워크 (역할 분기 + 연결 분야)
     §5  운영 기준·신뢰
     §6  가입 전 확인 / 문의 CTA
     §7  푸터 오버라이드
   ========================================================================== */

/* ============================================================
   §1 페이지 공통
   ============================================================ */
body.hi-landing {
  background: var(--hi-offwhite);
  color: var(--hi-ink);
}

body.hi-landing img {
  max-width: 100%;
  height: auto;
}

/* 헤더 워드마크: 투명 WebP(어두운 면 기본)라 배경 패딩 상자가 필요 없다 */
body.hi-landing .site-brand-lockup {
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
}

/* 섹션 공통 리듬 */
.hil-section {
  padding: clamp(72px, 11vh, 128px) 0;
}

.hil-dark {
  background: var(--hi-black);
  color: var(--hi-text-on-dark);
}

.hil-dark .hi-section-head :is(h1, h2, h3) {
  color: var(--hi-offwhite);
}

/* 어두운 면 위 본문 보조 텍스트 */
.hil-dark p,
.hil-dark li {
  color: var(--hi-muted-on-dark);
}

.hil-dark .hi-info-card .hi-info-body {
  color: var(--hi-offwhite);
}

/* 텍스트 링크 터치 타깃 보강 */
body.hi-landing .landing-text-link,
body.hi-landing .landing-arrow-link {
  min-height: 44px;
  align-items: center;
}

/* ============================================================
   §2 히어로 — EP.01 티저 영상
   ============================================================ */
.hil-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(600px, 100svh);
  padding: 128px 0 clamp(48px, 8vh, 88px);
  overflow: hidden;
  isolation: isolate;
  background: var(--hi-black);
  color: var(--hi-text-on-dark);
}

.hil-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--hi-black) url("./assets/media/ep01-poster.webp") center / cover no-repeat;
  /* landing-interactions.js의 네트워크 캔버스 색을 브랜드 토큰으로 지정 */
  --network-copper: var(--hi-orange);
  --network-ivory: var(--hi-offwhite);
}

.hil-hero-media video,
.hil-hero-media canvas,
.hil-hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* poster(=티저 첫 프레임)가 먼저 보이고, 지연 로드된 영상이 그 위에 얹힌다 */
.hil-hero-media video {
  object-fit: cover;
  object-position: center;
}

/* 구상 캔버스는 티저 영상을 가리지 않게 우측 상단에만 옅게 */
.hil-hero-media canvas {
  z-index: 2;
  opacity: 0.22;
  pointer-events: none;
  mask-image: radial-gradient(circle at 82% 24%, #000 0%, rgba(0, 0, 0, 0.4) 34%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 82% 24%, #000 0%, rgba(0, 0, 0, 0.4) 34%, transparent 62%);
}

/* 카피 가독용 스크림: 좌측·하단으로 깊어지는 딥블랙 */
.hil-hero-scrim {
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.1) 32%, rgba(10, 10, 10, 0.82) 78%, var(--hi-black) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.28) 46%, rgba(10, 10, 10, 0.08) 100%);
}

.hil-hero-inner {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 26px;
  justify-items: start;
}

.hil-hero-wordmark {
  width: clamp(240px, 62vw, 460px);
  height: auto;
  display: block;
}

.hil-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--hi-orange-soft);
}

.hil-hero-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--hi-orange);
}

.hil-hero h1 {
  max-width: 21ch;
  margin: 0;
  font-size: clamp(1.9rem, 6.2vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--hi-offwhite);
}

.hil-hero h1 em {
  font-style: normal;
  color: var(--hi-orange);
}

.hil-hero-lead {
  max-width: 56ch;
  margin: 0;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  font-weight: 500;
  line-height: 1.8;
  color: rgba(242, 240, 234, 0.82);
}

.hil-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  margin-top: 6px;
}

/* 히어로 하단 스크롤 안내 (한글) */
.hil-scroll {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 5;
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(242, 240, 234, 0.6);
}

.hil-scroll i {
  width: 46px;
  height: 1px;
  display: block;
  overflow: hidden;
  background: rgba(242, 240, 234, 0.24);
}

.hil-scroll i::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: var(--hi-orange);
  animation: hilScrollLine 2.4s ease-in-out infinite;
}

@keyframes hilScrollLine {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(90%); }
  100% { transform: translateX(90%); }
}

/* ============================================================
   §3 EP.01 에피소드
   ============================================================ */
.hil-episode {
  border-top: 1px solid var(--hi-line-on-dark);
}

.hil-episode-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.hil-episode-still {
  margin: 0;
  padding: clamp(14px, 2.4vw, 22px);
}

.hil-episode-still img {
  display: block;
  width: 100%;
  height: auto;
}

.hil-episode-still figcaption {
  margin: 12px 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--hi-muted-on-dark);
}

.hil-episode-facts {
  display: grid;
  gap: clamp(26px, 4vh, 40px);
}

/* 작품 제목 카드: 사실 표기이므로 본문보다 한 단계 작게, 인용 톤으로 */
.hil-episode-title-card .hi-info-body {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
  color: rgba(242, 240, 234, 0.86);
}

/* 다음 이야기 — 준비 중 상태 명시 */
.hil-next {
  display: grid;
  gap: 10px;
  margin-top: clamp(48px, 8vh, 80px);
  padding-top: clamp(24px, 4vh, 36px);
  border-top: 1px solid var(--hi-line-on-dark);
}

.hil-next-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--hi-orange-soft);
}

.hil-next p {
  max-width: 60ch;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
}

.hil-next strong {
  color: var(--hi-offwhite);
  font-weight: 600;
}

/* ============================================================
   §4 화성 네트워크
   ============================================================ */
.hil-network-intro {
  max-width: 62ch;
  margin: -8px 0 clamp(32px, 5vh, 48px);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--hi-ink-2);
}

.hil-path-grid {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

.hil-path {
  display: grid;
  align-content: start;
  gap: 14px;
  background: var(--hi-white);
}

.hil-path-role {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--hi-orange-ink);
}

.hil-path h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.hil-path > span {
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--hi-muted);
}

.hil-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 8px;
}

.hil-path-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hi-orange-ink);
}

.hil-path-actions a:hover {
  color: var(--hi-orange-strong);
}

.hil-path-actions a i {
  font-style: normal;
  transition: translate 0.2s ease;
}

.hil-path-actions a:hover i {
  translate: 4px 0;
}

/* 연결 분야 5종 — product-config.js label과 동일 표기 */
.hil-fields {
  margin: clamp(40px, 7vh, 64px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hi-line);
}

.hil-fields li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 56px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--hi-line);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hil-fields em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--hi-orange-ink);
}

.hil-fields-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--hi-muted);
}

/* ============================================================
   §5 운영 기준·신뢰
   ============================================================ */
.hil-trust {
  background: var(--hi-paper-deep);
}

.hil-trust-grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.hil-trust-list {
  display: grid;
  gap: clamp(26px, 4vh, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hil-trust-list .hi-info-body {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
}

.hil-trust-list p:not(.hi-info-label):not(.hi-info-body) {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--hi-muted);
}

/* 시연 데이터 고지 배지 */
.hil-demo-note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: clamp(24px, 4vh, 36px) 0 0;
  padding: 12px 16px;
  border-left: 2px solid var(--hi-orange);
  background: var(--hi-white);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--hi-muted);
}

.hil-demo-note strong {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--hi-orange-ink);
}

/* 전문가 승인 기준 패널: public-site.css 정의를 딥블랙 카드로 오버라이드 */
body.hi-landing .landing-membership-proof {
  min-height: auto;
  display: grid;
  align-content: start;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--hi-line-on-dark);
  background:
    radial-gradient(circle at 86% 12%, var(--hi-orange-tint-strong), transparent 46%),
    var(--hi-black);
  color: var(--hi-text-on-dark);
}

body.hi-landing .landing-membership-proof > p {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hi-offwhite);
}

body.hi-landing .landing-membership-proof > p > span {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--hi-orange-soft);
}

body.hi-landing .landing-membership-proof dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

body.hi-landing .landing-membership-proof dl > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--hi-line-on-dark);
}

body.hi-landing .landing-membership-proof dt {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--hi-orange-soft);
}

body.hi-landing .landing-membership-proof dd {
  display: grid;
  gap: 4px;
  margin: 0;
}

body.hi-landing .landing-membership-proof dd strong {
  font-weight: 600;
  color: var(--hi-offwhite);
}

body.hi-landing .landing-membership-proof dd span {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--hi-muted-on-dark);
}

/* ============================================================
   §6 가입 전 확인 / 문의 CTA
   ============================================================ */
/* 가입 전 확인: public-site.css .landing-before-signup 위에 간격만 정리 */
body.hi-landing .landing-before-signup {
  padding-top: clamp(72px, 11vh, 128px);
  padding-bottom: clamp(72px, 11vh, 128px);
}

/* 문의 CTA 밴드(딥블랙 + 오렌지 글로우는 theme-inside §10이 담당) */
.hil-cta .home-cta-band {
  padding: clamp(72px, 11vh, 128px) 0;
  color: var(--hi-text-on-dark);
}

.hil-cta-grid {
  display: grid;
  gap: clamp(30px, 5vh, 44px);
}

.hil-cta-grid h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--hi-offwhite);
}

.hil-cta-copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.hil-cta-copy > p {
  max-width: 58ch;
  margin: 0;
  line-height: 1.8;
  color: rgba(242, 240, 234, 0.8);
}

.hil-cta-copy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hil-cta-copy li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--hi-muted-on-dark);
}

.hil-cta-copy li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 2px;
  background: var(--hi-orange);
  translate: 0 -3px;
}

/* ============================================================
   §7 푸터 오버라이드
   ============================================================ */
/* 워드마크는 투명 WebP(어두운 면 기본): 밝은 패딩 상자 제거 */
body.hi-landing .site-footer-lockup {
  padding: 0;
  border: 0;
  background: transparent;
}

body.hi-landing .site-footer-lockup img {
  height: auto;
  width: clamp(190px, 26vw, 250px);
}

.hil-footer-operator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.hil-footer-operator strong {
  font-weight: 600;
  color: var(--hi-offwhite);
}

body.hi-landing .hil-footer-operator a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--hi-orange-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.hi-landing .hil-footer-operator a:hover {
  color: var(--hi-orange);
}

/* ============================================================
   반응형 — 640px
   ============================================================ */
@media (min-width: 640px) {
  .hil-hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 22px;
    width: auto;
  }

  .hil-scroll {
    display: flex;
  }

  .hil-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
  }

  .hil-fields li {
    border-top: 1px solid var(--hi-line);
    border-bottom: 0;
  }

  .hil-cta-copy ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
  }
}

/* ============================================================
   반응형 — 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .hil-hero-inner {
    gap: 30px;
  }

  .hil-hero-wordmark {
    width: clamp(340px, 34vw, 520px);
  }

  /* 좌 스틸(58%) / 우 정보 카드 — 비대칭 */
  .hil-episode-grid {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  }

  .hil-episode-facts {
    padding-top: 10px;
  }

  .hil-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hil-fields {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hil-fields li {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 18px 20px 0;
  }

  /* 운영 기준(좌) / 승인 기준 패널(우) 비대칭 */
  .hil-trust-grid {
    grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  }

  .hil-cta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* ============================================================
   반응형 — 1280px
   ============================================================ */
@media (min-width: 1280px) {
  .hil-hero {
    padding-bottom: clamp(64px, 9vh, 104px);
  }

  .hil-hero h1 {
    max-width: 24ch;
  }

  .hil-episode-grid {
    grid-template-columns: minmax(0, 61fr) minmax(0, 39fr);
  }

  .hil-network-intro {
    margin-top: -16px;
  }
}

/* ============================================================
   모션 축소: 이 파일의 자체 애니메이션 무력화
   (전역 규칙은 theme-inside.css §3이 담당하지만 이중 보증)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hil-scroll i::after {
    animation: none;
  }
}
