/* 플래니즘 앱 소개(/planism) — 2026-11-19 다시 만듦(후보 C+A).
   앱의 장면 테마가 페이지 뒤에 깔려 흐르고, 장마다 장면이 바뀐다. 첫 장은 가운데 글이 조금 내리면 왼쪽 아래로 옮겨 간다.
   기기는 실제 비율의 아이폰 · 아이패드 프로 목업(이미지 없이 CSS). */

:root {
  --ink: #191F28;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: #0b1020; color: #fff; word-break: keep-all; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.logo { display: block; }
.logo img { height: 22px; width: auto; filter: drop-shadow(0 1px 8px rgba(0,0,0,.25)); }
@media (max-width: 640px) { .logo img { height: 18px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 배경 장면 */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; background: #0b1020; overflow: hidden; }
.scn video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1.4s cubic-bezier(.45,0,.55,1); }
.scn video.on { opacity: 1; }
.veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: rgba(6, 10, 22, var(--dim, 0)); transition: background 1.2s var(--ease-out); }

/* 머리줄 */
.nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 22px clamp(16px, 4vw, 48px); }
.nav .logo { margin-right: auto; }
.nav .where { font-size: 13px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: opacity .4s; }
.nav .where:empty { display: none; }
.nav .dl { font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 99px; background: #fff; color: #111; opacity: var(--navdl, 0); transform: translateY(calc((1 - var(--navdl, 0)) * -8px)); transition: opacity .5s, transform .5s var(--ease-out); }
@media (max-width: 640px) { .nav .where { display: none; } }

/* 스토어 단추 */
.stores { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 14px; background: #111; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: transform .3s var(--ease-out), background .3s; }
.store:hover { transform: translateY(-2px); background: #000; }
.store svg { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; font-size: 17px; font-weight: 600; line-height: 1.1; }
.store small { font-size: 10px; font-weight: 500; opacity: .8; letter-spacing: .02em; }

/* ── 첫 장: 가운데(C) → 조금 내리면 왼쪽 아래(A)로 ── */
.hero { position: relative; height: 175vh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* 가운데 배치일 때 글 뒤가 너무 밝지 않게(낮 장면) 가운데를 살짝 어둡게, 옮겨 가면 사라진다 */
.pin::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: calc(1 - var(--hp, 0));
  background: radial-gradient(60% 50% at 50% 52%, rgba(4,8,18,.38), rgba(4,8,18,0) 75%); }
.shade { position: absolute; inset: 0; pointer-events: none; opacity: var(--hp, 0);
  background: linear-gradient(90deg, rgba(4,8,18,.55), rgba(4,8,18,0) 60%), linear-gradient(180deg, rgba(4,8,18,0) 45%, rgba(4,8,18,.55)); }
.lay .h { display: block; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.lay .ln { display: block; }
.lay .ln b { display: inline-block; font-weight: inherit; transform-origin: 0 0; will-change: transform; }
.lay p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: rgba(255,255,255,.9); width: min(520px, 100%); text-shadow: 0 1px 16px rgba(0,0,0,.35); will-change: transform, opacity; }
.lay .stores { transform-origin: 0 0; will-change: transform; }
.lay.c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 16px; }
.lay.c .h { font-size: clamp(46px, 7.2vw, 104px); visibility: hidden; }
.lay.c .stores { visibility: hidden; justify-content: center; }
.lay.c p { margin: 24px auto 34px; }
.lay.a { position: absolute; left: clamp(16px, 5vw, 76px); right: 16px; bottom: clamp(56px, 11vh, 120px); }
.lay.a .h { font-size: clamp(40px, 5.4vw, 80px); }
.lay.a p { margin: 20px 0 28px; }
.tag { position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(56px, 11vh, 120px); text-align: right; font-size: 13px; opacity: var(--hp, 0); transform: translateY(calc((1 - var(--hp, 0)) * 16px)); }
.tag .now { opacity: .75; }
.tag .nm { display: block; font-size: 22px; font-weight: 600; margin: 4px 0 12px; transition: opacity .5s, filter .5s; }
.tag .nm.out { opacity: 0; filter: blur(6px); }
.dots { display: flex; gap: 6px; justify-content: flex-end; }
.dots i { width: 24px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.dots i.on::after { content: ""; display: block; height: 100%; background: #fff; animation: bar 7s linear forwards; }
@keyframes bar { from { width: 0; } to { width: 100%; } }
.hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 12px; letter-spacing: .12em; opacity: calc(.8 - var(--hp, 0) * 2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(#fff, transparent); animation: drip 2.2s var(--ease-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) { .tag { display: none; } }
.lay .rise { animation: rise 1.4s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; translate: 0 36px; filter: blur(10px); } }

/* ── 장 ── */
.ch { min-height: 100vh; display: flex; align-items: center; padding: 14vh clamp(16px, 5vw, 72px); }
.glass { width: min(1220px, 100%); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.35fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 4.4vw, 64px); border-radius: 40px;
  background: linear-gradient(140deg, rgba(255,255,255,.16), rgba(255,255,255,.07)); backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), inset 0 1px 0 rgba(255,255,255,.3), 0 50px 100px -50px rgba(0,0,0,.6); }
.js .glass { opacity: 0; transform: translateY(80px) scale(.97); filter: blur(12px); transition: opacity 1.3s var(--ease-out), transform 1.6s var(--ease-out), filter 1.3s var(--ease-out); }
.js .glass.in { opacity: 1; transform: none; filter: none; }
.glass.rev { grid-template-columns: 1.35fr .9fr; } .glass.rev .txt { order: 2; }
.js .txt > * { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .glass.in .txt > * { opacity: 1; transform: none; }
.glass.in .txt > :nth-child(2) { transition-delay: .12s; } .glass.in .txt > :nth-child(3) { transition-delay: .24s; } .glass.in .txt > :nth-child(4) { transition-delay: .36s; }
.txt em { font-style: normal; font-family: var(--serif); font-size: 20px; letter-spacing: .16em; opacity: .85; display: block; }
.txt h2 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.22; letter-spacing: -.025em; margin: 12px 0 18px; }
.txt p { line-height: 1.75; font-size: 17px; color: rgba(255,255,255,.86); }
.txt .scene { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; padding: 7px 13px; border-radius: 99px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.txt .scene::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6BE39A; box-shadow: 0 0 0 4px rgba(107,227,154,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(107,227,154,0); } }

/* 기기 무대 */
.dev { position: relative; perspective: 2200px; padding: 2% 8% 10% 0; }
.rig { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, -9deg)) rotateX(var(--rx, 4deg)); }
.rig .ipad { width: 100%; }
.rig .iphone { position: absolute; width: 27%; right: -9%; bottom: -14%; transform: translateZ(90px) translateY(var(--ty, 0px)); }
.glass.rev .dev { padding-right: 20%; } .glass.rev .rig .iphone { right: -24%; bottom: -12%; }
.js .rig > * { opacity: 0; translate: 0 70px; transition: opacity 1.2s var(--ease-out), translate 1.6s var(--ease-out); }
.js .glass.in .rig > * { opacity: 1; translate: 0 0; }
.glass.in .rig .iphone { transition-delay: .25s; }

/* AI: 세 대가 겹쳐 있다가 부채처럼 펼쳐진다 */
.glass.ai { grid-template-columns: 1fr; }
.glass.ai .txt { text-align: center; }
.fan { position: relative; height: clamp(560px, 56vw, 800px); }
.fan .card { position: absolute; left: 50%; top: 0; width: clamp(170px, 19vw, 270px); text-align: center; transform: translateX(calc(-50% + var(--x))) rotate(var(--r)) translateY(var(--y)); }
.js .fan .card { transform: translateX(-50%) translateY(30px); opacity: 0; transition: transform 1.6s var(--ease-out), opacity 1s var(--ease-out); transition-delay: var(--d); }
.js .glass.in .fan .card { opacity: 1; transform: translateX(calc(-50% + var(--x))) rotate(var(--r)) translateY(var(--y)); }
.fan .card:hover { z-index: 5; }
.fan .card h3 { font-size: 18px; margin-bottom: 4px; } .fan .card p { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 18px; min-height: 2.6em; }
.fan .card .iphone, .fan .card .paper { transition: transform .8s var(--ease-out); }
.fan .card:hover .iphone, .fan .card:hover .paper { transform: translateY(-14px) scale(1.02); }
.paper { width: 128%; margin-left: -14%; aspect-ratio: 1240 / 1754; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 40px 80px -30px rgba(0,0,0,.6); }
.paper img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.glass.wide { grid-template-columns: 1fr; text-align: center; }
.glass.wide .stores { justify-content: center; margin-top: 36px; }
.appi { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 26px; display: block; box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.2); }
#get .txt h2 { font-size: clamp(34px, 4.4vw, 60px); } #get .txt p { max-width: 520px; margin: 0 auto; }

