/* ==========================================================================
   네비드 랜딩 고도화 전용 스타일 (home.css)
   - 지구본(globe) 다크 섹션 · Why Nabid 역동화 · 코인 회전 슬라이드
   - nabid.css v2 토큰(--forest/--moss/--gold/--paper/--ink 등)만 사용. 신규 색 최소화.
   ========================================================================== */

/* ── 히어로 보강(한글 lead + 카드 라인 아이콘) ───────────── */
.cover__ko {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #fff;
  max-width: 480px;
}
.cover__ko::before {
  content: ""; display: block; width: 44px; height: 2px;
  background: var(--gold); margin-bottom: 18px; opacity: 0.9;
}
.gcard__ico { display: block; width: 34px; height: 34px; margin-bottom: 16px; opacity: 1; color: #fff; }
.gcard__ico svg { width: 100%; height: 100%; display: block; }
.gcard__ico .acc { stroke: var(--gold); fill: rgba(169,139,83,0.18); }
.gcard:hover .gcard__ico { color: #fff; }
/* 카드 전체가 하나의 링크: 단일 CTA를 하단에 정렬 */
.gcard { display: flex; flex-direction: column; color: inherit; }
.gcard__t { margin-bottom: 0; }
.gcard__go {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 16px;
  font-size: 13.5px; font-weight: 500; opacity: 0.82;
  transition: opacity 0.25s var(--ease);
}
.gcard__go > span { transition: transform 0.25s var(--ease); }
.gcard:hover .gcard__go { opacity: 1; }
.gcard:hover .gcard__go > span { transform: translateX(4px); }

/* ── 지구본 섹션(다크·집중) ─────────────────────────────── */
.globe-sec {
  position: relative;
  background: #0a0f0c;               /* 근블랙으로 더 어둡게 */
  color: var(--paper);
  overflow: hidden;
  padding: 120px 0;
}
/* 좌표 그리드 배경(위경선 패턴) — 좌표 테마 */
.globe-sec__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(169,139,83,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,139,83,0.09) 1px, transparent 1px),
    linear-gradient(rgba(169,139,83,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,139,83,0.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  pointer-events: none;
  /* 가장자리로 갈수록 사라져 중앙 집중 */
  -webkit-mask-image: radial-gradient(120% 90% at 68% 46%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 68% 46%, #000 30%, transparent 78%);
}
.globe-sec::before {
  /* 지구본 뒤 스포트라이트 + 상하 비네트로 집중 */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 68% 48%, rgba(169,139,83,0.18), transparent 62%),
    radial-gradient(140% 100% at 50% 50%, transparent 55%, rgba(0,0,0,0.55));
  pointer-events: none;
}
.globe-sec__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
/* min-width:0 — 마퀴 트랙(max-content ~3000px)이 그리드 아이템 최소폭을 키워
   모바일 1fr 트랙을 밀어내고 지구본이 화면 밖으로 나가는 것 방지 */
.globe-sec__copy { position: relative; z-index: 2; min-width: 0; }
.globe-sec__copy .eyebrow { color: var(--gold); }
.globe-sec__copy h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  margin: 16px 0 18px; color: var(--paper);
}
.globe-sec__copy p { color: rgba(251, 251, 248, 0.68); font-size: 17px; max-width: 42ch; }

/* ── 하단 매물 마퀴(연속 흐름·클릭 불가·우측 페이드) ───────── */
.globe-marquee {
  position: relative;
  margin-top: 38px;
  overflow: hidden;
  pointer-events: none;
  /* 우측으로 사라져가는 오버레이(페이드) */
  -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 62%, transparent 100%);
}
.globe-marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: glist-flow 26s linear infinite;
}
.glist {
  display: flex; align-items: center; gap: 12px;
  flex: 0 0 auto;
  padding: 13px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(169,139,83,0.22);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.glist__cat {
  flex: 0 0 auto;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--gold);
  padding: 4px 9px; border: 1px solid rgba(169,139,83,0.4); border-radius: 999px;
}
.glist__body { display: flex; flex-direction: column; gap: 2px; }
.glist__t { font-size: 14px; font-weight: 600; color: var(--paper); white-space: nowrap; }
.glist__meta { font-size: 12px; color: rgba(251,251,248,0.5); white-space: nowrap; }
@keyframes glist-flow { to { transform: translateX(-50%); } }

/* 캔버스 스테이지 + HTML 라벨 오버레이 (확대) */
.globe-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 680px;
  min-height: 360px;
  margin: 0 auto;
}
.globe-stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.globe-stage__canvas:active { cursor: grabbing; }
.globe-stage__canvas canvas { display: block; width: 100% !important; height: 100% !important; }

/* 마커 위 순환 정보 라벨(3D 좌표에 CSS로 투영) */
.globe-label {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -140%);
  min-width: 150px;
  padding: 10px 12px 11px;
  background: rgba(20, 28, 22, 0.82);
  border: 1px solid rgba(169, 139, 83, 0.5);
  border-radius: 6px;
  backdrop-filter: blur(6px);
  color: var(--paper);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 3;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.globe-label.is-on { opacity: 1; }
