/* 소통 랜딩 — 밤하늘 보라 바탕 위에 포탈 색(보라·하늘·주황·분홍)을 얹는다.
   다크 단일 테마: 영상·포탈 발광이 어두운 바탕에서만 산다. */

:root {
  --bg: #0b0718;
  --bg-2: #140c2c;
  --ink: #f5f1ff;
  --muted: #b9aed8;
  --dim: #7d7299;
  --violet: #8b5cff;
  --pink: #ff5fb8;
  --cyan: #4fd8ff;
  --amber: #ffb03a;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-hi: rgba(255, 255, 255, 0.16);
  --radius: 28px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --display: 'Unbounded', 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* clip: hidden과 달리 스크롤 컨테이너를 만들지 않아 sticky가 살아 있다 */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  /* 한국어는 어절 단위로 줄바꿈 — 좁은 폰에서 "한곳에서"가 "한곳에/서"로 쪼개졌다 */
  word-break: keep-all;
  overflow-wrap: break-word;
  /* hidden이면 html이 clip일 때 body가 스크롤 컨테이너가 돼 히어로·세계 sticky가 통째로 풀린다(겪었다) */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
body.is-loading { overflow: hidden; }
::selection { background: var(--violet); color: #fff; }

.grad {
  font-style: normal;
  background: linear-gradient(100deg, #c9b6ff 0%, var(--pink) 45%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase;
}
.eyebrow.center { justify-content: center; width: 100%; }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 12px var(--pink);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.6); opacity: .6; } }

/* ── 로더 ─────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--bg);
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-portal { position: relative; width: 120px; height: 120px; }
.loader-portal span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--violet); border-right-color: var(--pink);
  animation: spin 1.1s linear infinite;
  filter: drop-shadow(0 0 10px var(--violet));
}
.loader-portal span:nth-child(2) { inset: 16px; animation-duration: 1.6s; animation-direction: reverse; border-top-color: var(--cyan); border-right-color: transparent; border-left-color: var(--violet); }
.loader-portal span:nth-child(3) { inset: 34px; animation-duration: .8s; border-top-color: var(--amber); border-right-color: transparent; }
/* 도는 링 한가운데 로고 — 가장 안쪽 링(inset 34px) 안에 들어가게 */
.loader-logo { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; animation: logoPulse 1.6s ease-in-out infinite; }
@keyframes logoPulse { 50% { transform: scale(.9); } }
.loader-label { font-family: var(--display); font-size: 13px; letter-spacing: .3em; color: var(--muted); }
.loader-label b { color: var(--ink); font-weight: 600; margin-left: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 커서 (마우스 기기만) ──────────────── */
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 90; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body, a, button { cursor: none; }
}
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; mix-blend-mode: difference; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(255,255,255,.5);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor-ring em { font-style: normal; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-hover .cursor-ring {
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  background: rgba(139, 92, 255, .35); border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cursor.is-hover .cursor-ring em { opacity: 1; }
.cursor.is-hover .cursor-dot { opacity: 0; }

.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* ── 네비 ─────────────────────────────── */
.nav {
  position: fixed; z-index: 50; top: 16px; left: 50%;
  width: min(1180px, calc(100% - 32px)); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(16, 10, 36, .35);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: transform .6s var(--ease), background .4s;
}
.nav.hidden { transform: translate(-50%, -140%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 4px 12px rgba(139,92,255,.5)); }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 16px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
/* 메뉴바의 웹 시작: 옆의 앱 다운로드(그라데이션)보다 한 단계 낮은 평평한 버튼 */
.nav-web {
  display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--ink);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.3);
  transition: background .25s, border-color .25s;
}
.nav-web:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); }
.nav-web:active { background: rgba(255,255,255,.18); }

.glass-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 700;
  color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgba(139,92,255,.9), rgba(255,95,184,.85));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -8px 16px rgba(60,20,120,.35), 0 10px 30px -8px rgba(139,92,255,.7);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.glass-btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 62%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.glass-btn:hover { transform: translateY(-2px); }
.glass-btn:hover::after { transform: translateX(120%); }
.glass-btn.small { padding: 10px 20px; font-size: 14px; }

