/* Mesa landing: the desktop look-alikes drawn inside the MacBook stages. */

.mb-one { --wallpaper: radial-gradient(110% 90% at 100% 100%, #5E5CE6 0%, transparent 50%), radial-gradient(90% 80% at 0% 0%, #A8DCFF 0%, transparent 60%), linear-gradient(160deg, #3A9BFF 0%, #007AFF 45%, #0A2D7A 100%); }
.mb-two { --wallpaper: radial-gradient(100% 80% at 0% 100%, #64D2FF 0%, transparent 55%), linear-gradient(200deg, #0B3D91 0%, #0A6CF0 55%, #061638 100%); }
.mb-three { --wallpaper: radial-gradient(90% 80% at 100% 0%, #7FE6FF 0%, transparent 55%), linear-gradient(170deg, #0052CC 0%, #4AA3FF 50%, #1E1B6B 100%); }
.mb-four { --wallpaper: radial-gradient(100% 90% at 0% 0%, #CDE6FF 0%, transparent 55%), linear-gradient(190deg, #0A4FB8 0%, #007AFF 60%, #071A3D 100%); }
.mb-five { --wallpaper: radial-gradient(100% 90% at 100% 100%, #7D7AFF 0%, transparent 50%), linear-gradient(160deg, #0A6CF0 0%, #0047AB 50%, #0B0F1A 100%); }

/* Fake app windows */
.win { position: absolute; border-radius: 12px; overflow: hidden; background: #FBFBFC; box-shadow: 0 0 0 1px rgba(0,0,0,.18), 0 20px 50px rgba(0,0,0,.35); transition: left .45s cubic-bezier(.2,.8,.2,1), top .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1); }
.win::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 38px; background: #F1F1F3; border-bottom: 1px solid #E2E2E6; }
.win::after { content: ""; position: absolute; top: 13px; left: 14px; width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: 20px 0 #FEBC2E, 40px 0 #28C840; }
.win.dim { filter: saturate(.8) brightness(.9); }
.w-safari { background: #FFFFFF; background-image: linear-gradient(90deg, transparent 8%, #F3F4F6 8% 92%, transparent 92%), repeating-linear-gradient(180deg, transparent 0 120px, #E5E7EB 120px 122px); background-size: 100% 180px, 100% 100%; background-position: 0 70px, 0 0; background-repeat: no-repeat, repeat; }
.w-notes { background: #FFFDF5; background-image: repeating-linear-gradient(180deg, transparent 0 34px, #F3EBD2 34px 35px); }
.w-term { background: #1E1E1E; }
.w-term::before { background: #2D2D2D; border-color: #111; }
.w-code { background: #1F2023; background-image: repeating-linear-gradient(180deg, transparent 0 22px, rgba(255,255,255,.04) 22px 23px); }
.w-code::before { background: #2A2B2F; border-color: #111; }
.w-mail { background: #FFFFFF; background-image: linear-gradient(90deg, #F4F4F6 0 240px, transparent 240px), repeating-linear-gradient(180deg, transparent 0 70px, #EEEEF0 70px 71px); }

/* Mesa menu bar panel (OneMenu main card: rings, switches, brightness, license) */
.onemenu .mesa-card { padding: 0; gap: 0; }
.mp-rings { display: flex; justify-content: space-evenly; padding: 14px 0; }
.ring { position: relative; width: 68px; height: 68px; }
.ring > svg { width: 68px; height: 68px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: rgba(255, 255, 255, .12); }
.ring .val { stroke: #30D158; stroke-linecap: round; stroke-dasharray: var(--d) 100; }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ring-in b { font-size: 9px; font-weight: 600; letter-spacing: .02em; }
.mp-toggles { padding: 10px 0; display: flex; flex-direction: column; gap: 2px; }
.mp-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 16px; font-size: 14px; }
.mp-toggle span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-bright { padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.mp-slider { width: 100%; display: flex; align-items: center; gap: 10px; color: #9A9DA6; font-weight: 400; }
.mp-slider i { flex: 1; height: 4px; border-radius: 2px; position: relative; background: linear-gradient(90deg, var(--accent) var(--v), rgba(255, 255, 255, .16) var(--v)); }
.mp-slider i::after { content: ""; position: absolute; top: 50%; left: var(--v); width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transform: translate(-50%, -50%); }
.mp-license { padding: 14px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.mp-trial { text-align: center; font-size: 11px; color: #9A9DA6; }
.kbd { flex: none; width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; background: #2A2C32; border: 1px solid #383B43; color: #ECEDEF; }
.img-chip { flex: none; display: inline-block; width: 20px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, #60A5FA, #F472B6); }

/* Window manager demo */
.zone-hint { position: absolute; border-radius: 14px; background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.8); backdrop-filter: blur(6px); opacity: 0; transition: all .35s cubic-bezier(.2,.8,.2,1); }
.zone-hint.show { opacity: 1; }
.keys { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.key { --c: var(--fg); min-width: 3.4rem; padding: .45rem .6rem; border-radius: .55rem; font: 400 .8rem/1.1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: color-mix(in srgb, var(--c) 80%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 4%, transparent); box-shadow: 0 .28rem 0 color-mix(in srgb, var(--c) 22%, transparent); display: inline-flex; flex-direction: column; align-items: flex-end; gap: .2rem; margin-bottom: .3rem; }
.key small { font-size: 1rem; }
.key.arrow { align-items: center; justify-content: center; font-size: 1.3rem; cursor: pointer; }
.key.arrow:active, .key.pressed { transform: translateY(.22rem); box-shadow: 0 .06rem 0 color-mix(in srgb, var(--c) 22%, transparent); }

/* Switcher HUD */
.hud { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 640px; padding: 16px; border-radius: 22px; background: rgba(28, 28, 32, .78); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.5); color: #F5F5F7; font: 14px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.hud-search { height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: flex; align-items: center; padding: 0 14px; color: #9A9DA6; font-size: 15px; margin-bottom: 10px; }
.hud-q { color: #F5F5F7; }
.caret { width: 2px; height: 18px; background: #0A84FF; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hud-list { display: flex; flex-direction: column; gap: 4px; }
.hud-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.hud-row.sel { background: #0A84FF; }
.hud-row .app { width: 34px; height: 34px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.hud-row b { font-weight: 600; display: block; }
.hud-row small { color: rgba(245,245,247,.6); font-size: 12px; }
.hud-row.sel small { color: rgba(255,255,255,.85); }
.hud-row mark { background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Clipboard picker */
.clip-picker { position: absolute; left: 520px; top: 230px; width: 440px; padding: 14px; border-radius: 20px; background: rgba(28, 28, 32, .82); backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.5); color: #F5F5F7; font: 13px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.cp-label, .cp-pinned { color: #9A9DA6; font-size: 11px; margin: 8px 6px 4px; text-transform: uppercase; letter-spacing: .06em; }
.cp-row { display: grid; grid-template-columns: 22px 22px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.cp-row.sel { background: #0A84FF; }
.cp-row.sel .cp-time, .cp-row.sel .kbd { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.15); }
.cp-ico { text-align: center; color: #9A9DA6; font-size: 13px; }
.cp-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-time { color: #9A9DA6; font-size: 11px; }

/* System window */
.sys-window { position: absolute; left: 150px; top: 80px; width: 980px; height: 640px; border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 200px 1fr; background: rgba(30, 30, 33, .92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(0,0,0,.5); color: #F5F5F7; font: 13px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.sys-side { padding: 50px 12px 12px; background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 4px; position: relative; }
.sys-side::before { content: ""; position: absolute; top: 16px; left: 16px; width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: 20px 0 #FEBC2E, 40px 0 #28C840; }
.sys-side span { padding: 7px 10px; border-radius: 8px; color: #C9CBD1; }
.sys-side span.on { background: rgba(10, 132, 255, .9); color: #fff; }
.sys-main { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.sys-chart { height: 220px; display: flex; align-items: flex-end; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 10px; }
.sys-chart i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(#4DA3FF, #0066DD); opacity: .55; }
.sys-chart i:last-child { opacity: 1; }
.sys-row { display: grid; grid-template-columns: 1fr 90px 90px; padding: 9px 8px; border-radius: 8px; }
.sys-row:nth-child(odd):not(.head) { background: rgba(255,255,255,.035); }
.sys-row.head { color: #9A9DA6; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.sys-row small { color: #9A9DA6; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }

/* Phones: show the panels without the laptop */
@media (max-width: 640px) {
  .macbook { filter: none; }
}
