/* xglide.app hero: two screens the visitor drives with their own mouse
   (hero.js). Every rule is scoped to #xg-hero. */
#xg-hero{--mint:#53E7B5;--cyan:#33CEF7;--teal:#50D2BE;--pale:#B6F2E8;--soft:#9FAEC3;--dim:#6F8199;--ink:#F0F5FA}
#xg-hero *{box-sizing:border-box}

/* The desk and a margin around it: inside it the visitor's cursor is hidden
   and the computer's pointer stands in for it. */
#xg-hero .desk{position:relative;width:calc(100% + 64px);max-width:1064px;margin:-32px;padding:32px}
#xg-hero .desk.live{cursor:none}
#xg-hero .stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) var(--gap) minmax(0,1fr);--gap:44px;touch-action:pan-y;user-select:none;-webkit-user-select:none}
#xg-hero .screen{position:relative;aspect-ratio:816/510;border-radius:14px;background:#000;overflow:hidden}
/* Mac: a thin even black border inside a silver rim, like a Studio Display. */
#xg-hero .screen.mac{box-shadow:0 0 0 7px #05070B,0 0 0 8.5px #3A4352,0 0 0 9.5px #1A2029,0 30px 60px -30px rgba(83,231,181,.35)}
/* PC: the same thin frame as the Mac's (owner, 2026-10-20), with a cyan
   glow beneath instead of mint. */
#xg-hero .screen.pc{overflow:visible;box-shadow:0 0 0 7px #05070B,0 0 0 8.5px #3A4352,0 0 0 9.5px #1A2029,0 30px 60px -30px rgba(51,206,247,.35)}
#xg-hero .screen.pc .clip{position:absolute;inset:0;border-radius:inherit;overflow:hidden}
#xg-hero .pc-chin{display:none;position:absolute;left:0;right:0;top:100%;height:16px;margin:0 -9px;background:#0B0D11;border-radius:0 0 10px 10px;border:1px solid #22262E;border-top:0}
#xg-hero .pc-chin::after{content:"";position:absolute;right:22px;top:6px;width:4px;height:4px;border-radius:50%;background:#2a3340;transition:background .6s,box-shadow .6s}
#xg-hero .pc-chin.lit::after{background:var(--cyan);box-shadow:0 0 6px var(--cyan)}
#xg-hero .canvas{position:absolute;left:0;top:0;width:816px;height:510px;transform-origin:0 0}
#xg-hero .canvas>img{position:absolute;inset:0;width:816px;height:510px;display:block;max-width:none}
#xg-hero .blackout{position:absolute;inset:0;background:#000;transition:opacity .6s cubic-bezier(.23,1,.32,1)}
#xg-hero .asleep{position:absolute;inset:0;background:rgba(3,6,12,.62);display:flex;align-items:center;justify-content:center;transition:opacity .6s cubic-bezier(.23,1,.32,1)}
#xg-hero .asleep span{font-size:14px;color:#9FAEC3;background:rgba(8,14,25,.7);padding:8px 14px;border-radius:999px;border:1px solid #1C2A3A;white-space:nowrap}
#xg-hero .off{opacity:0;pointer-events:none}
#xg-hero .bump{position:absolute;top:0;bottom:0;right:0;width:3px;background:linear-gradient(transparent,rgba(255,255,255,.85),transparent);opacity:0;transition:opacity .2s}
#xg-hero .bump.show{opacity:1}

/* Note windows, in the 816 x 510 desktop space. */
#xg-hero .note{position:absolute;text-align:left;border-radius:12px;overflow:hidden;opacity:.94;transition:opacity .3s}
#xg-hero .note.focus{opacity:1}
#xg-hero .mac-note{left:84px;top:262px;width:340px;height:168px;background:#FBFAF6;box-shadow:0 18px 40px rgba(10,20,60,.35),0 0 0 1px rgba(0,0,0,.12)}
#xg-hero .mac-note .bar{height:34px;display:flex;align-items:center;gap:8px;padding:0 14px;background:#EDEBE5;border-bottom:1px solid #DAD7CF;font:600 13px -apple-system,BlinkMacSystemFont,sans-serif;color:#3B3B3B}
#xg-hero .mac-note .bar i{width:12px;height:12px;border-radius:50%;display:block}
#xg-hero .mac-note .bar b{margin-left:auto;margin-right:auto;font-weight:600;transform:translateX(-24px)}
#xg-hero .mac-note .text{padding:12px 16px;font:16px/1.45 -apple-system,BlinkMacSystemFont,'Helvetica Neue',sans-serif;color:#1D1D1F}
#xg-hero .pc-note{left:452px;top:288px;width:340px;height:164px;background:#202020;box-shadow:0 18px 40px rgba(0,0,0,.5),0 0 0 1px #3A3A3A;border-radius:8px}
#xg-hero .pc-note .bar{height:32px;display:flex;align-items:center;padding:0 0 0 12px;background:#2B2B2B;font:12px 'Segoe UI',system-ui,sans-serif;color:#E6E6E6;gap:10px}
#xg-hero .pc-note .bar .tab{background:#202020;height:26px;margin-top:6px;border-radius:6px 6px 0 0;display:flex;align-items:center;padding:0 10px;gap:8px}
#xg-hero .pc-note .bar .ctl{margin-left:auto;display:flex;gap:18px;padding-right:12px;color:#BDBDBD;font-size:12px}
#xg-hero .pc-note .menu{height:26px;display:flex;gap:16px;align-items:center;padding:0 12px;font:12px 'Segoe UI',system-ui,sans-serif;color:#CFCFCF;border-bottom:1px solid #333}
#xg-hero .pc-note .text{padding:10px 14px;font:15px/1.45 Consolas,'Cascadia Mono','SF Mono',Menlo,monospace;color:#F2F2F2}
#xg-hero .text{white-space:pre-wrap;word-break:break-word;overflow:hidden}
#xg-hero .text .ph{color:#9A9A9A}
#xg-hero .pc-note .text .ph{color:#7A7A7A}
#xg-hero .caret{display:inline-block;width:2px;height:1.15em;vertical-align:-.2em;margin-left:1px;background:currentColor;animation:xh-blink 1s steps(1) infinite}
#xg-hero .mac-note .caret{background:#E2A400}
@keyframes xh-blink{50%{opacity:0}}