/* 스토어 버튼: 유리 판 */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store-row.center { justify-content: center; }
.store-btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 12px 22px 12px 18px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.05));
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 18px 40px -18px rgba(0,0,0,.6);
  overflow: hidden;
  transition: transform .35s var(--ease), background .35s, border-color .35s;
}
.store-btn::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120px 60px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.35), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.store-btn:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.5); }
.store-btn:hover::before { opacity: 1; }
.store-btn svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.store-btn small { font-size: 11px; font-weight: 500; opacity: .8; letter-spacing: .02em; white-space: nowrap; }

/* ── HERO ─────────────────────────────── */
.hero { position: relative; height: 380vh; }
.hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #2a1560 0%, var(--bg) 70%);
}
.hero-video { position: absolute; inset: 0; will-change: transform, filter, opacity; transform-origin: 50% 46%; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,5,20,.82) 0%, rgba(8,5,20,.45) 38%, rgba(8,5,20,0) 62%),
    linear-gradient(0deg, rgba(8,5,20,.9) 0%, rgba(8,5,20,0) 38%),
    linear-gradient(180deg, rgba(8,5,20,.5) 0%, rgba(8,5,20,0) 18%);
}

.hero-copy {
  position: absolute; left: max(32px, calc((100vw - 1180px) / 2)); bottom: 12vh;
  width: min(640px, calc(100% - 48px));
  will-change: transform, opacity, filter;
}
.hero-title {
  margin-top: 18px;
  font-size: clamp(44px, 7.2vw, 104px); font-weight: 800;
  line-height: 1.02; letter-spacing: -.045em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.is-ready .hero-title .line > span { transform: none; }
.is-ready .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.hero-sub { margin-top: 22px; font-size: clamp(16px, 1.35vw, 19px); color: #ddd3f5; max-width: 34em; opacity: 0; transform: translateY(20px); transition: opacity 1s .35s, transform 1s .35s var(--ease); }
.hero-copy .store-row { opacity: 0; transform: translateY(20px); transition: opacity 1s .5s, transform 1s .5s var(--ease); }
.hero-copy .eyebrow { opacity: 0; transition: opacity 1s .1s; }
.is-ready .hero-sub, .is-ready .hero-copy .store-row, .is-ready .hero-copy .eyebrow { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute; right: max(32px, calc((100vw - 1180px) / 2)); bottom: 12vh;
  display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted);
  letter-spacing: .02em;
}
.scroll-cue-ring { width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 20px; position: relative; }
.scroll-cue-ring span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* 소용돌이: 영상 속 보라 포탈과 같은 색으로 이어받는다 */
.vortex { position: absolute; inset: 0; opacity: 0; pointer-events: none; will-change: opacity; }
.vortex-swirl {
  position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax;
  background:
    repeating-conic-gradient(from 0deg, rgba(139,92,255,0) 0deg, rgba(139,92,255,.55) 8deg, rgba(79,216,255,.0) 18deg, rgba(255,95,184,.35) 26deg, rgba(139,92,255,0) 36deg);
  -webkit-mask: radial-gradient(circle, transparent 0 6%, #000 22%, #000 48%, transparent 70%);
  mask: radial-gradient(circle, transparent 0 6%, #000 22%, #000 48%, transparent 70%);
  filter: blur(14px);
  will-change: transform;
}
.vortex-lines {
  position: absolute; inset: -20%;
  background: repeating-conic-gradient(from 3deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,0) 5.3deg, rgba(255,255,255,.55) 5.6deg, rgba(255,255,255,0) 6deg);
  -webkit-mask: radial-gradient(circle, transparent 0 14%, #000 40%, #000 60%, transparent 75%);
  mask: radial-gradient(circle, transparent 0 14%, #000 40%, #000 60%, transparent 75%);
  opacity: .35; mix-blend-mode: screen; will-change: transform;
}
.vortex-core {
  position: absolute; left: 50%; top: 50%; width: 36vmin; height: 36vmin; margin: -18vmin 0 0 -18vmin; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #e6dcff 12%, #9f7bff 34%, rgba(90,40,200,.5) 58%, transparent 72%);
  filter: blur(4px); will-change: transform;
}

/* 3D 터널: 링·캐릭터·아이콘이 카메라를 향해 날아온다 */
.tunnel {
  position: absolute; inset: 0; perspective: 900px; perspective-origin: 50% 50%;
  transform-style: preserve-3d; pointer-events: none; opacity: 0;
}
.t-item { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; backface-visibility: hidden; }
.t-ring {
  width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 0 40px 6px var(--rc, rgba(139,92,255,.7)), inset 0 0 40px 6px var(--rc, rgba(139,92,255,.7));
}
.t-char { height: 42vmin; width: auto; translate: -50% -50%; filter: drop-shadow(0 0 24px rgba(139,92,255,.55)); }
.t-icon { width: 16vmin; height: 16vmin; translate: -50% -50%; filter: drop-shadow(0 16px 30px rgba(20,0,60,.6)); }
.t-star { width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }

.warp-hud {
  position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%);
  text-shadow: 0 2px 20px rgba(20, 6, 60, .9), 0 0 4px rgba(20, 6, 60, .6);
  text-align: center; opacity: 0; pointer-events: none; will-change: opacity;
}
.warp-label { font-family: var(--display); font-size: 11px; letter-spacing: .32em; color: var(--muted); }
.warp-dest { margin-top: 6px; font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -.03em; height: 1.2em; overflow: hidden; }
.warp-dest span { display: inline-block; }
.warp-bar { margin: 12px auto 0; width: 220px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.warp-bar span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)); }

.flash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #efe8ff 30%, #b89cff 60%, var(--bg) 100%);
  will-change: opacity;
}

