/* Simulation UI: control panels, the home-page hero carousel + Sim Lab grid, and the project-page demo block */

/* ---------- control panel (generated by SimKit.panel) ---------- */
.sk-panel { display: grid; gap: 14px; }
.sk-ctl { display: grid; gap: 12px; }
.sk-rng { display: grid; gap: 4px; font: 400 12px 'JetBrains Mono', ui-monospace, monospace; color: #c8d5e1; }
.sk-rng span { display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: 1px; }
.sk-rng b { color: #00d4ff; font-weight: 600; }
.sk-rng input { width: 100%; accent-color: #00d4ff; }
.sk-chk { display: flex; align-items: center; gap: 8px; font: 400 13px Poppins, system-ui, sans-serif; color: #c8d5e1; cursor: pointer; }
.sk-chk input { accent-color: #00d4ff; width: 16px; height: 16px; }
.sk-seg { display: grid; gap: 6px; }
.sk-seglabel { font: 400 12px 'JetBrains Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: 1px; color: #c8d5e1; }
.sk-segrow { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-segbtn, .sk-btn { background: transparent; border: 1px solid #1e3a5f; color: #c8d5e1; border-radius: 999px; padding: 5px 13px; font: 400 12.5px Poppins, system-ui, sans-serif; cursor: pointer; transition: .2s; }
.sk-segbtn:hover { border-color: #00d4ff; color: #00d4ff; }
.sk-segbtn.on { background: rgba(0,212,255,.15); border-color: #00d4ff; color: #00d4ff; box-shadow: 0 0 14px rgba(0,212,255,.15); }
.sk-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-btn { border-color: #00d4ff; color: #00d4ff; font-weight: 500; padding: 7px 16px; font-size: 13px; }
.sk-btn:hover { background: rgba(0,212,255,.14); }
.sk-btn.sk-ghost { border-color: #1e3a5f; color: #c8d5e1; font-weight: 400; }
.sk-btn.sk-ghost:hover { border-color: #00d4ff; color: #00d4ff; background: transparent; }
.sk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.sk-stats > div { background: rgba(0,212,255,.07); border: 1px solid rgba(0,212,255,.22); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.sk-stats b { display: block; font: 600 1rem/1.25 'JetBrains Mono', ui-monospace, monospace; color: #00d4ff; overflow-wrap: anywhere; }
.sk-stats small { display: block; font-size: 11px; color: #94a3b8; line-height: 1.25; margin-top: 2px; }

/* ---------- hero simulation card (home page) ---------- */
.feat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-sim { position: relative; background: linear-gradient(180deg, rgba(16,26,48,.92), rgba(9,15,30,.92)); border: 1px solid #1e3a5f; border-radius: 22px; padding: 14px 14px 12px; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(0,212,255,.08); overflow: hidden; }
.hs-bar { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; font: 500 12px 'JetBrains Mono', ui-monospace, monospace; color: #c8d5e1; }
.hs-dot { width: 8px; height: 8px; border-radius: 50%; background: #39ff6a; box-shadow: 0 0 10px #39ff6a; animation: hsblink 1.6s ease-in-out infinite; flex: none; }
@keyframes hsblink { 50% { opacity: .35; } }
.hs-live { color: #39ff6a; text-transform: uppercase; letter-spacing: 1.5px; font-size: 10.5px; }
.hs-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e2e8f0; }
.hs-count { color: #94a3b8; font-size: 11px; }
.hs-stage { position: relative; border-radius: 14px; overflow: hidden; background: #060a14; border: 1px solid #16294a; aspect-ratio: 8 / 5; transition: opacity .3s; }
.hs-stage.swap { opacity: 0; }
.hs-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hs-open { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: inline-flex; gap: 6px; align-items: center; padding: 6px 13px; border-radius: 999px; font: 500 12px Poppins, sans-serif; color: #04101f; background: linear-gradient(135deg, #00d4ff, #3b82f6); opacity: 0; transform: translateY(6px); transition: .25s; }
.hs-stage:hover .hs-open, .hs-open:focus-visible { opacity: 1; transform: none; }
.hs-tag { margin: 10px 4px 2px; font-size: 13px; line-height: 1.5; color: #c8d5e1; min-height: 40px; }
.hs-ctl { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.hs-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #1e3a5f; background: rgba(8,13,26,.7); color: #e2e8f0; cursor: pointer; display: grid; place-items: center; flex: none; transition: .2s; }
.hs-btn:hover { border-color: #00d4ff; color: #00d4ff; }
.hs-dots { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; justify-content: center; }
.hs-dots button { width: 9px; height: 9px; border-radius: 50%; padding: 0; border: 0; background: #1e3a5f; cursor: pointer; transition: .25s; }
.hs-dots button:hover { background: #4a6f9f; }
.hs-dots button.on { background: #00d4ff; width: 22px; border-radius: 5px; box-shadow: 0 0 10px rgba(0,212,255,.6); }
.hs-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: transparent; }
.hs-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #00d4ff, #8b5cf6); }

/* ---------- live simulation block on project pages ---------- */
.pui-demo { margin: 44px 0 10px; border: 1px solid #1e3a5f; border-radius: 22px; background: radial-gradient(760px circle at 15% 0%, rgba(0,212,255,.11), transparent 60%), #0b1224; overflow: hidden; }
.pui-demo-head { padding: 22px 26px 0; }
.pui-live { display: inline-flex; align-items: center; gap: 8px; font: 600 10.5px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 1.6px; text-transform: uppercase; color: #39ff6a; }
.pui-live i { width: 8px; height: 8px; border-radius: 50%; background: #39ff6a; box-shadow: 0 0 10px #39ff6a; animation: hsblink 1.6s ease-in-out infinite; }
.pui-demo-head h3 { font: 600 1.4rem Poppins, system-ui, sans-serif; margin: 6px 0 4px; color: #e2e8f0; text-transform: none; letter-spacing: 0; border: 0; padding: 0; }
.pui-demo-head p { margin: 0; font-size: 14px; color: #94a3b8; max-width: 900px; line-height: 1.6; }
.pui-demo-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 26px; padding: 18px 26px 26px; align-items: start; }
.pui-stage canvas { width: 100%; display: block; border-radius: 14px; background: #060a14; border: 1px solid #1e3a5f; }
.pui-stage canvas:focus-visible { outline: 2px solid #00d4ff; outline-offset: 3px; }
.pui-side { display: grid; gap: 14px; }
.pui-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: #94a3b8; border-left: 2px solid #1e3a5f; padding-left: 12px; }
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .pui-demo-body { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 22px; }
  .pui-demo-head { padding: 20px 16px 0; }
}

.hero-sim, .hero-inner, .pui-demo, .pui-demo-body > *, .pui-stage, .pui-side { min-width: 0; }
.pui-stage canvas { max-width: 100%; }
