/* Animated illustrations next to each feature. They loop only while on screen (.play, set by site.js). */

.scene * { box-sizing: border-box; }

/* A small taskbar at the bottom of a scene */
.s-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 13%; display: flex; justify-content: center; align-items: center; gap: 2.2%;
  background: rgba(255,255,255,0.55); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.5);
}
.s-bar.right { justify-content: flex-end; padding-right: 3%; gap: 1.5%; }
.s-bar i { display: block; height: 58%; aspect-ratio: 1; border-radius: 22%; }
.s-logo { background: url(start-dark.png) center / contain no-repeat; border-radius: 22% !important; transform: scale(1.15); }
.s-logo.on { box-shadow: 0 0 0 6px rgba(37,99,235,0.18); }
.s-btn { background: linear-gradient(160deg, #fff, #dbeafe); box-shadow: 0 1px 3px rgba(0,0,0,0.15); position: relative; }
.s-btn:nth-child(3) { background: linear-gradient(160deg, #fecdd3, #fb7185); }
.s-btn:nth-child(4) { background: linear-gradient(160deg, #fde68a, #f59e0b); }
.s-btn:nth-child(5) { background: linear-gradient(160deg, #a7f3d0, #10b981); }
.s-btn::after { content: ""; position: absolute; left: 35%; right: 35%; bottom: -16%; height: 7%; min-height: 2px; border-radius: 2px; background: #1e3a8a; opacity: 0.5; }
.s-tv { background: transparent; border: 2px solid rgba(30,41,59,0.7); border-radius: 18% !important; transform: scale(0.75); }
.s-tv.on { box-shadow: 0 0 0 6px rgba(255,255,255,0.4); }

/* ---- Preview scene ---- */
.s-win { position: absolute; border-radius: 10px; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,0.25); transition: opacity 0.4s; }
.s-win::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14%; background: #f1f1f3; border-radius: 10px 10px 0 0; }
.s-w1 { left: 8%; top: 10%; width: 52%; height: 50%; }
.s-w2 { left: 38%; top: 22%; width: 50%; height: 48%; background: linear-gradient(#fff 14%, #fff1f2 14%); }
.s-w3 { left: 20%; top: 40%; width: 40%; height: 34%; background: linear-gradient(#fff 14%, #fef3c7 14%); }
.s-preview { position: absolute; left: 31%; bottom: 16%; width: 26%; aspect-ratio: 1.35; border-radius: 10px; padding: 2%;
  background: rgba(255,255,255,0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 14px 30px rgba(0,0,0,0.25);
  opacity: 0; transform: translateY(10px); }
.s-pt { height: 12%; width: 60%; border-radius: 3px; background: rgba(0,0,0,0.15); margin-bottom: 6%; }
.s-pimg { height: 76%; border-radius: 6px; background: linear-gradient(#fff 16%, #fff1f2 16%); box-shadow: 0 0 0 1px rgba(0,0,0,0.06); }
.s-cursor { position: absolute; width: 22px; height: 22px; left: 70%; top: 30%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8.5-6.2 1.4 3.6 7-2.6 1.3-3.6-7L5 19z' fill='%23111' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.play[data-scene=preview] .s-cursor { animation: pv-cursor 7s infinite cubic-bezier(.4,.1,.2,1); }
.play[data-scene=preview] .s-preview { animation: pv-card 7s infinite; }
.play[data-scene=preview] .s-w1, .play[data-scene=preview] .s-w3 { animation: pv-fade 7s infinite; }
.play[data-scene=preview] .s-target { animation: pv-btn 7s infinite; }
@keyframes pv-cursor {
  0% { left: 70%; top: 30%; } 18% { left: 44%; top: 90%; } 45% { left: 44%; top: 90%; }
  55% { left: 44%; top: 76%; } 85% { left: 44%; top: 76%; } 100% { left: 70%; top: 30%; } }
@keyframes pv-card { 0%, 22% { opacity: 0; transform: translateY(10px); } 28%, 86% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(10px); } }
@keyframes pv-fade { 0%, 60% { opacity: 1; } 64%, 86% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes pv-btn { 0%, 18% { box-shadow: 0 1px 3px rgba(0,0,0,0.15); } 22%, 86% { box-shadow: 0 0 0 5px rgba(255,255,255,0.7); } 90% { box-shadow: 0 1px 3px rgba(0,0,0,0.15); } }

/* ---- Start scene ---- */
.s-start { position: absolute; left: 20%; right: 20%; top: 9%; bottom: 18%; border-radius: 16px; padding: 5%;
  background: rgba(255,255,255,0.78); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.s-search { height: 13%; border-radius: 9px; background: rgba(0,0,0,0.06); display: flex; align-items: center; padding: 0 5%; font-size: clamp(11px, 1.6vw, 17px); color: #111; }
.s-search::before { content: "⌕"; margin-right: 8px; color: #666; font-size: 1.2em; }
.s-caret { width: 2px; height: 50%; background: #2563eb; margin-left: 2px; animation: wtblink 1s steps(1) infinite; }
.s-results { margin-top: 5%; display: grid; gap: 4px; }
.s-row { display: flex; align-items: center; gap: 4%; padding: 2.5% 4%; border-radius: 8px; font-size: clamp(10px, 1.4vw, 15px); color: #222;
  animation: s-in 0.35s both; }
.s-row:first-child { background: rgba(37,99,235,0.14); }
.s-row i { width: 9%; aspect-ratio: 1; border-radius: 24%; flex: none; }
@keyframes s-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes wtblink { 50% { opacity: 0; } }

/* ---- Tray scene ---- */
.s-flys { position: absolute; right: 4%; bottom: 17%; width: 52%; height: 58%; }
.s-fly { position: absolute; inset: 0; border-radius: 14px; padding: 5% 6%; display: flex; flex-direction: column; gap: 4%;
  background: rgba(40,40,46,0.78); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  font-size: clamp(10px, 1.35vw, 15px); opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 0.45s, transform 0.5s cubic-bezier(.3,.7,.2,1); }
.s-fly.on { opacity: 1; transform: none; }
.s-fly b { font-size: 1.1em; margin-bottom: 2%; }
.s-fly i { font-style: normal; display: flex; justify-content: space-between; padding: 3% 4%; border-radius: 8px; }
.s-fly i.cur { background: rgba(255,255,255,0.1); font-weight: 600; }
.s-fly em { font-style: normal; font-weight: 400; color: #a1a1a6; font-size: 0.85em; }
.s-vol { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.2); margin: 4% 0; }
.s-vol span { display: block; height: 100%; width: 40%; border-radius: 3px; background: #0a84ff; transition: width 1.2s ease-in-out; }
.s-fly.on .s-vol span { width: 72%; }
.scene[data-scene=tray] .s-bar { background: rgba(30,30,34,0.6); border-top-color: rgba(255,255,255,0.1); }
.s-ti { width: auto !important; aspect-ratio: auto !important; padding: 0 1.4%; display: grid !important; place-items: center; color: #fff; font-style: normal; font-size: clamp(11px, 1.5vw, 16px); border-radius: 6px; transition: background 0.3s; }
.s-ti.on { background: rgba(255,255,255,0.18); }
.s-clock { width: auto !important; aspect-ratio: auto !important; color: #fff; font-style: normal; font-size: clamp(9px, 1.2vw, 13px); display: grid !important; place-items: center; padding: 0 1%; }

/* ---- Spaces scene ---- */
.s-spaces { position: absolute; left: 7%; right: 7%; bottom: 18%; display: flex; gap: 4%; padding: 3.5%; border-radius: 14px;
  background: rgba(255,255,255,0.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.s-sp { flex: 1; aspect-ratio: 1.6; border-radius: 8px; position: relative; background: linear-gradient(135deg, #fdba74, #c026d3); transition: box-shadow 0.4s, transform 0.4s; }
.s-sp:nth-child(2) { background: linear-gradient(135deg, #5eead4, #1e40af); }
.s-sp:nth-child(3) { background: linear-gradient(135deg, #fde68a, #16a34a); }
.s-sp.on { box-shadow: 0 0 0 3px #fff; transform: translateY(-4px); }
.s-sp i { position: absolute; background: rgba(255,255,255,0.92); border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.s-sp i:nth-child(1) { left: 12%; top: 14%; width: 50%; height: 44%; }
.s-sp i:nth-child(2) { left: 40%; top: 40%; width: 46%; height: 40%; }
.s-sp i:nth-child(3) { left: 20%; top: 62%; width: 30%; height: 26%; }
.s-label { position: absolute; left: 0; right: 0; top: 18%; text-align: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 4vw, 44px); text-shadow: 0 4px 20px rgba(0,0,0,0.25); transition: opacity 0.3s; }

/* ---- Keys scene ---- */
.s-keys { position: absolute; left: 0; right: 0; top: 22%; display: flex; justify-content: center; align-items: center; gap: 2.4%; color: #fff; font-size: clamp(14px, 2.4vw, 26px); font-weight: 600; }
.s-k { min-width: 15%; padding: 3% 3.5%; text-align: center; border-radius: 12px; background: linear-gradient(#ffffff, #e5e7eb); color: #111;
  box-shadow: 0 6px 0 #9ca3af, 0 12px 24px rgba(0,0,0,0.25); transition: transform 0.12s, box-shadow 0.12s; }
.s-k.down { transform: translateY(5px); box-shadow: 0 1px 0 #9ca3af, 0 4px 10px rgba(0,0,0,0.2); }
.s-arrow { opacity: 0.8; }
.s-out { min-width: 22%; text-align: left; transition: opacity 0.3s; }
.s-switch { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); display: flex; gap: 10px; padding: 12px; border-radius: 16px;
  background: rgba(255,255,255,0.3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); width: 70%; }
.s-switch i { flex: 1; aspect-ratio: 1.3; border-radius: 8px; background: rgba(255,255,255,0.85); transition: box-shadow 0.25s, transform 0.25s; }
.s-switch i.on { box-shadow: 0 0 0 3px #0a84ff; transform: scale(1.06); }

/* ---- Glass scene ---- */
.scene[data-scene=glass] { background: #f8fafc; }
.s-blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.s-blob.b1 { width: 46%; aspect-ratio: 1; background: #f43f5e; left: 6%; top: 34%; }
.s-blob.b2 { width: 38%; aspect-ratio: 1; background: #3b82f6; left: 40%; top: 46%; }
.s-blob.b3 { width: 30%; aspect-ratio: 1; background: #facc15; left: 66%; top: 30%; }
.play[data-scene=glass] .s-blob.b1 { animation: blob1 9s ease-in-out infinite alternate; }
.play[data-scene=glass] .s-blob.b2 { animation: blob2 7s ease-in-out infinite alternate; }
.play[data-scene=glass] .s-blob.b3 { animation: blob3 8s ease-in-out infinite alternate; }
@keyframes blob1 { to { transform: translate(40%, 20%); } }
@keyframes blob2 { to { transform: translate(-30%, 10%); } }
@keyframes blob3 { to { transform: translate(-60%, 35%); } }
.s-glassbar { position: absolute; left: 6%; right: 6%; bottom: 8%; height: 17%; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 3%;
  background: rgba(246,246,248,0.94); box-shadow: 0 10px 30px rgba(0,0,0,0.15); transition: background 0.8s, backdrop-filter 0.8s, box-shadow 0.8s; }
.s-glassbar i { display: block; height: 50%; aspect-ratio: 1; border-radius: 24%; }
.s-glassbar.glass { background: rgba(255,255,255,0.18); backdrop-filter: blur(10px) saturate(220%) brightness(1.1); -webkit-backdrop-filter: blur(10px) saturate(220%) brightness(1.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 0 0 1px rgba(255,255,255,0.45); }
.s-glabel { position: absolute; right: 4%; font-size: clamp(10px, 1.3vw, 14px); font-weight: 600; color: #334155; }