/* ── 도착 ─────────────────────────────── */
.arrive { position: relative; min-height: 120vh; display: grid; place-items: center; padding: 18vh 24px; overflow: hidden; }
/* 흐린 빛 덩어리는 filter: blur가 아니라 가장자리가 투명해지는 방사 그라데이션으로 만든다.
   부모에 blur(80px)를 걸면 자식이 움직일 때마다 섹션 전체를 다시 흐려서 폰에서 스크롤이 끊겼다 */
.aurora { position: absolute; inset: 0; pointer-events: none; opacity: .85; }
.aurora i { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; will-change: transform; }
.aurora i:nth-child(1) { width: 70vw; height: 70vw; left: -20vw; top: 0; background: radial-gradient(closest-side, rgba(139,92,255,.42), rgba(139,92,255,0)); }
.aurora i:nth-child(2) { width: 60vw; height: 60vw; right: -18vw; top: 20%; background: radial-gradient(closest-side, rgba(255,95,184,.3), rgba(255,95,184,0)); animation-duration: 22s; }
.aurora i:nth-child(3) { width: 56vw; height: 56vw; left: 22%; bottom: -20%; background: radial-gradient(closest-side, rgba(79,216,255,.22), rgba(79,216,255,0)); animation-duration: 26s; }
@keyframes drift { to { transform: translate(6vw, -4vh) scale(1.15); } }
.arrive-inner { position: relative; max-width: 1100px; text-align: center; }
.statement {
  margin-top: 28px;
  font-size: clamp(34px, 5.4vw, 80px); font-weight: 800; line-height: 1.18; letter-spacing: -.04em;
  word-break: keep-all;
}
.statement .w { color: rgba(255,255,255,.14); transition: color .5s, text-shadow .5s; }
.statement .w.on { color: var(--ink); }
.statement .w.hl.on { color: #d7c6ff; text-shadow: 0 0 30px rgba(139,92,255,.8); }

.peek { position: absolute; bottom: -4vh; height: min(64vh, 620px); width: auto; pointer-events: none; will-change: transform; }
.peek-left { left: max(-40px, calc(50% - 760px)); }
.peek-right { right: max(-40px, calc(50% - 760px)); }

.float-icon { position: absolute; width: clamp(64px, 8vw, 120px); pointer-events: none; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(10,0,40,.55)); }
.fi-1 { left: 16%; top: 16%; }
.fi-2 { right: 14%; top: 12%; animation-delay: -2s; width: clamp(56px, 6vw, 96px); }
.fi-3 { right: 22%; bottom: 20%; animation-delay: -4s; }
.fi-4 { left: 8%; top: 22%; }
.fi-5 { right: 9%; top: 30%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(6deg); } }

