/* ==========================================================================
   네비드 디자인 시스템 v2 — 에디토리얼 / 뉴트럴·자연 톤
   풀스크린 커버 히어로 · 글래스 카드 · 넉넉한 여백 · 절제된 고급감
   (climatefinance.co.kr 톤 참조)
   ========================================================================== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  --bg: #f4f3ee;          /* 웜 오프화이트 */
  --paper: #fbfbf8;
  --ink: #1b201c;         /* 딥 차콜그린 */
  --ink-2: #3b433c;
  --sub: #767c72;
  --line: #e2e2d8;
  --line-2: #d3d3c7;

  --forest: #2e4034;      /* 딥 포레스트 */
  --moss: #45604e;
  --sage: #7b8b7d;
  --accent: #38553f;
  --gold: #a98b53;        /* 절제된 어스 골드 포인트 */

  --glass: rgba(255, 255, 255, 0.1);
  --glass-line: rgba(255, 255, 255, 0.28);
  --over: rgba(20, 28, 22, 0.42); /* 히어로 오버레이 */

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(27, 32, 28, 0.06);
  --shadow: 0 18px 50px rgba(27, 40, 30, 0.10);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
/* v1 호환: 그라데이션 텍스트 → 톤에 맞게 딥포레스트 강조로 */
.gradient-text { color: var(--forest); }

/* ── 헤더 (투명 → 스크롤 시 페이퍼) ────────────────── */
.nv-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nv-header.scrolled {
  background: rgba(251, 251, 248, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nv-header__inner { display: flex; align-items: center; gap: 40px; height: 84px; }
.nv-logo { display: inline-flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: #fff; transition: color 0.4s; }
.nv-header.scrolled .nv-logo { color: var(--ink); }
.nv-logo__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.nv-logo .dot, .nv-logo b { color: var(--gold); }
.nv-nav { display: flex; gap: 4px; margin: 0 auto; }
.nv-nav a {
  padding: 10px 18px; font-size: 15.5px; font-weight: 500; color: rgba(255,255,255,0.86);
  transition: color 0.25s; position: relative;
}
.nv-header.scrolled .nv-nav a { color: var(--ink-2); }
.nv-nav a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nv-nav a:hover::after, .nv-nav a.is-active::after { transform: scaleX(1); }
.nv-header__right { display: flex; align-items: center; gap: 8px; }
/* 우측 컨트롤(로그인·회원가입·언어) 높이 통일 — 전역 .btn 크기와 분리 */
.nv-header__right .btn, .nv-header__right .nv-lang__btn { height: 38px; padding: 0 16px; font-size: 13.5px; }
.nv-burger { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: #fff; }
.nv-header.scrolled .nv-burger { color: var(--ink); }

/* ── 언어 드롭다운 ── */
.nv-lang { position: relative; }
.nv-lang__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.4); background: transparent; color: #fff; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all 0.25s;
}
.nv-header.scrolled .nv-lang__btn { border-color: var(--line-2); color: var(--ink-2); }
.nv-lang__btn:hover { border-color: currentColor; }
.nv-lang__caret { font-size: 9px; transition: transform 0.25s var(--ease); }
.nv-lang.open .nv-lang__caret { transform: rotate(180deg); }
.nv-lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 168px; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s; z-index: 950;
}
.nv-lang.open .nv-lang__menu { opacity: 1; visibility: visible; transform: none; }
.nv-lang__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nv-lang__item:hover { background: var(--bg); }
.nv-lang__item.is-active { color: var(--forest); }
.nv-lang__flag { font-size: 17px; line-height: 1; }
.nv-lang__check { margin-left: auto; color: var(--forest); }

/* ── 버튼 ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn-ghost { color: var(--ink-2); }
.nv-header:not(.scrolled) .btn-ghost { color: rgba(255,255,255,0.9); }
.btn-ghost:hover { color: var(--forest); }
.btn-line { border-color: var(--line-2); background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--forest); color: var(--forest); }
.btn-primary { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ── 커버 히어로 ──────────────────────────────────── */
.cover {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.cover__bg {
  position: absolute; inset: 0; z-index: -2;
  background: #26332b url("https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  transform: scale(1.05); animation: kenburns 20s ease-in-out infinite alternate;
}
@keyframes kenburns { to { transform: scale(1.15) translateY(-1.5%); } }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,26,20,0.62) 0%, rgba(18,26,20,0.42) 45%, rgba(18,26,20,0.68) 100%),
    linear-gradient(90deg, rgba(18,26,20,0.35) 0%, rgba(18,26,20,0) 35%, rgba(18,26,20,0.28) 100%); }