/* The seam between the two screens. */
#xg-hero .seam{position:relative}
/* Off: a dark line. On: the lit line fades in over it (opacity only; a
   gradient can't be transitioned). The crossing itself is the comet's job. */
#xg-hero .seam::before,#xg-hero .seam::after{content:"";position:absolute;left:50%;top:6%;bottom:6%;width:2px;margin-left:-1px;border-radius:2px}
#xg-hero .seam::before{background:#1A2638}
#xg-hero .seam::after{background:linear-gradient(90deg,var(--mint),var(--cyan));box-shadow:0 0 14px rgba(83,231,181,.55),0 0 28px rgba(51,206,247,.35);opacity:0;transition:opacity .6s cubic-bezier(.23,1,.32,1)}
#xg-hero .stage.on .seam::after{opacity:1}

/* The pointer the visitor moves. */
#xg-hero .pointer{position:absolute;left:0;top:0;width:24px;height:30px;pointer-events:none;opacity:0;z-index:5;will-change:transform}
#xg-hero .pointer.show{opacity:1}
/* Scaled from the arrow's tip (its hot spot), never its middle. */
#xg-hero .pointer svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;transform-origin:12.5% 6.7%;transition:transform 100ms ease-out}
#xg-hero .pointer .win{display:none}
#xg-hero .pointer.on-pc .mac{display:none}
#xg-hero .pointer.on-pc .win{display:block}
#xg-hero .pointer.press svg{transform:scale(.95)}
#xg-hero .pointer.transit{opacity:0}
/* The light that carries the pointer from one screen to the other. */
#xg-hero .fx{position:absolute;left:-32px;top:-32px;pointer-events:none;z-index:4}

/* Under the screens. */
#xg-hero .under{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin-top:26px;gap:12px;font-size:14px;color:#7D8DA3}
#xg-hero .under .l,#xg-hero .under .r{text-align:center}
#xg-hero .under .l.here{color:var(--mint)}
#xg-hero .under .r.here{color:var(--cyan)}
#xg-hero .badge{display:flex;align-items:center;gap:8px;height:34px;padding:0 14px 0 6px;border-radius:999px;border:1px solid #1C2A3A;background:#0B1422;color:#7D8DA3;white-space:nowrap;transition:color .5s,border-color .5s,box-shadow .5s}
#xg-hero .badge img{width:24px;height:24px;border-radius:6px;filter:grayscale(1) brightness(.6);transition:filter .5s}
#xg-hero .badge .state{color:var(--soft)}
#xg-hero .stage.on~.under .badge{color:var(--ink);border-color:#2E5A66;box-shadow:-6px 0 22px -6px rgba(83,231,181,.55),6px 0 22px -6px rgba(51,206,247,.55)}
#xg-hero .stage.on~.under .badge img{filter:none}
#xg-hero .stage.on~.under .badge .state{color:var(--mint)}

#xg-hero .hint{margin:22px 0 0;min-height:1.5em;font-size:17px;line-height:1.45;color:var(--soft);text-wrap:balance}
#xg-hero .hint b{color:var(--pale);font-weight:600}
#xg-hero .replay{margin-top:8px;background:none;border:0;padding:6px 10px;font:inherit;font-size:13px;color:var(--dim);cursor:pointer;border-radius:8px}
#xg-hero .replay:hover{color:var(--ink)}
#xg-hero .copy{margin-top:40px;display:flex;flex-direction:column;align-items:center;gap:18px}

@media (max-width:760px){
  /* Phones: the screens use the full width up to a 16 px gutter; the text
     keeps the page's own margins. Nothing may stick out sideways. */
  #xg-hero{overflow:hidden}
  #xg-hero .desk{width:calc(100% + 32px);max-width:none;margin:0 -16px;padding:0}
  #xg-hero .stage{--gap:14px}
  #xg-hero .screen{border-radius:6px}
  #xg-hero .screen.mac{box-shadow:0 0 0 3px #05070B,0 0 0 4px #3A4352}
  #xg-hero .screen.pc{box-shadow:0 0 0 3px #05070B,0 0 0 4px #3A4352}
  #xg-hero .pc-chin{height:7px;margin:0 -4px;border-radius:0 0 5px 5px}
  #xg-hero .pc-chin::after{display:none}
  #xg-hero .pointer{width:16px;height:20px}
  #xg-hero .asleep span{font-size:11px;padding:4px 9px}
  #xg-hero .under{font-size:12px;margin-top:18px;gap:8px}
  #xg-hero .badge{height:28px;font-size:12px;padding:0 10px 0 5px;gap:6px}
  #xg-hero .badge img{width:18px;height:18px}
  #xg-hero .hint{font-size:15px}
  #xg-hero .copy{margin-top:32px}
}
@media (prefers-reduced-motion:reduce){
  #xg-hero .blackout,#xg-hero .asleep,#xg-hero .seam::after,#xg-hero .badge,#xg-hero .pointer svg{transition:none}
  #xg-hero .caret{animation:none}
}