.globe-label::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px;
  background: rgba(20, 28, 22, 0.82);
  border-right: 1px solid rgba(169, 139, 83, 0.5);
  border-bottom: 1px solid rgba(169, 139, 83, 0.5);
  transform: translateX(-50%) rotate(45deg);
}
.globe-label__city { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.globe-label__coord { font-size: 11px; color: var(--gold); margin-top: 2px; font-variant-numeric: tabular-nums; }
.globe-label__demo { font-size: 11.5px; color: rgba(251, 251, 248, 0.62); margin-top: 4px; }

/* 저사양/모션축소 fallback 정지 이미지 */
.globe-stage__fallback {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, var(--moss), var(--ink) 70%);
  border-radius: 50%;
  color: rgba(251, 251, 248, 0.5);
  font-size: 13px;
}
.globe-stage.is-fallback .globe-stage__fallback { display: flex; }
.globe-stage.is-fallback .globe-stage__canvas,
.globe-stage.is-fallback .globe-label { display: none; }

/* ── Why Nabid : 연결형 노드 플로우(3단계가 하나의 체인) ──────── */
.why { border-top: 1px solid var(--line); }
.why-flow {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 20px;
}
/* 노드를 잇는 세로 라인(스크롤 진입 시 위→아래로 채워짐) */
.why-flow::before {
  content: "";
  position: absolute;
  left: 43px; top: 26px; bottom: 26px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--moss));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.1s var(--ease);
}
.why-flow.in::before { transform: scaleY(1); }

.why-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 30px;
  align-items: start;
  padding: 26px 0;
}
.why-step__node {
  position: relative; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  border: 2px solid var(--line-2);
  font-family: var(--serif); font-size: 18px; color: var(--moss);
  transition: border-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.why-step.in .why-step__node {
  border-color: var(--gold); color: var(--forest);
  box-shadow: 0 0 0 6px rgba(169, 139, 83, 0.1);
}
.why-step__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.why-step__card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 18px 40px rgba(27, 32, 28, 0.1); }
.why-step__tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.why-step__card h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; margin-bottom: 12px; letter-spacing: -0.02em; }
.why-step__card p { color: var(--sub); font-size: 16px; line-height: 1.7; }
.why-step__card .feature__more { margin-top: 18px; }

/* 카드 스태거 진입 */
.why-step { opacity: 0; transform: translateX(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.why-step.in { opacity: 1; transform: none; }
.why-step[data-d="1"] { transition-delay: 0.12s; }
.why-step[data-d="2"] { transition-delay: 0.24s; }

/* ── 코인 회전 슬라이드(Swiper coverflow) ─────────────────── */
/* 컨테이너 밖으로 넘치는 카드를 잘라 중앙+좌우 2개씩만 노출 */
.coin-swiper { padding: 30px 0 8px; overflow: hidden; }
.coin-swiper .swiper-slide {
  width: 288px;
  height: 380px;
  opacity: 0.55;
  transition: opacity 0.5s var(--ease);
}
/* 활성 카드만 또렷하게(정보 위계) */
.coin-swiper .swiper-slide-active { opacity: 1; }
.coin-swiper .swiper-slide-prev,
.coin-swiper .swiper-slide-next { opacity: 0.82; }
.coin-card {
  height: 100%;
  display: flex; flex-direction: column;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.3s;
}
.swiper-slide-active .coin-card { border-color: var(--gold); }
.coin-card__badge {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px; font-weight: 600; color: #fff;
  letter-spacing: -0.02em;
}
.coin-card__sym { margin-top: 22px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--moss); text-transform: uppercase; }
.coin-card__name { font-size: 23px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; }
.coin-card__desc { color: var(--sub); font-size: 15px; margin-top: 12px; flex: 1; }
.coin-card__more { font-size: 14px; font-weight: 600; color: var(--forest); margin-top: 18px; }
.coin-swiper .swiper-pagination { position: static; margin-top: 30px; }
.coin-swiper .swiper-pagination-bullet { background: var(--line-2); opacity: 1; transition: all 0.3s; }
.coin-swiper .swiper-pagination-bullet-active { background: var(--gold); width: 22px; border-radius: 4px; }

/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .globe-sec__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .globe-stage { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .why-flow { padding-left: 0; }
  .why-flow::before { left: 22px; }
  .why-step { grid-template-columns: 44px 1fr; gap: 18px; padding: 18px 0; }
  .why-step__node { width: 44px; height: 44px; font-size: 16px; }
  .why-step__card { padding: 22px 22px; }
}
@media (max-width: 560px) {
  .globe-sec { padding: 64px 0; }
  .globe-sec__stats { gap: 24px; }
  .globe-stat__n { font-size: 32px; }
  .coin-swiper .swiper-slide { width: 260px; height: 360px; }
}
