/* Mouse Potato — 브랜드 아이덴티티
   로고 팔레트: #10100F · #FFFFFF · #00CB73 · 디스플레이 폰트 Poppins
   "Stay Lazy, Create More" */

:root {
  --bg: #10100f;
  --surface: #1a1a18;
  --surface-2: #232321;
  --border: #2f2f2c;
  --text: #ffffff;
  --text-sub: #a5a5a1;
  --text-dim: #6d6d68;
  --accent: #00cb73;
  --accent-dim: #00a35c;
  --accent-soft: rgba(0, 203, 115, 0.12);
  --font-display: "Poppins", "Pretendard", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --radius: 16px;
  --maxw: 780px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg);
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── 헤더 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 16, 15, 0.55);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease,
    border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(16, 16, 15, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}

.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s ease;
}

.site-header.scrolled .inner {
  padding-top: 11px;
  padding-bottom: 11px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
}

.brand .wordmark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  color: var(--text-sub);
}

.nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── 마그네틱 (커서 근접 시 미세 끌림, motion.js) ── */
[data-magnetic] {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.18s ease;
  will-change: transform;
}

/* ── 컨테이너 ── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 22px 96px;
}

/* ───────── 랜딩 — 가운데 큰 워드마크 (한 화면) ───────── */
.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px;
}

.logo-xl {
  margin: 0 auto;
  width: fit-content;
  max-width: 92vw;
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 112px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: normal;
  padding: 0 0.16em;
  white-space: nowrap;
  color: #fff;
}

.logo-xl .word {
  display: inline-block;
}

.logo-xl .word + .word {
  margin-left: 0.26em;
}

/* ── 롤링 슬로건 ── */
.slogans {
  position: relative;
  width: 90vw;
  max-width: 720px;
  height: 1.6em;
  margin: clamp(20px, 3.4vw, 34px) auto 0;
  font-family: var(--font-display);
  font-size: clamp(15px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.6;
  overflow: hidden;
}

.slogan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  white-space: nowrap;
  color: var(--c, var(--accent));
}

/* JS 없음·CSP 차단 시: 첫(메인) 슬로건만 정적 노출 */
.slogan {
  opacity: 0;
  transform: translateY(115%);
}

.slogan:first-child {
  opacity: 1;
  transform: none;
}

/* JS 모션: motion.js 가 .is-active/.is-leaving 로 트렌디 롤링 제어 */
.js-motion .slogan {
  opacity: 0;
  transform: translateY(115%);
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
  will-change: transform, opacity;
}

.js-motion .slogan.is-active {
  opacity: 1;
  transform: none;
}

.js-motion .slogan.is-leaving {
  opacity: 0;
  transform: translateY(-115%);
}

/* ── 우측 상단 미니 내비 ── */
.corner-nav {
  position: absolute;
  top: clamp(20px, 3vh, 32px);
  right: clamp(20px, 4vw, 56px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(60vw, 480px);
  gap: clamp(14px, 2.2vw, 26px);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}

.corner-nav a {
  color: var(--text-sub);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.corner-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── 등장 모션 (로드 시 fade-in) ──
   기본값 = 보임. motion.js 가 html.js-motion 부착 시만 숨겼다 .in 으로 등장.
   JS 미동작·CSP 차단·reduced-motion 시 항상 보임. */
.reveal {
  opacity: 1;
  transform: none;
}

.js-motion .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.js-motion .reveal.in {
  opacity: 1;
  transform: none;
}

/* 로고: 일반 fade 대신 단어별 마스크 와이프 (clip).
   이 블록이 .reveal 규칙보다 뒤 → 동일 specificity 에서 우선. */
.js-motion .logo-xl {
  opacity: 1;
  transform: none;
}

.js-motion .logo-xl .word {
  clip-path: inset(0 0 116% 0);
  transform: translateY(0.4em);
  transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path, transform;
}

.js-motion .logo-xl.in .word {
  clip-path: inset(0 0 -22% 0);
  transform: none;
}

.js-motion .logo-xl.in .word:nth-child(2) {
  transition-delay: 0.14s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .js-motion .reveal,
  .js-motion .reveal.in,
  .js-motion .logo-xl,
  .js-motion .logo-xl .word,
  .js-motion .logo-xl.in .word,
  .js-motion .slogan.is-active {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
    animation: none;
  }
  .js-motion .slogan {
    transition: none;
  }
  [data-magnetic] {
    transition: none;
  }
}

/* ── 카드 (약관/정책/고객센터) ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 18px;
}

.card h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--text);
}

.card p,
.card li {
  color: var(--text-sub);
  font-size: 15px;
}

.card ul,
.card ol {
  padding-left: 20px;
  margin: 8px 0;
}

.card li {
  margin: 5px 0;
}

/* ── 문서 페이지 (약관/정책) ── */
.doc-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.doc-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 30px;
}

.doc h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 34px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.doc h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.doc h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 6px;
  color: var(--text);
}

.doc p,
.doc li {
  color: var(--text-sub);
  font-size: 15px;
  margin: 8px 0;
}

.doc strong {
  color: var(--text);
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}

.doc th,
.doc td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  color: var(--text-sub);
}

.doc th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(0, 203, 115, 0.25);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 14px;
  color: var(--text-sub);
}

.biz-table th {
  width: 38%;
}

/* ── 푸터 ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 22px 56px;
  font-size: 13px;
  color: var(--text-dim);
}

.site-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.site-footer .footer-tag {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.site-footer .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.site-footer .links a {
  color: var(--text-sub);
  font-weight: 600;
}

.site-footer .biz {
  line-height: 1.85;
}

.site-footer .biz strong {
  color: var(--text-sub);
}

/* ── 반응형 ── */
@media (max-width: 600px) {
  .stage {
    padding: 40px 20px;
  }
  .corner-nav {
    top: 16px;
    right: 16px;
    gap: 14px;
    font-size: 11.5px;
    max-width: 64vw;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .card {
    padding: 22px;
  }
  .nav {
    gap: 14px;
    font-size: 13px;
  }
}
