/* ═══════════════════════════════════════════════════════════════
   부스트버킷 (BoostBuckit) — 공용 디자인 시스템 + 랜딩 스타일

   토큰 출처: Figma `aFy2SLPYpUDopmBnpirvB6`
     · 「📄 시작하기 · 규칙 → 01 기본 → 색 / 글자 / 스타일」
     · 색 변수는 앱의 `부스트버킷/<계열>/<단계>` 를 그대로 옮긴 것이다.
       헥스를 직접 손대지 말고 피그마 변수가 바뀌면 같이 고친다.

   ⚠️ 이 파일을 고치면 index.html 과 build-pages.mjs(CSS_VER)의
      `?v=N` 을 **같은 숫자로** 올린다. (assets/* 는 1년 immutable 캐시)
   ═══════════════════════════════════════════════════════════════ */

/* ── 디스플레이 서체 (본문 Pretendard 는 시스템 설치본 + 폴백) ──
   Black Han Sans : 한글 제목 · 게임 이름
   Lilita One     : 영문 로고 · 숫자                                  */
@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Lilita+One&display=swap');

/* ───────────────────────── 토큰 ───────────────────────── */
:root {
  /* 색 — 부스트버킷 팔레트 */
  --purple-50:  #F3F0FA;  --purple-100: #E4DEF4;  --purple-200: #CBC1E9;
  --purple-300: #B9AEDB;  --purple-400: #8B78C7;  --purple-500: #6A55B0;
  --purple-600: #54409A;  --purple-700: #3D2C6B;  --purple-800: #2B1F4D;
  --purple-900: #241A2E;

  --sand-50:  #FFFAF0;  --sand-100: #FFF3D6;  --sand-200: #EDE2C9;
  --sand-300: #E0C89A;  --sand-600: #7A6A58;

  --yellow-300: #FFD45A;  --yellow-400: #FFC93C;  --yellow-500: #F7B032;
  --yellow-600: #F0962A;  --yellow-800: #B05E14;

  --red-500: #F0453A;    --red-600: #D3352B;
  --green-500: #4CCB3A;  --blue-500: #3478F0;

  --gray-100: #E9ECF1;  --gray-300: #C9CFDA;  --gray-500: #7E8896;
  --white: #FFFFFF;

  /* 역할 — 피그마 「색」 규칙표와 1:1 */
  --bg: var(--purple-900);          /* 페이지 바닥 */
  --surface: var(--purple-800);     /* 카드 · 앱 배경과 같은 색 */
  --surface-2: #35265C;             /* 한 단계 뜬 면 (700과 800 사이) */
  --line: rgba(203, 193, 233, .14);
  --line-strong: rgba(203, 193, 233, .26);

  --text: var(--white);
  --text-dim: var(--purple-200);
  --text-mute: var(--purple-300);

  --primary: var(--yellow-400);     /* 메인 버튼 · 강조 */
  --primary-deep: var(--yellow-600);
  --accent: var(--red-500);         /* START · 게임 이름 강조 */

  /* 서체 */
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "맑은 고딕", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-ko-display: "Black Han Sans", var(--font);
  --font-en-display: "Lilita One", var(--font);

  /* 치수 */
  --container: 1120px;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
}

/* ───────────────────────── 기본 ───────────────────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;        /* 한국어 어절 단위 줄바꿈 */
  overflow-x: hidden;
}

/* height:auto 가 없으면 <img height="900"> 속성이 CSS height 로 남아 세로로 늘어난다 */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: var(--purple-900);
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--yellow-300); outline-offset: 3px; border-radius: 4px; }

/* ───────────────────────── 타이포 ───────────────────────── */
/* 한글 제목은 Black Han Sans. 자간이 넓은 서체라 -0.01em 로 조인다. */
.d-ko { font-family: var(--font-ko-display); font-weight: 400; letter-spacing: -.01em; line-height: 1.28; }
.d-en { font-family: var(--font-en-display); font-weight: 400; letter-spacing: .005em; }

/* 「게임 이름은 마지막 단어만 Red/500」 규칙 */
.hl { color: var(--accent); }
.hl-y { color: var(--primary); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--purple-300);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--primary);
}

