/* 스크롤 데모 */

/* APP DEMO · 스크롤이 앱을 조작하는 핀 섹션 */
#demo{
  --blue:#0082D3; --blue-d:#0A5FA0; --navy:#12233A; --ink2:#0C1B2E;
  --mist:#EAF2F9; --snow2:#F7FAFE;
  position:relative;z-index:2;background:var(--snow2);color:var(--ink2);
  font-family:var(--pre);letter-spacing:-.012em}
#demo button{cursor:none}

/* 도입부 */
.demo__head{max-width:900px;margin:0 auto;padding:clamp(88px,15vh,175px) 24px 0;
  text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px}
.demo__tag{display:inline-flex;align-items:center;gap:8px;padding:7px 15px 7px 12px;border-radius:100px;
  background:rgba(0,130,211,.08);border:1px solid rgba(0,130,211,.16);color:var(--blue-d);
  font-family:var(--dis);font-size:11.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.demo__tag i{width:6px;height:6px;border-radius:50%;background:var(--blue);
  box-shadow:0 0 0 4px rgba(0,130,211,.16);animation:blink 2.2s ease-in-out infinite}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.35}}
.demo__head h2{font-family:var(--kr);font-weight:800;font-size:clamp(30px,5.2vw,64px);
  line-height:1.1;letter-spacing:-.045em;word-break:keep-all}