.cover__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; width: 100%; padding: 120px 0 80px; }
.cover__eyebrow { font-size: 13.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.cover h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 74px); line-height: 1.08; margin: 20px 0 22px; letter-spacing: -0.01em; }
.cover__lead { font-size: clamp(16px, 1.6vw, 19px); opacity: 0.9; max-width: 460px; font-weight: 300; }
.cover__search { display: flex; margin: 34px 0 16px; max-width: 480px; background: rgba(255,255,255,0.12);
  border: 1px solid var(--glass-line); border-radius: var(--radius); backdrop-filter: blur(8px); overflow: hidden; }
.cover__search input { flex: 1; background: transparent; border: 0; padding: 15px 18px; color: #fff; font-size: 15px; outline: none; }
.cover__search input::placeholder { color: rgba(255,255,255,0.6); }
.cover__search button { background: rgba(255,255,255,0.14); border: 0; color: #fff; padding: 0 20px; cursor: pointer; font-size: 16px; }
.cover__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cover__tag { padding: 7px 14px; border: 1px solid var(--glass-line); border-radius: 999px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.92); transition: all 0.25s; }
.cover__tag:hover { background: rgba(255,255,255,0.14); }

/* 히어로 우측 글래스 카드 */
.cover__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gcard {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-lg);
  padding: 24px 22px; backdrop-filter: blur(12px); transition: all 0.35s var(--ease);
}
.gcard:hover { background: rgba(255,255,255,0.18); transform: translateY(-4px); }
.gcard__ico { font-size: 22px; margin-bottom: 14px; opacity: 0.95; }
.gcard__t { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.gcard__links { display: grid; gap: 7px; }
.gcard__links a { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; opacity: 0.82; padding: 3px 0; }
.gcard__links a:hover { opacity: 1; }

/* ── 섹션 공통 ────────────────────────────────────── */
.section { padding: 120px 0; }
.section--paper { background: var(--paper); }
.section__head { max-width: 720px; margin: 0 0 60px; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--moss); letter-spacing: 0.12em; text-transform: uppercase; }
.section__head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.8vw, 48px); margin: 16px 0 18px; }
.section__head p { color: var(--sub); font-size: 17px; }
.hr-rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── 특징 (에디토리얼 리스트/그리드) ──────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--paper); padding: 44px 36px; transition: background 0.3s; }
.feature:hover { background: var(--bg); }
.feature__icon { font-size: 26px; margin-bottom: 22px; }
.feature h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.feature p { color: var(--sub); font-size: 15.5px; }
.feature__more { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--forest); }

/* v1 카드 호환 (coin/deal 등 전용 CSS가 참조) */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* ── 콘텐츠 리스트(에디토리얼) ────────────────────── */
.ed-list { border-top: 1px solid var(--line); }
.ed-item { display: grid; grid-template-columns: 200px 1fr auto; gap: 30px; align-items: baseline;
  padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding 0.3s var(--ease); }
.ed-item:hover { padding-left: 10px; }
.ed-cat { font-size: 13px; font-weight: 600; color: var(--moss); letter-spacing: 0.06em; }
.ed-title { font-family: var(--serif); font-size: 23px; font-weight: 400; }
.ed-item:hover .ed-title { color: var(--forest); }
.ed-meta { font-size: 13px; color: var(--sub); white-space: nowrap; }

/* ── CTA 밴드 ─────────────────────────────────────── */
.cta-band { position: relative; padding: 96px 40px; text-align: center; color: #fff; overflow: hidden;
  background: var(--forest); border-radius: var(--radius-lg); }
