/* ==========================================================================
   Deck chrome — top bar, slides, stage, content panel, nav, presenter dock.
   Premium dark "exhibition stage" with a brand-red glow. Touch-first.
   ========================================================================== */

#app {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(235,30,37,0.10), transparent 60%),
    radial-gradient(90% 80% at 12% 92%, rgba(254,240,57,0.05), transparent 55%),
    linear-gradient(160deg, var(--stage-1), var(--stage-0) 70%);
  overflow: hidden;
}

/* ---------- Top bar ---------- */
.topbar {
  flex: 0 0 auto;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--stage-line);
  background: rgba(12,13,16,0.55);
  backdrop-filter: blur(8px);
  z-index: 30;
}
.topbar-brand { display: flex; align-items: center; gap: 12px; }
.topbar-logo { height: 38px; width: auto; display: block; }
.topbar-title { font-size: 19px; font-weight: 800; letter-spacing: 0.3px; }
.brand-krisha { color: var(--brand-red); }
.brand-connect { color: var(--stage-text); }

.slide-dots { display: flex; gap: 9px; align-items: center; }
.slide-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--stage-3); border: none; padding: 0;
  transition: all 0.25s ease;
}
.slide-dot.active { background: var(--brand-red); width: 26px; border-radius: var(--r-pill); box-shadow: 0 0 12px var(--glow-red); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbtn {
  height: 42px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--stage-line); background: var(--stage-2);
  color: var(--stage-text); font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.topbtn:active { transform: scale(0.96); }
.topbtn.icon { width: 42px; padding: 0; justify-content: center; font-size: 18px; }
.topbtn.accent { background: var(--brand-red); border-color: var(--brand-red); box-shadow: 0 4px 18px var(--glow-red); }
.topbtn .badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-yellow); }

/* ---------- Deck / slides ---------- */
.deck { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: max-content minmax(360px, 600px);
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4.5vw, 88px);
  padding: 12px clamp(24px, 4vw, 72px);
  opacity: 0;
  transform: translateX(48px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22,0.61,0.36,1),
              right 0.34s cubic-bezier(0.22,0.61,0.36,1);
  pointer-events: none;
  visibility: hidden;
}
.slide.active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.slide.leaving-left { transform: translateX(-48px) scale(0.985); }

/* ---------- Stage (phone side) ---------- */
.slide-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.slide-stage::before {
  content: "";
  position: absolute;
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(235,30,37,0.28), transparent 62%);
  filter: blur(20px);
  z-index: 0;
}
.device-wrap { position: relative; z-index: 1; transform-origin: top left; }

/* ---------- Content panel side ---------- */
.slide-panel { max-width: 560px; }
.panel-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand-red); margin-bottom: 14px;
}
.panel-kicker::before { content: ""; width: 26px; height: 2px; background: var(--brand-red); border-radius: 2px; }
.panel-title {
  font-size: clamp(28px, 3.6vw, 46px); line-height: 1.04; font-weight: 800;
  letter-spacing: -0.8px; margin: 0 0 16px;
}
.panel-title .hl { color: var(--brand-red); }
.panel-sub {
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; color: var(--stage-text-muted);
  margin: 0 0 24px; max-width: 48ch;
}
.panel-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.panel-points li {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--stage-line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.panel-points li:hover { border-color: rgba(235,30,37,0.45); background: rgba(235,30,37,0.06); }
.panel-points .pt-ico {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-size: 16px;
  background: rgba(235,30,37,0.14); color: var(--brand-red);
}
.panel-points .pt-body { display: flex; flex-direction: column; gap: 2px; }
.panel-points .pt-title { font-size: 15.5px; font-weight: 700; color: var(--stage-text); }
.panel-points .pt-desc { font-size: 13.5px; line-height: 1.45; color: var(--stage-text-muted); }

/* Stat chips (intro) */
.panel-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.stat-chip {
  border: 1px solid var(--stage-line); border-radius: var(--r-md);
  padding: 12px 16px; background: rgba(255,255,255,0.025); min-width: 120px;
}
.stat-chip .num { font-size: 26px; font-weight: 800; color: var(--brand-red); line-height: 1; }
.stat-chip .lbl { font-size: 12.5px; color: var(--stage-text-muted); margin-top: 6px; }

/* Hero (intro/closing) — logo lockup */
.panel-lockup { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.panel-lockup img { height: 64px; filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5)); }
.panel-cta {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand-red); color: #fff; font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: var(--r-pill); border: none;
  box-shadow: 0 8px 28px var(--glow-red);
}
.panel-contact { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--stage-text-muted); font-size: 15px; }
.contact-row {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--stage-text-muted); padding: 10px 14px; border-radius: var(--r-md);
  border: 1px solid var(--stage-line); background: rgba(255,255,255,0.025); transition: border-color 0.2s, background 0.2s;
}
.contact-row:hover { border-color: rgba(235,30,37,0.45); background: rgba(235,30,37,0.06); }
.contact-row b { color: var(--stage-text); font-weight: 600; }
.contact-row svg { color: var(--brand-red); flex: 0 0 auto; }

/* ---------- Bottom nav ---------- */
.deck-nav {
  flex: 0 0 auto; height: 60px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  border-top: 1px solid var(--stage-line);
  background: rgba(12,13,16,0.55); backdrop-filter: blur(8px);
  z-index: 30;
}
.navbtn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--stage-line); background: var(--stage-2);
  color: var(--stage-text); font-size: 22px; line-height: 1;
  display: grid; place-items: center; transition: transform 0.12s, background 0.2s, opacity 0.2s;
}
.navbtn:active { transform: scale(0.9); }
.navbtn:disabled { opacity: 0.3; }
.deck-nav-meta { font-size: 13.5px; color: var(--stage-text-muted); min-width: 200px; text-align: center; }
.deck-nav-meta b { color: var(--stage-text); }