/* 맨 아래 줄 */
footer { padding: 0 clamp(16px, 5vw, 72px) 40px; }
.foot { width: min(1220px, 100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: 24px; font-size: 13px; color: rgba(255,255,255,.72);
  background: rgba(6,10,22,.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); line-height: 1.7; }
.foot b { color: #fff; font-size: 15px; display: block; margin-bottom: 4px; }
.foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.foot nav { display: flex; gap: 18px; align-items: flex-start; }
.foot nav a { text-decoration: none; color: #fff; }

@media (max-width: 900px) {
  .glass, .glass.rev { grid-template-columns: 1fr; border-radius: 28px; } .glass.rev .txt { order: 0; }
  .dev, .glass.rev .dev { padding: 0 10% 12% 0; } .glass.rev .rig .iphone { right: -9%; bottom: -14%; }
  .fan { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .fan .card, .js .fan .card, .js .glass.in .fan .card { position: static; width: auto; transform: none; }
  .paper { width: 100%; margin: 0; }
}

/* 스크립트가 없으면 처음부터 왼쪽 아래 배치로 보이고, 가운데 배치는 숨긴다 */
html:not(.js) .lay.c, html:not(.js) .hint { display: none; }
html:not(.js) .shade, html:not(.js) .tag { opacity: 1; }
html:not(.js) .nav .dl { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .glass, .js .txt > *, .js .rig > *, .js .fan .card { transition: none !important; }
  .lay .rise, .hint::after, .txt .scene::before { animation: none; }
}

/* ── 아이폰 · 아이패드 목업 — 실제 비율(아이폰 화면 393 × 852pt, 아이패드 프로 11 화면 1210 × 834pt).
   모든 크기는 기기 너비 기준(cqw)이라 어떤 크기로 놓아도 모양이 같다. ── */
.iphone, .ipad { position: relative; container-type: inline-size; transform-style: preserve-3d; }
.iphone { aspect-ratio: 100 / 208.9; }
.iphone .body { position: absolute; inset: 0; border-radius: 15.6cqw;
  background: linear-gradient(135deg, #8d8a84 0%, #4a4844 18%, #2c2b29 50%, #55524d 82%, #a19d96 100%);
  box-shadow: 0 0 0 .18cqw #1b1a19, inset 0 0 0 .32cqw rgba(255,255,255,.18), 0 2.5cqw 5cqw -1cqw rgba(0,0,0,.35), 0 12cqw 24cqw -6cqw rgba(8,14,30,.55); }
.iphone .bezel { position: absolute; inset: 1.05cqw; border-radius: 14.6cqw; background: #050506; box-shadow: inset 0 0 0 .2cqw #000, inset 0 0 1.4cqw rgba(255,255,255,.05); }
.iphone .screen { position: absolute; inset: 3.4cqw; border-radius: 12.4cqw; overflow: hidden; background: #000; isolation: isolate; }
.iphone .screen > img, .iphone .screen > .scn, .ipad .screen > img, .ipad .screen > .scn { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.iphone .island { position: absolute; z-index: 3; top: 2.6cqw; left: 50%; width: 30cqw; height: 8.6cqw; transform: translateX(-50%); border-radius: 99px; background: #000; }
.iphone .island::after { content: ""; position: absolute; right: 6.4cqw; top: 50%; width: 3cqw; height: 3cqw; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3550 0, #0b0f1c 45%, #000 70%); }
.iphone .sb { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 12.8cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 7.6cqw 0 10.6cqw;
  font: 600 4.1cqw/1 -apple-system, "SF Pro Text", "Pretendard Variable", system-ui, sans-serif; color: #000; letter-spacing: -.01em; }
.iphone .sb.light { color: #fff; }
.iphone .sb .ic { display: flex; align-items: center; gap: 1.5cqw; }
.iphone .sb svg { height: 3.2cqw; width: auto; fill: currentColor; }
.iphone .sb svg.bat { height: 3.5cqw; }
.iphone .btn { position: absolute; width: 1cqw; border-radius: .5cqw; background: linear-gradient(90deg, #2a2927, #77736c 50%, #3a3936); }
.iphone .btn.l { left: -.75cqw; } .iphone .btn.r { right: -.75cqw; }
.iphone .btn.action { top: 20.5%; height: 4.2%; } .iphone .btn.up { top: 29.5%; height: 8%; } .iphone .btn.down { top: 39.5%; height: 8%; }
.iphone .btn.power { top: 32%; height: 11%; } .iphone .btn.cam { top: 63%; height: 7.5%; width: .8cqw; right: -.5cqw; opacity: .8; }
.ipad { aspect-ratio: 100 / 70.9; }
.ipad .body { position: absolute; inset: 0; border-radius: 4.3cqw; background: linear-gradient(160deg, #6f7176 0%, #2a2b2e 22%, #1b1c1e 60%, #3d3f43 100%);
  box-shadow: 0 0 0 .1cqw #0f1011, inset 0 0 0 .16cqw rgba(255,255,255,.22), 0 1.2cqw 2.4cqw -.6cqw rgba(0,0,0,.3), 0 6cqw 12cqw -3cqw rgba(8,14,30,.5); }
.ipad .bezel { position: absolute; inset: .45cqw; border-radius: 3.9cqw; background: #050506; box-shadow: inset 0 0 0 .12cqw #000; }
.ipad .screen { position: absolute; inset: 3cqw; border-radius: 1.9cqw; overflow: hidden; background: #000; isolation: isolate; }
.ipad .cam { position: absolute; top: 1.25cqw; left: 50%; width: .62cqw; height: .62cqw; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #34405e 0, #0d1220 50%, #000 75%); }
.ipad .btn { position: absolute; height: .45cqw; top: -.32cqw; border-radius: .3cqw; background: linear-gradient(#77736c, #2a2927); }
.ipad .btn.power { right: 6%; width: 4.4%; } .ipad .btn.up { left: 8%; width: 4.2%; } .ipad .btn.down { left: 13.2%; width: 4.2%; }
.screen .glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent calc(var(--g, .5) * 100% - 30%), rgba(255,255,255,.14) calc(var(--g, .5) * 100% - 8%), rgba(255,255,255,.04) calc(var(--g, .5) * 100%), transparent calc(var(--g, .5) * 100% + 14%)); }

/* 집중 화면 위의 글 · 단추(앱 집중 화면을 HTML 로 다시 그림) */
.fui { position: absolute; inset: 0; z-index: 2; color: #fff; }
.fui .pill { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; border-radius: 6cqw; padding: 2.2cqw 6cqw 2.6cqw;
  background: rgba(255,255,255,.13); backdrop-filter: blur(3cqw) saturate(1.5); -webkit-backdrop-filter: blur(3cqw) saturate(1.5); box-shadow: inset 0 0 0 .35cqw rgba(255,255,255,.3), 0 2cqw 6cqw rgba(0,0,0,.2); }
.fui .pill small { display: block; font-size: 3.2cqw; font-weight: 600; opacity: .9; }
.fui .pill small::before { content: "● "; color: #6BE39A; }
.fui .pill b { display: block; font-size: 11cqw; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; line-height: 1.12; }
.fui .pill span { font-size: 2.6cqw; opacity: .75; }
.fui .subj { position: absolute; left: 6cqw; text-shadow: 0 .4cqw 2cqw rgba(0,0,0,.4); }
.fui .subj small { font-size: 3cqw; opacity: .85; } .fui .subj b { display: block; font-size: 6.4cqw; font-weight: 700; margin-top: .6cqw; }
.fui .acts { position: absolute; display: flex; gap: 2.4cqw; }
.fui .acts span { flex: 1; text-align: center; font-size: 3.4cqw; font-weight: 700; padding: 3.2cqw 0; border-radius: 99px; background: rgba(255,255,255,.16); backdrop-filter: blur(2cqw); -webkit-backdrop-filter: blur(2cqw); box-shadow: inset 0 0 0 .3cqw rgba(255,255,255,.22); }
.fui .acts span + span { background: #fff; color: #111; box-shadow: none; }
.iphone .fui .pill { top: 18cqw; } .iphone .fui .subj { bottom: 40cqw; } .iphone .fui .acts { left: 6cqw; right: 6cqw; bottom: 22cqw; }
.iphone .fui .more { position: absolute; left: 0; right: 0; bottom: 10cqw; text-align: center; font-size: 2.8cqw; opacity: .7; }
.ipad .fui .pill { top: 5cqw; padding: 1cqw 3cqw 1.2cqw; border-radius: 2.6cqw; box-shadow: inset 0 0 0 .14cqw rgba(255,255,255,.3); }
.ipad .fui .pill small { font-size: 1.3cqw; } .ipad .fui .pill b { font-size: 4.6cqw; } .ipad .fui .pill span { font-size: 1.05cqw; }
.ipad .fui .subj { left: 4cqw; bottom: 6cqw; } .ipad .fui .subj small { font-size: 1.25cqw; } .ipad .fui .subj b { font-size: 2.8cqw; }
.ipad .fui .acts { right: 4cqw; bottom: 6cqw; width: 26cqw; gap: 1cqw; } .ipad .fui .acts span { font-size: 1.35cqw; padding: 1.3cqw 0; }
.ipad .fui .more { position: absolute; left: 0; right: 0; bottom: 2.4cqw; text-align: center; font-size: 1.1cqw; opacity: .7; }
