/* 랜딩 (2026-11-13 리뉴얼, 사용자 선택: 카드 스토리보드 시안 — Cloudflare 카드 · Threads 유리 메뉴 · Mercury 한 줄 로그인)
   휴대폰은 mobile.js 가 .top · .hero · #who · #modal 을 그대로 씀 — 이 이름들은 바꾸지 말 것 */
:root {
  --bg: #F4F3F7; --ink: #17161D; --ink2: #5B5A66; --ink3: #8E8D98; --line: rgba(23, 22, 29, .07);
  --glass: rgba(255, 255, 255, .72); --gl: rgba(23, 22, 29, .09); --red: #D93A3A; --ease: cubic-bezier(.2, .7, .2, 1);
}
html[data-theme="dark"] { --bg: #0B0A11; --ink: #F3F2F8; --ink2: #B4B2C2; --ink3: #7D7B8C; --line: rgba(255, 255, 255, .05); --glass: rgba(30, 28, 44, .6); --gl: rgba(255, 255, 255, .11); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body.landing { background: var(--bg); color: var(--ink); font-family: 'Noto Sans KR', sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; word-break: keep-all; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
.bglines { position: fixed; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 95px, var(--line) 95px 96px); pointer-events: none; }
html[data-theme="dark"] .bglines::after { content: ""; position: absolute; left: 50%; top: -380px; width: 1500px; height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(120, 80, 240, .38), transparent); }

