
:root {
  --bg: #2a2a2a;
  --bg-deep: #1f1f1f;
  --panel: #333333;
  --line: rgba(255, 255, 255, 0.16);
  --text: #f3f3f3;
  --muted: #a3a3a3;
  --dim: #6f6f6f;
  --red: #f0284a;
  --green: #14b77d;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #141414; overflow: hidden; }
body { font-family: Geist, system-ui, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; cursor: none; }
body.show-cursor { cursor: default; }

#stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; overflow: hidden;
  transform-origin: 0 0; background: var(--bg);
  background-image: radial-gradient(120% 90% at 0% 100%, rgba(255, 255, 255, 0.045), transparent 60%);
}

/* dashed frame lines, as in the PDF */
.grid { position: absolute; inset: 0; pointer-events: none; }
.grid i { position: absolute; display: block; }
.grid .v { top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--line); }
.grid .h { left: 0; right: 0; height: 0; border-top: 1.5px dashed var(--line); }
.grid .sq { width: 12px; height: 12px; border: 1.5px solid rgba(255, 255, 255, 0.35); transform: translate(-6px, -6px); background: var(--bg); }

/* slides */
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.slide.active { visibility: visible; }
.slide.enter-fwd { animation: enterFwd 0.75s var(--ease) both; }
.slide.enter-back { animation: enterBack 0.75s var(--ease) both; }
.slide.leave-fwd { animation: leaveFwd 0.55s var(--ease) both; visibility: visible; }
.slide.leave-back { animation: leaveBack 0.55s var(--ease) both; visibility: visible; }
.slide.shown { opacity: 1; }
@keyframes enterFwd { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-70px); } to { opacity: 1; transform: none; } }
@keyframes leaveFwd { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-70px); } }
@keyframes leaveBack { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(70px); } }

