/* 랜딩 레이아웃 — 배경영상, 헤더, 히어로(카피+지구본+카드), 지역 패널, 푸터 */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.5;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 72% 38%, rgba(10, 20, 40, 0.15) 0%, rgba(4, 6, 11, 0.82) 62%),
    linear-gradient(180deg, rgba(4, 6, 11, 0.86) 0%, rgba(4, 6, 11, 0.62) 40%, rgba(4, 6, 11, 0.94) 100%);
}

/* ── 헤더 ─────────────────────────────── */
.hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(4, 6, 11, 0.9) 0%, rgba(4, 6, 11, 0) 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 좌상단 도메인 로고 — 큼지막하게 */
.brand-logo {
  height: 40px;
  width: auto;
}

.brand-sub {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--cyan);
}

.langs {
  display: flex;
  gap: 6px;
}

.langs button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 4px 9px;
}

.langs button.on {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ── 히어로 ───────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 46%) 1fr;
  align-items: center;
  padding: 96px 28px 40px 56px;
  gap: 12px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--cyan);
  margin-bottom: 18px;
}

.tagline {
  font-family: 'EliceDXNeolli', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.28;
  margin-bottom: 20px;
}

.tagline .t2 {
  color: var(--cyan);
}

.hero-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 440px;
  margin-bottom: 30px;
}

.cta-row {
  display: flex;
  gap: 12px;
}

.cta {
  border-radius: var(--r-md);
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cta.main {
  background: var(--cyan);
  border: 1px solid var(--cyan);
  color: #03202c;
}

.cta.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.cta.ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ── 지구본 ───────────────────────────── */
.globe-wrap {
  position: relative;
  height: min(78vh, 760px);
  min-height: 480px;
}

#globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* 가로로 끌면 지구본이 돌고, 세로 제스처는 페이지 스크롤로 넘긴다 */
  touch-action: pan-y;
  cursor: grab;
}

#globe:active {
  cursor: grabbing;
}

/* 도시 칩 — 지구본 투영 좌표에 붙어 다닌다 */
.chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.chip {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: rgba(7, 12, 22, 0.88);
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  /* 칩은 매 프레임 transform 이 갱신되므로 위치엔 트랜지션을 걸지 않는다(끌리면 지구본과 어긋난다) */
  transition: opacity 0.25s;
  will-change: transform, opacity;
}

.chip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 6px;
  height: 6px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(7, 12, 22, 0.88);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.chip.user {
  border-color: rgba(63, 216, 255, 0.5);
  color: var(--cyan);
}

.chip.off {
  opacity: 0;
}

/* 검증 카드는 지구본 위 우하단에 뜬다(레퍼런스 사진 배치) */
.vc-slot {
  position: absolute;
  right: 8px;
  bottom: 0;
  z-index: 3;
}

/* ── 지역/벤더 패널 ───────────────────── */
.regions {
  position: relative;
  z-index: 2;
  padding: 26px 56px 60px;
}

.regions-head {
  margin-bottom: 18px;
}

.regions-head h2 {
  font-family: 'EliceDXNeolli', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 6px;
}

.regions-head p {
  color: var(--muted);
  font-size: 13px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.region {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  transition: border-color 0.35s, box-shadow 0.35s;
}

.region .rg-name {
  font-family: 'EliceDXNeolli', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.region .rg-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  min-height: 3em;
  margin-bottom: 12px;
}

.region.on {
  border-color: var(--amber);
  box-shadow: 0 0 22px rgba(255, 176, 84, 0.14) inset, 0 0 14px rgba(255, 176, 84, 0.1);
}

.region.on .rg-name {
  color: var(--amber);
}

.rg-vendors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rg-v {
  display: flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(4, 8, 16, 0.6);
  filter: grayscale(1) brightness(0.75);
  transition: filter 0.35s, border-color 0.35s;
}

.rg-v img {
  height: 16px;
  width: auto;
}

.rg-v span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan-dim);
}

.region.on .rg-v {
  filter: none;
  border-color: var(--line-soft);
}

.rg-v.lit {
  filter: none;
  border-color: var(--amber);
  box-shadow: 0 0 12px rgba(255, 176, 84, 0.22);
}

/* ── 작동 방식 ────────────────────────── */
.how {
  position: relative;
  z-index: 2;
  padding: 30px 56px 70px;
}

.how h2 {
  font-family: 'EliceDXNeolli', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 18px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.how-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}

.how-item .no {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.how-item h3 {
  font-family: 'EliceDXNeolli', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.how-item p {
  color: var(--muted);
  font-size: 13px;
}

/* ── 푸터 ─────────────────────────────── */
.ft {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 22px 56px 30px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* 촬영용 압축 모드 */
body.flat .hero {
  min-height: 760px;
}

/* ── 반응형 ───────────────────────────── */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 96px 20px 20px;
  }

  .globe-wrap {
    height: 62vw;
    min-height: 360px;
  }

  .vc-slot {
    right: 0;
  }

  .region-grid,
  .how-grid {
    grid-template-columns: 1fr 1fr;
  }

  .regions,
  .how,
  .ft {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 560px) {
  .region-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .vc-slot {
    transform: scale(0.82);
    transform-origin: bottom right;
  }
}