/* ── 흐르는 띠 ─────────────────────────── */
.marquee { position: relative; padding: 26px 0; border-block: 1px solid var(--line); overflow: hidden; background: rgba(255,255,255,.02); transform: rotate(-2deg) scale(1.04); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-item { display: flex; align-items: center; gap: 34px; padding-right: 34px; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 88px); letter-spacing: -.02em; white-space: nowrap; }
.marquee-item .outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); }
.marquee-item img { width: clamp(56px, 6vw, 92px); height: auto; }

/* ── 네 개의 세계 ─────────────────────── */
.worlds { position: relative; height: 420vh; }
.worlds-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.worlds-head {
  position: absolute; z-index: 3; top: 96px; left: max(32px, calc((100vw - 1180px) / 2)); right: max(32px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; gap: 24px;
}
.worlds-progress { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.worlds-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--violet), var(--pink)); }
.worlds-count { font-family: var(--display); font-size: 13px; color: var(--dim); }
.worlds-count b { color: var(--ink); }
.worlds-track { display: flex; height: 100%; will-change: transform; }
.world {
  position: relative; flex: none; width: 100vw; height: 100%;
  display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.4fr; align-items: center; gap: 4vw;
  padding: 150px max(32px, calc((100vw - 1180px) / 2)) 60px;
}
.world::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50vw 50vh at 72% 55%, color-mix(in srgb, var(--c1) 26%, transparent), transparent 70%);
}
.world-text { position: relative; z-index: 2; }
.world-num { font-family: var(--display); font-size: clamp(80px, 11vw, 170px); font-weight: 800; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c1) 70%, white); display: block; }
.world h2 { margin-top: 18px; font-size: clamp(40px, 5vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.world h2 small { display: block; margin-top: 10px; font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.01em; color: color-mix(in srgb, var(--c1) 55%, white); }
.world p { margin-top: 18px; color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); max-width: 26em; word-break: keep-all; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.world-visual { position: relative; height: min(66vh, 620px); transform-style: preserve-3d; perspective: 1200px; }
.world-card {
  position: absolute; inset: 0; border-radius: 36px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 40px 100px -30px color-mix(in srgb, var(--c1) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.3);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .6s var(--ease);
}
.world-card img { width: 118%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.world-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,5,20,.55)); }
.world-icon { position: absolute; z-index: 2; width: clamp(96px, 10vw, 160px); right: -40px; top: -52px; filter: drop-shadow(0 24px 36px rgba(10,0,40,.6)); animation: bob 5s ease-in-out infinite; }
/* 캐릭터는 카드 왼쪽 모서리를 밟고 튀어나온다 — 오른쪽에 두면 장면 그림의 인물들을 가린다 */
.world-char { position: absolute; z-index: 3; left: -7%; bottom: -9%; height: 104%; width: auto; filter: drop-shadow(0 30px 40px rgba(10,0,40,.55)); will-change: transform; pointer-events: none; }

