/* ============================================================
   kkiruk studio — 홈 + 앱 페이지 공용
   시간대별 배경: 어제보다 앱의 디자인 시스템과 동일
   ============================================================ */

:root {
  --bg: #F7F6F2;
  --ink: #1A1A1A;
  --ink2: #8A8A8A;
  --accent: #F5C842;
  --maxw: 960px;
}
html.t-midnight { --bg:#0D0E16; --ink:#EAE6DC; --ink2:#606470; --accent:#6B7FA3; }
html.t-dawn     { --bg:#18234A; --ink:#E8EAF2; --ink2:#8A93B8; --accent:#6B7FA3; }
html.t-morning  { --bg:#EBF0F7; --ink:#1A1A1A; --ink2:#8A8A8A; --accent:#F5C842; }
html.t-day      { --bg:#F7F6F2; --ink:#1A1A1A; --ink2:#8A8A8A; --accent:#F5C842; }
html.t-sunset   { --bg:#EDDDCA; --ink:#2A1F14; --ink2:#8A7A66; --accent:#F4A261; }
html.t-evening  { --bg:#181428; --ink:#E8E2F0; --ink2:#6B6480; --accent:#6B7FA3; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", Pretendard,
               "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  transition: background .6s ease, color .6s ease;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .6s ease;
}
header .bar {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.wordmark { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.nav-right { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--ink2); }
.nav-right a:hover { color: var(--ink); }

/* ── 홈 히어로 ── */
.home-hero { padding: 150px 0 70px; }
.home-hero .kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: lowercase;
  color: var(--ink2); margin-bottom: 18px;
}
.home-hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 650; letter-spacing: -.02em; line-height: 1.22;
}
.home-hero p { margin-top: 16px; color: var(--ink2); font-size: 16px; }

/* ── 스탯 스트립 ── */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.stat {
  border-radius: 18px; padding: 18px 24px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.stat b { display: block; font-size: 27px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.stat b span { font-size: inherit; color: inherit; }
.stat > span { font-size: 12.5px; color: var(--ink2); }

/* ── 대표작 카드 ── */
.fcard {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: center;
  border-radius: 26px; padding: 34px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  transition: transform .15s ease, background .2s ease;
  margin-bottom: 16px; overflow: hidden;
}
.fcard:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.fcard.rev { grid-template-columns: .85fr 1.15fr; }
.fcard.rev .fcopy { order: 2; }
.fcard.rev .fvisual { order: 1; }
.ficon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px; }
.fcopy h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.fcopy .fen { font-size: 12px; font-weight: 500; color: var(--ink2); margin-left: 6px; }
.fcopy p { font-size: 14.5px; color: var(--ink2); margin-top: 10px; max-width: 26em; }
.flink { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 650;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); padding-bottom: 1px; }
.fvisual { display: flex; justify-content: center; }
.fvisual.poster {
  flex-direction: column; align-items: flex-start; justify-content: flex-end;
  background: #F7F6F2; border: 1px solid rgba(26,26,26,.08);
  border-radius: 20px; padding: 22px; min-height: 230px; width: 100%; max-width: 270px;
  margin-left: auto; position: relative; overflow: hidden;
}
.msun { position: absolute; top: 18px; right: 18px; width: 86px; height: 86px; }
.msun i { position: absolute; inset: 0; margin: auto; border-radius: 50%; background: #F5C842;
  animation: msunb 4.5s ease-in-out infinite; }
.msun i:nth-child(1) { width: 100%; height: 100%; opacity: .16; }
.msun i:nth-child(2) { width: 62%; height: 62%; opacity: .45; animation-delay: .4s; }
.msun i:nth-child(3) { width: 30%; height: 30%; animation-delay: .8s; }
@keyframes msunb { 0%,100% { transform: scale(.96); } 50% { transform: scale(1.05); } }
.pmsg { font-size: 17px; font-weight: 650; color: #1A1A1A; line-height: 1.3; }
.ptemp { font-size: 40px; font-weight: 200; color: #1A1A1A; margin-top: 4px; }
.fshot { width: 100%; max-width: 250px; border-radius: 18px; margin-left: auto;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  box-shadow: 0 22px 50px -18px color-mix(in srgb, var(--ink) 35%, transparent); }
.fcard.rev .fshot { margin-left: 0; margin-right: auto; }
@media (max-width: 760px) {
  .fcard, .fcard.rev { grid-template-columns: 1fr; }
  .fcard.rev .fcopy { order: 1; } .fcard.rev .fvisual { order: 2; }
  .fvisual.poster, .fshot { margin: 0 auto; }
}

/* ── 섹션 ── */
section { padding: 40px 0 70px; }
.sec-label {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink2); margin-bottom: 22px;
}

/* ── 앱 그리드 ── */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.app-card {
  display: flex; gap: 18px; align-items: flex-start;
  border-radius: 22px; padding: 24px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  transition: transform .15s ease, background .2s ease;
}
.app-card:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.app-card img { width: 64px; height: 64px; border-radius: 15px; flex-shrink: 0; }
.app-card h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.app-card .en { font-size: 11.5px; color: var(--ink2); font-weight: 500; margin-top: 1px; }
.app-card p { font-size: 13.5px; color: var(--ink2); margin-top: 7px; }
.app-card .links { margin-top: 10px; display: flex; gap: 14px; font-size: 12.5px; font-weight: 600; }
.app-card .links a { color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); padding-bottom: 1px; }
.app-card .links a:hover { border-color: var(--ink); }

/* ── 앱 상세(미니) 페이지 ── */
.app-hero { padding: 150px 0 40px; text-align: center; }
.app-hero img { width: 110px; height: 110px; border-radius: 26px; box-shadow: 0 16px 44px -14px color-mix(in srgb, var(--ink) 30%, transparent); }
.app-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 650; letter-spacing: -.02em; margin-top: 24px; }
.app-hero .tagline { color: var(--ink2); font-size: 17px; margin-top: 10px; }
.app-hero .tagline-en { color: var(--ink2); font-size: 13px; margin-top: 4px; opacity: .8; }
.appstore-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 14px 24px; border-radius: 14px;
  font-size: 16px; font-weight: 600; margin-top: 28px;
  transition: transform .15s ease, opacity .2s;
}
.appstore-btn:hover { transform: translateY(-1px); opacity: .9; }
.appstore-btn svg { width: 18px; height: 22px; fill: currentColor; }

.bullets { max-width: 520px; margin: 30px auto 0; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.bullet {
  border-radius: 16px; padding: 16px 20px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  font-size: 14.5px;
}
.bullet b { font-weight: 650; }
.bullet span { color: var(--ink2); }

.support-note { text-align: center; margin-top: 36px; font-size: 13.5px; color: var(--ink2); }
.support-note a { color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }

/* ── Footer ── */
footer {
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  padding: 36px 0 60px; font-size: 13px; color: var(--ink2); margin-top: 50px;
}
footer .cols { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--ink); }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .apps { grid-template-columns: 1fr; }
  .home-hero { padding-top: 120px; }
}

/* ============================================================
   홈 리디자인 (2026-06) — 홈 전용 클래스만, 앱 랜딩과 무관
   ============================================================ */

/* ── 본문 회색 가독성 보정 (홈 한정, 테마별) ── */
.home { --ink2: #5F5F5F; }
html.t-midnight .home { --ink2: #9BA0B2; }
html.t-dawn     .home { --ink2: #AEB6D4; }
html.t-sunset   .home { --ink2: #6E5F4C; }
html.t-evening  .home { --ink2: #A29AC0; }

/* ── 히어로 그리드 + 카피 ── */
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: center; }
.home-hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--accent) 55%, transparent) 58%);
  border-radius: 3px; padding: 0 2px;
}
.hero-sub2 { margin-top: 16px; color: var(--ink2); font-size: 16px; line-height: 1.65; }

/* ── 수상 배지 ── */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge {
  font-size: 12px; font-weight: 600; color: var(--ink2);
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}

/* ── 떠 있는 앱 아이콘 클러스터 ── */
.hero-icons { position: relative; height: 430px; }
.hicon { position: absolute; display: block; border-radius: 26%;
  box-shadow: 0 14px 32px -10px color-mix(in srgb, var(--ink) 35%, transparent);
  transition: transform .2s ease; }
.hicon img { display: block; width: 100%; height: 100%; border-radius: 26%;
  animation: hfloat 5.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hicon:hover { transform: scale(1.12) rotate(-2deg); z-index: 2; }
@keyframes hfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hicon:nth-child(1) { width: 92px; height: 92px; top: 26%;  left: 34%; --d: 0s;   }
.hicon:nth-child(2) { width: 76px; height: 76px; top: 4%;   left: 6%;  --d: .7s;  }
.hicon:nth-child(3) { width: 70px; height: 70px; top: 8%;   left: 66%; --d: 1.4s; }
.hicon:nth-child(4) { width: 62px; height: 62px; top: 44%;  left: 4%;  --d: 2.1s; }
.hicon:nth-child(5) { width: 58px; height: 58px; top: 58%;  left: 72%; --d: .4s;  }
.hicon:nth-child(6) { width: 56px; height: 56px; top: 76%;  left: 22%; --d: 1.8s; }
.hicon:nth-child(7) { width: 60px; height: 60px; top: 80%;  left: 52%; --d: 1.1s; }
.hicon:nth-child(8) { width: 50px; height: 50px; top: 33%;  left: 78%; --d: 2.5s; }
.hicon:nth-child(9) { width: 48px; height: 48px; top: 60%;  left: 40%; --d: 3s;   }

/* ── 섹션 인트로 한 줄 ── */
.sec-intro { margin: -12px 0 22px; font-size: 14.5px; color: var(--ink2); }

/* ── 설명 속 자랑 포인트 강조 ── */
.hero-sub2 b, .sec-intro b, .app-card p b { color: var(--ink); font-weight: 650; }

/* ── 이모지 타일 (아이콘 없는 카드용) ── */
.etile {
  width: 64px; height: 64px; border-radius: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
}

.app-card img.simg {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

/* ── 미니 카드 (클래식 게임) ── */
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.mini {
  display: flex; align-items: center; gap: 14px;
  border-radius: 18px; padding: 16px 20px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  transition: transform .15s ease, background .2s ease;
}
.mini:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.memoji { font-size: 26px; }
.mini b { display: block; font-size: 14.5px; font-weight: 650; }
.mini span { font-size: 12.5px; color: var(--ink2); }

.store-links { margin-top: 18px; font-size: 13.5px; color: var(--ink2); }
.store-links a { font-weight: 650; color: var(--ink); margin-left: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); padding-bottom: 1px; }
.store-links a:hover { border-color: var(--ink); }

/* ── 연락 밴드 ── */
.cta-band { text-align: center; padding: 70px 0; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.cta-band p { margin: 14px auto 0; color: var(--ink2); font-size: 15px; max-width: 34em; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  padding: 13px 22px; border-radius: 14px; font-size: 15px; font-weight: 600;
  transition: transform .15s ease, opacity .2s;
}
.cta-btn:hover { transform: translateY(-1px); opacity: .9; }
.cta-btn.ghost { background: transparent; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.cta-social { display: flex; justify-content: center; gap: 18px; margin-top: 24px;
  font-size: 13px; font-weight: 600; color: var(--ink2); }
.cta-social a:hover { color: var(--ink); }

/* ── 스크롤 리빌 (JS 있을 때만) ── */
html.js .reveal { opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hicon img { animation: none; }
}

/* ── 모바일 ── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-icons { position: static; height: auto;
    display: flex; flex-wrap: wrap; gap: 12px; }
  .hicon, .hicon:nth-child(n) { position: static; width: 52px; height: 52px; }
}
@media (max-width: 700px) {
  .minis { grid-template-columns: 1fr; }
}

.poster-badge { position: absolute; top: 16px; left: 16px; font-size: 10.5px; font-weight: 800;
  color: #6B5212; background: rgba(245,200,66,.32); border: 1px solid rgba(245,200,66,.55);
  border-radius: 99px; padding: 4px 10px; }


/* 홈-히어로가 .wrap 좌우 패딩을 덮어쓰던 문제 보정 */
.home .home-hero { padding: 150px 24px 70px; }
@media (max-width: 700px) {
  .home .home-hero { padding-top: 120px; }
  .home .badge { white-space: nowrap; }
  .home .hicon, .home .hicon:nth-child(n) { width: 46px; height: 46px; }
}

/* 홈 언어 선택 */
.home .lang-sel {
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--ink); background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 9px; padding: 3px 6px; cursor: pointer;
}
