/* 첫 화면 제품 시연 · Mac 배경화면 위에 몽글이 독립적으로 떠 있는 장면
   말풍선·펫·입력창은 .mongle-widget의 3개 행으로 한 중심선에 정렬합니다. 임의 좌표로 옮기지 마세요. */

.scene-controls{display:flex;justify-content:center;gap:4px;width:max-content;max-width:100%;margin:0 auto 20px;padding:4px;border-radius:999px;background:var(--surface)}
.scene-controls button{min-height:40px;padding:0 20px;border:0;border-radius:999px;background:transparent;color:var(--text);font-size:var(--fs-small);font-weight:600;white-space:nowrap;transition:background-color var(--t-hover) ease,color var(--t-hover) ease,transform var(--t-press) var(--ease-out)}
@media (hover:hover) and (pointer:fine){.scene-controls button[aria-pressed="false"]:hover{background:var(--surface-2)}}
.scene-controls button:active{transform:scale(.97)}
.scene-controls button[aria-pressed="true"]{background:var(--ink);color:#fff}
.scene-caption{margin-top:16px;text-align:center;font-size:var(--fs-small);color:var(--muted)}

.desktop-system{
  position:relative;height:clamp(560px,48vw,640px);overflow:hidden;isolation:isolate;
  border-radius:var(--radius-lg);background:#eef0f6;color:#24262b;text-align:left;letter-spacing:0;
  font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo',sans-serif;
  box-shadow:0 0 0 1px rgba(17,17,19,.06),0 40px 80px -48px rgba(40,44,90,.35);
}
/* 배경화면은 채도를 낮추고 밝게 깔아 입자 펫과 섞이지 않게 합니다. */
.desktop-system::before{content:'';position:absolute;inset:0;z-index:-1;background:url('./mongle-system-wallpaper.png') center/cover no-repeat;filter:saturate(.45) brightness(1.18);opacity:.75}

.mac-bar{display:flex;align-items:center;gap:20px;height:32px;padding:0 20px;background:rgba(255,255,255,.78);color:#2f3137;font-size:13px}
.mac-bar strong{font-weight:700}
.mac-right{display:flex;align-items:center;gap:14px;margin-left:auto}
.system-wifi{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.system-battery{position:relative;width:20px;height:10px;border:1.5px solid #2f3137;border-radius:3px}
.system-battery::before{content:'';position:absolute;inset:1.5px 5px 1.5px 1.5px;border-radius:1px;background:#2f3137}
.system-battery::after{content:'';position:absolute;right:-4px;top:2px;width:2px;height:3px;border-radius:0 1px 1px 0;background:#2f3137}

.native-folder{position:absolute;right:28px;top:60px;display:flex;flex-direction:column;align-items:center;gap:4px;width:72px}
.native-folder svg{width:48px;height:40px;filter:drop-shadow(0 2px 3px rgba(25,45,73,.12))}
.native-folder span{padding:1px 6px;border-radius:4px;font-size:12px;color:#2f3137}

.native-window{position:absolute;left:6%;top:96px;width:min(440px,40%);height:360px;overflow:hidden;border-radius:12px;background:rgba(251,251,253,.96);box-shadow:0 0 0 .5px rgba(17,17,19,.14),0 24px 48px -16px rgba(28,37,61,.28),0 4px 12px rgba(28,37,61,.06)}
.native-toolbar{display:flex;align-items:center;gap:20px;height:48px;padding:0 16px;border-bottom:1px solid #e6e6ea;background:#f7f7fa}
.traffic{display:flex;gap:8px}
.traffic i{width:12px;height:12px;border-radius:50%;background:#ff5f57;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.12)}
.traffic i:nth-child(2){background:#febc2e}.traffic i:nth-child(3){background:#28c840}
.native-toolbar-title{font-size:14px;font-weight:600;color:#2f3137}
.native-toolbar>svg{width:18px;height:18px;margin-left:auto;fill:none;stroke:#666872;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.native-window-content{display:flex;height:calc(100% - 48px)}
.native-sidebar{display:flex;flex-direction:column;gap:2px;flex:none;width:128px;padding:16px 10px;border-right:1px solid #e6e6ea;background:#f1f1f5;font-size:13px;color:#4d4f58}
.native-sidebar>span{display:block;padding:7px 10px;border-radius:6px}
.native-sidebar .sidebar-caption{padding:0 10px 6px;font-size:11px;font-weight:600;color:#666872}
.native-sidebar .sidebar-selected{background:#e2e3ea;color:#24262b}
.native-sidebar small{float:right;font-size:12px;color:#666872}
.native-note{flex:1;min-width:0;padding:22px 24px;background:#fffffe}
.native-note>small{display:block;margin-bottom:16px;text-align:center;font-size:11px;color:#666872}
.native-note h3{margin:0 0 8px;font-family:inherit;font-size:22px;font-weight:700;letter-spacing:-.03em;color:#1d1e22}
.native-note p{margin:0 0 14px;font-size:14px;line-height:1.6;color:#5d5f68}
.native-check{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:14px;color:#2f3137;white-space:nowrap}
.native-check i{flex:none;width:14px;height:14px;border:1.5px solid #a9abb4;border-radius:50%}
.native-check.checked{color:#666872;text-decoration:line-through}
.native-check.checked i{position:relative;border-color:#e2a72e;background:#e2a72e}
.native-check.checked i::after{content:'';position:absolute;left:3px;top:3px;width:5px;height:2.5px;border-left:1.5px solid #fff;border-bottom:1.5px solid #fff;transform:rotate(-45deg)}
.note-rule{height:1px;margin:18px 0 12px;background:#ececf0}
.native-note .native-note-end{font-size:13px;color:#666872}

.mongle-widget{position:absolute;top:64px;bottom:28px;right:8%;z-index:5;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:14px;width:340px}
.pet-stage{position:relative;min-height:0}
.desktop-system .desktop-pet{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.demo-reply .app-history{height:120px}

/* 몽글 앱 3.0 화면 조각: 앱의 web/style.css와 같은 값을 써요. 앱 디자인이 바뀌면 여기도 함께 바꿔요.
   면은 단색, 구분은 선 대신 톤 차이, 그림자는 바탕 위에 뜬 판(말풍선·입력창·메뉴)에만 줘요. */
.app-ui{--a-surface:#fff;--a-raised:#efeeeb;--a-raised-2:#e4e3df;--a-ink:#1b1b1e;--a-muted:#6d6c68;--a-ok:#1f9d6a;--a-busy:#3d6fd9;--a-float:0 10px 28px rgba(20,20,30,.16),0 1px 3px rgba(20,20,30,.1);font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo',system-ui,sans-serif;font-size:14px;line-height:1.5;letter-spacing:0;color:var(--a-ink);-webkit-font-smoothing:antialiased}
.app-ui svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app-ib{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:var(--a-muted)}

.app-bubble{position:relative;padding:12px 16px 8px;border-radius:20px;background:var(--a-surface);box-shadow:var(--a-float);text-align:left}
.app-bubble::after{content:'';position:absolute;bottom:-6px;left:50%;width:14px;height:14px;margin-left:-7px;background:var(--a-surface);border-bottom-right-radius:3px;transform:rotate(45deg)}
.app-head{display:flex;align-items:center;gap:8px;height:28px;margin:-4px -6px 8px 0}
.app-orb{flex:none;width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--a-muted) 0 .6px,transparent 1px) 0 0/4px 4px,var(--a-raised)}
.app-head b{font-size:14px;font-weight:650;letter-spacing:-.01em}
.app-phase{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--a-muted)}
.app-phase i{width:6px;height:6px;border-radius:50%;background:var(--a-ok)}
.app-phase.busy i{background:var(--a-busy)}
.app-tall{margin-left:auto}
.app-tall svg{width:16px;height:16px;stroke-width:2}
.app-history{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;font-size:15px;line-height:1.55;font-weight:450;letter-spacing:-.005em}
.app-line{white-space:pre-wrap;word-break:keep-all;overflow-wrap:anywhere}
.app-line+.app-line{margin-top:8px}
.app-line.me{margin-left:20%;text-align:right;font-size:13.5px;font-weight:400;color:var(--a-muted)}
.app-line .lead{display:inline-block;margin-bottom:2px;font-size:16px;font-weight:650;letter-spacing:-.015em}
.app-line.sys{font-size:13px;font-weight:400;color:var(--a-muted)}
.start-bubble .app-bubble{padding-bottom:14px}
.app-next{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.app-next span{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:16px;background:var(--a-raised);font-size:13px;font-weight:550}
.app-foot{display:flex;align-items:center;height:32px;margin:4px -6px 0 -8px}
.app-foot svg{width:17px;height:17px}
.app-foot time{margin-left:auto;padding-right:6px;font-size:12px;font-variant-numeric:tabular-nums;color:var(--a-muted)}

.app-think{display:flex;align-items:center;gap:8px;width:fit-content;max-width:100%;height:24px;margin:0 auto;padding:0 12px 0 10px;border-radius:12px;background:var(--a-surface);box-shadow:var(--a-float);font-size:12px;line-height:24px;white-space:nowrap}
.app-think .dots{flex:none;display:flex;gap:3px}
.app-think .dots i{width:5px;height:5px;border-radius:50%;background:var(--a-busy);opacity:.35}
.app-think .time{margin-left:-4px;font-variant-numeric:tabular-nums;color:var(--a-muted)}

.app-bar{position:relative;display:flex;flex-direction:column;min-height:96px;padding:6px 8px 8px 16px;border-radius:20px;background:var(--a-surface);box-shadow:var(--a-float)}
.app-row{display:flex;align-items:flex-start;gap:8px}
.app-input{flex:1;min-width:0;height:40px;padding:10px 8px 10px 0;border:0;background:none;color:var(--a-ink);font:inherit;font-size:15px;line-height:20px;outline:none}
.app-input::placeholder{color:var(--a-muted);opacity:1}
.app-placeholder{flex:1;height:40px;padding:10px 0;font-size:15px;line-height:20px;color:var(--a-muted)}
.app-tools{display:flex;align-items:center;gap:2px;height:40px;margin-left:-8px}
.app-plus svg{width:21px;height:21px}
.app-sep{flex:none;width:1px;height:18px;margin:0 6px;background:var(--a-raised-2)}
.app-chip,.app-task{flex:none;display:flex;align-items:center;height:28px;border-radius:14px;background:var(--a-raised);font-size:12.5px;font-weight:600;white-space:nowrap;color:var(--a-ink)}
.app-chip{gap:2px;padding:0 8px 0 10px}
.app-chip svg{width:14px;height:14px;stroke-width:2.4;opacity:.6}
.app-task{margin:6px 0 0 -6px;padding:0 2px 0 10px}
.app-task i{display:grid;place-items:center;width:24px;height:24px;color:var(--a-muted)}
.app-task svg{width:12px;height:12px;stroke-width:2.2}
.app-grow{flex:1}
.app-send{position:relative;flex:none;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:var(--a-ink);color:#fff;cursor:pointer;transition:transform .12s}
.app-send::before{content:'';position:absolute;inset:-4px;border-radius:50%}
.app-send:active{transform:scale(.94)}
.app-send svg{width:18px;height:18px;stroke-width:2.2}
.app-send:focus-visible{outline:2px solid var(--a-busy);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){
  .app-think .dots i,.app-phase.busy i{animation:think-dot 1.2s ease-in-out infinite}
  .app-think .dots i:nth-child(2){animation-delay:.2s}
  .app-think .dots i:nth-child(3){animation-delay:.4s}
}
@keyframes think-dot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-2px)}}

@media (max-width:1024px){
  .native-window{left:4%;width:42%}
  .native-sidebar{display:none}
  .mongle-widget{right:5%;width:320px}
}
@media (max-width:760px){
  .scene-controls{width:100%;justify-content:space-between}
  .scene-controls button{flex:1;padding:0 8px}
  .desktop-system{height:540px;border-radius:20px}
  .desktop-system::before{background-position:30% center}
  .mac-bar{height:28px;gap:12px;padding:0 14px;font-size:12px}
  .mac-bar .bar-extra,.system-battery{display:none}
  .native-window,.native-folder{display:none}
  .mongle-widget{left:50%;right:auto;top:48px;bottom:20px;width:min(calc(100% - 32px),320px);transform:translateX(-50%)}
}