/* ── 기능 ─────────────────────────────── */
.features { position: relative; padding: 18vh max(24px, calc((100vw - 1180px) / 2)); }
.section-head { text-align: center; margin-bottom: 64px; position: relative; z-index: 2; }
.section-title { margin-top: 20px; font-size: clamp(36px, 5vw, 72px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; word-break: keep-all; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: clamp(15px, 1.25vw, 18px); word-break: keep-all; }
.br-m { display: none; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.glass-card {
  position: relative; min-height: 300px; padding: 32px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.02) 60%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), border-color .4s;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.glass-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(139,92,255,.22), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.glass-card:hover { border-color: rgba(255,255,255,.3); }
.glass-card:hover::before { opacity: 1; }
.glass-card.span-2 { grid-column: span 2; }
.glass-card.span-3 { grid-column: 1 / -1; min-height: 260px; }
.glass-card.span-3 h3, .glass-card.span-3 p { max-width: 60%; }
.glass-card.span-3 .card-char { right: 10%; }
.card-icon { position: absolute; top: 22px; left: 22px; width: 116px; transition: transform .6s var(--ease); filter: drop-shadow(0 18px 28px rgba(10,0,40,.55)); }
.glass-card:hover .card-icon { transform: translateY(-8px) rotate(-8deg) scale(1.08); }
.glass-card h3 { position: relative; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.glass-card p { position: relative; margin-top: 8px; color: var(--muted); max-width: 30em; word-break: keep-all; }
.glass-card.span-2 h3, .glass-card.span-2 p { max-width: 58%; }
.card-char { position: absolute; right: 4%; bottom: -26%; height: 128%; width: auto; transition: transform .7s var(--ease); pointer-events: none; }
.glass-card:hover .card-char { transform: translateY(-6%); }

/* ── 아바타 캐러셀 ────────────────────── */
.avatars { position: relative; padding: 16vh 0 10vh; overflow: hidden; }
.carousel { position: relative; height: min(74vh, 700px); perspective: 1600px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.carousel-ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.carousel-floor {
  position: absolute; left: 50%; bottom: 3%; width: min(1100px, 120vw); height: 200px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(139,92,255,.5), rgba(255,95,184,.14) 45%, transparent 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
}
.carousel-floor::after { content: ''; position: absolute; inset: 22% 14%; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 0 30px rgba(139,92,255,.6); }
.c-item { position: absolute; left: 50%; bottom: 10%; height: 82%; width: auto; transform-origin: 50% 100%; will-change: transform, filter; pointer-events: none; -webkit-user-drag: none; }

/* ── 다운로드 ─────────────────────────── */
.download { position: relative; min-height: 120vh; display: grid; place-items: center; padding: 16vh 24px; overflow: hidden; }
.cta-portal { position: absolute; left: 50%; top: 50%; width: min(86vmin, 900px); aspect-ratio: 1; transform: translate(-50%, -50%) scale(var(--s, .6)); will-change: transform; }
.cta-swirl {
  position: absolute; inset: -18%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--pink), var(--amber), var(--violet));
  filter: blur(46px); opacity: .75; animation: spin 14s linear infinite;
}
.cta-window { position: absolute; inset: 6%; border-radius: 50%; overflow: hidden; }
.cta-window video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); opacity: .55; }
.cta-window::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(11,7,24,.35) 0%, rgba(11,7,24,.8) 70%, var(--bg) 100%); }
.cta-rim { position: absolute; inset: 5%; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); box-shadow: 0 0 60px 10px rgba(139,92,255,.6), inset 0 0 60px 10px rgba(139,92,255,.5); }
.cta-copy { position: relative; z-index: 3; text-align: center; }
.cta-icon { width: 128px; margin: 0 auto 10px; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(10,0,40,.6)); }
.cta-title { font-size: clamp(42px, 6.4vw, 96px); font-weight: 800; letter-spacing: -.05em; line-height: 1.04; }
.cta-char { position: absolute; z-index: 2; bottom: 0; height: min(58vh, 560px); width: auto; pointer-events: none; will-change: transform; filter: drop-shadow(0 30px 40px rgba(10,0,40,.6)); }
.cta-l1 { left: max(0px, calc(50% - 700px)); }
.cta-l2 { left: max(120px, calc(50% - 540px)); height: min(46vh, 440px); filter: brightness(.8) drop-shadow(0 30px 40px rgba(10,0,40,.6)); z-index: 1; }
.cta-r1 { right: max(0px, calc(50% - 700px)); }
.cta-r2 { right: max(120px, calc(50% - 540px)); height: min(46vh, 440px); filter: brightness(.8) drop-shadow(0 30px 40px rgba(10,0,40,.6)); z-index: 1; }