.section { padding: 104px 0; }
.section-head { max-width: 680px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); margin: 14px 0 0; }
.section-head p { color: var(--text-dim); font-size: 17px; margin: 16px 0 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ───────────────────────── 버튼 ─────────────────────────
   피그마 「스타일 · 게임 / 포멀」:
     게임 = 두꺼운 외곽선 + 아래 그림자, 포멀 = 평평
   웹은 포멀을 기본으로 하되, 메인 CTA 에만 아래 그림자를 남겨
   앱의 손맛을 조금 가져온다.                                        */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-primary {
  background: var(--primary); color: var(--purple-900);
  box-shadow: 0 4px 0 var(--primary-deep);
}
.btn-primary:hover { background: var(--yellow-300); transform: translateY(-1px); box-shadow: 0 5px 0 var(--primary-deep); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--primary-deep); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--purple-300); background: rgba(203,193,233,.07); }

.btn-lg { padding: 17px 34px; font-size: 17px; }

/* ───────────────────────── 헤더 ───────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(36, 26, 46, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .wordmark { font-family: var(--font-en-display); font-size: 22px; color: var(--white); letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-link:hover { color: var(--white); }
.nav .btn { padding: 10px 20px; font-size: 15px; }

@media (max-width: 760px) {
  .nav { gap: 14px; }
  .nav .nav-link { display: none; }
}

/* ───────────────────────── 히어로 ───────────────────────── */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero::before {              /* 보라 글로우 — 앱의 수확 화면 방사광에서 따옴 */
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: 0;
  background:
    radial-gradient(52% 58% at 72% 22%, rgba(106, 85, 176, .55) 0%, rgba(106, 85, 176, 0) 70%),
    radial-gradient(40% 46% at 18% 6%, rgba(255, 201, 60, .13) 0%, rgba(255, 201, 60, 0) 72%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: center; }

.badge-soon {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 201, 60, .12); border: 1px solid rgba(255, 201, 60, .4);
  color: var(--yellow-300); font-size: 13px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px;
}
.badge-soon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow-300); }

.hero h1 { font-size: clamp(38px, 6vw, 64px); margin: 22px 0 0; }
.hero .lead { color: var(--text-dim); font-size: clamp(17px, 2vw, 19px); margin: 20px 0 0; max-width: 29em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { color: var(--text-mute); font-size: 14px; margin: 16px 0 0; }

.hero-art {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #2C1A51;                       /* illust-games.jpg 의 바닥색 */
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(13, 8, 24, .55);
}
.hero-art img { width: 100%; }

/* 모바일에서는 버튼 두 개 폭을 맞춰 세로로 쌓는다 */
@media (max-width: 560px) {
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
}

@media (max-width: 920px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
}

/* ───────────────────────── 숫자 띠 ───────────────────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(43, 31, 77, .5); }
.strip .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 38px; padding-bottom: 38px; }
.strip .item { text-align: center; }
.strip .k { font-family: var(--font-ko-display); font-size: 26px; color: var(--primary); }
.strip .v { color: var(--text-dim); font-size: 15px; margin-top: 6px; }
@media (max-width: 720px) {
  .strip .container { grid-template-columns: 1fr; gap: 22px; }
}

/* ───────────────────────── 스텝 ───────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 26px 28px;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--primary); color: var(--purple-900);
  font-family: var(--font-en-display); font-size: 22px; line-height: 1;
  box-shadow: 0 3px 0 var(--primary-deep);
}
.step h3 { font-family: var(--font-ko-display); font-weight: 400; font-size: 21px; margin: 20px 0 0; }
.step p { color: var(--text-dim); font-size: 15px; margin: 10px 0 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ───────────────────────── 기능 (화면 + 설명) ───────────────────────── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .f-art { order: -1; }

.feature h3 { font-family: var(--font-ko-display); font-weight: 400; font-size: clamp(26px, 3.2vw, 34px); margin: 14px 0 0; }
.feature p { color: var(--text-dim); margin: 16px 0 0; }

.f-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.f-list li { position: relative; padding-left: 30px; color: var(--text-dim); font-size: 16px; }
.f-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241A2E' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* 앱 화면 — 가짜 기기 프레임 없이 둥근 카드로. (프레임을 그리면
   안드로이드 캡처 ↔ 아이폰 프레임 불일치 같은 문제가 생긴다) */
.shot {
  width: min(320px, 100%); margin: 0 auto;
  border-radius: 30px; overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 26px 60px rgba(13, 8, 24, .6);
}
.shot img { width: 100%; }
/* 길게 스크롤되는 화면을 중간에서 자른 경우 — 아래가 이어진다는 신호 */
.shot.cut { position: relative; }
.shot.cut::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, rgba(36, 26, 46, 0) 0%, var(--bg) 92%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature + .feature { margin-top: 72px; }
  .feature.flip .f-art { order: -1; }
  .feature .f-art { order: -1; }
}

