@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* 제목·숫자용 — Paperlogy */
@font-face {
  font-family: 'Paperlogy';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/font-paperlogy@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Paperlogy';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/font-paperlogy@1.0/Paperlogy-7Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Paperlogy';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/font-paperlogy@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
  font-weight: 800; font-display: swap;
}

:root {
  --display: 'Paperlogy', Pretendard, sans-serif;
  --ink: #08090c;
  --ink-2: #0f1116;
  --ink-3: #171a21;
  --paper: #f2f1ec;
  --fg: #f6f5f2;
  --fg-dim: #8b8f99;
  --fg-mute: #5b5f69;
  --line: rgba(255, 255, 255, .1);
  --blue: #1a6fff;
  --kakao: #fee500;
  --kakao-ink: #181600;
  --shell: 1240px;
  --gut: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* 가로 스크롤 원천 차단 (body만 막으면 html이 새어나감) */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--ink);
  color: var(--fg);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.017em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  /* body에 overflow를 주면 body가 스크롤 컨테이너가 되어 html의 스크롤 스냅이 죽는다.
     가로 스크롤 차단은 html에서만 한다. */
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gut); }

/* 제목·숫자는 Paperlogy, 본문은 Pretendard */
h1, h2, h3, .num, .btn, .nav-cta { font-family: var(--display); }

/* 카운트업 중에 숫자 폭이 흔들리지 않도록 */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--blue); z-index: 200;
}

/* ══ 헤더 ══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(8, 9, 12, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
/* 헤더는 본문 폭에 갇히지 않고 화면 끝까지 쓴다 (로고 좌단 · 메뉴 우단) */
.nav .shell { max-width: none; padding: 0 clamp(28px, 3.4vw, 56px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-logo img { height: 21px; width: auto; }
/* 로고는 왼쪽, 메뉴는 오른쪽 끝으로 */
.nav-menu { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav-menu a { font-size: 12.5px; font-weight: 700; letter-spacing: .11em; color: var(--fg-dim); transition: color .2s; }
.nav-menu a:hover, .nav-menu a[aria-current] { color: var(--fg); }
.nav-cta {
  padding: 11px 20px; border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700; transition: transform .18s, background .18s;
}
.nav-cta:hover { background: #0d5ce0; transform: translateY(-1px); }
.nav-burger, .nav-drawer { display: none; }

@media (max-width: 860px) {
  .nav-menu { display: none; }
  .nav-burger { display: block; width: 30px; height: 30px; position: relative; }
  .nav-burger i { position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--fg); transition: transform .3s; }
  .nav-burger i:nth-child(1) { top: 12px; }
  .nav-burger i:nth-child(2) { top: 18px; }
  .nav.open .nav-burger i:nth-child(1) { transform: translateY(3px) rotate(45deg); }
  .nav.open .nav-burger i:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
  .nav-drawer {
    position: fixed; inset: 74px 0 auto 0; background: rgba(8, 9, 12, .97);
    backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    display: grid; padding: 12px var(--gut) 26px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .28s;
  }
  .nav.open .nav-drawer { transform: none; opacity: 1; pointer-events: auto; }
  .nav-drawer a { padding: 15px 0; font-size: 19px; font-weight: 700; border-bottom: 1px solid var(--line); }
}

/* ══ 섹션 뼈대 ══ */
.sec { padding: clamp(90px, 11vw, 150px) 0; position: relative; }
.sec.light { background: var(--paper); color: var(--ink); }
.sec.light .lede { color: #5a5e66; }
.sec.light .eyebrow { color: var(--fg-mute); }
.sec.light .eyebrow::before { background: var(--fg-mute); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--fg-dim); text-transform: uppercase; margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--fg-dim); }

h2.big {
  font-size: clamp(34px, 5.4vw, 68px); font-weight: 800; line-height: 1.16;
  letter-spacing: -.018em; margin-bottom: 20px;
}
h2.big em { font-style: normal; color: var(--blue); }
.lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--fg-dim); line-height: 1.75; max-width: 52ch; }

/* ══ 스크롤 등장 ══ */
[data-rise] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--d, 0ms);
}
[data-rise].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-rise] { opacity: 1; transform: none; transition: none; }
  .progress { display: none; }
}

/* ══ 버튼 ══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 54px; padding: 0 30px; border-radius: 999px;
  font-size: 15px; font-weight: 700; transition: transform .18s, background .18s;
}
.btn:active { transform: scale(.98); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 30px -12px rgba(26, 111, 255, .8); }
.btn-blue:hover { background: #0d5ce0; transform: translateY(-2px); }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-kakao:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost { border: 1px solid var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); background: rgba(255,255,255,.04); }
.sec.light .btn-ghost { border-color: rgba(0,0,0,.18); color: var(--ink); }
.sec.light .btn-ghost:hover { border-color: var(--ink); background: rgba(0,0,0,.04); }

/* ══ 푸터 ══ */
.foot { background: var(--ink-2); border-top: 1px solid var(--line); padding: 70px 0 40px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.foot-logo img { height: 20px; margin-bottom: 16px; }
.foot-claim { font-size: 15px; font-weight: 600; }
.foot-links { display: flex; gap: 46px; flex-wrap: wrap; }
.foot-col h4 { font-size: 11px; letter-spacing: .14em; color: var(--fg-mute); font-weight: 700; margin-bottom: 14px; text-transform: uppercase; }
.foot-col a, .foot-col p { display: block; font-size: 14px; color: var(--fg-dim); margin-bottom: 9px; transition: color .18s; }
.foot-col a:hover { color: var(--fg); }
.foot-biz { padding-top: 30px; font-size: 12px; line-height: 2; color: var(--fg-mute); }
.foot-biz b { color: var(--fg-dim); font-weight: 600; }
.foot-biz .sep { margin: 0 8px; opacity: .4; }
.foot-copy { margin-top: 14px; font-size: 11px; color: #3d414a; }

/* ══ 플로팅 ══ */
.dock { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 10px; }
.dock a {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .6);
  transition: transform .2s;
}
.dock a:hover { transform: translateY(-3px) scale(1.04); }
.dock .d-kakao { background: var(--kakao); color: var(--kakao-ink); }
.dock .d-insta { background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976); color: #fff; }
.dock svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  :root { --gut: 20px; }
  .dock { right: 14px; bottom: 14px; }
  .dock a { width: 46px; height: 46px; }
}
