/* Homepage-only, layered mobile-first studio illustration. */
.hero-playground { position: relative; min-width: 0; }
.motion-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  isolation: isolate;
  perspective: 1000px;
  --pointer-x: 0;
  --pointer-y: 0;
  border-radius: 36px;
  -webkit-tap-highlight-color: transparent;
}
.motion-scene[role="button"] { cursor: pointer; touch-action: pan-y; }
.motion-scene:focus-visible { outline: 2px solid #b494ff; outline-offset: 6px; }
.scene-light {
  position: absolute; inset: -16%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(113,56,242,.29), rgba(79,49,181,.08) 40%, transparent 65%);
  transform: translate(calc(var(--pointer-x) * 24px), calc(var(--pointer-y) * 24px));
}
.scene-core { position: absolute; left: 50%; top: 47%; width: 20%; aspect-ratio: 1; z-index: 2; transform: translate(-50%,-50%) translate(calc(var(--pointer-x) * 6px),calc(var(--pointer-y) * 6px)); pointer-events: none; }
.core-halo { position: absolute; inset: -105%; border-radius: 50%; background: radial-gradient(circle,rgba(133,71,255,.31),rgba(113,56,242,.12) 35%,transparent 68%); }
.core-sphere { position: absolute; inset: 9%; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 32% 24%,#eadbff 0%,#c39bff 9%,#a263ff 22%,#7138f2 48%,#2e1067 79%,#130e36 100%); box-shadow: inset -7px -9px 15px #1a0b5070,inset 3px 2px 12px #ffffff55,0 0 24px #9256fb77,0 0 70px #7138f244; transition: box-shadow .6s; }
.core-sphere::before { content:""; position:absolute; inset:3%; border-radius:50%; border:1px solid #e7cfff66; border-right-color:transparent; border-bottom-color:transparent; transform:rotate(-22deg); }
.core-sphere span { color: #f7edff; font-size: clamp(24px,3.4vw,44px); line-height: 1; text-shadow: 0 0 15px #fff8; opacity:.92; }
.core-ring { position:absolute; inset:-20%; border-radius:50%; border:1px solid #b58aff55; border-left-color:#d9bcffbb; border-bottom-color:transparent; transform:rotate(-28deg) scaleY(.38); box-shadow:0 2px 6px #9256fb33; }
.core-flare { position: absolute; inset: -25%; border-radius: 50%; opacity:0; background:radial-gradient(circle,#dcbaff88,transparent 65%); }
.scene-connections { position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; overflow:visible; }
.scene-connections line { stroke:#b492ff; stroke-width:1; vector-effect:non-scaling-stroke; opacity:.3; stroke-dasharray:3 8; }
.motion-running:not(.motion-suspended) .scene-connections line { animation: signal-flow 5s linear infinite; }
@keyframes signal-flow { to { stroke-dashoffset:-44; } }
.scene-particles { position:absolute; inset:0; pointer-events:none; z-index:1; }
.orbit-particle { position:absolute; left:50%; top:47%; width:3px; height:3px; border-radius:50%; background:#d5baff; box-shadow:0 0 9px #a86dff; transform:translate(var(--particle-x),var(--particle-y)); opacity:.45; }
.orbit-particle:nth-child(3n) { width:5px; height:5px; background:#9ebaff; }
.scene-ripples { position:absolute; inset:0; z-index:6; pointer-events:none; overflow:visible; }
.tap-ripple { position:absolute; left:50%; top:47%; width:58%; aspect-ratio:1; border-radius:50%; border:1px solid #caadff; box-shadow:0 0 18px #9256fb33,inset 0 0 15px #9256fb22; opacity:0; }
.scene-orbit { position: absolute; border: 1px solid rgba(172,147,255,.19); border-radius: 50%; pointer-events: none; }
.scene-orbit-outer { inset: 12% 0; transform: rotate(-24deg) scaleY(.82); border-bottom-color: rgba(172,147,255,.06); }
.scene-orbit-inner { inset: 9% 13%; transform: rotate(35deg) scaleX(.73); border-color: rgba(172,147,255,.12); }
.phone-layer { position: absolute; left: 50%; top: 47%; z-index: 3; transform: translate(-50%,-50%) translate3d(calc(var(--phone-x) + var(--pointer-x) * var(--depth)),calc(var(--phone-y) + var(--pointer-y) * var(--depth)),0) scale(var(--phone-scale,1)); }
.phone-app { width: 33%; --depth: 18px; --phone-x: -65px; --phone-y: -95px; --phone-roll: -10deg; --phone-yaw: -8deg; --phone-pitch: 3deg; }
.phone-game { width: 57%; --depth: 32px; --phone-x: 65px; --phone-y: 95px; --phone-roll: 8deg; --phone-yaw: 8deg; --phone-pitch: -3deg; }
.phone-float { transform: perspective(850px) rotateX(var(--phone-pitch)) rotateY(var(--phone-yaw)) rotateZ(var(--phone-roll)); }
.phone-float img { width: 100%; height: auto; user-select: none; filter: drop-shadow(0 20px 20px rgba(0,0,0,.27)); transition: filter .5s, transform .65s cubic-bezier(.2,.8,.2,1); }
.orbit-card { position: absolute; left: 50%; top: 47%; width: 117px; z-index: 4; transform: translate(-50%,-50%) translate3d(var(--orbit-x),var(--orbit-y),0) scale(var(--orbit-scale,1)); }
.orbit-card-app { --orbit-x: 180px; --orbit-y: 0px; }
.orbit-card-game { --orbit-x: -90px; --orbit-y: 135px; }
.orbit-card-app .orbit-card-face { background:linear-gradient(140deg,rgba(61,37,108,.97),rgba(23,25,58,.98)); }
.orbit-card-game .orbit-card-face { background:linear-gradient(140deg,rgba(31,61,104,.97),rgba(17,28,58,.98)); border-color:#90afff55; }
.orbit-card-face { padding: 14px; border: 1px solid rgba(204,192,255,.27); border-radius: 18px; background: linear-gradient(135deg,rgba(42,39,84,.97),rgba(16,27,58,.97)); box-shadow: 0 13px 30px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.06); transition: transform .3s, border-color .3s, box-shadow .3s; }
.mini-card-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #8552f7; color: white; font-weight: 800; font-size: 15px; }
.mini-card-label { display: block; margin-top: 9px; color: #f1edff; font-size: 10px; font-weight: 750; line-height: 1.5; }
.mini-task { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.mini-task i { width: 7px; height: 7px; border: 1px solid #a786fa; border-radius: 2px; }
.mini-task b { height: 4px; width: 70%; border-radius: 4px; background: #666287; }
.mini-task:last-child b { width: 50%; background: #484969; }
.mini-card-kicker { font-size: 9px; font-weight: 700; color: #ddd5f5; }
.mini-gems { display: flex; justify-content: center; gap: 12px; margin: 17px 0; }
.mini-gems i { width: 14px; height: 14px; transform: rotate(45deg); border-radius: 3px; background: linear-gradient(135deg,#d1bcff,#8247ef); box-shadow: 0 0 15px #8850ee55; }
.mini-gems i:nth-child(2) { transform: rotate(45deg) translate(-4px,-4px); background: linear-gradient(135deg,#b3d5ff,#4a8bec); }
.mini-game-line { display: block; height: 4px; width: 64%; border-radius: 5px; margin: auto; background: #78729a; }
.scene-spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #bba0ff; box-shadow: 0 0 15px #a77cff; pointer-events: none; }
.spark-one { top: 14%; right: 18%; }.spark-two { bottom: 9%; left: 31%; width: 3px; height: 3px; }.spark-three { top: 48%; left: 5%; width: 3px; height: 3px; }
.scene-controls { display: flex; position: relative; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 0 12px; }
.scene-caption { color: #ada9ca; font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.scene-hint { color:#bba8df; font-size:.69rem; white-space:nowrap; }
.scene-hint[hidden] { display:none; }.scene-hint > span { color:#d4b6ff; margin-right:4px; font-size:1rem; }
.hero-engaged .phone-float img { transform: scale(1.28); filter: drop-shadow(0 20px 30px rgba(113,56,242,.42)); }
.hero-engaged .scene-light { background: radial-gradient(ellipse at 50% 50%,rgba(135,76,255,.4),rgba(79,49,181,.1) 45%,transparent 68%); }
.hero-engaged .core-sphere { box-shadow:inset -7px -9px 15px #1a0b5070,inset 3px 2px 12px #ffffff55,0 0 36px #b881ffbb,0 0 100px #7138f266; }
.pulse-active .core-flare { animation:core-pulse 1.2s ease-out; }
.pulse-active .core-sphere { box-shadow:inset -7px -9px 15px #1a0b5070,inset 3px 2px 12px #ffffff55,0 0 40px #c492ffbb,0 0 95px #7138f266; }
.pulse-active .orbit-particle { animation:particle-pulse 1.3s ease-out both; animation-delay:calc(var(--particle-index) * 25ms); }
.pulse-active .scene-connections line { opacity:.8; }
@keyframes core-pulse { 0% {opacity:0;transform:scale(.6)} 15% {opacity:.7} 100% {opacity:0;transform:scale(2.5)} }
@keyframes particle-pulse { 0%,100% {opacity:.4;box-shadow:0 0 9px #a86dff} 20% {opacity:1;box-shadow:0 0 18px 3px #bd8bff} }
@media (hover:hover) and (pointer:fine) {
  .motion-running .phone-layer:hover img { transform: translateY(-10px) scale(1.35); filter: drop-shadow(0 16px 25px rgba(113,56,242,.45)); }
  .motion-running .orbit-card:hover .orbit-card-face { transform: translateY(-8px) rotate(-4deg) scale(1.07); border-color: #b597ff; box-shadow: 0 16px 35px rgba(113,56,242,.3); }
}
@media (min-width:981px) { .hero-grid { gap: 34px; padding-top: 58px; padding-bottom: 86px; grid-template-columns:1fr 1.05fr; } }
@media (max-width:980px) { .hero-playground { width: min(100%,560px); margin: -10px auto 0; } .scene-controls { margin-top: 0; } }
@media (max-width:600px) {
  .hero-playground { width: min(100%,430px); }
  .orbit-card { width: 94px; }
  .orbit-card-face { padding: 11px; border-radius: 14px; }
  .mini-card-label { font-size: 8px; }.mini-card-kicker { font-size: 8px; }.mini-card-icon { width: 21px; height: 21px; font-size: 12px; }
  .mini-gems { gap: 9px; margin: 12px 0; }.mini-gems i { width: 11px; height: 11px; }
  .scene-controls { margin-left: 0; gap:8px; }.scene-caption { font-size: .52rem; letter-spacing: .08em; }.scene-hint {font-size:.57rem}
}
@media (prefers-reduced-motion:reduce) { .phone-float, .phone-float img, .orbit-card-face, .core-sphere, .core-flare, .orbit-particle, .scene-connections line { animation: none !important; transition: none; } }