/* ── 푸터 ─────────────────────────────── */
.footer {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 60px max(24px, calc((100vw - 1180px) / 2)) 48px;
  border-top: 1px solid var(--line); color: var(--dim); font-size: 14px;
}
.footer-word { display: flex; align-items: center; gap: .18em; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 9vw, 140px); line-height: .9; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3); }
/* 로고는 글자 윤곽선(투명 채움)을 물려받지 않게 따로 크기를 준다 */
.footer-logo { width: .82em; height: .82em; flex: none; }
.footer-brand p:last-child { margin-top: 12px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-meta a:hover { color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 95; transform: translate(-50%, 30px);
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(30,18,64,.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none; transition: opacity .4s, transform .5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4) { transition-delay: .08s; }
.bento .reveal:nth-child(5) { transition-delay: .16s; }

/* ── 반응형 ───────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-copy { left: 20px; bottom: 16vh; }
  .hero-shade { background: linear-gradient(0deg, rgba(8,5,20,.95) 0%, rgba(8,5,20,.55) 45%, rgba(8,5,20,.1) 75%), linear-gradient(180deg, rgba(8,5,20,.5), transparent 20%); }
  .scroll-cue { left: 20px; right: auto; bottom: 5vh; }
  .store-btn { min-width: 0; flex: 1 1 150px; padding: 10px 12px; gap: 10px; }
  .store-btn span { font-size: 16px; }
  .store-btn small { font-size: 10px; letter-spacing: 0; }
  .store-btn svg { width: 22px; height: 22px; }

  .worlds { height: auto; }
  .worlds-sticky { position: relative; height: auto; overflow: visible; }
  .worlds-head { display: none; }
  .worlds-track { flex-direction: column; transform: none !important; }
  .world { width: 100%; height: auto; grid-template-columns: 1fr; padding: 12vh 20px; gap: 48px; }
  .world-visual { height: 52vh; order: -1; margin: 0 8px; }
  .world-icon { right: -8px; top: -36px; width: 90px; }
  .world-char { height: 96%; left: -6%; }

  .bento { grid-template-columns: 1fr; }
  .glass-card.span-2, .glass-card.span-3 { grid-column: auto; }
  .glass-card.span-3 h3, .glass-card.span-3 p { max-width: 62%; }
  .glass-card.span-3 .card-char { right: 4%; }
  .glass-card { min-height: 0; padding: 136px 24px 28px; }
  .glass-card.span-2 h3, .glass-card.span-2 p { max-width: 62%; }
  .card-icon { width: 96px; }
  .br-m { display: inline; }

  .peek { height: 38vh; opacity: .9; }
  .peek-left { left: -12vw; }
  .peek-right { right: -12vw; }
  .cta-char { height: 34vh; }
  .cta-l2, .cta-r2 { display: none; }
  .cta-l1 { left: -10vw; }
  .cta-r1 { right: -10vw; }
  .carousel { height: 54vh; }
  .fi-4 { left: 4%; top: auto; bottom: 6%; }
  .fi-5 { right: 4%; top: auto; bottom: 10%; }
  .fi-1 { left: 6%; top: 8%; }
  .fi-2 { right: 6%; top: 6%; }
}

/* 폰에서만 붙는 등장 연출: 세계 카드는 가로 이동 대신 하나씩 떠오르고 캐릭터가 옆에서 들어온다 */
@media (max-width: 900px) {
  .world .world-card { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .9s var(--ease), transform 1s var(--ease); }
  .world .world-char { opacity: 0; transform: translateX(-30vw) rotate(-8deg); transition: opacity .8s .15s var(--ease), transform 1.1s .15s var(--ease); }
  .world .world-icon { opacity: 0; transition: opacity .8s .3s; }
  .world .world-text > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
  .world .world-text > :nth-child(2) { transition-delay: .06s; }
  .world .world-text > :nth-child(3) { transition-delay: .12s; }
  .world .world-text > :nth-child(4) { transition-delay: .18s; }
  .world.in .world-card, .world.in .world-char, .world.in .world-icon, .world.in .world-text > * { opacity: 1; transform: none; }
  .hero { height: 280vh; }
}

/* ── 가벼운 모드: 좁은 화면 또는 터치 기기 ─────────────────────
   폰 GPU가 버거워하는 것만 덜어낸다 — 전체 화면 필터, 거대한 흐림 레이어, 겹겹의 backdrop-filter, 상시 애니메이션 */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  html, body { -webkit-tap-highlight-color: transparent; }
  /* 화면 두 배 크기 레이어가 0.2초마다 움직인다 — 작은 화면에선 티도 안 난다 */
  .grain { display: none; }
  /* 170vmax에 blur(14px)면 3배 밀도 폰에서 한 변 4000px가 넘는 텍스처가 된다 */
  .vortex-swirl { width: 130vmax; height: 130vmax; margin: -65vmax 0 0 -65vmax; filter: none; opacity: .8; }
  .vortex-core { filter: none; }
  .t-item { will-change: auto; }
  .t-ring { box-shadow: 0 0 18px 3px var(--rc, rgba(139,92,255,.7)), inset 0 0 18px 3px var(--rc, rgba(139,92,255,.7)); }
  .t-char { filter: none; }
  .t-icon { filter: none; }
  /* backdrop-filter는 뒤를 매 프레임 다시 흐린다. 스크롤과 함께 움직이는 칩·카드는 반투명 면으로 대신한다 */
  .chips li { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.08); }
  .glass-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(160deg, rgba(255,255,255,.11), rgba(255,255,255,.035) 60%), rgba(20,12,44,.55); }
  .store-btn { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .nav { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(16,10,36,.6); }
  .float-icon, .world-icon, .cta-icon { filter: drop-shadow(0 12px 16px rgba(10,0,40,.5)); }
  .cta-swirl { filter: blur(28px); inset: -10%; }
  .peek, .world-char, .cta-char { filter: drop-shadow(0 16px 20px rgba(10,0,40,.5)); }
  .cta-l2, .cta-r2 { filter: brightness(.8); }
}

