/* Homepage composition. One desktop definition and two responsive ranges. */
body[data-page=index]{--home-ease:cubic-bezier(.22,1,.36,1);background:#fff}
body[data-page=index] h2{font-size:clamp(2rem,3.4vw,3rem);line-height:1.1;letter-spacing:-.035em;text-wrap:balance}
body[data-page=index] .section{padding:88px 0}
body[data-page=index] .section-head{margin-bottom:38px}
body[data-page=index] .section-head p{font-size:1.05rem;max-width:54ch;line-height:1.65}
body[data-page=index] .eyebrow{font-size:.8rem;letter-spacing:.14em}
body[data-page=index] .site-header{background:#e8f6ff;border-bottom:1px solid #badcf0}
body[data-page=index] .header-inner{min-height:80px}
/* Hero stage: character and contact shadow share the same jump clock. */
body[data-page=index] .hero-home{min-height:640px;background:#237cba;border-radius:0;isolation:isolate}
body[data-page=index] .hero-container{min-height:640px;width:min(1200px,calc(100% - 64px));display:grid;grid-template-columns:1.08fr 1fr;gap:32px;align-items:center}
body[data-page=index] .hero-bg{inset:-3%;width:106%;height:106%;max-width:none;object-position:center;transform:translate3d(var(--bg-x,0px),var(--bg-y,0px),0)}
body[data-page=index] .hero-home::before{background:linear-gradient(90deg,#072e63e8 0%,#124980aa 42%,#166fb92b 75%)}
body[data-page=index] .hero-copy{width:auto;max-width:none;padding:70px 0 90px}
body[data-page=index] .hero-kicker{color:#d8f7ff;background:none;border:0;padding:0;letter-spacing:.18em}
body[data-page=index] .hero-copy h1{font-family:Ubuntu,'Trebuchet MS',sans-serif;font-size:clamp(3.1rem,5.5vw,5.1rem);font-weight:700;letter-spacing:-.045em;line-height:1.03;margin:10px 0 28px;text-shadow:0 4px 18px #082c6759}
body[data-page=index] .hero-copy h1 span{color:#ffdc77}
body[data-page=index] .hero-copy>p{max-width:43ch;font-size:1.08rem;line-height:1.7;font-weight:400;text-shadow:0 2px 6px #082f65}
body[data-page=index] .hero-actions{margin-top:32px;gap:14px}
body[data-page=index] .hero-scene{position:relative;left:auto;right:auto;bottom:auto;width:100%;height:auto;aspect-ratio:1/1;max-width:550px;transform:translate3d(var(--scene-x,0px),var(--scene-y,0px),0)}
body[data-page=index] .hero-platform{width:100%;max-width:none;left:0;right:auto;bottom:0;animation:none;filter:drop-shadow(0 24px 22px #07366d40)}
body[data-page=index] .hero-character{width:61%;max-width:none;height:auto;left:19%;top:auto;bottom:35%;z-index:3;animation:hero-leap 6s 1.1s ease-in-out infinite;transform-origin:50% 100%;filter:drop-shadow(0 8px 5px #08346920)}
.hero-shadow{position:absolute;z-index:2;bottom:34%;left:34%;width:40%;height:5%;background:#17395366;border-radius:50%;filter:blur(6px);animation:hero-shadow 6s 1.1s ease-in-out infinite}
body[data-page=index] .hero-coin{animation:star-glimmer 5s ease-in-out infinite;font-size:1.4rem}.coin-two{animation-delay:-2s!important}
body[data-page=index] .scene-sign{display:none}
.sky-island{position:absolute;pointer-events:none;width:100px;z-index:-1;animation:island-drift 12s ease-in-out infinite}.island-a{left:53%;top:7%}.island-b{right:7%;top:8%;width:65px;animation-delay:-6s}
.motion-toggle{position:absolute;right:24px;bottom:20px;z-index:8;color:#fff;border:1px solid #c8e4fc80;background:#11365fcc;border-radius:24px;font-size:.8rem;padding:10px 16px;min-height:42px}
body[data-page=index] .hero-copy>*{animation:hero-enter .8s both var(--home-ease)}
body[data-page=index] .hero-copy h1{animation-delay:.08s}body[data-page=index] .hero-copy>p{animation-delay:.18s}body[data-page=index] .hero-actions{animation-delay:.28s}
/* Books keep their metadata and click targets still. */
body[data-page=index] .collection-section{background:#fff}
body[data-page=index] .collection-section::before{display:none}
body[data-page=index] .collection-section .container{max-width:1160px}
body[data-page=index] .product-grid{gap:32px}
body[data-page=index] .product-card{background:none;border:0;box-shadow:none;border-radius:12px;overflow:visible;transform:none}
body[data-page=index] .product-card:hover{transform:none;box-shadow:none}
body[data-page=index] .card-art{min-height:300px;height:300px;padding:12px 8px 24px;display:flex;align-items:flex-end;justify-content:center;background:transparent;overflow:visible;perspective:1000px}
body[data-page=index] .card-art::before{display:none}
body[data-page=index] .card-art::after{content:'';position:absolute;bottom:11px;width:72%;height:14px;background:#0f396324;filter:blur(8px);border-radius:50%;transition:transform .4s,opacity .4s}
body[data-page=index] .card-art img{position:relative;height:264px;width:auto;max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(5px 9px 5px #2149652b);transform:translateY(var(--book-lift,0px)) rotateX(var(--book-rx,0deg)) rotateY(var(--book-ry,0deg));transition:transform .35s var(--home-ease);transform-origin:50% 90%}
body[data-page=index] .product-card:is(:hover,:focus-visible){--book-lift:-8px}
body[data-page=index] .product-card:is(:hover,:focus-visible) .card-art::after{transform:scale(.85);opacity:.65}
body[data-page=index] .card-category,body[data-page=index] .card-level{display:none}
body[data-page=index] .card-body{padding:20px 4px 0;background:transparent;text-align:center}
body[data-page=index] .card-body h3{font-size:1.2rem;margin:0 0 10px}
body[data-page=index] .card-body p{font-size:.95rem;line-height:1.55;min-height:3em;margin:0 0 18px}
body[data-page=index] .card-bottom{justify-content:center;gap:14px;margin-top:auto}
body[data-page=index] .card-bottom strong{font-size:1rem}
body[data-page=index] .card-arrow{width:30px;height:30px;flex-basis:30px}
/* A quiet free-guide invitation leaves the two panoramas dominant. */
body[data-page=index] .free-section{width:100%;margin:0;border:0;border-radius:0;overflow:hidden;background:#113967}
body[data-page=index] .free-section::before{background:radial-gradient(ellipse at 82% 35%,#2e719555,transparent 60%)}
body[data-page=index] .free-inner{width:min(1200px,calc(100% - 64px));min-height:350px;padding:56px 0;gap:50px}
body[data-page=index] .free-inner>div{max-width:650px}
body[data-page=index] .free-inner h2{color:#fff;max-width:600px;margin:0 0 20px;text-shadow:none}
body[data-page=index] .free-inner p{font-size:1rem;line-height:1.7;max-width:52ch;margin:0 0 28px}
body[data-page=index] .free-inner>.free-robot{position:relative;right:auto;width:190px;height:230px;flex:0 0 190px;margin:0 65px 0 0;opacity:1;animation:none}
body[data-page=index] .free-robot-platform{position:absolute;right:0;bottom:-70px;width:300px;height:200px;opacity:1}
body[data-page=index] .benefits-section{background:#fff}
body[data-page=index] .benefits-section::before{display:none}
body[data-page=index] .benefits-section .section-head{justify-content:center;text-align:center}
body[data-page=index] .benefit{text-align:center;border:0;background:none;box-shadow:none;padding:8px 20px}
body[data-page=index] .benefit img{display:block;width:144px;height:144px;object-fit:contain;clip-path:none;margin:0 auto 18px}
body[data-page=index] .benefit img[src$="controller-game.png"]{transform:scale(.87)}
body[data-page=index] .benefit img[src$="download-game.png"]{transform:scale(1.08)}
body[data-page=index] .benefit h3{font-size:1.15rem;min-height:2.3em;margin:0 0 14px}
body[data-page=index] .benefit p{font-size:1rem;line-height:1.65;margin:0}
/* Full panorama retained without cover-cropping. */
body[data-page=index] .mission-section{display:grid;width:100%;margin:0;padding:0;border-radius:0;overflow:hidden;isolation:isolate;background:#dff3ff}
body[data-page=index] .mission-panorama{grid-area:1/1;display:block;align-self:center;width:100%;height:auto;z-index:-2;object-fit:contain}
body[data-page=index] .mission-section::before{background:linear-gradient(90deg,transparent 25%,#e8f7ffb8 49%,#edf9fff5 75%);z-index:-1}
body[data-page=index] .mission-inner{grid-area:1/1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;min-height:520px;padding:64px 0}
body[data-page=index] .mission-decor{height:300px;max-width:none;width:100%;margin:0;background:none;border:0;box-shadow:none;overflow:visible}
body[data-page=index] .mission-decor .mission-mini{width:200px;height:260px;max-width:80%;right:12%;bottom:0;margin:0;object-fit:contain;animation:none}
body[data-page=index] .mission-copy{max-width:530px}
body[data-page=index] .mission-copy h2{margin:0 0 28px}
body[data-page=index] .mission-copy p{font-size:1.05rem;line-height:1.75;margin:0 0 20px;max-width:48ch}
body[data-page=index] .mission-copy .btn{margin-top:12px}
body[data-page=index] .paths-section{background:#fff}
body[data-page=index] .paths-section::before,body[data-page=index] .included-section::before,body[data-page=index] .examples-section::before{display:none}
body[data-page=index] .path-stage{box-shadow:none;border:1px solid #c8deef;padding:28px}
body[data-page=index] .path-stage p{font-size:1rem;line-height:1.65}
body[data-page=index] .path-links a{font-size:.95rem;min-height:44px}
body[data-page=index] .included-section{background:#eff8fe}
body[data-page=index] .inside-art{background:#fff;display:flex;align-items:center;justify-content:center;min-height:370px;border:0;box-shadow:0 18px 35px #17335d0a}
body[data-page=index] .inside-art::before{display:none}
body[data-page=index] .inside-art img{height:305px;max-height:none;width:auto;max-width:85%;object-fit:contain}
body[data-page=index] .inside-list>div{background:#fff;border-color:#d8e9f5;padding:24px}
body[data-page=index] .inside-list p{font-size:1rem;line-height:1.6}
body[data-page=index] .examples-section{background:#fff}
body[data-page=index] .example-card{padding:28px;min-height:0;box-shadow:none;background:#f4faff;border-color:#d4e7f5}
body[data-page=index] .example-card h3{margin:24px 0 16px;font-size:1.25rem}
body[data-page=index] .example-card p{font-size:1rem;line-height:1.65}
body[data-page=index] .example-card a{margin-top:16px}
body[data-page=index] .faq-section{background:#eff8fe}
body[data-page=index] .faq-item{background:#fff}
body[data-page=index] .faq-scene{display:none}
/* Interactive agent loop is a working example inside the existing practice section. */
.agent-demo{display:grid;grid-template-columns:1.2fr 1fr;overflow:hidden;margin:0 0 42px;border:1px solid #bddbef;border-radius:24px;background:#f2f9ff}
.agent-stage{position:relative;min-height:340px;overflow:hidden;background:#10375d}
.agent-stage::before{content:'';position:absolute;inset:0;background:linear-gradient(#153a6b30,#14376370),url('assets/scenes/world-valley.webp') center/cover}
.agent-lane{position:absolute;left:9%;right:9%;bottom:65px;height:2px;border-top:2px dashed #def6ffc9}
.demo-robot{position:absolute;width:100px;height:145px;object-fit:contain;bottom:62px;left:8%;filter:drop-shadow(0 8px 4px #04224050);transition:left 1.25s var(--home-ease)}
.demo-signal{position:absolute;right:12%;bottom:86px;width:40px;height:40px;background:#ffcf57;box-shadow:0 0 0 10px #ffcf5733,0 0 35px #ffcf57;border-radius:50%;opacity:.4;transition:opacity .3s}
.agent-stage[data-step="1"] .demo-signal{opacity:1;animation:signal-pulse 1s 2}
.agent-stage[data-step="2"] .demo-signal,.agent-stage[data-step="3"] .demo-signal{opacity:1}
.agent-stage[data-step="3"] .demo-robot{left:calc(82% - 75px)}
.stage-label{position:absolute;top:24px;left:24px;color:#fff;font-size:.8rem;letter-spacing:.13em;text-transform:uppercase}
.demo-panel{padding:32px;align-self:center}
.demo-panel h3{font-size:1.55rem;margin:0 0 16px}
.demo-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;list-style:none;padding:0;margin:24px 0}
.demo-steps li{border-bottom:3px solid #cddfec;padding:10px 0;color:#5c748a;font-size:.9rem;font-weight:700}
.demo-steps li[aria-current="step"]{color:#103b6b;border-color:#efa72c}
.demo-status{font-size:1rem;line-height:1.65;min-height:5em;margin:0 0 22px;color:#43617f}
.demo-controls{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.demo-controls a{font-size:.9rem}
.demo-noscript{margin:16px 0;color:#43617f}
body[data-page=index] .btn-yellow{position:relative;overflow:hidden}
body[data-page=index] .btn-yellow::after{content:'';position:absolute;inset:-50%;background:linear-gradient(100deg,transparent 40%,#ffffff70 50%,transparent 60%);transform:translateX(-100%) rotate(12deg);pointer-events:none}
body[data-page=index] .btn-yellow:hover::after{transform:translateX(100%) rotate(12deg);transition:transform .65s}
.home-reveal{transition:opacity .7s var(--home-ease),translate .7s var(--home-ease)}.home-reveal.is-pending{opacity:0;translate:0 20px}
body.motion-paused *,body.motion-away *,body[data-page=index] .motion-outside *{animation-play-state:paused!important}
body.motion-paused .home-reveal,body.motion-paused .hero-copy>*{opacity:1;translate:none;transform:none;animation:none}
body.motion-paused .demo-robot{transition:none}
@keyframes hero-enter{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@keyframes hero-leap{0%,12%,100%{transform:translateY(0) rotate(-2deg)}45%,55%{transform:translateY(-24px) rotate(2deg)}}
@keyframes hero-shadow{0%,12%,100%{transform:scale(1);opacity:.65}45%,55%{transform:scale(.7);opacity:.28}}
@keyframes island-drift{0%,100%{transform:translateY(0)}50%{transform:translateY(8px)}}
@keyframes star-glimmer{0%,100%{opacity:.5;transform:scale(.85)}50%{opacity:1;transform:scale(1.12)}}
@keyframes signal-pulse{50%{box-shadow:0 0 0 19px #ffcf5700,0 0 35px #ffcf57}}
@media(max-width:1000px){
 body[data-page=index] .hero-container{gap:12px;min-height:600px}
 body[data-page=index] .hero-copy h1{font-size:clamp(2.8rem,5.6vw,4rem)}
 body[data-page=index] .hero-copy>p{font-size:1rem}
 body[data-page=index] .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px}
 body[data-page=index] .free-inner>div{max-width:65%}
 body[data-page=index] .free-inner>.free-robot{margin-right:0;width:170px;flex-basis:170px}
 body[data-page=index] .mission-inner{gap:32px;min-height:520px}
 body[data-page=index] .path-stage{padding:20px}
 .agent-demo{grid-template-columns:1fr 1fr}.demo-panel{padding:26px}
}
@media(max-width:650px){
 body[data-page=index] .section{padding:56px 0}
 body[data-page=index] .section-head{margin-bottom:28px}
 body[data-page=index] .hero-home{min-height:0}
 body[data-page=index] .hero-container{display:flex;flex-direction:column;align-items:stretch;width:calc(100% - 40px);gap:0;min-height:0;padding-bottom:48px}
 body[data-page=index] .hero-copy{padding:42px 0 10px;width:100%;max-width:none}
 body[data-page=index] .hero-copy h1{font-size:clamp(2.7rem,10.7vw,4.1rem);margin:12px 0 22px}
 body[data-page=index] .hero-copy>p{font-size:1rem;line-height:1.65}
 body[data-page=index] .hero-home::before{background:linear-gradient(#092f64e6,#14548999 58%,#146aad10)}
 body[data-page=index] .hero-actions{margin-top:24px}
 body[data-page=index] .hero-scene{position:relative;align-self:center;width:min(100%,370px);max-width:100%;height:auto;aspect-ratio:1;left:auto;right:auto;bottom:auto;margin:0}
 body[data-page=index] .hero-character{width:61%;max-width:none;left:19%;bottom:35%;top:auto}
 body[data-page=index] .hero-platform{width:100%;max-width:none;left:0;right:auto;bottom:0}
 .island-a{left:auto;right:3%;top:53%;width:65px}.island-b{display:none}.motion-toggle{bottom:12px;right:16px}
 body[data-page=index] .product-grid{gap:30px 16px}
 body[data-page=index] .card-art{height:210px;min-height:210px;padding:8px 4px 20px}
 body[data-page=index] .card-art img{height:185px}
 body[data-page=index] .card-body{padding-top:14px}
 body[data-page=index] .card-body h3{font-size:1.05rem}
 body[data-page=index] .card-body p{font-size:.9rem;min-height:4.5em}
 body[data-page=index] .free-inner{width:calc(100% - 40px);min-height:0;padding:40px 0 205px}
 body[data-page=index] .free-inner>div{max-width:100%}
 body[data-page=index] .free-inner>.free-robot{position:absolute;width:140px;height:180px;right:30px;bottom:0;margin:0}
 body[data-page=index] .free-robot-platform{right:0;bottom:-55px;width:240px;height:160px}
 body[data-page=index] .free-inner p{max-width:100%}
 body[data-page=index] .benefit{padding:8px 10px}
 body[data-page=index] .benefit img{width:120px;height:120px}
 body[data-page=index] .benefit h3{font-size:1.05rem}
 body[data-page=index] .benefit p{font-size:.95rem}
 body[data-page=index] .mission-section{display:flex;flex-direction:column;padding:0}
 body[data-page=index] .mission-panorama{z-index:0}
 body[data-page=index] .mission-section::before{display:none}
 body[data-page=index] .mission-inner{display:block;min-height:0;padding:40px 0 48px;width:calc(100% - 40px)}
 body[data-page=index] .mission-decor{display:none}
 body[data-page=index] .inside-art{min-height:300px}
 body[data-page=index] .inside-art img{height:255px}
 body[data-page=index] .inside-list>div{padding:18px}
 .agent-demo{grid-template-columns:1fr}.agent-stage{min-height:260px}.demo-panel{padding:24px}.demo-status{min-height:0}
 .demo-robot{height:120px;width:84px;bottom:56px}.agent-lane{bottom:58px}.demo-signal{bottom:74px}
}
@media(max-width:380px){body[data-page=index] .benefits-grid{grid-template-columns:1fr}body[data-page=index] .card-body p{min-height:6em}.demo-steps{gap:6px}.demo-steps li{font-size:.85rem}}
@media(prefers-reduced-motion:reduce){body[data-page=index] *,body[data-page=index] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.home-reveal.is-pending{opacity:1;translate:none}.hero-bg,.hero-scene,.card-art img{transform:none!important}}
