/* Homepage hero: a looping phone demo of snapping a toy, its egg hatching and
   its arrival in Cloudland. Base styles are each scene's settled state; the
   keyframes animate in from there, so Reduce Motion simply shows the result. */
.hero.hero-has-demo{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:center;gap:4%;height:auto;min-height:calc(100svh - 100px);max-height:none;padding:clamp(28px,5svh,64px) 7%;background:radial-gradient(ellipse 60% 70% at 76% 45%,#1f5161 0%,#0f3340 38%,#0a2029 72%)}
.hero.hero-has-demo:before{display:none}
.hero.hero-has-demo .hero-copy{width:auto;max-width:640px;margin:0;padding:0;grid-area:auto}
.hero-has-demo .lede{max-width:500px}
.hero-demo{margin:0;justify-self:center;width:min(100%,330px);display:flex;flex-direction:column;align-items:center;gap:18px}
.hero-phone{width:100%;padding:3.4%}
.demo-screen{position:relative;width:100%;aspect-ratio:600/1305;border-radius:12.5% / 5.8%;overflow:hidden;container-type:inline-size;background:#bcc4f6;isolation:isolate;font-family:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,sans-serif}
.demo-screen img{height:auto;max-width:none}
.demo-sky{position:absolute;inset:0;background:linear-gradient(180deg,#a8c7fb 0%,#bdb9f4 52%,#efc3dd 100%);z-index:-1}
.demo-sky i{position:absolute;width:2.2cqw;height:2.2cqw;background:#fff;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);opacity:.7;animation:demo-twinkle 2.4s ease-in-out infinite}
.demo-sky i:nth-child(1){left:12%;top:16%}.demo-sky i:nth-child(2){left:84%;top:22%;animation-delay:.6s}.demo-sky i:nth-child(3){left:8%;top:58%;animation-delay:1.1s}
.demo-sky i:nth-child(4){left:90%;top:52%;animation-delay:.3s}.demo-sky i:nth-child(5){left:20%;top:86%;animation-delay:1.6s}.demo-sky i:nth-child(6){left:78%;top:88%;animation-delay:.9s}
@keyframes demo-twinkle{50%{opacity:.15;transform:scale(.6)}}
.demo-scene{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s .45s}
.hero-demo:is([data-scene=snap],[data-scene=send]) .demo-portal,
.hero-demo:is([data-scene=nest],[data-scene=hatch]) .demo-nest,
.hero-demo[data-scene=home] .demo-home{opacity:1;visibility:visible;transition:opacity .45s ease,visibility 0s}
.demo-sub{position:absolute;left:12cqw;right:12cqw;top:33cqw;text-align:center;color:#3b5a5e;font-size:3.6cqw;line-height:1.4;font-weight:600}
.demo-title{position:absolute;left:0;right:0;top:22cqw;text-align:center;color:#1c4440;font-weight:800;font-size:8cqw;letter-spacing:-.02em;line-height:1.1}

/* 1 · Snap: the camera inside the rainbow ring, corners snap round the toy */
.demo-ring{position:absolute;left:11cqw;top:50cqw;width:78cqw;aspect-ratio:1;border-radius:50%;background:conic-gradient(from 200deg,#ff8e8e,#ffc46b,#f6ef7f,#8fe0a3,#79c8ff,#a58bff,#ff8ed8,#ff8e8e);padding:2.2cqw;box-shadow:0 0 6cqw #ffffffa0}
.demo-ring:before{content:"";position:absolute;inset:2.2cqw;border-radius:50%;background:radial-gradient(circle,#fffdf6,#e9e3ff)}
.demo-ring>span,.demo-screen .demo-ring>img{position:absolute;inset:2.2cqw;width:calc(100% - 4.4cqw);height:calc(100% - 4.4cqw);border-radius:50%}
.demo-ring>img{object-fit:cover;transition:transform .7s cubic-bezier(.6,0,.4,1),opacity .6s,filter .6s}
.demo-mesh{background:repeating-linear-gradient(0deg,#ffffffb0 0 1px,transparent 1px 7%),repeating-linear-gradient(90deg,#ffffffb0 0 1px,transparent 1px 7%);clip-path:inset(6% 18% 10% 16% round 20%);opacity:.55}
.demo-ring>.demo-scanline{border-radius:0;inset:auto;height:1.2cqw;top:88%;left:12%;width:76%;background:linear-gradient(90deg,transparent,#c9fff1 20%,#fff 50%,#c9fff1 80%,transparent);box-shadow:0 0 4cqw 1.4cqw #b8fff0;opacity:0}
.demo-ring>.demo-corners{border-radius:0;inset:6% 18% 10% 16%;width:auto;height:auto}
.demo-corners i{position:absolute;width:24%;height:20%;border:1.3cqw solid #fff;filter:drop-shadow(0 0 1cqw #0000004d)}
.demo-corners i:nth-child(1){left:0;top:0;border-right:0;border-bottom:0;border-top-left-radius:3cqw}
.demo-corners i:nth-child(2){right:0;top:0;border-left:0;border-bottom:0;border-top-right-radius:3cqw}
.demo-corners i:nth-child(3){left:0;bottom:0;border-right:0;border-top:0;border-bottom-left-radius:3cqw}
.demo-corners i:nth-child(4){right:0;bottom:0;border-left:0;border-top:0;border-bottom-right-radius:3cqw}
.demo-ring>.demo-pixels{border-radius:0;pointer-events:none}
.demo-pixels i{position:absolute;width:3.6cqw;height:3.6cqw;border-radius:.8cqw;left:var(--x);top:var(--y);background:var(--c);opacity:0}
.demo-pixels i:nth-child(1){--x:30%;--y:40%;--c:#93c48f}.demo-pixels i:nth-child(2){--x:48%;--y:30%;--c:#e9b24a}.demo-pixels i:nth-child(3){--x:62%;--y:46%;--c:#a6d39a}
.demo-pixels i:nth-child(4){--x:40%;--y:60%;--c:#f4ecd2}.demo-pixels i:nth-child(5){--x:56%;--y:66%;--c:#7fb27b}.demo-pixels i:nth-child(6){--x:36%;--y:22%;--c:#f3c76a}
.demo-pixels i:nth-child(7){--x:68%;--y:30%;--c:#bfe0b4}.demo-pixels i:nth-child(8){--x:26%;--y:56%;--c:#d9a64a}.demo-pixels i:nth-child(9){--x:50%;--y:50%;--c:#8fbf8a}.demo-pixels i:nth-child(10){--x:60%;--y:20%;--c:#fff3d1}
.demo-shutter{position:absolute;left:39cqw;top:170cqw;width:22cqw;height:22cqw;border-radius:50%;background:linear-gradient(160deg,#ffa53c,#ff6a2a);box-shadow:0 0 0 1.6cqw #ffffffd9,0 2cqw 5cqw #ff6a2a66;display:grid;place-items:center;transition:opacity .3s,transform .3s}
.demo-shutter svg,.demo-upload svg{width:42%;fill:#fff}
.demo-upload{position:absolute;left:10cqw;right:10cqw;top:176cqw;height:15cqw;border-radius:8cqw;background:linear-gradient(90deg,#ffb23e,#ff6d33);color:#fff;font-weight:800;font-size:4.6cqw;display:flex;align-items:center;justify-content:center;gap:2cqw;box-shadow:0 2cqw 5cqw #ff6d3355;opacity:0;transform:translateY(6cqw);transition:opacity .35s,transform .35s}
.demo-upload svg{width:5cqw}
.demo-tag{position:absolute;left:16cqw;right:16cqw;top:140cqw;border-radius:4cqw;overflow:hidden;background:#fff;text-align:center;box-shadow:0 2cqw 6cqw #4b3b8a33;transform:rotate(-2deg);opacity:0;transition:opacity .35s}
.demo-tag b{display:block;background:#ff7a6b;color:#fff;font-size:5.4cqw;letter-spacing:.2em;padding:2.2cqw 0 0}
.demo-tag small{display:block;background:#ff7a6b;color:#fff;font-size:3cqw;padding:0 0 1.8cqw}
.demo-tag strong{display:block;color:#1c4440;font-size:8cqw;padding:2.4cqw 0}
.demo-flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}
.hero-demo[data-scene=snap] .demo-corners{animation:demo-snap .7s cubic-bezier(.3,1.6,.5,1) .55s both}
@keyframes demo-snap{from{inset:-2% -2% -2% -2%;opacity:.4}}
.hero-demo[data-scene=snap] .demo-mesh{animation:demo-mesh 1.3s ease-in-out 1.15s both}
@keyframes demo-mesh{from{clip-path:inset(6% 18% 94% 16% round 20%)}}
.hero-demo[data-scene=snap] .demo-scanline{animation:demo-scan 1.3s ease-in-out 1.15s both}
@keyframes demo-scan{0%{top:6%;opacity:0}12%,88%{opacity:1}100%{top:88%;opacity:0}}
.hero-demo[data-scene=snap] .demo-shutter{animation:demo-press .4s ease 2.55s both}
@keyframes demo-press{50%{transform:scale(.84)}}
.hero-demo[data-scene=snap] .demo-flash{animation:demo-flash .5s ease-out 2.75s both}
@keyframes demo-flash{0%{opacity:0}20%{opacity:.85}100%{opacity:0}}

/* Name it and send it: the photo dissolves into pixels up the portal */
.hero-demo[data-scene=send] .demo-shutter,.hero-demo[data-scene=send] .demo-corners,.hero-demo[data-scene=send] .demo-mesh{opacity:0}
.hero-demo[data-scene=send] .demo-tag{opacity:1;animation:demo-pop .5s cubic-bezier(.3,1.6,.5,1) both}
.hero-demo[data-scene=send] .demo-upload{opacity:1;transform:none;animation:demo-press .4s ease .85s both}
.hero-demo[data-scene=send] .demo-ring>img{transform:scale(.55) translateY(-40%);opacity:0;filter:blur(2px)}
.hero-demo[data-scene=send] .demo-ring>img{transition-delay:1.05s}
.hero-demo[data-scene=send] .demo-pixels i{animation:demo-pixel 1s ease-in calc(1.05s + var(--d,0s)) both}
.demo-pixels i:nth-child(even){--d:.12s}.demo-pixels i:nth-child(3n){--d:.22s}
@keyframes demo-pixel{0%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-38cqw) scale(.4)}}
@keyframes demo-pop{from{opacity:0;transform:rotate(-2deg) translateY(4cqw) scale(.9)}}

/* 2 · The egg grows, then hatches */
.demo-kicker{position:absolute;left:0;right:0;top:17cqw;text-align:center;color:#33545a;font-weight:700;font-size:3.1cqw;letter-spacing:.14em}
.demo-egg-title,.demo-meet-title{top:23cqw;transition:opacity .3s}
.demo-meet-title{opacity:0}
.hero-demo[data-scene=hatch] .demo-egg-title{opacity:0}
.hero-demo[data-scene=hatch] .demo-meet-title{opacity:1}
.demo-bubble{position:absolute;left:50%;top:51cqw;transform:translateX(-50%);white-space:nowrap;background:#fff;color:#1c4440;font-weight:700;font-size:3.6cqw;padding:1.6cqw 3.4cqw;border-radius:5cqw;box-shadow:0 1cqw 3cqw #4b3b8a26;transition:opacity .3s}
.hero-demo[data-scene=hatch] .demo-bubble{opacity:0}
.demo-egg{position:absolute;left:22cqw;top:66cqw;width:56cqw;height:72cqw}
.demo-shell{position:absolute;inset:0;border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;background:radial-gradient(circle at 30% 30%,#9bd0ff 0 4%,transparent 4.5%),radial-gradient(circle at 70% 24%,#ff9f9f 0 3.5%,transparent 4%),radial-gradient(circle at 64% 64%,#ffd36b 0 3%,transparent 3.5%),radial-gradient(circle at 34% 70%,#b79cff 0 3.5%,transparent 4%),radial-gradient(circle at 50% 46%,#8fd3a5 0 3%,transparent 3.5%),radial-gradient(ellipse at 40% 30%,#fffef6,#fbf1cf 60%,#f0dfa8);box-shadow:inset -2cqw -3cqw 6cqw #d9c27f66;transition:transform .6s cubic-bezier(.4,0,.2,1),opacity .6s}
.demo-shell-bottom{clip-path:polygon(0 48%,12% 40%,24% 50%,37% 40%,50% 50%,63% 40%,76% 50%,88% 40%,100% 48%,100% 100%,0 100%);filter:drop-shadow(0 3cqw 3cqw #5a4a9a33)}
.demo-shell-top{clip-path:polygon(0 0,100% 0,100% 48%,88% 40%,76% 50%,63% 40%,50% 50%,37% 40%,24% 50%,12% 40%,0 48%)}
.demo-shell-bottom img{position:absolute;left:22%;top:30%;width:56%;border-radius:50%;opacity:.28;filter:blur(1.5px) saturate(.8);mix-blend-mode:multiply}
.demo-polaroid{position:absolute;right:-12cqw;bottom:-2cqw;width:22cqw;padding:1.6cqw 1.6cqw 0;background:#fff;border-radius:1cqw;transform:rotate(9deg);box-shadow:0 1.5cqw 3cqw #4b3b8a33;text-align:center;transition:opacity .4s}
.demo-polaroid img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.demo-polaroid small{display:block;font-size:2.6cqw;font-weight:700;color:#3a4a4a;padding:.8cqw 0 1.2cqw}
.demo-moss{position:absolute;left:-20cqw;top:-18cqw;width:96cqw;max-width:none;opacity:0;transform:scale(.2) translateY(20cqw);transition:opacity .3s,transform .3s}
.demo-rays{position:absolute;left:50%;top:45%;width:150cqw;aspect-ratio:1;translate:-50% -50%;border-radius:50%;background:repeating-conic-gradient(#fff6c8 0 6deg,transparent 6deg 18deg);mask:radial-gradient(circle,#000 0 15%,transparent 62%);-webkit-mask:radial-gradient(circle,#000 0 15%,transparent 62%);opacity:0;transition:opacity .5s}
.hero-demo[data-scene=nest] .demo-egg{animation:demo-wobble 1.1s ease-in-out .3s 3 both}
@keyframes demo-wobble{20%{transform:rotate(-5deg)}45%{transform:rotate(4deg)}65%{transform:rotate(-2deg)}85%{transform:rotate(1deg)}}
.hero-demo[data-scene=nest] .demo-shell-top{animation:demo-crack .4s ease 2.9s both}
@keyframes demo-crack{to{transform:translateY(-1.2cqw) rotate(-2deg)}}
.hero-demo[data-scene=hatch] .demo-shell-top{transform:translate(18cqw,-46cqw) rotate(38deg);opacity:0}
.hero-demo[data-scene=hatch] .demo-shell-bottom{transform:translateY(10cqw) scale(.9);opacity:0;transition-delay:.25s}
.hero-demo[data-scene=hatch] .demo-polaroid{opacity:0}
.hero-demo[data-scene=hatch] .demo-rays{opacity:.9;animation:demo-spin 8s linear infinite}
@keyframes demo-spin{to{rotate:360deg}}
.hero-demo[data-scene=hatch] .demo-moss{opacity:1;transform:none;animation:demo-hatch .9s cubic-bezier(.3,1.5,.5,1) .3s both}
@keyframes demo-hatch{from{opacity:0;transform:scale(.2) translateY(20cqw)}}
.demo-stops{position:absolute;left:8cqw;right:8cqw;top:166cqw;margin:0;padding:0;list-style:none;display:flex;justify-content:space-between;counter-reset:stop}
.demo-stops li{width:18cqw;text-align:center;font-size:3cqw;font-weight:700;color:#35565b}
.demo-stops li:before{content:"";display:block;width:8cqw;height:8cqw;margin:0 auto 1.4cqw;border-radius:50%;background:#ffffffa6;box-shadow:inset 0 0 0 .5cqw #ffffff}
.demo-progress{position:absolute;left:17cqw;right:17cqw;top:169.6cqw;height:1cqw;border-radius:1cqw;background:#ffffff80;z-index:-1}
.demo-progress i{display:block;height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,#ffb23e,#ff6d33);transform-origin:left}
.hero-demo[data-scene=nest] .demo-progress i{animation:demo-fill 3s linear both}
@keyframes demo-fill{from{transform:scaleX(0)}}
.hero-demo[data-scene=nest] .demo-stops li:before,.hero-demo[data-scene=hatch] .demo-stops li:before{background:#ff8a3d;box-shadow:inset 0 0 0 .5cqw #fff,0 0 3cqw #ff8a3d88}
.hero-demo[data-scene=nest] .demo-stops li:nth-child(1):before{animation:demo-stop .3s ease 0s both}
.hero-demo[data-scene=nest] .demo-stops li:nth-child(2):before{animation:demo-stop .3s ease 1s both}
.hero-demo[data-scene=nest] .demo-stops li:nth-child(3):before{animation:demo-stop .3s ease 2s both}
.hero-demo[data-scene=nest] .demo-stops li:nth-child(4):before{animation:demo-stop .3s ease 2.95s both}
@keyframes demo-stop{from{background:#ffffffa6;box-shadow:inset 0 0 0 .5cqw #fff;transform:scale(.8)}}
.hero-demo[data-scene=hatch] .demo-stops,.hero-demo[data-scene=hatch] .demo-progress{opacity:0;transition:opacity .3s}

/* Confetti, shared by the hatch and the welcome */
.demo-confetti{position:absolute;left:50%;top:40%;width:0;height:0;pointer-events:none}
.demo-confetti i{position:absolute;width:2.4cqw;height:3.6cqw;border-radius:.6cqw;background:var(--c);opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--r))}
.demo-confetti i:nth-child(1){--x:-30cqw;--y:-34cqw;--r:40deg;--c:#ff8e8e}.demo-confetti i:nth-child(2){--x:26cqw;--y:-38cqw;--r:-30deg;--c:#ffc46b}.demo-confetti i:nth-child(3){--x:-40cqw;--y:-6cqw;--r:80deg;--c:#79c8ff}
.demo-confetti i:nth-child(4){--x:38cqw;--y:-10cqw;--r:20deg;--c:#a58bff}.demo-confetti i:nth-child(5){--x:-18cqw;--y:-46cqw;--r:-60deg;--c:#8fe0a3}.demo-confetti i:nth-child(6){--x:12cqw;--y:-50cqw;--r:110deg;--c:#ff8ed8}
.demo-confetti i:nth-child(7){--x:-34cqw;--y:18cqw;--r:10deg;--c:#ffc46b}.demo-confetti i:nth-child(8){--x:34cqw;--y:16cqw;--r:-90deg;--c:#ff8e8e}.demo-confetti i:nth-child(9){--x:-6cqw;--y:-30cqw;--r:45deg;--c:#79c8ff}
.demo-confetti i:nth-child(10){--x:22cqw;--y:-22cqw;--r:-15deg;--c:#8fe0a3}.demo-confetti i:nth-child(11){--x:-24cqw;--y:-20cqw;--r:65deg;--c:#a58bff}.demo-confetti i:nth-child(12){--x:44cqw;--y:-30cqw;--r:-45deg;--c:#ff8ed8}
.hero-demo[data-scene=hatch] .demo-nest .demo-confetti i{animation:demo-confetti 1.4s cubic-bezier(.2,.7,.4,1) .45s both}
.hero-demo[data-scene=home] .demo-home-confetti i{animation:demo-confetti 1.6s cubic-bezier(.2,.7,.4,1) 1.55s both}
@keyframes demo-confetti{0%{opacity:1;transform:translate(0,0) rotate(0)}70%{opacity:1}100%{opacity:0;transform:translate(var(--x),calc(var(--y) + 10cqw)) rotate(var(--r))}}

/* 3 · Welcome home: down a beam of light into the World */
.demo-screen .demo-world{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.demo-beam{position:absolute;left:44cqw;top:0;width:22cqw;height:138cqw;background:linear-gradient(180deg,#fff7c000,#fff7c0d0 70%,#fffbe0);filter:blur(1.2cqw);opacity:0;border-radius:0 0 50% 50%}
.demo-arrival{position:absolute;left:30cqw;top:96cqw;width:50cqw;filter:drop-shadow(0 1.5cqw 1.2cqw #2c5a2a55)}
.demo-welcome{position:absolute;left:50%;top:84cqw;transform:translateX(-50%);white-space:nowrap;background:linear-gradient(180deg,#ff8a6a,#f0614a);color:#fff;font-weight:800;font-size:5cqw;padding:1.6cqw 4cqw;border-radius:2cqw;box-shadow:0 0 0 .7cqw #ffe7a8,0 2cqw 4cqw #a8402a44}
.demo-home-confetti{top:100cqw;left:55cqw}
.hero-demo[data-scene=home] .demo-beam{animation:demo-beam 1.9s ease both}
@keyframes demo-beam{0%{opacity:0}25%,70%{opacity:1}100%{opacity:0}}
.hero-demo[data-scene=home] .demo-arrival{animation:demo-drop 1.4s cubic-bezier(.45,0,.3,1) .2s both,demo-hop 1s ease-in-out 2.6s 2}
@keyframes demo-drop{0%{opacity:0;transform:translateY(-90cqw) scale(.7)}70%{opacity:1;transform:translateY(0) scale(1,1)}82%{transform:translateY(0) scale(1.1,.88)}100%{transform:none}}
@keyframes demo-hop{40%{transform:translateY(-6cqw)}60%{transform:translateY(0) scale(1.06,.94)}}
.hero-demo[data-scene=home] .demo-welcome{animation:demo-banner .6s cubic-bezier(.3,1.6,.5,1) 1.45s both}
@keyframes demo-banner{from{opacity:0;transform:translateX(-50%) scale(.4)}}

/* Steps and pause */
.demo-controls{display:flex;align-items:center;gap:8px;justify-content:center;width:max-content;max-width:calc(100vw - 32px)}
.demo-steps{display:flex;gap:8px;margin:0;padding:0;list-style:none}
.demo-steps button,.demo-pause{white-space:nowrap;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:6px 14px 6px 7px;border-radius:30px;border:1px solid #ffffff2b;background:#ffffff0d;color:#d7e2de;font-size:.82rem;font-weight:500;transition:transform .18s cubic-bezier(.3,1.6,.5,1),background .2s,border-color .2s,color .2s}
.demo-steps button span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#ffffff14;font-size:.75rem;font-weight:600}
.demo-steps button[aria-pressed=true]{background:#f0cb82;border-color:#f0cb82;color:#112e31}
.demo-steps button[aria-pressed=true] span{background:#112e3122}
.demo-steps button:hover,.demo-pause:hover{border-color:#f0cb8288}
.demo-steps button:active,.demo-pause:active{transform:scale(.94)}
.demo-pause{width:40px;padding:0;justify-content:center}
.demo-pause span{width:10px;height:12px;border-left:3px solid currentColor;border-right:3px solid currentColor}
.demo-pause[aria-pressed=true] span{width:0;height:0;border:0;border-left:11px solid currentColor;border-top:7px solid transparent;border-bottom:7px solid transparent;margin-left:3px}
.hero-demo figcaption{position:static;font-size:.74rem;color:#93aaa5;text-align:center}
.hero-demo[data-paused] *,.hero-demo[data-paused] *:before{animation-play-state:paused!important}

@media(max-width:900px){
  .hero.hero-has-demo{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:36px 16px 48px;min-height:0}
  .hero.hero-has-demo .hero-copy{display:contents}
  .hero-has-demo .hero-copy>*{order:1}
  .hero-has-demo .hero-demo{order:2;margin:34px auto 6px;width:min(72vw,290px)}
  .hero-has-demo .hero-beta,.hero-has-demo .hero-platforms{order:3}
}
@media(prefers-reduced-motion:reduce){
  .hero-demo *,.hero-demo *:before{animation:none!important;transition:none!important}
}