/* ───────────────────────── 기프티콘 밴드 ───────────────────────── */
.band {
  background: linear-gradient(180deg, var(--surface) 0%, #32245A 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.band .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.band h2 { font-family: var(--font-ko-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 38px); margin: 14px 0 0; }
.band p { color: var(--text-dim); margin: 16px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  background: rgba(255, 243, 214, .1); border: 1px solid rgba(255, 243, 214, .22);
  color: var(--sand-100); font-size: 14px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
}
@media (max-width: 900px) {
  .band .container { grid-template-columns: 1fr; gap: 32px; }
  .band .b-art { order: -1; }
}

/* ───────────────────────── 공급사(입점) ───────────────────────── */
.partner {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 52px 48px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.partner h2 { font-family: var(--font-ko-display); font-weight: 400; font-size: clamp(26px, 3.2vw, 34px); margin: 14px 0 0; }
.partner p { color: var(--text-dim); margin: 16px 0 0; }
.partner .btn { margin-top: 26px; }
.p-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.p-points li {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
  font-size: 15px; color: var(--text-dim);
}
.p-points b { display: block; color: var(--white); font-weight: 700; margin-bottom: 3px; }
@media (max-width: 900px) {
  .partner { grid-template-columns: 1fr; gap: 32px; padding: 36px 24px; }
}

/* ───────────────────────── CTA 밴드 ───────────────────────── */
.cta { text-align: center; padding: 56px 0 112px; }
.cta img.mark { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 24px; }
.cta h2 { font-family: var(--font-ko-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 46px); margin: 0; }
.cta p { color: var(--text-dim); margin: 18px auto 0; max-width: 34em; }
.cta .hero-cta { justify-content: center; }

/* ───────────────────────── 푸터 ───────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: #1D1526; padding: 56px 0 44px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.f-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.f-brand img { width: 30px; height: 30px; border-radius: 8px; }
.f-brand span { font-family: var(--font-en-display); font-size: 20px; }
.biz { color: var(--text-mute); font-size: 14px; line-height: 1.85; }
.biz .co { color: var(--text-dim); font-weight: 700; }
.biz a { color: var(--text-dim); }
.links { display: grid; gap: 10px; align-content: start; }
.links a { color: var(--text-dim); text-decoration: none; font-size: 15px; font-weight: 600; }
.links a:hover { color: var(--white); }
.copy { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-mute); font-size: 13px; }

/* ═══════════════════ 하위 페이지 (build-pages.mjs) ═══════════════════ */
.page { padding: 64px 0 96px; max-width: 820px; }
.page-head { margin-bottom: 44px; }
.page-head h1 { font-family: var(--font-ko-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 42px); margin: 14px 0 0; }
.page-head .lead { color: var(--text-dim); margin: 14px 0 0; }

.prose { color: var(--purple-100); font-size: 16px; line-height: 1.85; }
.prose h2 {
  font-family: var(--font-ko-display); font-weight: 400; color: var(--white);
  font-size: 24px; margin: 52px 0 16px; padding-top: 28px; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { color: var(--white); font-size: 18px; font-weight: 700; margin: 32px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--yellow-300); }
.prose strong { color: var(--white); }

.table-wrap { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line-strong); padding: 11px 13px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); color: var(--white); font-weight: 700; white-space: nowrap; }

.note {
  background: rgba(240, 69, 58, .1); border: 1px solid rgba(240, 69, 58, .35);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 28px;
  color: var(--sand-100); font-size: 15px;
}
.note b { color: var(--white); }

.back-link { display: inline-block; margin-top: 44px; color: var(--text-dim); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--white); }