.demo__head h2 em{font-style:normal;background:linear-gradient(96deg,#0C1B2E 4%,#0A5FA0 48%,#4FADE8 96%);
  -webkit-background-clip:text;background-clip:text;color:transparent}
.demo__head p{font-size:clamp(14px,1.45vw,17px);line-height:1.8;color:rgba(12,27,46,.55);max-width:520px}

/* 핀 트랙 */
.demo__track{position:relative;height:580vh}
.demo__stage{position:sticky;top:0;height:100vh;height:100dvh;overflow:hidden;
  display:flex;flex-direction:column;align-items:center;
  padding:clamp(72px,10vh,112px) 20px clamp(14px,2.4vh,26px)}
.demo__title{position:relative;z-index:5;text-align:center;font-family:var(--kr);font-weight:800;
  font-size:clamp(22px,3.1vw,40px);line-height:1.14;letter-spacing:-.045em;word-break:keep-all}
.demo__title em{font-style:normal;background:linear-gradient(96deg,#0C1B2E 4%,#0A5FA0 48%,#4FADE8 96%);
  -webkit-background-clip:text;background-clip:text;color:transparent}
.demo__lead{position:relative;z-index:5;width:min(620px,92vw);flex:0 0 auto;
  height:clamp(94px,12.5vh,124px);margin-top:clamp(11px,1.8vh,20px)}
.demo__aura{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);
  width:min(1100px,120vw);height:min(720px,86vh);pointer-events:none;border-radius:50%;
  filter:blur(60px);opacity:.9;
  background:radial-gradient(52% 52% at 50% 50%,rgba(0,130,211,.16),rgba(0,130,211,0) 70%)}

/* 폰 */
.demo__device{position:relative;z-index:4;display:flex;align-items:center;
  justify-content:center;gap:clamp(14px,2.4vw,34px);
  margin-top:clamp(10px,2vh,22px);transition:transform .9s var(--ease)}
.demo__phone{position:relative;flex:0 0 auto;width:236px;padding:8px;border-radius:38px;
  background:linear-gradient(158deg,#2A3F58,#0A1523 54%,#1D3149);
  box-shadow:0 44px 78px -30px rgba(9,26,48,.42),0 10px 26px -14px rgba(9,26,48,.3),
    inset 0 0 0 1px rgba(255,255,255,.18)}
.demo__phone-island{position:absolute;top:17px;left:50%;transform:translateX(-50%);width:31%;height:15px;
  border-radius:10px;background:#0A1523;z-index:6}
.demo__screen{position:relative;width:220px;height:493px;border-radius:31px;overflow:hidden;
  background:#EAF2F9}
.demo__shot,.demo__mock{position:absolute;inset:0;width:100%;height:100%;opacity:0;
  transform:translateY(14px) scale(.965);will-change:opacity,transform}
.demo__shot{object-fit:cover;display:block}
/* 친구 위치 펄스 */
.demo__ping{position:absolute;z-index:21;width:26px;height:26px;margin:-13px 0 0 -13px;
  border-radius:50%;opacity:0;pointer-events:none;
  box-shadow:0 0 0 0 rgba(0,130,211,.5);animation:demo__ping 2.4s ease-out infinite}
.demo__ping.b{animation-delay:-1.2s}
@keyframes demo__ping{0%{box-shadow:0 0 0 0 rgba(0,130,211,.45);transform:scale(.6)}
  70%{box-shadow:0 0 0 15px rgba(0,130,211,0);transform:scale(1)}
  100%{box-shadow:0 0 0 0 rgba(0,130,211,0);transform:scale(1)}}
/* 녹화 배지 */
.demo__rec{position:absolute;top:44px;left:12px;z-index:22;display:flex;align-items:center;gap:5px;
  padding:4px 9px 4px 7px;border-radius:100px;opacity:0;
  background:rgba(255,255,255,.9);box-shadow:0 6px 14px -8px rgba(12,27,46,.5);
  font-size:9.5px;font-weight:800;letter-spacing:.06em;color:#D93838}
.demo__rec i{width:5px;height:5px;border-radius:50%;background:#E33;animation:blink 1.4s infinite}

/* CSS로 만든 화면 : 스탬프 */
.mock-stamp{background:linear-gradient(180deg,#FBFDFF,#EDF4FB);padding:46px 16px 16px;
  display:flex;flex-direction:column;gap:12px;font-size:9px;color:var(--ink2)}
.mock-stamp .hd{display:flex;justify-content:space-between;align-items:flex-end}
.mock-stamp .hd b{font-size:15px;font-weight:800;letter-spacing:-.03em}
.mock-stamp .hd s{text-decoration:none;font-size:9.5px;font-weight:600;color:rgba(12,27,46,.45)}
.mock-stamp .bar{height:7px;border-radius:100px;background:rgba(12,27,46,.08);overflow:hidden}
.mock-stamp .bar i{display:block;height:100%;width:0;border-radius:100px;
  background:linear-gradient(90deg,#4FADE8,#0082D3)}
.mock-stamp .num{display:flex;align-items:baseline;gap:5px;font-weight:800;letter-spacing:-.04em}
.mock-stamp .num em{font-style:normal;font-family:var(--num);font-size:28px;font-weight:600;color:var(--blue)}
.mock-stamp .num s{text-decoration:none;font-size:12px;color:rgba(12,27,46,.4)}
.mock-stamp__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:2px}
.mock-stamp__grid span{aspect-ratio:1;border-radius:16px;display:grid;place-items:center;
  background:rgba(12,27,46,.045);border:1.4px dashed rgba(12,27,46,.14);
  transition:background .5s var(--ease),border-color .5s var(--ease),transform .5s var(--ease)}
.mock-stamp__grid span svg{width:17px;height:17px;stroke:rgba(12,27,46,.2);fill:none;stroke-width:1.7;
  stroke-linecap:round;transition:stroke .5s var(--ease)}
.mock-stamp__grid span.got{background:linear-gradient(150deg,#E6F3FC,#C9E6F8);border:1.4px solid rgba(0,130,211,.28);
  box-shadow:0 6px 12px -8px rgba(0,130,211,.6);transform:scale(1.04)}
.mock-stamp__grid span.got svg{stroke:var(--blue)}
.mock-stamp .ft{margin-top:auto;padding:9px 11px;border-radius:13px;background:#fff;
  box-shadow:0 6px 14px -10px rgba(12,27,46,.35);font-size:9.5px;font-weight:700}
.mock-stamp .ft s{text-decoration:none;display:block;font-weight:500;font-size:9px;
  color:rgba(12,27,46,.45);margin-top:2px}

/* CSS로 만든 화면 : 워치 연결 */
.mock-sync{background:linear-gradient(180deg,#FBFDFF,#E9F2FA);display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:14px;padding:40px 20px;text-align:center}
.mock-sync .rings{position:relative;width:96px;height:96px;display:grid;place-items:center}
.mock-sync .rings i{position:absolute;inset:0;border-radius:50%;border:1.5px solid rgba(0,130,211,.3);
  animation:wave 2.6s ease-out infinite}
.mock-sync .rings i:nth-child(2){animation-delay:.65s}
.mock-sync .rings i:nth-child(3){animation-delay:1.3s}
@keyframes wave{0%{transform:scale(.42);opacity:0}25%{opacity:.9}100%{transform:scale(1);opacity:0}}
.mock-sync .rings b{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(150deg,#0A1523,#22374F);box-shadow:0 10px 20px -10px rgba(10,21,35,.7)}
.mock-sync .rings b svg{width:20px;height:20px;stroke:#7FD0F5;fill:none;stroke-width:1.7;stroke-linecap:round}
.mock-sync h4{font-size:14px;font-weight:800;letter-spacing:-.03em}
.mock-sync p{font-size:9.5px;line-height:1.7;color:rgba(12,27,46,.5)}
.mock-sync .ok{padding:6px 13px;border-radius:100px;background:rgba(0,130,211,.1);
  color:var(--blue-d);font-size:9.5px;font-weight:700}

/* 애플워치 */
.watch{position:relative;flex:0 0 auto;width:132px;opacity:0;pointer-events:none;
  transform:translateX(34px) scale(.86);transform-origin:left center;
  transition:opacity .8s var(--ease),transform .8s var(--ease)}
.watch.on{opacity:1;transform:none}
.watch .band{position:absolute;left:50%;transform:translateX(-50%);width:52px;
  background:linear-gradient(180deg,#20303F,#16232F);border-radius:14px}
.watch .band.t{top:-30px;height:44px}
.watch .band.b{bottom:-30px;height:44px}
.watch .case{position:relative;border-radius:34px;padding:7px;
  background:linear-gradient(155deg,#3A4A5C,#141F2B 55%,#2A3948);
  box-shadow:0 26px 44px -20px rgba(9,26,48,.5),inset 0 0 0 1px rgba(255,255,255,.16)}
.watch .face{border-radius:27px;background:#05090F;padding:13px 11px;color:#fff;
  display:flex;flex-direction:column;gap:7px}
.watch .face .t1{font-size:8px;font-weight:700;letter-spacing:.05em;color:#7FD0F5}
.watch .face .big{font-family:var(--num);font-size:21px;font-weight:600;letter-spacing:-.02em;line-height:1}
.watch .face .big s{text-decoration:none;font-size:9px;font-weight:700;opacity:.7;margin-left:2px}
.watch .face .row{display:flex;justify-content:space-between;font-size:8px;font-weight:600}
.watch .face .row span{opacity:.55}
.watch .face .bar{height:4px;border-radius:100px;background:rgba(255,255,255,.14);overflow:hidden}
.watch .face .bar i{display:block;height:100%;width:62%;border-radius:100px;
  background:linear-gradient(90deg,#4FADE8,#7FD0F5)}
.watch .face .fr{display:flex;align-items:center;gap:4px;font-size:8px;font-weight:700}
.watch .face .fr u{text-decoration:none;width:13px;height:13px;border-radius:50%;
  background:linear-gradient(140deg,#4FADE8,#0082D3);display:inline-block;
  box-shadow:0 0 0 1.5px #05090F}
.watch .face .fr u:nth-child(2){margin-left:-7px;background:linear-gradient(140deg,#FFC46B,#F09A2B)}
.watch .face .fr u:nth-child(3){margin-left:-7px;background:linear-gradient(140deg,#9BE7C4,#3FBF87)}

/* 좌우 설명 */
.demo__caption{position:absolute;inset:0;text-align:center;opacity:0;pointer-events:none;
  transform:translateY(16px);
  transition:opacity .55s var(--ease),transform .6s var(--ease)}
.demo__caption.on{opacity:1;transform:none;pointer-events:auto}
.demo__caption .no{display:inline-flex;align-items:center;gap:7px;
  font-family:var(--dis);font-size:11.5px;font-weight:800;letter-spacing:.2em;
  color:rgba(12,27,46,.34);margin-bottom:11px}
.demo__caption .no i{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:#E5484D;
  box-shadow:0 0 0 3px rgba(229,72,77,.15);animation:blink 1.7s ease-in-out infinite}
.demo__caption h3{font-family:var(--kr);font-weight:800;font-size:clamp(19px,1.85vw,27px);
  line-height:1.26;letter-spacing:-.04em;word-break:keep-all;text-wrap:balance}
.demo__caption p{margin-top:9px;font-size:clamp(12.5px,.98vw,14.5px);line-height:1.8;
  color:rgba(12,27,46,.55);word-break:keep-all;text-wrap:pretty}

/* 폰 주변 데이터 칩 */
.data-chip-set{position:absolute;inset:0;z-index:5;pointer-events:none}
.data-chip{position:absolute;display:flex;align-items:center;gap:9px;white-space:nowrap;
  padding:9px 14px 9px 10px;border-radius:15px;opacity:0;transform:translateY(16px);
  background:rgba(255,255,255,.66);border:1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);
  box-shadow:0 18px 36px -20px rgba(12,27,46,.34),inset 0 1px 0 rgba(255,255,255,.9);
  transition:opacity .7s var(--ease),transform .7s var(--ease)}
.data-chip.on{opacity:1;transform:none}
.data-chip .ic{width:28px;height:28px;flex:0 0 auto;border-radius:10px;display:grid;place-items:center;
  background:linear-gradient(145deg,#E4F1FC,#C4E2F6)}
.data-chip .ic svg{width:14px;height:14px;stroke:var(--blue-d);fill:none;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round}
.data-chip .ic.av{background:linear-gradient(145deg,#FFD9A6,#F5A83E)}
.data-chip .ic.av2{background:linear-gradient(145deg,#BDEBD4,#4FC894)}
.data-chip u{text-decoration:none;display:block;font-size:10.5px;font-weight:600;
  color:rgba(12,27,46,.48);margin-bottom:1px}
.data-chip .v{display:flex;align-items:baseline;gap:3px}
.data-chip .v b{font-family:var(--num);font-size:13.5px;font-weight:600;letter-spacing:-.02em}
.data-chip .v s{text-decoration:none;font-size:10px;font-weight:700;color:rgba(12,27,46,.45)}
/* 칩 위치 */
.data-chip.a1{left:50%;margin-left:-330px;top:41%}
.data-chip.a2{left:50%;margin-left:-358px;top:56%}
.data-chip.a3{left:50%;margin-left:-320px;top:71%}
.data-chip.b1{left:50%;margin-left:168px;top:41%}
.data-chip.b2{left:50%;margin-left:196px;top:56%}
.data-chip.b3{left:50%;margin-left:158px;top:71%}

/* 섹션 끝 : 해질녘으로 */
.demo__dusk{position:relative;height:44vh;
  background:linear-gradient(180deg,#FFFFFF 0%,#DCEAF6 26%,#7FA9CD 48%,
    #2C4C74 68%,#14273E 84%,var(--ink) 100%)}

/* 반응형 */
@media (max-height:900px){
  .demo__phone{width:214px}.demo__screen{width:198px;height:444px;font-size:8.1px}
  .mock-stamp{padding:40px 14px 14px;font-size:8.2px}
  .demo__phone-island{top:15px;height:13px}
  .demo__title{font-size:clamp(20px,2.7vw,34px)}
  .demo__lead{height:clamp(88px,11.5vh,110px)}
}
@media (max-height:800px) and (min-width:861px){
  .demo__phone{width:190px}.demo__screen{width:174px;height:390px;font-size:7.2px}
  .mock-stamp{padding:34px 12px 12px;font-size:7.3px}
  .demo__lead{height:clamp(102px,14vh,124px)}
}
@media (max-width:1280px){
  .data-chip.a1,.data-chip.a2,.data-chip.a3,.data-chip.b1,.data-chip.b2,.data-chip.b3{display:none}
}
@media (max-width:960px){
  .demo__stage{padding-top:clamp(64px,9vh,92px)}
  .watch{width:112px}
}
@media (max-width:640px){
  .step-nav__dot button{padding:7px 9px;font-size:11px}
  .demo__device{margin-top:clamp(190px,30vh,260px)}
}
@media (prefers-reduced-motion:reduce){
  #demo *,#demo *::before,#demo *::after{animation:none!important;transition:none!important}
}