/* 터치에는 호버가 "눌린 채 남는다" — 떠오름·기울기 대신 누르는 순간의 반응만 준다 */
@media (hover: none) {
  .glass-btn:hover, .store-btn:hover { transform: none; }
  .glass-btn:hover::after { transform: translateX(-120%); }
  .store-btn:hover::before, .glass-card:hover::before { opacity: 0; }
  .glass-card:hover .card-icon, .glass-card:hover .card-char { transform: none; }
  .glass-btn:active, .store-btn:active { transform: scale(.96); transition-duration: .1s; }
  .glass-card:active { transform: scale(.985); }
}

/* 노치·홈 인디케이터 영역 피하기 (viewport-fit=cover) */
@supports (padding: env(safe-area-inset-top)) {
  .nav { top: calc(16px + env(safe-area-inset-top)); }
  .footer { padding-bottom: calc(48px + env(safe-area-inset-bottom)); padding-left: max(24px, calc((100vw - 1180px) / 2), env(safe-area-inset-left)); padding-right: max(24px, calc((100vw - 1180px) / 2), env(safe-area-inset-right)); }
  .toast { bottom: calc(32px + env(safe-area-inset-bottom)); }
  .hero-copy { padding-left: env(safe-area-inset-left); }
}
@media (max-width: 900px) {
  @supports (padding: env(safe-area-inset-top)) {
    .nav { top: calc(10px + env(safe-area-inset-top)); width: calc(100% - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
    .hero-copy { bottom: calc(15vh + env(safe-area-inset-bottom)); }
    .scroll-cue { bottom: calc(4vh + env(safe-area-inset-bottom)); }
  }
}

/* 내 기기의 스토어 버튼 (폰에서만 붙는다) */
.store-btn.is-mine {
  border-color: rgba(255,255,255,.4);
  background: linear-gradient(135deg, rgba(139,92,255,.85), rgba(255,95,184,.75));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 14px 34px -12px rgba(139,92,255,.8);
}

/* 좁은 폰: 웹·App Store·Google Play 셋을 한 줄에 같은 폭으로 — 2+1로 접히면 하나만 튀어 보인다.
   작은 윗글자는 빼고 아이콘 위·이름 아래로 세운다(한 칸 약 105px) */
@media (max-width: 480px) {
  .store-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .store-btn { flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 12px 6px; border-radius: 16px; text-align: center; }
  .store-btn small { display: none; }
  .store-btn span { font-size: 13.5px; align-items: center; white-space: nowrap; }
  .store-btn svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; }
  .vortex, .tunnel, .warp-hud, .flash, .scroll-cue { display: none; }
  .grain, .aurora i, .float-icon, .world-icon, .cta-icon, .cta-swirl, .eyebrow .dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .world .world-card, .world .world-char, .world .world-icon, .world .world-text > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .statement .w { color: var(--ink); }
}