.cta-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.cta-band p { opacity: 0.85; font-size: 17px; margin-bottom: 32px; }
.cta-band .btn-primary { background: #fff; color: var(--forest); border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--bg); }

/* ── 푸터 ─────────────────────────────────────────── */
.nv-footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 80px 0 40px; }
.nv-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.nv-footer__brand .nv-logo { color: #fff; }
.nv-footer__brand p { font-size: 14px; margin-top: 16px; max-width: 300px; line-height: 1.7; }
.nv-footer h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 16px; text-transform: uppercase; }
.nv-footer a { display: block; font-size: 14px; padding: 6px 0; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.nv-footer a:hover { color: #fff; }
.nv-footer__op { font-size: 12.5px; margin-top: 12px; color: rgba(255,255,255,0.42); }
.nv-footer__offices { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 52px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.12); }
.nv-office h4 { color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.nv-office__name { color: rgba(255,255,255,0.85); font-size: 14.5px; font-weight: 600; margin: 0 0 6px; }
.nv-office address { font-style: normal; font-size: 14px; line-height: 1.85; color: rgba(255,255,255,0.6); }
.nv-office address a { color: rgba(255,255,255,0.78); }
.nv-office address a:hover { color: #fff; }
.nv-footer__bottom { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; }

/* ── 스크롤 리빌 ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }

/* ── 모바일 드로어 ─────────────────────────────────── */
.nv-logo__txt { white-space: nowrap; }
.nv-mobile {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 14px 32px 22px; box-shadow: var(--shadow);
}
.nv-header.nav-open .nv-mobile { display: block; }
.nv-mobile__nav { display: flex; flex-direction: column; }
.nv-mobile__nav a { padding: 13px 4px; font-size: 16px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.nv-mobile__nav a.is-active { color: var(--forest); }
.nv-mobile__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 12px; }
.nv-mobile__langs { display: flex; gap: 8px; }
.nv-mobile__langs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 13.5px; color: var(--ink-2); }
.nv-mobile__langs a.is-active { border-color: var(--forest); color: var(--forest); }
/* 드로어 열림 시 헤더를 페이퍼 상태로(투명 히어로 위에서도 가독) */
.nv-header.nav-open { background: rgba(251,251,248,0.96); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--line); }
.nv-header.nav-open .nv-logo, .nv-header.nav-open .nv-burger { color: var(--ink); }
.nv-header.nav-open .nv-lang__btn { border-color: var(--line-2); color: var(--ink-2); }

/* ── 반응형 ───────────────────────────────────────── */
@media (max-width: 980px) {
  .nv-header__inner { gap: 16px; height: 68px; }
  .nv-nav { display: none; }
  /* nav가 숨으면 우측으로 밀어주던 여백이 사라짐 → 버거를 오른쪽 끝으로 */
  .nv-header__right { margin-left: auto; }
  .nv-burger { display: block; }
  .nv-hide-mobile { display: none; }
  .nv-lang { display: none; }
  /* 콘텐츠가 100vh보다 크면 중앙정렬이 상단을 헤더 뒤로 밀어냄 → 상단정렬 +
     상단 패딩은 .cover에(cover__inner는 .container라 LR 패딩이 덮어씀) */
  .cover { align-items: flex-start; min-height: auto; padding: 100px 0 60px; }
  .cover__inner { grid-template-columns: 1fr; gap: 36px; padding: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .ed-item { grid-template-columns: 1fr; gap: 8px; }
  .nv-footer__grid { grid-template-columns: 1fr 1fr; }
  .nv-footer__offices { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .nv-mobile { padding: 14px 20px 22px; }
  .nv-logo { font-size: 19px; }
  .cover__cards { grid-template-columns: 1fr; }
  .cover h1 { font-size: clamp(34px, 12vw, 48px); }
  .nv-footer__grid { grid-template-columns: 1fr; }
}

/* ── 인라인 SVG 아이콘 기본(nv_icon) ── 이모지 대체. currentColor 상속. */
.nv-ic { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.nv-ic--muted { opacity: 0.55; }
