/* clockwork-demo.css — the frame for the instructional product demos
 *
 * Each app page (Stream, Drive, Blueprints, and later the others) embeds a
 * small animated scene right after its hero that shows what the app does in
 * ~5 seconds, Apple-keynote style. This file supplies the SHARED frame — the
 * demo canvas, caption, section spacing — so every app's scene sits inside
 * the same cinematic surface. The scene ITSELF (the moving parts) lives
 * inline in each page, so it can speak in that app's language.
 */

.demo-sec{margin:28px 0 8px;scroll-margin-top:70px;--demo-a:var(--cy,#22d3ee)}
/* Introductions are for people who don't have an account yet. Logged-in users
   tapping the Apps pill land straight in their tools — no explainers. */
html.cw-authed .demo-sec,html.cw-authed .demo-jump{display:none!important}
/* Instant-jump pill from the hero — "▶ See it" — smooth-scrolls to the demo.
   Sized generously on mobile so it lands under thumb, tightens on desktop. */
.demo-jump{display:inline-flex;align-items:center;gap:8px;margin:12px 0 2px;padding:10px 18px;
  font-family:inherit;font-size:13.5px;font-weight:700;letter-spacing:.01em;
  color:#06131a;background:var(--demo-a);border:none;border-radius:999px;
  text-decoration:none;cursor:pointer;transition:transform .14s,box-shadow .14s;
  box-shadow:0 8px 26px color-mix(in oklab,var(--demo-a) 40%,transparent),0 0 0 1px color-mix(in oklab,var(--demo-a) 40%,transparent)}
.demo-jump:hover{transform:translateY(-1px);box-shadow:0 10px 32px color-mix(in oklab,var(--demo-a) 55%,transparent),0 0 0 1px color-mix(in oklab,var(--demo-a) 60%,transparent)}
.demo-jump:active{transform:scale(.97)}
.demo-jump svg{width:12px;height:12px;fill:currentColor;stroke:none}
@media(max-width:640px){.demo-jump{width:100%;justify-content:center;padding:13px 18px;font-size:14px}}
.demo-eyebrow{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:700;letter-spacing:.28em;text-transform:uppercase;color:var(--demo-a);margin:0 2px 12px}
.demo-eyebrow .pulse{width:7px;height:7px;border-radius:50%;background:var(--demo-a);box-shadow:0 0 12px var(--demo-a);animation:demoPulse 1.8s ease-in-out infinite}
@keyframes demoPulse{0%,100%{opacity:1}50%{opacity:.35}}

.demo-h{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:clamp(28px,4.6vw,44px);line-height:1.06;letter-spacing:-.01em;color:var(--ink,#e6e9ef);margin:0 0 4px}
.demo-h em{color:var(--demo-a);font-style:italic;font-weight:500}
.demo-sub{font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-size:clamp(15px,2vw,18px);color:var(--mute,#9aa4b2);margin-bottom:20px}

/* The canvas — a widescreen glass panel that holds the moving parts. */
.demo-canvas{position:relative;overflow:hidden;border-radius:22px;border:1px solid var(--line2,rgba(255,255,255,.14));background:linear-gradient(180deg,#12151b 0%,#0e1116 100%);aspect-ratio:16/9;max-height:520px;box-shadow:0 30px 80px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.05)}
.demo-canvas::before{content:"";position:absolute;inset:-2px;pointer-events:none;background:radial-gradient(80% 60% at 50% 0%,color-mix(in oklab,var(--demo-a) 22%,transparent),transparent 70%);opacity:.45;z-index:0}
.demo-canvas > *{position:relative;z-index:1}

.demo-caption{margin-top:12px;padding:0 2px;font-size:13px;color:var(--mute,#9aa4b2);display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.demo-caption b{color:var(--ink,#e6e9ef);font-weight:600}
.demo-caption .dot{width:4px;height:4px;border-radius:50%;background:var(--dim,#6b7280)}

@media(max-width:640px){
  .demo-canvas{aspect-ratio:4/3;border-radius:16px}
  .demo-sec{margin:22px 0 4px}
  .demo-h{font-size:26px;line-height:1.1}
  .demo-sub{font-size:14.5px;margin-bottom:14px}
}
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){
  .demo-eyebrow .pulse{animation:none}
  .demo-canvas *{animation:none!important;transition:none!important}
}