/* 위 유리 메뉴 */
.top { position: fixed; top: 18px; left: 0; right: 0; margin: 0 auto; width: min(1860px, calc(100% - 80px)); height: 58px; border-radius: 16px; background: var(--glass); border: 1px solid var(--gl); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); display: flex; align-items: center; padding: 0 10px 0 20px; z-index: 20; box-shadow: 0 8px 30px -14px rgba(20, 16, 40, .25); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; text-decoration: none; }
.mm { display: inline-grid; grid-template-columns: 7px 7px; gap: 3px; }
.mm i { width: 7px; height: 7px; border-radius: 50%; }
.mm i:nth-child(1) { background: #7DBE4E; } .mm i:nth-child(2) { background: #F08447; } .mm i:nth-child(3) { background: #B856A6; } .mm i:nth-child(4) { background: #3B7DC4; }
.top .pill { margin: 0 auto; display: flex; gap: 4px; }
.top .pill a { font-size: 14px; color: var(--ink2); text-decoration: none; padding: 7px 12px; border-radius: 9px; font-weight: 500; }
.top .pill a:hover { background: var(--gl); color: var(--ink); }
.acct { display: flex; gap: 8px; align-items: center; }
.btnp { border-radius: 999px; font-size: 14px; font-weight: 600; padding: 9px 18px; border: 1px solid var(--gl); color: var(--ink); background: transparent; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btnp.k { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btnp.icon { width: 40px; padding: 0; justify-content: center; height: 38px; }

/* 히어로 */
.hero { position: relative; display: grid; grid-template-columns: 470px minmax(0, 1fr); gap: 32px; align-items: center; min-height: 100vh; padding: 110px 0 130px max(40px, calc((100vw - 1860px) / 2)); }
.hero > section { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); border: 1px solid var(--gl); border-radius: 999px; padding: 5px 12px 5px 9px; background: var(--glass); }
.eyebrow b { font-weight: 600; color: var(--ink); }
.eyebrow .live { width: 7px; height: 7px; border-radius: 50%; background: #2EB872; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 184, 114, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(46, 184, 114, 0); } }
.hero h1 { font-size: 56px; line-height: 1.16; letter-spacing: -.045em; font-weight: 300; margin: 22px 0 0; }
.hero h1 strong { font-weight: 700; }
.hero h1 em { font-family: 'Noto Serif KR', serif; font-style: normal; font-weight: 700; background: linear-gradient(90deg, #7DBE4E, #F08447 35%, #B856A6 65%, #3B7DC4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--ink2); line-height: 1.65; margin: 20px 0 0; max-width: 470px; }
.login { display: flex; gap: 8px; margin-top: 34px; max-width: 520px; }
.login input { flex: 1; min-width: 0; height: 48px; border-radius: 12px; border: 1px solid var(--gl); background: var(--glass); padding: 0 16px; font: 400 15px 'Noto Sans KR', sans-serif; color: var(--ink); outline: none; transition: border .2s, box-shadow .2s; }
.login input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(120, 100, 220, .15); }
.login button { height: 48px; border-radius: 12px; border: 0; background: var(--ink); color: var(--bg); font: 600 15px 'Noto Sans KR', sans-serif; padding: 0 22px; transition: transform .15s; white-space: nowrap; }
.login button:hover { transform: translateY(-1px); }
.lerr { min-height: 18px; margin-top: 8px; font-size: 13px; color: var(--red); }
.sub2 { margin-top: 4px; font-size: 13px; color: var(--ink3); }
.sub2 a { color: var(--ink2); text-underline-offset: 3px; }
.go { display: flex; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.go a { height: 48px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--gl); background: var(--glass); }
.go a.k { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.go a b { background: #E5484D; color: #fff; font-size: 11.5px; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* 카드 스토리보드 */
.board { position: relative; overflow: hidden; padding: 20px 0 30px; container-type: inline-size; -webkit-mask: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent); mask: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent); }
.track { display: flex; gap: 22px; padding-left: 40px; transition: transform .9s cubic-bezier(.65, 0, .25, 1); will-change: transform; touch-action: pan-y; }
.card { position: relative; flex: none; width: clamp(230px, calc((100cqw - 136px) / 4), 320px); height: 450px; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; opacity: 0; transform: translateX(60px); animation: cardin .9s var(--ease) forwards; box-shadow: 0 30px 50px -30px rgba(20, 16, 40, .45); }
@keyframes cardin { to { opacity: 1; transform: none; } }
.card .ttl { position: absolute; left: 26px; top: 24px; display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; z-index: 3; }
.card .ttl svg, .dock svg, .go svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card canvas { position: absolute; left: 0; top: 56px; width: 100%; height: auto; aspect-ratio: 62 / 50; z-index: 1; }
.card .txt { position: absolute; left: 26px; right: 26px; bottom: 26px; z-index: 3; }
.card .txt p { font-size: 19px; line-height: 1.45; letter-spacing: -.02em; margin: 0; }
.card .txt span { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; opacity: .9; }
.card .txt span i { font-style: normal; transition: transform .25s; }
.card:hover .txt span i { transform: translateX(4px); }
.card.on::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; background: rgba(255, 255, 255, .85); z-index: 4; animation: prog var(--dur, 3600ms) linear forwards; }
@keyframes prog { from { width: 0; } to { width: 100%; } }
.ctrl { display: flex; align-items: center; gap: 14px; padding-left: 40px; margin-top: 6px; }
.ctrl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gl); background: var(--glass); color: var(--ink); font-size: 16px; }
.ctrl .count { font-size: 13px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.ctrl .count b { color: var(--ink); font-weight: 600; }

/* 아래 바로가기 */
.dock { position: fixed; left: 0; right: 0; margin: 0 auto; width: fit-content; max-width: calc(100% - 24px); bottom: 18px; display: flex; align-items: center; gap: 2px; padding: 7px; border-radius: 18px; background: var(--glass); border: 1px solid var(--gl); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); z-index: 20; box-shadow: 0 12px 40px -16px rgba(20, 16, 40, .3); overflow-x: auto; scrollbar-width: none; }
.dock::-webkit-scrollbar { display: none; }
.dock .lbl { font-size: 12px; color: var(--ink3); padding: 0 12px 0 10px; font-weight: 600; white-space: nowrap; }
.dock a { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; padding: 7px 0 6px; border-radius: 12px; color: var(--ink2); text-decoration: none; font-size: 11.5px; font-weight: 500; transition: background .2s, transform .2s; white-space: nowrap; }
.dock a:hover { background: var(--gl); color: var(--ink); transform: translateY(-3px); }
.dock a svg { width: 20px; height: 20px; stroke-width: 1.8; }
.dock a b { position: absolute; top: 2px; right: 10px; background: #E5484D; color: #fff; font-size: 10px; border-radius: 999px; padding: 0 5px; line-height: 15px; }
.dock .sep { width: 1px; height: 30px; background: var(--gl); margin: 0 4px; flex: none; }

/* 로그인 창 (휴대폰 · 다른 화면에서 ?login=1 로 왔을 때) */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(23, 22, 40, .4); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.modal.open { opacity: 1; pointer-events: auto; }
.sheet { position: relative; width: min(400px, 100%); background: #fff; color: #17161D; border-radius: 22px; padding: 30px 28px 26px; box-shadow: 0 24px 60px -20px rgba(23, 22, 40, .45); transform: translateY(12px) scale(.98); transition: transform .4s var(--ease); }
.modal.open .sheet { transform: none; }
.sheet h2 { margin: 0 0 4px; font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.sheet .hint { margin: 0 0 18px; font-size: 13.5px; color: #5B5A66; }
.sheet label { display: block; margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: #5B5A66; }
.sheet input { width: 100%; padding: 12px 14px; border: 1px solid #E2E1EA; border-radius: 12px; background: #FBFBFD; font: inherit; font-size: 15px; color: #17161D; outline: none; }
.sheet input:focus { border-color: #17161D; box-shadow: 0 0 0 3px rgba(120, 100, 220, .15); background: #fff; }
.sheet .err { min-height: 18px; margin: 10px 0 4px; font-size: 13px; color: var(--red); }
.sheet .submit { width: 100%; padding: 13px; border: 0; border-radius: 999px; background: #17161D; color: #fff; font-weight: 700; font-size: 15px; }
.sheet .close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #8E8D98; display: grid; place-items: center; }
.sheet .close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* 좁은 화면 */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding: 110px 24px 140px; gap: 24px; }
  .board { -webkit-mask: none; mask: none; }
  .track, .ctrl { padding-left: 0; }
  .top .pill { display: none; }
  .top .acct { margin-left: auto; }
}
/* 휴대폰: 카드 · 바로가기 · 한 줄 로그인은 숨기고 mobile.js 의 휴대폰 첫 화면 · 로그인 창을 그대로 */
body.m-phone .board, body.m-phone .ctrl, body.m-phone .dock, body.m-phone .login, body.m-phone .lerr, body.m-phone .sub2, body.m-phone .bglines { display: none !important; }
body.m-phone .hero { min-height: auto; }
body.m-phone.m-home .dock { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } .rise, .card { opacity: 1; transform: none; } }