/* ---------- Presenter dock (slim right sidebar — never covers the slide) ---------- */
:root { --dock-w: 296px; }
.dock-scrim { display: none; } /* no dimming — the presentation stays fully live */
.dock {
  position: fixed; top: 66px; bottom: 60px; right: 0; width: var(--dock-w); z-index: 50;
  background: linear-gradient(180deg, var(--stage-2), var(--stage-1));
  border-left: 2px solid var(--brand-red);
  box-shadow: -18px 0 50px rgba(0,0,0,0.45);
  transform: translateX(101%);
  transition: transform 0.34s cubic-bezier(0.22,0.61,0.36,1);
  padding: 14px 14px 18px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.dock.open { transform: none; }
/* the dock floats ABOVE the slide — no pushing/reflow of the content */

.dock-head { display: flex; align-items: center; justify-content: space-between; }
.dock-head h3 { margin: 0; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.dock-head h3 .live { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 10px var(--glow-red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.dock-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--stage-line); background: var(--stage-3); color: var(--stage-text); font-size: 17px; display: grid; place-items: center; }

.dock-card { background: rgba(255,255,255,0.03); border: 1px solid var(--stage-line); border-radius: var(--r-md); padding: 12px; }
.dock-card h4 { margin: 0 0 9px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--stage-text-muted); }
.dock-stage-now { font-size: 15px; font-weight: 800; margin-bottom: 11px; display: flex; align-items: center; gap: 8px; }
.dock-stage-now .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }

/* vertical stage list */
.dock-steps { display: flex; flex-direction: column; gap: 6px; margin-bottom: 11px; }
.dock-step {
  display: flex; align-items: center; gap: 9px; text-align: left;
  padding: 8px 10px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  border: 1px solid var(--stage-line); background: var(--stage-3); color: var(--stage-text-muted); transition: all 0.18s;
}
.dock-step .sidx { width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 10px; flex: 0 0 auto; }
.dock-step.done { color: var(--stage-text); border-color: rgba(235,30,37,0.4); }
.dock-step.done .sidx { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.dock-step.current { background: var(--brand-red); border-color: var(--brand-red); color: #fff; box-shadow: 0 4px 16px var(--glow-red); }
.dock-step.current .sidx { border-color: #fff; }

.dock-row { display: flex; gap: 8px; }
.dock-btn {
  flex: 1 1 auto; min-height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--stage-line); background: var(--stage-3); color: var(--stage-text);
  font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform 0.1s, opacity 0.2s;
}
.dock-btn:active { transform: scale(0.96); }
.dock-btn:disabled { opacity: 0.35; }
.dock-btn.block { width: 100%; }
.dock-btn.primary { background: var(--brand-red); border-color: var(--brand-red); box-shadow: 0 4px 16px var(--glow-red); }
.dock-btn.danger { border-color: rgba(198,40,40,0.6); color: #ff8a8a; background: transparent; }
.dock-hint { font-size: 11.5px; color: var(--stage-text-faint); margin-top: 9px; line-height: 1.5; }

.dock-toggle { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--stage-text-muted); }
.switch { position: relative; width: 42px; height: 24px; border-radius: 24px; background: var(--stage-3); border: 1px solid var(--stage-line); transition: background 0.2s; flex: 0 0 auto; }
.switch::after { content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; transition: transform 0.2s; }
.switch.on { background: var(--brand-red); border-color: var(--brand-red); }
.switch.on::after { transform: translateX(18px); }

/* ---------- Hint toast (first load) ---------- */
.hint-toast {
  position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--stage-3); border: 1px solid var(--stage-line); color: var(--stage-text);
  padding: 12px 18px; border-radius: var(--r-pill); font-size: 13.5px; z-index: 60;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); opacity: 0; transition: all 0.4s; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
}
.hint-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hint-toast b { color: var(--brand-yellow); }

/* ---------- Persistent StraViTech credit (bottom-left, always-on, glowing) ---------- */
.dev-badge {
  position: fixed; left: 16px; bottom: 9px; z-index: 35;
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; opacity: 1;
}
.dev-badge img {
  height: 30px; width: auto; display: block;
  filter: drop-shadow(0 0 7px rgba(34,211,238,0.55)) drop-shadow(0 0 2px rgba(34,211,238,0.4));
}
.dev-badge .t { font-size: 10.5px; line-height: 1.25; color: var(--stage-text-muted); display: flex; flex-direction: column; }
.dev-badge .t b { color: var(--stage-text); font-weight: 700; }
.dev-badge .t .vi { color: #22D3EE; }
.dev-badge .t .u { color: #22D3EE; font-size: 9.5px; }
@media (max-width: 760px) { .dev-badge .t { display: none; } }

/* ---------- Responsive: portrait / narrow → stack ---------- */
@media (max-width: 980px), (orientation: portrait) {
  .slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    overflow-y: auto;
    align-content: start;
    gap: 18px;
    padding: 18px 18px 40px;
  }
  .slide-stage { height: auto; padding-top: 8px; }
  .slide-panel { max-width: 100%; }
  .panel-title { font-size: clamp(24px, 6vw, 34px); }
}
@media (max-width: 760px) {
  :root { --dock-w: min(300px, 88vw); }
}
@media (max-width: 560px) {
  .topbar-title { display: none; }
  .deck-nav-meta { min-width: 120px; font-size: 12px; }
}
