/* 말랑머지 랜딩 B안 「젤리 나이트」(2026-11-08 02:10). 밤하늘 바탕에 앱 강조색 #1E5EF0. 시안: claude.ai 디자인 캔버스 「말랑머지 랜딩 시안」 B */
:root {
	--bg: #0A1030;
	--panel: #111943;
	--ink: #EEF1FF;
	--muted: #C9D0F0;
	--dim: #9AA3CC;
	--accent: #8FB2FF;
	--cobalt: #1E5EF0;
	--bezel: #05081C;
	--line: rgba(255, 255, 255, .12);
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--ink);
	font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
	line-height: 1.6;
	word-break: keep-all;
	overflow-wrap: anywhere; /* 메일 주소처럼 끊을 곳 없는 긴 낱말이 폰 폭을 넘지 않게 */
}
/* 일본어·중국어: 한글용 Pretendard·Apple SD Gothic의 한자 대신 그 언어 글꼴을 쓰고,
   띄어쓰기가 없어 keep-all이면 줄이 안 바뀌므로 글자 단위 줄바꿈(금칙 처리)으로 돌린다 */
html:lang(ja) body { font-family: "Pretendard Variable", Pretendard, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif; word-break: normal; line-break: strict; }
html:lang(zh-Hans) body { font-family: "Pretendard Variable", Pretendard, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; word-break: normal; line-break: strict; }
a { color: var(--accent); }
img, video { max-width: 100%; display: block; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* 머리말은 히어로 위에 겹친다 */
.top {
	position: absolute; left: 0; right: 0; top: 0; z-index: 2;
	max-width: 1240px; margin: 0 auto; padding: 18px 24px;
	display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: #fff; text-decoration: none; }
.brand img { border-radius: 10px; }
.top nav { font-size: 14px; color: var(--dim); }
.top nav a { color: var(--muted); text-decoration: none; padding: 10px 4px; }
.top nav a[aria-current="page"] { color: #fff; font-weight: 700; }

/* 히어로: 정지 그림 위에 같은 크기 영상이 겹친다 */
.hero { position: relative; min-height: 820px; overflow: hidden; background: #0B1230; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 16, 48, .92) 0%, rgba(10, 16, 48, .55) 45%, rgba(10, 16, 48, 0) 70%); }
.hero-copy { position: relative; max-width: 1240px; margin: 0 auto; padding: 200px 24px 140px; }
.eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
h1 { margin: 0 0 20px; max-width: 640px; font-size: clamp(40px, 5vw, 64px); line-height: 1.12; font-weight: 900; letter-spacing: -0.02em; color: #fff; }
.lead { margin: 0 0 36px; max-width: 480px; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
	padding: 8px 22px; border-radius: 14px;
	background: #fff; color: var(--bg); text-decoration: none;
}
a.store:hover { background: #E6ECFF; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; min-width: 108px; font-size: 19px; font-weight: 700; line-height: 1.15; } /* 글자 영역을 'Google Play' 폭에 맞춰 두 버튼의 아이콘·글자 위치를 같게 한다 */
.store small { font-size: 11px; font-weight: 500; }
.qr { display: flex; align-items: center; gap: 12px; margin-left: 6px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: 13px; line-height: 1.45; color: var(--muted); }
.qr img { width: 72px; height: 72px; border-radius: 8px; }

/* 폰 테두리. 화면 비율은 캡처 원본(1170x2532)과 같다 */
.phone { padding: 9px; border-radius: 46px; background: var(--bezel); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 80px rgba(30, 94, 240, .35); }
.phone img, .phone video { width: 100%; height: auto; aspect-ratio: 600 / 1298; border-radius: 37px; background: #E9E8FA; object-fit: cover; }
.phone .still { display: none; }

/* 히어로 아래에 걸치는 실제 플레이 영상 */
.gameplay { position: relative; z-index: 1; max-width: 1240px; margin: -230px auto 0; padding: 0 96px 0 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.gameplay .phone { width: 300px; border-radius: 52px; padding: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 40px 120px rgba(30, 94, 240, .45); }
.gameplay .phone img, .gameplay .phone video { border-radius: 42px; }
.gameplay figcaption { width: 300px; text-align: center; font-size: 13px; color: var(--dim); }

.features { max-width: 1240px; margin: 0 auto; padding: 120px 24px 40px; display: flex; flex-direction: column; gap: 32px; }
.features h2 { margin: 0 0 32px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; letter-spacing: -0.02em; text-align: center; }
.features article { display: flex; align-items: center; gap: 64px; padding: 56px 72px; border-radius: 32px; background: linear-gradient(135deg, #16205A 0%, #111943 100%); }
.features article:nth-of-type(2) { flex-direction: row-reverse; background: linear-gradient(135deg, #2A1656 0%, #171142 100%); }
.features article:nth-of-type(3) { background: linear-gradient(135deg, #3A1440 0%, #1A1036 100%); }
.feature-text { flex: 1 1 0; min-width: 0; }
.tag { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--accent); }
.features article:nth-of-type(2) .tag { color: #D7B8FF; }
.features article:nth-of-type(3) .tag { color: #FF9CC6; }
.features h3 { margin: 0 0 14px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; line-height: 1.3; }
.feature-text p:last-child { margin: 0; font-size: 17px; color: var(--muted); }
.phones { flex: none; position: relative; width: 290px; }
/* 사진 두 장이면 뒤 장을 왼쪽 위, 앞 장을 오른쪽 아래로 겹친다 */
.phones:has(.phone + .phone) { width: 430px; height: 600px; }
.phones:has(.phone + .phone) .phone { position: absolute; width: 250px; padding: 8px; border-radius: 40px; }
.phones:has(.phone + .phone) .phone:first-child { left: 0; top: 0; opacity: .92; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 60px rgba(0, 0, 0, .4); }
.phones:has(.phone + .phone) .phone:last-child { right: 0; top: 70px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 80px rgba(255, 79, 147, .35); }
.phones:has(.phone + .phone) .phone img { border-radius: 32px; }

.how { max-width: 1240px; margin: 0 auto; padding: 96px 24px; }
.how h2 { margin: 0 0 32px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.how li { padding: 26px; border-radius: 20px; border: 1px solid var(--line); }
.how li strong { display: block; margin-bottom: 6px; font-size: 18px; }
.how li span { color: var(--muted); }
.langs { margin: 36px 0 0; font-size: 15px; color: var(--dim); }
.langs strong { color: var(--muted); }

.faq { max-width: 1240px; margin: 0 auto 120px; padding: 56px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; border-radius: 32px; background: var(--panel); }
.faq h2 { margin: 0 0 16px; font-size: clamp(28px, 3vw, 40px); font-weight: 900; line-height: 1.25; }
.faq-intro p { margin: 0 0 24px; color: var(--muted); }
.mail { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--cobalt); color: #fff; text-decoration: none; font-weight: 700; word-break: break-all; }
.faq details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.cta { max-width: 1240px; margin: 0 auto; padding: 0 24px 40px; text-align: center; }
.cta h2 { margin: 0 0 24px; font-size: clamp(24px, 3vw, 36px); font-weight: 900; letter-spacing: -0.01em; }
.cta .stores { justify-content: center; }

footer { max-width: 1240px; margin: 80px auto 0; padding: 28px 24px 44px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 10px; }
footer nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 0; }
footer p { margin: 4px 0; }

.getbar { display: none; }

/* 브라우저 언어 권유 띠(LangSuggest). 흐름 밖에 떠서 레이아웃을 밀지 않는다 */
.langbar {
	position: fixed; left: 50%; bottom: 24px; z-index: 4; transform: translateX(-50%);
	display: flex; align-items: center; gap: 4px; max-width: calc(100% - 32px);
	padding: 4px 4px 4px 18px; border-radius: 999px;
	background: #fff; color: var(--bg); box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
	font-size: 15px; font-weight: 700; white-space: nowrap;
}
.langbar a { color: var(--bg); text-decoration: none; padding: 10px 4px; }
.langbar button { width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: #4A5175; font: inherit; font-size: 22px; cursor: pointer; }
.langbar button:hover { background: #EEF0FA; }

/* 히어로 문구와 걸친 폰이 겹치지 않게, 좁은 데스크톱에서는 폰을 덜 올린다 */
@media (max-width: 1100px) {
	.gameplay { margin-top: -120px; padding-right: 24px; }
	.features article { gap: 40px; padding: 48px; }
}

@media (max-width: 720px) {
	.top { padding: 12px 16px; }
	.brand { font-size: 17px; }
	.hero { min-height: min(177vw, 760px); display: flex; }
	.hero-bg { object-position: 50% 60%; }
	.hero-shade { background: linear-gradient(180deg, rgba(10, 16, 48, .85) 0%, rgba(10, 16, 48, .35) 42%, rgba(10, 16, 48, 0) 60%, rgba(10, 16, 48, 0) 78%, var(--bg) 100%); }
	.hero-copy { flex: 1; width: 100%; padding: 84px 16px 20px; display: flex; flex-direction: column; }
	.eyebrow { font-size: 12px; margin-bottom: 10px; color: #B9CCFF; }
	h1 { font-size: 34px; margin-bottom: 12px; }
	.lead { font-size: 16px; color: #DDE3FF; }
	.hero .stores { margin-top: auto; flex-direction: column; align-items: stretch; gap: 10px; }
	.qr { display: none; }
	.gameplay { margin-top: 40px; padding: 0 16px; align-items: center; }
	.gameplay .phone, .gameplay figcaption { width: 250px; }
	.features { padding: 64px 16px 16px; gap: 16px; }
	.features h2 { margin-bottom: 8px; text-align: left; }
	.features article, .features article:nth-of-type(2) { flex-direction: row; gap: 16px; padding: 20px; border-radius: 24px; }
	.features h3 { font-size: 18px; margin-bottom: 4px; }
	.features h3 br { display: none; }
	.tag { font-size: 12px; margin-bottom: 4px; }
	.feature-text p:last-child { font-size: 14px; }
	.phones, .phones:has(.phone + .phone) { order: -1; width: 96px; height: auto; }
	.phones .phone, .phones:has(.phone + .phone) .phone { position: static; width: 96px; padding: 3px; border-radius: 18px; box-shadow: none; opacity: 1; }
	.phones .phone img, .phones:has(.phone + .phone) .phone img { border-radius: 15px; }
	.phones .phone + .phone { display: none; }
	.how { padding: 56px 16px; }
	.how ol { grid-template-columns: minmax(0, 1fr); }
	.faq { margin: 0 16px 64px; padding: 28px 20px; grid-template-columns: minmax(0, 1fr); gap: 16px; border-radius: 24px; }
	.cta { padding: 0 16px 24px; }
	.cta .stores { flex-direction: column; align-items: stretch; }
	footer { margin-top: 48px; padding: 24px 16px 104px; }
	.getbar {
		display: flex; align-items: center; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
		padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
		background: rgba(10, 16, 48, .94); border-top: 1px solid var(--line);
		font-size: 13px; line-height: 1.35; color: var(--dim);
	}
	.getbar img { border-radius: 10px; }
	.langbar { bottom: calc(84px + env(safe-area-inset-bottom)); }
	.getbar span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.getbar strong { font-size: 15px; color: #fff; }
	.getbar a { display: flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--cobalt); color: #fff; text-decoration: none; font-weight: 700; }
}

/* 모션 줄이기 설정이면 영상 대신 정지 그림을 보인다 */
@media (prefers-reduced-motion: reduce) {
	.motion { display: none; }
	.phone .still { display: block; }
}