/* text blocks */
.chip {
  position: relative; display: inline-block; padding: 12px 26px; font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #e6e6e6; background: rgba(255, 255, 255, 0.07);
}
.chip::before, .chip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 10px; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.chip::before { left: 0; border-right: 0; }
.chip::after { right: 0; border-left: 0; }
.title { font-size: 66px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; margin: 28px 0 0; }
.title .tag { color: var(--muted); }
.lede { font-size: 30px; line-height: 1.35; color: var(--muted); margin: 26px 0 0; max-width: 980px; }
.bullets { list-style: none; padding: 0; margin: 64px 0 0; font-size: 36px; line-height: 1.32; }
.bullets > li { position: relative; padding-left: 40px; margin: 0 0 30px; max-width: 900px; }
.bullets > li::before { content: ""; position: absolute; left: 8px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.bullets ul { list-style: none; padding: 0; margin: 26px 0 0 10px; }
.bullets ul li { position: relative; padding-left: 40px; margin: 0 0 26px; }
.bullets ul li::before { content: ""; position: absolute; left: 8px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.bullets .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.bullets .reveal.on { opacity: 1; transform: none; }

.info {
  position: absolute; display: flex; gap: 22px; padding: 26px 30px; background: rgba(255, 255, 255, 0.07); color: #d9d9d9;
  font-size: 27px; line-height: 1.35;
}
.info b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 4px; font-size: 16px; font-weight: 600; color: #222; background: #9a9a9a; }

/* left column of phone slides */
.left { position: absolute; left: 150px; top: 150px; width: 1040px; }
.viewer { position: absolute; font-size: 21px; color: var(--muted); letter-spacing: 0.01em; white-space: nowrap; }
.viewer strong { color: var(--text); font-weight: 500; }

/* numbered step list */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 54px 0 0; width: 960px; }
.steps li {
  counter-increment: step; position: relative; padding: 15px 0 15px 74px; font-size: 30px; line-height: 1.32; color: var(--dim);
  transition: color 0.4s var(--ease);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 13px; width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 20px; border: 1.5px solid rgba(255, 255, 255, 0.18); color: var(--dim); transition: all 0.4s var(--ease);
}
.steps li.done { color: #8d8d8d; }
.steps li.done::before { content: "✓"; color: #bdbdbd; border-color: rgba(255, 255, 255, 0.28); }
.steps li.now { color: var(--text); }
.steps li.now::before { color: #111; background: var(--text); border-color: var(--text); }
.steps.compact li { padding-top: 11px; padding-bottom: 11px; font-size: 27px; }
.steps.compact li::before { top: 9px; }
.note { margin-top: 34px; font-size: 24px; line-height: 1.4; color: var(--muted); max-width: 900px; padding-left: 22px; border-left: 3px solid rgba(255, 255, 255, 0.2); }

/* phone */
.phone { position: absolute; padding: 10px; background: #111; border: 1.5px solid #3c3c3c; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.phone .screen { position: relative; width: 390px; height: 844px; overflow: hidden; background: #fafafa; transform-origin: 0 0; }
.phone .layer { position: absolute; inset: 0; will-change: transform, opacity, clip-path; }
.phone .layer img { display: block; width: 390px; height: 844px; }
.phone .ring {
  position: absolute; pointer-events: none; border: 3px solid var(--red); opacity: 0; transition: opacity 0.35s var(--ease);
  box-shadow: 0 0 0 0 rgba(240, 40, 74, 0.45);
}
.phone .ring.on { opacity: 1; animation: ringPulse 1.8s ease-out 0.2s infinite; }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(240, 40, 74, 0.5); } 70% { box-shadow: 0 0 0 12px rgba(240, 40, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 40, 74, 0); } }
.phone .ripple { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: rgba(240, 40, 74, 0.55); pointer-events: none; animation: ripple 0.5s ease-out forwards; }
@keyframes ripple { from { transform: scale(0.4); opacity: 1; } to { transform: scale(5.5); opacity: 0; } }
.phone .swipe-hint { position: absolute; left: 230px; top: 120px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 4px rgba(240, 40, 74, 0.8); opacity: 0; pointer-events: none; }
.phone .swipe-hint.on { animation: swipeHint 1.6s var(--ease) 0.3s infinite; }
@keyframes swipeHint { 0% { opacity: 0; transform: translateX(60px); } 15% { opacity: 1; } 75% { opacity: 1; transform: translateX(-150px); } 100% { opacity: 0; transform: translateX(-150px); } }
.nav-labels { position: absolute; display: flex; font-size: 19px; color: var(--muted); text-align: center; opacity: 0; transition: opacity 0.4s var(--ease); }
.nav-labels.on { opacity: 1; }
.nav-labels span { flex: 1; }
.nav-labels span::before { content: ""; display: block; width: 1.5px; height: 14px; margin: 0 auto 6px; background: rgba(255, 255, 255, 0.35); }

/* lock screen frames (HTML, not app captures) */
.lock { position: absolute; inset: 0; background: #222 url(assets/img/lock-bg.jpg) center / cover; color: #fff; }
.lock .clock { margin-top: 86px; text-align: center; font-size: 88px; font-weight: 300; letter-spacing: -0.02em; }
.lock .stack { position: absolute; left: 12px; right: 12px; top: 300px; display: flex; flex-direction: column; gap: 10px; }
.notif {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 4px 12px; padding: 14px 14px 15px; border-radius: 20px;
  background: rgba(245, 245, 245, 0.78); color: #111; backdrop-filter: blur(20px); font-size: 15px; line-height: 1.3;
  animation: notifIn 0.6s var(--ease) both;
}
.notif .icon { grid-row: span 2; width: 38px; height: 38px; border-radius: 9px; background: #111 url(assets/brand/mark-dark.svg) center / 22px no-repeat; }
.notif .t { font-weight: 600; }
.notif .when { color: #666; font-size: 13px; }
.notif .b { grid-column: 2 / 4; color: #222; }
.lock .none { margin-top: 150px; text-align: center; font-size: 17px; color: rgba(255, 255, 255, 0.7); }
.lock.still .notif { animation: none; }
@keyframes notifIn { from { opacity: 0; transform: translateY(-30px) scale(0.96); } to { opacity: 1; transform: none; } }

/* lifecycle diagram */
.lanes { position: absolute; left: 0; right: 0; top: 270px; height: 600px; }
.lane { position: absolute; left: 0; right: 0; height: 200px; display: flex; align-items: center; padding-left: 130px; font-size: 38px; }
.lane:nth-child(2) { background: rgba(255, 255, 255, 0.025); }
.node {
  position: absolute; width: 236px; height: 108px; display: grid; place-items: center; text-align: center; font-size: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.85); background: linear-gradient(180deg, #3a3a3a, #2c2c2c);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.4s, background 0.4s, color 0.4s;
}
.node.muted { border-style: dashed; border-color: rgba(255, 255, 255, 0.4); color: var(--muted); background: transparent; }
.node.here { border-color: var(--red); box-shadow: 0 0 0 6px rgba(240, 40, 74, 0.18); }
.node.here::after { content: "You are here"; position: absolute; bottom: -38px; font-size: 18px; color: var(--red); letter-spacing: 0.04em; }
svg.arrows { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
svg.arrows path { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 2; transition: opacity 0.5s var(--ease); }
svg.arrows path.dash { stroke-dasharray: 7 7; stroke: rgba(255, 255, 255, 0.45); }
.b-hide { opacity: 0 !important; transform: translateY(10px); }

/* escalation chart */
.esc-row { position: absolute; left: 150px; width: 1620px; height: 54px; display: flex; align-items: center; }
.esc-row .who { width: 300px; font-size: 32px; line-height: 1; }
.esc-row .who small { display: block; margin-top: 7px; font-size: 18px; color: var(--muted); }
.esc-row .bar { position: relative; flex: 1; height: 54px; background: linear-gradient(90deg, #3d3d3d 70%, rgba(61, 61, 61, 0)); }
.bell { position: absolute; top: 0; width: 50px; height: 54px; margin-left: -25px; display: grid; place-items: center; background: var(--red); opacity: 0; transform: scale(0.6); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.bell svg { width: 26px; height: 26px; }
.bell.faded { background: rgba(240, 40, 74, 0.28); }
.bell.on { opacity: 1; transform: none; }
.esc-axis { position: absolute; left: 450px; top: 0; width: 1320px; height: 1px; font-size: 30px; color: #e6e6e6; }
.esc-axis span { position: absolute; transform: translateX(-50%); }
.esc-tick { position: absolute; top: 0; bottom: 0; border-left: 1.5px dashed rgba(255, 255, 255, 0.16); }

/* PDF-style triptych */
.trip-label { position: absolute; font-size: 23px; color: var(--muted); text-align: center; }
.arrow-r { position: absolute; height: 2px; background: #fff; }
.arrow-r::after { content: ""; position: absolute; right: -2px; top: -7px; border: 8px solid transparent; border-left: 14px solid #fff; border-right: 0; }

/* workflow track */
.track { position: absolute; left: 150px; top: 60px; display: flex; gap: 8px; font-size: 17px; }
.track span { padding: 8px 14px; color: var(--dim); border: 1.5px solid rgba(255, 255, 255, 0.14); transition: all 0.4s var(--ease); }
.track span.done { color: #9a9a9a; border-color: rgba(255, 255, 255, 0.24); }
.track span.now { color: #111; background: var(--text); border-color: var(--text); }
.track span.alt { color: var(--red); border-color: rgba(240, 40, 74, 0.6); }

/* progress bar */
#progress { position: absolute; left: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.55); transition: width 0.5s var(--ease), opacity 0.3s; }
#progress.off { opacity: 0; }
