PageSourceSearch

https://kusart.com/_next/static/chunks/15459f4c94a2b7d5.js

js kusart.com collected 2026-10-08 05:48:32 UTC 92,217 bytes, 4 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0a55a-3dd9-7443-a78e-40906040727c")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,19222,e=>{e.v({agentGrid:"landing-revamp-module__rO2Sda__agentGrid",borderlessButtons:"landing-revamp-module__rO2Sda__borderlessButtons","character-card-progress":"landing-revamp-module__rO2Sda__character-card-progress","character-hero-reveal":"landing-revamp-module__rO2Sda__character-hero-reveal","character-tag-attention":"landing-revamp-module__rO2Sda__character-tag-attention","character-tag-preview":"landing-revamp-module__rO2Sda__character-tag-preview","character-tag-rail-reveal":"landing-revamp-module__rO2Sda__character-tag-rail-reveal",characterCardProgress:"landing-revamp-module__rO2Sda__characterCardProgress",characterHeroReveal:"landing-revamp-module__rO2Sda__characterHeroReveal",characterHeroStage:"landing-revamp-module__rO2Sda__characterHeroStage",characterPicker:"landing-revamp-module__rO2Sda__characterPicker",characterPickerArtwork:"landing-revamp-module__rO2Sda__characterPickerArtwork",characterPickerButton:"landing-revamp-module__rO2Sda__characterPickerButton",characterPickerName:"landing-revamp-module__rO2Sda__characterPickerName",characterPickerShade:"landing-revamp-module__rO2Sda__characterPickerShade",characterRecipeBody:"landing-revamp-module__rO2Sda__characterRecipeBody",characterRecipeCta:"landing-revamp-module__rO2Sda__characterRecipeCta",characterRecipePanel:"landing-revamp-module__rO2Sda__characterRecipePanel",characterTagButton:"landing-revamp-module__rO2Sda__characterTagButton",characterTagLabel:"landing-revamp-module__rO2Sda__characterTagLabel",characterTagOverlay:"landing-revamp-module__rO2Sda__characterTagOverlay",characterTagPreview:"landing-revamp-module__rO2Sda__characterTagPreview",characterTagPreviewBody:"landing-revamp-module__rO2Sda__characterTagPreviewBody",characterTagPreviewCue:"landing-revamp-module__rO2Sda__characterTagPreviewCue",characterTagRail:"landing-revamp-module__rO2Sda__characterTagRail",characterTagThumbnail:"landing-revamp-module__rO2Sda__characterTagThumbnail",characterTagTray:"landing-revamp-module__rO2Sda__characterTagTray",ctaArtwork:"landing-revamp-module__rO2Sda__ctaArtwork",ctaCard:"landing-revamp-module__rO2Sda__ctaCard",ctaContent:"landing-revamp-module__rO2Sda__ctaContent",ctaOverlay:"landing-revamp-module__rO2Sda__ctaOverlay","edit-category-progress":"landing-revamp-module__rO2Sda__edit-category-progress","edit-comparison-reveal":"landing-revamp-module__rO2Sda__edit-comparison-reveal",editCategoryButton:"landing-revamp-module__rO2Sda__editCategoryButton",editCategoryProgress:"landing-revamp-module__rO2Sda__editCategoryProgress",editComparisonBefore:"landing-revamp-module__rO2Sda__editComparisonBefore",editComparisonBody:"landing-revamp-module__rO2Sda__editComparisonBody",editComparisonCanvas:"landing-revamp-module__rO2Sda__editComparisonCanvas",editComparisonCta:"landing-revamp-module__rO2Sda__editComparisonCta",editComparisonDivider:"landing-revamp-module__rO2Sda__editComparisonDivider",editComparisonHandle:"landing-revamp-module__rO2Sda__editComparisonHandle",editComparisonPanel:"landing-revamp-module__rO2Sda__editComparisonPanel",editComparisonReveal:"landing-revamp-module__rO2Sda__editComparisonReveal",editComparisonTracking:"landing-revamp-module__rO2Sda__editComparisonTracking",heroShade:"landing-revamp-module__rO2Sda__heroShade","landing-marquee":"landing-revamp-module__rO2Sda__landing-marquee",marqueeReverse:"landing-revamp-module__rO2Sda__marqueeReverse",marqueeTrack:"landing-revamp-module__rO2Sda__marqueeTrack",marqueeViewport:"landing-revamp-module__rO2Sda__marqueeViewport",modelLoopCard:"landing-revamp-module__rO2Sda__modelLoopCard",modelRail:"landing-revamp-module__rO2Sda__modelRail",page:"landing-revamp-module__rO2Sda__page",pinkText:"landing-revamp-module__rO2Sda__pinkText",showcaseRail:"landing-revamp-module__rO2Sda__showcaseRail",softGlow:"landing-revamp-module__rO2Sda__softGlow",styleCard:"landing-revamp-module__rO2Sda__styleCard",styleDeck:"landing-revamp-module__rO2Sda__styleDeck","video-template-progress":"landing-revamp-module__rO2Sda__video-template-progress","video-template-reveal":"landing-revamp-module__rO2Sda__video-template-reveal",videoTemplateBody:"landing-revamp-module__rO2Sda__videoTemplateBody",videoTemplateCta:"landing-revamp-module__rO2Sda__videoTemplateCta",videoTemplatePanel:"landing-revamp-module__rO2Sda__videoTemplatePanel",videoTemplatePlayback:"landing-revamp-module__rO2Sda__videoTemplatePlayback",videoTemplateProgress:"landing-revamp-module__rO2Sda__videoTemplateProgress",videoTemplateRail:"landing-revamp-module__rO2Sda__videoTemplateRail",videoTemplateReveal:"landing-revamp-module__rO2Sda__videoTemplateReveal",videoTemplateStage:"landing-revamp-module__rO2Sda__videoTemplateStage",videoTemplateThumb:"landing-revamp-module__rO2Sda__videoTemplateThumb",videoTemplateUpload:"landing-revamp-module__rO2Sda__videoTemplateUpload",whyCard:"landing-revamp-module__rO2Sda__whyCard",whyFan:"landing-revamp-module__rO2Sda__why
1Fan",workflowPrimaryCta:"landing-revamp-module__rO2Sda__workflowPrimaryCta",workflowPrimaryCtaIcon:"landing-revamp-module__rO2Sda__workflowPrimaryCtaIcon"})},378993,e=>{"use strict";var a=e.i(515653),t=e.i(292568),r=e.i(366602),s=e.i(624644),i=e.i(765911),l=e.i(803773),n=e.i(55952),o=e.i(324995),d=e.i(104439),c=e.i(884253),m=e.i(456904),p=e.i(29469),h=e.i(12600),u=e.i(499688);let x=(0,u.default)("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]),f=(0,u.default)("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]),g=(0,u.default)("Clapperboard",[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z",key:"1tn4o7"}],["path",{d:"m6.2 5.3 3.1 3.9",key:"iuk76l"}],["path",{d:"m12.4 3.4 3.1 4",key:"6hsd6n"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",key:"ltgou9"}]]);var b=e.i(669698),w=e.i(604629),v=e.i(313007),j=e.i(770742);let y=[{number:"01",href:"/image-generator?model=Kusa-XL",visual:"styles"},{number:"02",href:"/oc-generator",visual:"character"},{number:"03",href:"/oc-edit",visual:"edit"},{number:"04",href:"/image-to-video",visual:"video"}],N=[{icon:f},{icon:j.WandSparkles},{icon:v.ScanFace},{icon:b.Layers3}],k=[{name:"Anima",image:"/landing/anima-cyberpunk-android.webp",href:"/image-generator/kusa-anima"},{name:"Kusa-Niji",image:"/landing/kusa-niji-expressive-anime-art.webp",href:"/image-generator/kusa-niji"},{name:"Kusa-XL",image:"/companyprofile/products/image-generator/Kusa-XL/20260322-023753.webp",href:"/image-generator?model=Kusa-XL"},{name:"Kusa-Easy",image:"/landing/kusa-easy-neon-guitar-girl.webp",href:"/image-generator/kusa-easy"},{name:"Kusa-Mix",image:"/landing/kusa-mix-plastic-platter.jpg",href:"/image-generator/kusa-mix"},{name:"GPT Image 2",image:"/landing/gpt-image-2-radio-wave-girl.webp",href:"/play/gpt-image-2"},{name:"Nano Banana Pro",image:"https://cdn.kusa.pics/admin/uploads/images/50ca0980-db72-406e-8dff-9d1066ff9c99.webp",href:"/nano-banana"},{name:"Seedance 2.0",image:"https://cdn.kusa.pics/admin/uploads/images/8ac9c77a-822f-485f-85aa-55c9ec0c5ac3.webp",video:{src:"https://cdn.kusa.pics/admin/uploads/videos/8d7b5726-4afa-469e-8dee-972e746c70d3.mp4",type:"video/mp4"},href:"/image-to-video"}],_=[{name:"Anima",href:"/image-generator/kusa-anima",imageLayout:"portrait",images:[{src:"https://cdn.kusa.pics/generated/gb9g1YvV8ac41vwLQg91XTygdQh2/original/2026/07/09/86e8327e-40a6-4c97-af6e-1858cfdc7405.png",feedId:"24bcac3e-7b56-4a23-8012-3096bbc528e6"},{src:"https://cdn.kusa.pics/generated/gb9g1YvV8ac41vwLQg91XTygdQh2/watermarked/2026/07/13/4604d067-668f-4c92-aed4-311a8e3dd9fc.png",feedId:"da0ea6ff-37c1-412e-862b-3a09f0a3c7eb"},{src:"https://cdn.kusa.pics/generated/kZxRl40iDiNeSdr6nwFO3l1WSSw2/original/2026/07/18/5f44ae4b-d5bd-4b73-b10d-131a1fc193dd.png",feedId:"9ee815a0-51f0-4fdf-ad36-66dab17a2d38"},{src:"https://cdn.kusa.pics/generated/kZxRl40iDiNeSdr6nwFO3l1WSSw2/original/2026/07/17/cb7a94db-25ca-4709-9bec-7598665be90f.png",feedId:"8b742797-ec44-483e-9abd-551464e6d4f4"},{src:"https://cdn.kusa.pics/generated/kZxRl40iDiNeSdr6nwFO3l1WSSw2/original/2026/07/23/ea09d803-076c-4563-9aa6-19669876a270.png",feedId:"dde45c0b-886e-4d06-8732-26deb653be79"},{src:"https://cdn.kusa.pics/generated/kZxRl40iDiNeSdr6nwFO3l1WSSw2/original/2026/07/17/a4ac97cb-eda1-46b0-b314-c095bcace4ce.png",feedId:"1a41d2ff-e736-4702-9054-5654e967359f"}
1,{src:"https://cdn.kusa.pics/generated/gb9g1YvV8ac41vwLQg91XTygdQh2/original/2026/07/09/45e3e526-6244-4bbb-9391-413cd2e70141.png",feedId:"9ab32e85-93a6-412c-a089-2c59026b15ca"},{src:"https://cdn.kusa.pics/generated/kZxRl40iDiNeSdr6nwFO3l1WSSw2/original/2026/07/17/1b23a5a3-c866-4f70-ac30-3e6c96368218.png",feedId:"4fe1c193-c2d1-416a-9393-02e6eb47a797"}]},{name:"GPT Image 2",description:"Detailed posters, creator assets, readable layouts, and reference-guided concepts.",href:"/play/gpt-image-2",imageLayout:"portrait",images:[{src:"https://cdn.kusa.pics/api-generated/aqxI3ISSVITpBeLpcqR6fKJtgnc2/watermarked/2026/07/04/2c0dab95-a00e-4ba2-9892-f91e12ab7adc.png",alt:"Anime character reference sheet created with GPT Image 2",feedId:"0020f733-b333-4620-9379-c1a1a5bf40ee"},{src:"https://cdn.kusa.pics/api-generated/gb9g1YvV8ac41vwLQg91XTygdQh2/watermarked/2026/06/22/46206d46-5ef7-411b-8fbb-bda4e320f236.png",alt:"Reference-guided character artwork created with GPT Image 2",feedId:"14c0480f-660b-4e25-90c2-c3a040f46dac"},{src:"https://cdn.kusa.pics/api-generated/6t1eZAFXrOY9F5siAM4cdNhuSNO2/watermarked/2026/07/05/43ac5d0f-7baa-4609-a227-587b1dd0a0da.png",alt:"Ink-wash anime poster created with GPT Image 2",feedId:"06920a2e-157e-4e69-92d8-5eb7fb791bf1"},{src:"https://cdn.kusa.pics/api-generated/k6nWdrXZxwdzC712CSjwy8u0x5J2/watermarked/2026/06/29/b1ce4b66-e0d2-4e34-b2c2-856fd9b62f38.png",alt:"Original character profile created with GPT Image 2",feedId:"018c1856-42f9-4586-9e27-ec07d2dde4e0"},{src:"https://cdn.kusa.pics/api-generated/gb9g1YvV8ac41vwLQg91XTygdQh2/watermarked/2026/06/22/1b887e66-b21e-410b-a4ec-87fe46310256.png",alt:"Multi-character composition created with GPT Image 2",feedId:"f8c377a0-90fa-4f94-945b-10a70a801ad2"},{src:"https://cdn.kusa.pics/api-generated/gb9g1YvV8ac41vwLQg91XTygdQh2/watermarked/2026/06/22/70781eee-2b9a-4d3b-9be9-aaa866772729.png",alt:"Character scene recreation created with GPT Image 2",feedId:"76d3acf1-1825-4077-803b-6eefb66e190e"},{src:"https://cdn.kusa.pics/api-generated/gb9g1YvV8ac41vwLQg91XTygdQh2/watermarked/2026/06/23/e71fd15c-3c8c-4938-85bf-5d91bf80036e.png",alt:"Vertical character layout created with GPT Image 2",feedId:"366e4268-1b8f-4c6d-8174-8bcd447a809c"},{src:"https://cdn.kusa.pics/api-generated/Nx6Bpbme2qSK0NjgHcQ2ULm3QFE3/watermarked/2026/07/29/dededb79-dab9-4742-a611-50f7c367cfbf.png",alt:"Cinematic anime wallpaper created with GPT Image 2",feedId:"35749284-1dce-4cde-af03-22c20c7d37cd"}]},{name:"Kusa-XL",description:"Anime-first illustrations across distinctive styles, characters, and compositions.",href:"/image-generator",ctaHref:"/image-generator?model=Kusa-XL",imageLayout:"portrait",images:[{src:"https://cdn.kusa.pics/generated/MPpoGqF83uRFnJVKYwBqWXqfDLT2/watermarked/2025/12/02/c833e9b3-3d1c-4912-88fe-50b2e8354358.png",alt:"Soft male anime portrait created with Kusa-XL",feedId:"00051e53-7cf2-4dd4-8a52-c10f79015a7a"},{src:"https://cdn.kusa.pics/generated/KwpnMZ13aDdmUQAkNgpuduVP2Yr2/watermarked/2026/03/04/a636259d-b866-4c29-9ca9-8d016c269d61.png",alt:"Bunny-eared character created with Kusa-XL",feedId:"00059dff-5fbd-45d5-b4c6-2d728503ba72"},{src:"https://cdn.kusa.pics/generated/oC7JLOGotxfNRYMMuMBcV5WsxX92/watermarked/2026/02/09/d33eaf9d-1e76-48f5-b854-1157794d6c12.png",alt:"Elegant white-haired character created with Kusa-XL",feedId:"001dba8d-d33c-4b24-a436-5d7240a06a88"},{src:"https://dz2b1yn8y4hm.cloudfront.net/examples_v2/example_79_c3d5e625-1199-4480-8ed3-af14b80be565.webp",alt:"Bright anime portrait created with Kusa-XL",feedId:"ed69d3f0-f3e0-4c57-9b9d-0896cb1e5f6c"},{src:"https://cdn.kusa.pics/generated/1kyECiN700PgwYMreUglBoLqlhK2/watermarked/2026/01/18/b610cd31-1b91-494c-88c1-162806ff1e4c.png",alt:"Anime couple portrait created with Kusa-XL",feedId:"0104172b-d241-414e-91a9-44b63d5fd561"},{src:"https://cdn.kusa.pics/generated/jjWhQrPJeJRMh3EETGkrEhKvwvy2/watermarked/2026/01/30/6d49c52d-6178-4053-8b5b-3339c67f5072.png",alt:"Dark fashion character created with Kusa-XL",feedId:"029de2ce-2cda-44eb-b118-f0dbc9aff3be"},{src:"https://cdn.kusa.pics/generated/nRSdZbnXiuMCQR14MPwNa67b0Mw1/watermarked/2025/11/30/a8ebb2d9-b51e-499b-837e-e66cdd09bc54.png",alt:"Fashion anime illustration created with Kusa-XL",feedId:"ffee8a3a-03e5-4b49-80d8-945365e164e7"},{src:"https://cdn.kusa.pics/generated/osecVqPcp5e2iFhtSS9EXASLXAd2/watermarked/2026/03/01/0f0b425c-a0e9-4ec3-bbf9-26595763cb60.png",alt:"Pastoral character scene created with Kusa-XL",feedId:"0058533e-d5a1-4691-9ade-731b0652b96e"}]}],S=[{icon:w.Palette,title:"Anime-First by Design",description:"Anime-focused models and controls for faces, linework, poses, lighting, and composition."},{icon:g,title:"Image to Video",description:"Animate finished art with character actions, camera cues, pacing, and scene direction."},{icon:l.Bot,title:"Creative Agent",description:"Turn a plain-language brief into the right image generator, OC generator, editing, or video workflow."},{icon:x,title:"Top Models, One Place",description:"Choose the right model for text, references, detailed edits, or video."},{icon:c.Sparkles,title:"High-Quality Results",description:"Refine faces, hands, outfits, poses, expressions, lighting, and continuity."}
1,{icon:n.ImageIcon,title:"One Creative Canvas",description:"Keep prompts, references, results, revisions, and creative branches together."}],T=["/landing/user reviews (1).webp","/landing/user reviews (2).webp","/landing/user reviews (3).webp","/landing/gallery/ai-generated-cool-minimalist-anime-portrait.webp","/landing/gallery/ai-generated-cute-school-girl-character-design.webp","/landing/gallery/ai-generated-gothic-elegance-anime-portrait.webp"];function C({href:e,children:t}){return(0,a.jsx)(m.Link,{href:e,className:"rounded-sm font-medium text-white/82 underline decoration-[#ff5f9b]/70 underline-offset-[3px] transition-colors hover:text-[#ff6ca3] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff4f91]/70 focus-visible:ring-offset-2 focus-visible:ring-offset-[#050506]",children:t})}function P({text:e,links:t=[]}){let r=t.map(a=>({...a,index:e.indexOf(a.label)})).filter(e=>e.label&&e.index>=0).sort((e,a)=>e.index-a.index);if(0===r.length)return(0,a.jsx)(a.Fragment,{children:e});let s=[],i=0;return r.forEach(t=>{t.index<i||(t.index>i&&s.push(e.slice(i,t.index)),s.push((0,a.jsx)(C,{href:t.href,children:t.label},`${t.href}-${t.index}`)),i=t.index+t.label.length)}),i<e.length&&s.push(e.slice(i)),(0,a.jsx)(a.Fragment,{children:s})}var O=e.i(647163);let L="text-balance text-3xl font-black leading-[1.02] tracking-[-0.035em] text-white sm:text-4xl lg:text-5xl xl:text-[3.25rem]";function A({title:e,description:t,align:r="center",className:s}){return(0,a.jsxs)("div",{className:(0,O.cn)("space-y-4","center"===r?"mx-auto w-full max-w-[1400px] text-center":"max-w-4xl text-left",s),children:[(0,a.jsx)("h2",{className:(0,O.cn)(L,"xl:whitespace-nowrap"),children:e}),t&&(0,a.jsx)("p",{className:(0,O.cn)("max-w-3xl text-pretty text-base font-light leading-7 text-white/58 sm:text-lg","center"===r&&"mx-auto"),children:t})]})}var R=e.i(19222);function I(){let e=(0,r.useTranslations)("landingRevamp.agent.workspace"),i=e.raw("quickActions"),u=(0,m.useRouter)(),[x,f]=(0,t.useState)(""),g=x.trim().length>0;return(0,a.jsxs)("div",{id:"agent-workflow",className:`relative mx-auto mt-14 min-h-[620px] max-w-7xl overflow-hidden rounded-[2rem] border-0 bg-[#0f1014] shadow-[0_40px_120px_rgba(0,0,0,0.55)] ${R.default.agentGrid}`,children:[(0,a.jsxs)("div",{className:"flex h-14 items-center justify-between border-b border-white/8 bg-[#111216]/92 px-4 sm:px-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(s.default,{src:"/logo.png",alt:"KusArt",width:120,height:36,className:"h-6 w-auto"}),(0,a.jsx)("span",{className:"hidden text-sm font-semibold text-white/70 sm:block",children:e("projectName")})]}),(0,a.jsx)("span",{className:"text-xs font-semibold uppercase tracking-[0.14em] text-[#ff6ca3]",children:e("label")})]}),(0,a.jsxs)("div",{className:"absolute left-4 top-20 hidden w-12 flex-col items-center gap-4 roun
1ded-full border border-white/8 bg-[#1b1c21] py-3 text-white/50 sm:flex",children:[(0,a.jsx)("span",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-[#ff2f7d] text-white",children:(0,a.jsx)(o.Plus,{className:"h-4 w-4"})}),(0,a.jsx)(n.ImageIcon,{className:"h-4 w-4 text-[#ff5c99]"}),(0,a.jsx)(l.Bot,{className:"h-4 w-4"}),(0,a.jsx)(c.Sparkles,{className:"h-4 w-4"})]}),(0,a.jsxs)("div",{className:"absolute inset-y-20 left-4 right-4 sm:left-20 lg:right-[340px]",children:[(0,a.jsxs)("div",{className:"absolute left-[4%] top-[4%] w-[32%] min-w-[150px] overflow-hidden rounded-2xl border border-white/10 bg-[#282a31] shadow-2xl",children:[(0,a.jsx)("div",{className:"relative aspect-[4/3]",children:(0,a.jsx)(s.default,{src:"/landing/gallery/ai-generated-cute-school-girl-character-design.webp",alt:e("characterReferenceAlt"),fill:!0,className:"object-cover",sizes:"280px"})}),(0,a.jsx)("p",{className:"px-3 py-2 text-xs font-medium text-white/60",children:e("characterReference")})]}),(0,a.jsxs)("div",{className:"absolute bottom-[8%] left-[10%] w-[28%] min-w-[135px] rounded-2xl border border-[#ff3f87]/20 bg-[#191a20] p-4 shadow-2xl",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.14em] text-[#ff5c99]",children:e("creativeIntent")}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-white/70",children:e("creativeIntentExample")})]}),(0,a.jsx)("div",{className:"absolute left-[44%] top-[34%] w-[29%] min-w-[140px] overflow-hidden rounded-2xl border border-white/10 bg-[#282a31] shadow-2xl",children:(0,a.jsx)("div",{className:"relative aspect-square",children:(0,a.jsx)(s.default,{src:"/landing/ai-generated-city-night-anime-scene.webp",alt:e("citySceneAlt"),fill:!0,className:"object-cover",sizes:"260px"})})}),(0,a.jsxs)("div",{className:"absolute bottom-[6%] right-[3%] w-[27%] min-w-[130px] overflow-hidden rounded-2xl border border-white/10 bg-[#282a31] shadow-2xl",children:[(0,a.jsx)("div",{className:"relative aspect-[4/3]",children:(0,a.jsx)(s.default,{src:"/landing/gallery/ai-generated-heart-eyes-anime-expression.webp",alt:e("expressionAlt"),fill:!0,className:"object-cover",sizes:"250px"})}),(0,a.jsx)("p",{className:"px-3 py-2 text-xs font-medium text-white/60",children:e("expressionVariation")})]}),(0,a.jsxs)("svg",{className:"pointer-events-none absolute inset-0 h-full w-full text-[#ff3f87]/35","aria-hidden":!0,children:[(0,a.jsx)("path",{d:"M 220 180 C 310 180, 320 300, 430 310",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"5 7"}),(0,a.jsx)("path",{d:"M 320 430 C 430 430, 480 380, 600 390",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"5 7"})]})]}),(0,a.jsxs)("form",{onSubmit:function(e){e.preventDefault();let a=x.trim();a&&(p.useChatHandOffStore.getState().setPendingEntry({id:`landing-agent-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,prompt:a,attachments:[],source:"landing_revamp_agent",autoSend:!1,requestedAt:Date.now()}),(0,h.trackLandingAgentSubmitted)({prompt_length:a.length}),u.push("/chat"))},className:"absolute inset-x-4 bottom-4 rounded-2xl border-0 bg-[#25262e] p-4 shadow-[0_8px_24px_rgba(0,0,0,0.35)] lg:inset-x-auto lg:bottom-4 lg:right-4 lg:top-20 lg:w-[310px]",children:[(0,a.jsxs)("div",{className:"hidden h-full flex-col lg:flex",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-sm font-bold text-white",children:e("newChat")}),(0,a.jsx)(l.Bot,{className:"h-4 w-4 text-white/40"})]}),(0,a.jsxs)("div",{className:"my-auto text-center",children:[(0,a.jsx)("div",{className:"mx-auto flex h-11 w-11 items-center justify-center rounded-2xl bg-[#ff2f7d]/12 text-[#ff5b98]",children:(0,a.jsx)(c.Sparkles,{className:"h-5 w-5"})}),(0,a.jsx)("p",{className:"mt-4 text-lg font-bold text-[#ff5b98]",children:e("greeting")}),(0,a.jsx)("p",{className:"mt-1 text-sm text-white/52",children:e("question")}),(0,a.jsx)("div",{className:"mt-5 grid grid-cols-2 gap-2",children:i.map(e=>(0,a.jsx)("span",{className:"rounded-xl border border-white/8 bg-white/[0.03] px-2 py-3 text-xs text-white/55",children:e},e))})]}),(0,a.jsxs)("div",{className:"rounded-2xl border-0 bg-[#191a20] p-3 transition-colors duration-200 focus-within:bg-[#202128]",children:[(0,a.jsx)("textarea",{"data-focus-style":"surface",value:x,onChange:e=>f(e.target.value),placeholder:e("prompt"),rows:3,className:"min-h-14 w-full resize-none border-0 bg-transparent text-xs leading-5 text-white outline-none placeholder:text-white/55"}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-xs text-white/35",children:e("addReference")}),(0,a.jsx)("button",{type:"submit",disabled:!g,"aria-label":e("mobilePrompt"),className:"flex h-8 w-8 items-center justify-center rounded-full bg-[#ff2f7d] text-white transition-transform hover:scale-105 disabled:cursor-not-allowed disabled:opacity-35",children:(0,a.jsx)(d.Send,{className:"h-4 w-4"})})]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 rounded-xl transition-colors duration-200 focus-within:bg-[#30313b] lg:hidden",children:[(0,a.jsx)("div",{className:"flex h-9 w-9 items-center justify-center rounded-xl bg-[#ff2f7d]/15 text-[#ff5b98]",children:(0,a.jsx)(c.Sparkles,{className:"h-4 w-4"})}),(0,a.jsx)("input",{value:x,onChange:e=>f(e.target.value),placeholder:e("mobilePrompt"),className:"min-w-0 flex-1 border-0 bg-transparent text-sm text-white outline-none placeholder:text-white/55"}),(0,a.jsx)("button",{type:"submit",disabled:!g,"aria-label":e("mobilePrompt"),className:"flex h-9 w-9 items-center justify-center rounded-full bg-[#ff2f7d] text-white transition-transform active:scale-95 disabled:cursor-not-allowed disabled:opacity-35",children:(0,a.jsx)(d.Send,{className:"h-4 w-4"})})]})]})]})}function $(){let e=(0,r.useTranslations)("landingRevamp.agent"),t=e.raw("features");return(0,a.jsxs)("section",{id:"agent",className:"scroll-mt-20 px-5 py-24 sm:px-8 lg:py-36",children:[(0,a.jsx)(A,{title:(0,a.jsxs)(a.Fragment,{children:[e("titleStart")," ",(0,a.jsx)("span",{className:R.default.pinkText,children:e("titleAccent")})," ",e("titleEnd")]}),description:e("description")}),(0,a.jsx)("div",{className:"mt-9 flex flex-wrap justify-center gap-3",children:(0,a.jsxs)(m.Link,{href:"/chat",className:"inline-flex items-center gap-2 rounded-full bg-[#ff2f7d] px-6 py-3.5 text-sm font-bold text-white hover:bg-[#ed236f] sm:text-base",children:[e("cta")," ",(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4"})]})}),(0,a.jsx)(I,{}),(0,a.jsx)("div",{className:"mx-auto mt-6 grid max-w-7xl gap-3 sm:grid-cols-2 lg:grid-cols-4",children:N.map((r,s)=>(0,a.jsxs)("article",{className:"group rounded-3xl border-0 bg-[#141519] p-6 transition-colors",children:[(0,a.jsx)(r.icon,{className:"h-6 w-6 text-[#ff4f91]"}),(0,a.jsx)("h3",{className:"mt-7 text-xl font-bold leading-tight text-white",children:t[s].title}),(0,a.jsx)("p",{className:"mt-3 text-sm font-light leading-6 text-white/50",children:e.rich(`features.${s}.description`,{memes:e=>(0,a.jsx)(C,{href:"/play/meme-remaker",children:e})})})]},t[s].title))})]})}var M=e.i(924770);function E({faqTitle:e,faqTitleAccent:t,faqDescription:r,faqItems:l,ctaTitle:n,ctaTitleAccent:o,ctaText:d,ctaButton:c,bannerAlt:p}){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("section",{id:"faq",className:"scroll-mt-20 px-5 py-24 sm:px-8 lg:py-32",children:[(0,a.jsx)(A,{title:(0,a.jsxs)(a.Fragment,{children:[e," ",(0,a.jsx)("span",{className:R.default.pinkText,children:t})]}),description:r}),(0,a.jsx)("div",{className:"mx-auto mt-14 max-w-4xl overflow-hidden rounded-[2rem] border-0 bg-[#111216] p-2 sm:p-3",children:l.map(e=>(0,a.jsxs)("details",{className:"group border-b border-white/8 px-4 py-1 last:border-b-0 sm:px-6",children:[(0,a.jsxs)("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-5 py-5 text-left text-base font-bold text-white marker:hidden sm:py-6 sm:text-lg",children:[(0,a.jsx)("span",{children:e.question}),(0,a.jsx)(M.ChevronDown,{className:"h-5 w-5 shrink-0 text-white/35 transition-transform group-open:rotate-180"})]}),(0,a.jsxs)("div",{className:"max-w-3xl pb-6 text-sm font-light leading-7 text-white/55 sm:text-base",children:[(0,a.jsx)("p",{children:(0,a.jsx)(P,{text:e.answer,links:e.answerLinks})}),e.details?.list&&(0,a.jsx)("ul",{className:"mt-3 space-y-2 pl-5",children:e.details.list.map(e=>(0,a.jsx)("li",{className:"list-disc",dangerouslySetInnerHTML:{__html:e}},e))}),e.details?.outro&&(0,a.jsx)("p",{className:"mt-3",children:e.details.outro})]})]},e.question))})]}),(0,a.jsx)("section",{id:"start-creating",className:"scroll-mt-20 px-5 pb-24 pt-8 sm:px-8 lg:pb-32",children:(0,a.jsxs)("div",{className:`${R.default.ctaCard} relative mx-auto max-w-7xl overflow-hidden rounded-[2.5rem] border-0 bg-[#111216] shadow-[0_40px_120px_rgba(0,0,0,0.45)]`,children:[(0,a.jsxs)("picture",{className:R.default.ctaArtwork,children:[(0,a.jsx)("source",{media:"(min-width: 640px)",srcSet:"/landing/start-creating-desktop.webp"}),(0,a.jsx)(s.default,{src:"/landing/start-creating-mobile.webp",alt:p,fill:!0,className:"object-cover object-center",sizes:"(max-width: 639px) 90vw, (max-width: 1280px) 94vw, 1280px"})]}),(0,a.jsx)("div",{className:R.default.ctaOverlay}),(0,a.jsxs)("div",{className:`${R.default.ctaContent} relative flex max-w-3xl flex-col justify-center p-7 sm:p-12 lg:p-16`,children:[(0,a.jsxs)("h2",{className:L,children:[n," ",(0,a.jsx)("span",{className:R.default.pinkText,children:o})]}),(0,a.jsx)("p",{className:"mt-5 max-w-2xl text-sm font-light leading-7 text-white/65 sm:text-base",children:d}),(0,a.jsxs)(m.Link,{href:"/home",className:"mt-7 inline-flex w-fit items-center gap-3 rounded-full bg-[#ff2f7d] px-7 py-4 text-sm font-bold text-white transition-transform hover:scale-[1.03] sm:text-base",children:[c," ",(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4"})]})]})]})})]})}let B=(0,u.default)("Laugh",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M18 13a6 6 0 0 1-6 5 6 6 0 0 1-6-5h12Z",key:"b2q4dd"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);var F=e.i(832793);function q({speed:e=18}={}){let a=(0,t.useRef)(null),r=(0,t.useRef)(null),s=(0,t.useRef)(0),i=(0,t.useRef)(!1),l=(0,t.useRef)(!1),n=(0,t.useRef)(!0),o=(0,t.useRef)(!1),d=(0,t.useRef)(null),c=(0,t.useCallback)(()=>{null!==d.current&&window.clearTimeout(d.current),i.current=!0},[]),m=(0,t.useCallback)((e=1200)=>{null!==d.current&&window.clearTimeout(d.current),d.current=window.setTimeout(()=>{i.current=!1,d.current=null},e)},[]);(0,t.useEffect)(()=>{let t=a.current,c=r.current;if(!t||!c)return;let m=()=>{s.current=c.scrollWidth/2};m();let p=new ResizeObserver(m);p.observe(t),p.observe(c);let h=new IntersectionObserver(([e])=>{l.current=e?.isIntersecting??!1},{threshold:.15});h.observe(t);let u=window.matchMedia("(prefers-reduced-motion: reduce)"),x=()=>{o.current=u.matches};x(),u.addEventListener("change",x);let f=()=>{n.current="visible"===document.visibilityState};f(),document.addEventListener("visibilitychange",f);let g=0,b=performance.now(),w=t.scrollLeft,v=a=>{let r=Math.min(a-b,64);b=a;let d=s.current;d>t.clientWidth&&!i.current&&l.current&&n.current&&!o.current?((w+=r/1e3*e)>
1=d&&(w-=d),t.scrollLeft=w):w=t.scrollLeft,g=window.requestAnimationFrame(v)};return g=window.requestAnimationFrame(v),()=>{window.cancelAnimationFrame(g),p.disconnect(),h.disconnect(),u.removeEventListener("change",x),document.removeEventListener("visibilitychange",f),null!==d.current&&window.clearTimeout(d.current)}},[e]);let p=(0,t.useCallback)(e=>{let t=a.current;t&&(c(),e<0&&t.scrollLeft<=1&&(t.scrollLeft=s.current),t.scrollBy({left:e,behavior:"smooth"}),m(2200))},[c,m]);return{railRef:a,trackRef:r,scrollBy:p,interactionProps:{onPointerEnter:e=>{"mouse"===e.pointerType&&c()},onPointerLeave:e=>{"mouse"===e.pointerType&&m(500)},onPointerDown:()=>c(),onPointerUp:()=>m(1800),onPointerCancel:()=>m(800),onFocusCapture:()=>c(),onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||m(1e3)},onWheelCapture:()=>{c(),m(1600)}}}}let K={square:"aspect-square w-[72vw] max-w-[320px] sm:w-[300px] lg:w-[320px]",landscape:"aspect-[16/10] w-[84vw] max-w-[520px] sm:w-[470px] lg:w-[500px]",portrait:"aspect-[3/4] w-[62vw] max-w-[270px] sm:w-[250px] lg:w-[270px]"};function D({showcase:e,index:t}){let l=(0,r.useTranslations)("landingRevamp.showcase"),{railRef:n,trackRef:o,scrollBy:d,interactionProps:c}=q({speed:16}),p=[...e.images,...e.images],h=e=>{d("left"===e?-560:560)};return(0,a.jsxs)("article",{children:[(0,a.jsxs)("div",{className:"mx-auto flex max-w-[1500px] items-end justify-between gap-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-3xl font-black tracking-[-0.04em] text-white sm:text-4xl",children:e.name}),(0,a.jsx)("p",{className:"mt-2 max-w-2xl text-sm font-light leading-6 text-white/55 sm:text-base",children:l(`models.${t}.description`)})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,a.jsx)("button",{type:"button",onClick:()=>h("left"),className:"flex h-10 w-10 items-center justify-center rounded-full border border-white/12 bg-white/[0.03] text-white/65 transition-colors hover:border-white/25 hover:text-white","aria-label":l("previousAria",{model:e.name}),children:(0,a.jsx)(F.ArrowLeft,{className:"h-4 w-4"})}),(0,a.jsx)("button",{type:"button",onClick:()=>h("right"),className:"flex h-10 w-10 items-center justify-center rounded-full border border-white/12 bg-white/[0.03] text-white/65 transition-colors hover:border-white/25 hover:text-white","aria-label":l("moreAria",{model:e.name}),children:(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4"})})]})]}),(0,a.jsx)("div",{ref:n,...c,"data-auto-loop-rail":`showcase-${t}`,tabIndex:0,"aria-label":l("railAria",{model:e.name}),className:`-mx-5 mt-7 overflow-x-auto px-5 pb-3 sm:-mx-8 sm:px-8 lg:mx-auto lg:max-w-[1500px] lg:px-0 ${R.default.showcaseRail}`,children:(0,a.jsx)("div",{ref:o,className:"flex w-max gap-4 pr-4",children:p.map((t,r)=>{var i;let n,o=r>=e.images.length;return(0,a.jsxs)(m.Link,{href:(i=t.feedId,n=e.href.includes("?")?"&":"?",`${e.href}${n}feed=${encodeURIComponent(i)}`),"aria-hidden":o?"true":void 0,tabIndex:o?-1:void 0,className:`group relative shrink-0 overflow-hidden rounded-[1.5rem] border border-white/10 bg-[#141519] ${K[e.imageLayout]}`,"aria-label":o?void 0:l("openArtworkAria",{model:e.name}),children:[(0,a.jsx)(s.default,{src:t.src,alt:o?"":l("imageAlt",{model:e.name}),fill:!0,className:"object-cover transition-transform duration-700 group-hover:scale-[1.035]",sizes:"landscape"===e.imageLayout?"(max-width: 640px) 84vw, 500px":"(max-width: 640px) 72vw, 320px"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/35 via-trans
1parent to-transparent opacity-70 transition-opacity group-hover:opacity-40"})]},`${t.feedId}-${o?"duplicate":"primary"}`)})})}),(0,a.jsx)("div",{className:"mx-auto mt-4 flex max-w-[1500px] justify-end",children:(0,a.jsxs)(m.Link,{href:e.ctaHref??e.href,className:"inline-flex items-center gap-2 text-sm font-bold text-white/65 transition-colors hover:text-[#ff629d]",children:[l("createWith",{model:e.name}),(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4"})]})})]})}function G(){let e=(0,r.useTranslations)("landingRevamp.showcase");return(0,a.jsxs)("section",{id:"gallery",className:"scroll-mt-20 px-5 py-24 sm:px-8 lg:py-36",children:[(0,a.jsx)(A,{title:(0,a.jsxs)(a.Fragment,{children:[e("titleStart")," ",(0,a.jsx)("span",{className:R.default.pinkText,children:e("titleAccent")})," ",e("titleEnd")]}),description:(0,a.jsx)(a.Fragment,{children:e.rich("description",{anima:e=>(0,a.jsx)(C,{href:"/image-generator/kusa-anima",children:e}),gpt:e=>(0,a.jsx)(C,{href:"/play/gpt-image-2",children:e})})})}),(0,a.jsx)("div",{className:"mt-16 space-y-20 lg:space-y-24",children:_.map((e,t)=>(0,a.jsx)(D,{showcase:e,index:t},e.name))})]})}function z(){let e=(0,r.useTranslations)("landingRevamp.library");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(G,{}),(0,a.jsxs)("section",{id:"library",className:"scroll-mt-20 px-5 py-24 sm:px-8 lg:py-32",children:[(0,a.jsx)(A,{title:(0,a.jsxs)(a.Fragment,{children:[e("titleStart")," ",(0,a.jsx)("span",{className:R.default.pinkText,children:e("titleAccent")})]}),description:(0,a.jsx)(a.Fragment,{children:e.rich("description",{styles:e=>(0,a.jsx)(C,{href:"/library/styles",children:e}),prompts:e=>(0,a.jsx)(C,{href:"/library",children:e}),memes:e=>(0,a.jsx)(C,{href:"/library/meme",children:e})})})}),(0,a.jsxs)("div",{className:"mx-auto mt-14 grid max-w-7xl gap-5 lg:grid-cols-2",children:[(0,a.jsxs)(m.Link,{href:"/library/styles",className:"group relative min-h-[470px] overflow-hidden rounded-[2rem] border-0 bg-[#16171a] p-7 sm:p-9",children:[(0,a.jsx)("div",{className:"absolute inset-0 grid grid-cols-3 gap-2 p-4 opacity-65 transition-transform duration-700 group-hover:scale-[1.03]",children:["Cel-Shaded Anime.webp","Glossy Seductive Anime.webp","Prismatic Light Anime .webp"].map(t=>(0,a.jsx)("div",{className:"relative overflow-hidden rounded-2xl",children:(0,a.jsx)(s.default,{src:`/landing/Recommend/${t}`,alt:e("styles.alt"),fill:!0,className:"object-cover",sizes:"220px"})},t))}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/45 to-transparent"}),(0,a.jsxs)("div",{className:"relative flex h-full min-h-[402px] flex-col justify-end",children:[(0,a.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-[#ff2f7d] text-white",children:(0,a.jsx)(c.Sparkles,{className:"h-5 w-5"})}),(0,a.jsx)("h3",{className:"mt-5 text-3xl font-black text-white sm:text-4xl",children:e("styles.title")}),(0,a.jsx)("p",{className:"mt-3 max-w-lg text-sm leading-6 text-white/65 sm:text-base",children:e("styles.description")}),(0,a.jsxs)("span",{className:"mt-6 inline-flex items-center gap-2 text-sm font-bold text-[#ff6ca3]",children:[e("styles.cta")," ",(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4"})]})]})]}),(0,a.jsxs)(m.Link,{href:"/library/meme",className:"group relative min-h-[470px] overflow-hidden rounded-[2rem] border-0 bg-[#16171a] p-7 sm:p-9",children:[(0,a.jsx)("div",{className:"absolute inset-0 grid grid-cols-3 gap-2 p-4 opacity-62 transition-transform duration-700 group-hover:scale-[1.03]",children:["ai-generated-Memes (2).webp","ai-generated-Memes (5).webp","ai-generated-Memes (8).webp"].map(t=>(0,a.jsx)("div",{className:"relative overflow-hidden rounded-2xl",children:(0,a.jsx)(s.default,{src:`/landing/Memes/${t}`,alt:e("memes.alt"),fill:!0,className:"object-cover",sizes:"220px"})},t))}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/45 to-transparent"}),(0,a.jsxs)("div",{className:"relative flex h-full min-h-[402px] flex-col justify-end",children:[(0,a.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-[#ff2f7d] text-white",children:(0,a.jsx)(B,{className:"h-5 w-5"})}),(0,a.jsx)("h3",{className:"mt-5 text-3xl font-black text-white sm:text-4xl",children:e("memes.title")}),(0,a.jsx)("p",{className:"mt-3 max-w-lg text-sm leading-6 text-white/65 sm:text-base",children:e("memes.description")}),(0,a.jsxs)("span",{className:"mt-6 inline-flex items-center gap-2 text-sm font-bold text-[#ff6ca3]",children:[e("memes.cta")," ",(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4"})]})]})]})]}),(0,a.jsx)("div",{className:"mt-10 flex justify-center",children:(0,a.jsxs)(m.Link,{href:"/library",className:"inline-flex items-center gap-2 rounded-full bg-[#ff2f7d] px-7 py-3.5 text-sm font-bold text-white shadow-[0_18px_60px_rgba(255,47,125,0.22)] transition-transform hover:scale-[1.03] sm:text-base",children:[e("viewAll"),(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4"})]})})]})]})}var W=e.i(287359);let V="https://cdn.kusa.pics/admin/uploads/images/9e63c399-62f8-4eb5-ab6d-682c2166a2c9.webp";function H(){let e=(0,r.useTranslations)("landingRevamp.hero");return(0,W.preload)(V,{as:"image",fetchPriority:"high"}),(0,a.jsxs)("section",{id:"hero",className:"relative flex min-h-[100svh] items-end overflow-hidden bg-black pb-14 pt-28 sm:pb-20 lg:pb-24",children:[(0,a.jsx)("video",{autoPlay:!0,muted:!0,loop:!0,playsInl
1ine:!0,poster:V,className:"absolute inset-0 h-full w-full object-cover object-center","aria-label":e("videoAria"),children:(0,a.jsx)("source",{src:"https://cdn.kusa.pics/admin/uploads/videos/6a68e6b5-3420-4211-97cf-deaabdd162ff.webm",type:"video/webm"})}),(0,a.jsx)("div",{className:`absolute inset-0 ${R.default.heroShade}`}),(0,a.jsxs)("div",{className:"relative z-10 mx-auto flex w-full max-w-6xl flex-col items-center px-5 text-center text-white sm:px-8",children:[(0,a.jsxs)("h1",{className:"max-w-4xl text-balance text-[clamp(2.35rem,4.4vw,4.25rem)] font-black leading-[0.98] tracking-[-0.05em] text-white drop-shadow-2xl",children:[e("title"),(0,a.jsx)("span",{className:`block pb-[0.08em] ${R.default.pinkText}`,children:e("accent")})]}),(0,a.jsx)("p",{className:"mt-7 max-w-4xl text-pretty text-base font-light leading-7 text-white/78 sm:text-lg lg:text-xl lg:leading-8",children:e.rich("description",{imageGenerator:e=>(0,a.jsx)(C,{href:"/image-generator",children:e}),ocGenerator:e=>(0,a.jsx)(C,{href:"/oc-generator",children:e})})}),(0,a.jsxs)(m.Link,{href:"/home",className:"mt-8 inline-flex h-11 items-center gap-2.5 rounded-full bg-[#ff2f7d] px-6 text-sm font-bold text-white shadow-[0_18px_60px_rgba(255,47,125,0.35)] transition-transform hover:scale-[1.03] sm:px-7 sm:text-base",children:[e("cta"),(0,a.jsx)(i.ArrowRight,{className:"h-5 w-5"})]})]})]})}var X=e.i(36898),Q=e.i(407576),Z=e.i(184897),U=e.i(47159),Y=e.i(167881),J=e.i(838645),ee=e.i(178192),ea=e.i(684585),et=e.i(144530),er=e.i(561567),es=e.i(543547),ei=e.i(67256),el=e.i(277717),en=e.i(438437);let eo=(0,u.default)("PencilRuler",[["path",{d:"M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13",key:"orapub"}],["path",{d:"m8 6 2-2",key:"115y1s"}],["path",{d:"m18 16 2-2",key:"ee94s4"}],["path",{d:"m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17",key:"cfq27r"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);var ed=e.i(494735),ec=e.i(333128),em=e.i(955570);let ep=[{label:"Image Generator",href:"/image-generator",description:"Create anime images from prompts and references.",icon:el.Images},{label:"Video Generator",href:"/image-to-video",description:"Turn still images into expressive anime videos.",icon:em.Video},{label:"All Features",href:"/play",description:"Browse every KusArt creation tool.",icon:es.Grid2X2}],eh=[{label:"Character Editing",icon:eo,links:[{label:"OC Editor",href:"/oc-edit"},{label:"AI Pose Changer",href:"/play/ai-pose-changer"},{label:"AI Clothes Changer",href:"/play/ai-outfit-changer"}]},{label:"Character Creation",icon:ec.UserRound,links:[{label:"OC Generator",href:"/oc-generator"},{label:"Character Sheet",href:"/play/character-sheet-generator"},{label:"Emoji Workshop",href:"/emoji-workshop"}]},{label:"AI Models",icon:x,links:[{label:"GPT Image 2",href:"/play/gpt-image-2"},{label:"Nano Banana",href:"/nano-banana"}]},{label:"Fandom",icon:ei.Heart,links:[{label:"Couple Pose Generator",href:"/play/couple-pose-generator"},{label:"Meme Remaker",href:"/play/meme-remaker"},{label:"AI Manga Generator",href:"/play/ai-manga-generator"}]},{label:"Art & Design",icon:c.Sparkles,links:[{label:"Chibi Sticker Maker",href:"/play/ai-chibi-sticker-maker"},{label:"Anime Postcard Maker",href:"/play/ai-anime-healing-postcard-maker"},{label:"Anime Album Cover",href:"/play/ai-anime-album-cover-maker"}]}],eu=[{label:"Anime Art Styles",href:"/library/styles",description:"Explore curated anime aesthetics and prompts.",icon:w.Palette},{label:"Meme Templates",href:"/library/meme",description:"Remix reactions and popular meme formats.",icon:ed.Smile},{label:"All Resources",href:"/library",description:"Browse the complete KusArt Library.",icon:en.Library}],ex=[{label:"Agent",href:"/chat"},{label:"Blog",href:"/blog"},{label:"Pricing",href:"/manage-subscription"},{label:"API",href:"/api-for-business"}];function ef(){let e=(0,r.useTranslations)("landingRevamp.navigation"),a=e.raw("highlights"),t=e.raw("groups"),s=e.raw("resourceLinks"),i=e.raw("primaryLinks");return{t:e,highlights:ep.map((e,t)=>({...e,...a[t]})),groups:eh.map((e,a)=>({...e,label:t[a].label,links:e.links.map((e,r)=>({...e,...t[a].links[r]}))}
1)),resources:eu.map((e,a)=>({...e,...s[a]})),primary:ex.map((e,a)=>({...e,...i[a]}))}}function eg({item:e,onNavigate:t}){let r=e.icon;return(0,a.jsxs)(m.Link,{href:e.href,onClick:t,className:"flex gap-3 rounded-xl px-3 py-3 transition-colors hover:bg-white/[0.06] focus-visible:bg-white/[0.06] focus-visible:outline-none",children:[r&&(0,a.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-[#ff3f87]/12 text-[#ff5d98]",children:(0,a.jsx)(r,{className:"h-4 w-4"})}),(0,a.jsxs)("span",{className:"min-w-0",children:[(0,a.jsx)("span",{className:"block text-sm font-semibold text-white",children:e.label}),e.description&&(0,a.jsx)("span",{className:"mt-1 block text-xs leading-5 text-white/42",children:e.description})]})]})}function eb({label:e}){return(0,a.jsxs)("button",{type:"button",className:"flex items-center gap-1.5 py-4 text-sm font-medium text-white/72 transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none","aria-haspopup":"true",children:[e,(0,a.jsx)(M.ChevronDown,{className:"h-3.5 w-3.5 transition-transform duration-200 group-hover:rotate-180 group-focus-within:rotate-180"})]})}function ew(){let{t:e,highlights:t,groups:r,resources:s,primary:i}=ef();return(0,a.jsxs)("nav",{className:"hidden items-center gap-6 lg:flex","aria-label":e("primaryAria"),children:[(0,a.jsxs)("div",{className:"group relative",children:[(0,a.jsx)(eb,{label:e("features")}),(0,a.jsx)("div",{className:"pointer-events-none invisible absolute left-1/2 top-full w-[920px] -translate-x-[35%] translate-y-2 pt-3 opacity-0 transition-all duration-200 group-hover:pointer-events-auto group-hover:visible group-hover:translate-y-0 group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:visible group-focus-within:translate-y-0 group-focus-within:opacity-100 xl:w-[980px]",children:(0,a.jsxs)("div",{className:"grid grid-cols-[250px_1fr] gap-3 rounded-3xl border border-white/10 bg-[#0d0e11]/[0.98] p-3 shadow-[0_28px_90px_rgba(0,0,0,0.62)] backdrop-blur-2xl",children:[(0,a.jsxs)("div",{className:"border-r border-white/8 pr-3",children:[(0,a.jsx)("p",{className:"px-3 pb-2 pt-1 text-[11px] font-semibold uppercase tracking-[0.18em] text-white/35",children:e("startCreating")}),t.map(e=>(0,a.jsx)(eg,{item:e},e.href))]}),(0,a.jsx)("div",{className:"grid grid-cols-3 gap-x-5 gap-y-5 p-3",children:r.map(e=>(0,a.jsxs)("section",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold text-white",children:[(0,a.jsx)(e.icon,{className:"h-4 w-4 text-[#ff5d98]"}),(0,a.jsx)("span",{children:e.label})]}),(0,a.jsx)("ul",{className:"mt-2 space-y-0.5",children:e.links.map(e=>(0,a.jsx)("li",{children:(0,a.jsx)(m.Link,{href:e.href,className:"block rounded-lg px-1 py-1.5 text-xs text-white/50 transition-colors hover:text-white focus-visible:text-white focus-visible:outline-none",children:e.label})},e.href))})]},e.label))})]})})]}),(0,a.jsxs)("div",{className:"group relative",children:[(0,a.jsx)(eb,{label:e("resources")}),(0,a.jsx)("div",{className:"pointer-events-none invisible absolute left-1/2 top-full w-[340px] -translate-x-1/2 translate-y-2 pt-3 opacity-0 transition-all duration-200 group-hover:pointer-events-auto group-hover:visible group-hover:translate-y-0 group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:visible group-focus-within:translate-y-0 group-focus-within:opacity-100",children:(0,a.jsx)("div",{className:"rounded-3xl border border-white/10 bg-[#0d0e11]/[0.98] p-3 shadow-[0_28px_90px_rgba(0,0,0,0.62)] backdrop-blur-2xl",children:s.map(e=>(0,a.jsx)(eg,{item:e},e.href))})})]}),i.map(e=>(0,a.jsx)(m.Link,{href:e.href,className:"text-sm font-medium text-white/72 transition-colors hover:text-white",children:e.label},e.href))]})}function ev({onNavigate:e}){let[r,s]=(0,t.useState)(null),{t:i,highlights:l,groups:n,resources:o,primary:d}=ef(),c=e=>{s(a=>a===e?null:e)};return(0,a.jsxs)("nav",{"aria-label":i("mobileAria"),className:"space-y-1",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>c("features"),"aria-expanded":"features"===r,className:"flex w-full items-center justify-between rounded-xl px-3 py-3 text-left text-sm font-semibold text-white/82 hover:bg-white/5",children:[i("features"),(0,a.jsx)(M.ChevronDown,{className:`h-4 w-4 transition-transform ${"features"===r?"rotate-180":""}`})]}),"features"===r&&(0,a.jsxs)("div",{className:"space-y-5 border-l border-white/10 px-3 pb-3 pl-4",children:[(0,a.jsx)("div",{className:"space-y-1",children:l.map(t=>(0,a.jsx)(eg,{item:t,onNavigate:e},t.href))}),n.map(t=>(0,a.jsxs)("section",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.12em] text-[#ff6ca3]",children:[(0,a.jsx)(t.icon,{className:"h-3.5 w-3.5"}),t.label]}),(0,a.jsx)("div",{className:"mt-2 grid grid-cols-2 gap-x-3",children:t.links.map(t=>(0,a.jsxs)(m.Link,{href:t.href,onClick:e,className:"flex items-center justify-between gap-2 py-2 text-xs text-white/55 hover:text-white",children:[(0,a.jsx)("span",{children:t.label}),(0,a.jsx)(er.ChevronRight,{className:"h-3 w-3 shrink-0"})]},t.href))})]},t.label))]}),(0,a.jsxs)("button",{type:"button",onClick:()=>c("resources"),"aria-expanded":"resources"===r,className:"flex w-full items-center justify-between rounded-xl px-3 py-3 text-left text-sm font-semibold text-white/82 hover:bg-white/5",children:[i("resources"),(0,a.jsx)(M.ChevronDown,{className:`h-4 w-4 transition-transform ${"resources"===r?"rotate-180":""}`})]}),"resources"===r&&(0,a.jsx)("div",{className:"space-y-1 border-l border-white/10 px-3 pb-3 pl-4",children:o.map(t=>(0,a.jsx)(eg,{item:t,onNavigate:e},t.href))}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-1 pt-1",children:d.map(t=>(0,a.jsx)(m.Link,{href:t.href,onClick:e,className:"rounded-xl px-3 py-3 text-sm font-semibold text-white/72 hover:bg-white/5 hover:text-white",children:t.label},t.href))})]})}function ej(){let e=(0,r.useTranslations)("landingRevamp.navigation"),[i,l]=(0,t.useState)(!1),{user:n,loading:o}=(0,J.useAuthState)(),{credits:d}=(0,ee.useCredits)(),{open:p}=(0,ea.useBuyCreditDialogStore)();return(0,a.jsxs)("header",{id:"header",className:"fixed inset-x-0 top-0 z-[10900] px-3 pt-3 sm:px-5 sm:pt-5",children:[(0,a.jsxs)("div",{className:"mx-auto flex h-14 max-w-[1500px] items-center justify-between rounded-full border border-white/10 bg-black/35 px-4 text-white shadow-2xl shadow-black/20 backdrop-blur-xl sm:px-6",children:[(0,a.jsx)(m.Link,{href:"/",className:"shrink-0","aria-label":e("homeAria"),children:(0,a.jsx)(s.default,{src:"/logo.png",alt:"KusArt",width:160,height:48,className:"h-7 w-auto",priority:!0})}),(0,a.jsx)(ew,{}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[!
1o&&!n&&(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)(Z.LocaleSwitcher,{iconOnly:!0,triggerClassName:"border-white/10 bg-white/10 text-white hover:bg-white/15"})}),!o&&n&&null!=d&&(0,a.jsxs)("button",{type:"button",onClick:()=>{(0,et.trackUpgradeClicked)({source:"landing_nav",current_credits:d.available,user_id:n.uid}),p("general_purchase","general")},className:"hidden items-center gap-1.5 rounded-full bg-white/10 px-3 py-1.5 text-sm font-semibold tabular-nums text-white transition-colors hover:bg-white/15 sm:flex",children:[d.available,(0,a.jsx)(c.Sparkles,{className:"h-4 w-4","aria-hidden":!0})]}),(0,a.jsx)(U.UserMenu,{}),!o&&!n&&(0,a.jsx)(Y.Button,{asChild:!0,className:"hidden rounded-full bg-[#ff2f7d] px-5 text-white hover:bg-[#ed236f] sm:inline-flex",children:(0,a.jsx)(m.Link,{href:"/home",children:e("getStarted")})}),(0,a.jsx)("button",{type:"button",onClick:()=>l(e=>!e),className:"flex h-9 w-9 items-center justify-center rounded-full bg-white/10 text-white lg:hidden","aria-label":e(i?"closeNavigation":"openNavigation"),"aria-expanded":i,children:i?(0,a.jsx)(Q.X,{className:"h-5 w-5"}):(0,a.jsx)(X.Menu,{className:"h-5 w-5"})})]})]}),i&&(0,a.jsxs)("div",{className:"mx-auto mt-2 max-h-[calc(100svh-5.5rem)] max-w-[1500px] overflow-y-auto rounded-3xl border border-white/10 bg-[#111216]/95 p-4 text-white shadow-2xl backdrop-blur-xl lg:hidden",children:[(0,a.jsx)(ev,{onNavigate:()=>l(!1)}),!n&&(0,a.jsx)("div",{className:"mt-3 border-t border-white/10 pt-3",children:(0,a.jsx)(Z.LocaleSwitcher,{triggerClassName:"w-full border-white/10 bg-white/5 text-white"})})]})]})}function ey({src:e,type:r,poster:s,className:i}){let l=(0,t.useRef)(null),[n,o]=(0,t.useState)(!1),[d,c]=(0,t.useState)(!1);(0,t.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>c(e.matches);return a(),e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[]),(0,t.useEffect)(()=>{let e=l.current;if(!e)return;let a=new IntersectionObserver(([e])=>o(e?.isIntersecting??!1),{rootMargin:"120px",threshold:.1});return a.observe(e),()=>a.disconnect()},[]),(0,t.useEffect)(()=>{let e=l.current;if(e){if(!n||d)return void e.pause();e.load(),e.play().catch(()=>void 0)}},[n,d]);let m=n&&!d;return(0,a.jsx)("video",{ref:l,muted:!0,loop:!0,playsInline:!0,preload:"none",poster:s,"aria-hidden":"true",className:i,onCanPlay:e=>{m&&e.currentTarget.play().catch(()=>void 0)},children:m&&(0,a.jsx)("source",{src:e,type:r})})}function eN(){let e=(0,r.useTranslations)("landingRevamp.models"),t=e.raw("types"),{railRef:l,trackRef:n,interactionProps:o}=q({speed:17}),d=[...k,...k];return(0,a.jsx)("section",{id:"models",className:"scroll-mt-20 overflow-hidden px-5 py-24 sm:px-8 lg:py-32",children:(0,a.jsxs)("div",{className:"mx-auto max-w-[1500px]",children:[(0,a.jsxs)("div",{className:"grid items-end gap-10 lg:grid-cols-[1.1fr_0.9fr] lg:gap-20",children:[(0,a.jsxs)("h2",{className:`max-w-4xl ${L}`,children:[(0,a.jsx)("span",{className:"block",children:e("title")}),(0,a.jsx)("span",{className:`mt-2 block ${R.default.pinkText}`,children:e("accent")})]}),(0,a.jsx)("p",{className:"max-w-2xl text-base font-light leading-8 text-white/58 sm:text-lg lg:pb-2",children:e.rich("description",{niji:e=>(0,a.jsx)(C,{href:"/image-generator/kusa-niji",children:e}),easy:e=>(0,a.jsx)(C,{href:"/image-generator/kusa-easy",children:e}),mix:e=>(0,a.jsx)(C,{href:"/image-generator/kusa-mix",children:e}),nano:e=>(0,a.jsx)(C,{href:"/nano-banana",children:e})})})]}),(0,a.jsxs)(m.Link,{href:"/home",className:"mt-10 inline-flex items-center gap-3 text-base font-bold text-white transition-colors hover:text-[#ff5f9b] sm:text-lg",children:[e("cta")," ",(0,a.jsx)(i.ArrowRight,{className:"h-5 w-5"})]}),(0,a.jsx)("div",{ref:l,...o,"data-auto-loop-rail":"models",className:`-mx-5 mt-8 overflow-x-auto px-5 pb-4 sm:-mx-8 sm:px-8 lg:mx-0 lg:px-0 ${R.default.modelRail}`,children:(0,a.jsx)("div",{ref:n,className:"flex w-max gap-4 pr-4",children:d.map((r,l)=>{let n=l%k.length,o=l>=k.length;return(0,a.jsxs)(m.Link,{href:r.href,"aria-hidden":o?"true":void 0,tabIndex:o?-1:void 0,className:`group relative aspect-[0.84] shrink-0 overflow-hidden rounded-2xl border-0 bg-[#17181b] shadow-[0_24px_70px_rgba(0,0,0,0.42)] ${R.default.modelLoopCard}`,children:[r.video?(0,a.jsx)(ey,{src:r.video.src,type:r.video.type,poster:r.image,className:"absolute inset-0 h-full w-full object-cover transition-transform duration-700 group-hover:scale-[1.04]"}):(0,a.jsx)(s.default,{src:r.image,alt:o?"":e("previewAlt",{model:r.name,type:t[n]}),fill:!0,className:"object-cover transition-transform duration-700 group-hover:scale-[1.04]",sizes:"(max-width: 639px) 74vw, (max-width: 1023px) 38vw, 20vw"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/10 to-black/10"}),(0,a.jsx)("span",{className:"absolute right-5 top-5 flex h-10 w-10 items-center justify-center rounded-full border border-white/20 bg-black/25 text-white opacity-0 backdrop-blur-md transition-all group-hover:translate-x-0.5 group-hover:opacity-100",children:(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4"})}),(0,a.jsxs)("div",{className:"absolute inset-x-0 bottom-0 p-5 sm:p-6 lg:p-7",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.16em] text-white/58 sm:text-sm",children:t[n]}),(0,a.jsx)("h3",{className:"mt-2 max-w-[14ch] text-2xl font-black leading-[0.96] tracking-[-0.04em] text-white sm:text-3xl lg:text-[2rem]",children:r.name})]})]},`${r.name}-${o?"duplicate":"primary"}`)})})})]})})}var ek=e.i(132835);function e_({item:e,index:t}){let i=(0,r.useTranslations)("landingRevamp.testimonials");return(0,a.jsxs)("blockquote",{className:"flex min-h-[290px] w-[330px] shrink-0 flex-col rounded-3xl border-0 bg-[#17181c] p-6 sm:w-[390px] sm:p-7",children:[(0,a.jsx)("div",{className:"flex gap-1 text-[#ff4388]","aria-label":i("ratingAria"),children:Array.from({length:5},(e,t)=>(0,a.jsx)(ek.Star,{className:"h-4 w-4 fill-current"},t))}),(0,a.jsxs)("p",{className:"mt-7 flex-1 text-sm font-light leading-7 text-white/58 sm:text-base",children:["“",e.text,"”"]}),(0,a.jsxs)("footer",{className:"mt-7 flex items-center gap-3",children:[(0,a.jsx)(s.default,{src:T[t%T.length],alt:`${e.name}, ${e.position}`,width:48,height:48,className:"h-12 w-12 rounded-full border border-[#ff6ca3]/55 object-cover"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("cite",{className:"not-italic text-sm font-bold text-white",children:e.name}),(0,a.jsx)("p",{className:"mt-0.5 text-xs font-medium text-white/40",children:e.position})]})]})]})}function eS({items:e,reverse:t=!1,offset:r=0}){let s=[...e,...e];return(0,a.jsx)("div",{className:`overflow-hidden ${R.default.marqueeViewport}`,children:(0,a.jsx)("div",{className:`flex gap-4 py-2 ${R.default.marqueeTrack} ${t?R.default.marqueeReverse:""}`,children:s.map((t,s)=>(0,a.jsx)(e_,{item:t,index:r+s%e.length},`${t.name}-${s}`))})})}function eT({items:e}){let t=(0,r.useTranslations)("landingRevamp.testimonials"),s=Math.max(1,Math.ceil(e.length/2)),i=e.slice(0,s),l=e.slice(s);return(0,a.jsxs)("section",{className:"overflow-hidden py-24 lg:py-36",children:[(0,a.jsxs)("div",{className:"px-5 text-center sm:px-8",children:[(0,a.jsxs)("h2",{className:L,children:[t("titleStart")," ",(0,a.jsx)("span",{className:R.default.pinkText,children:t("titleAccent")})]}),(0,a.jsx)("p",{className:"mx-auto mt-5 max-w-2xl text-base font-light leading-7 text-white/55 sm:text-lg",children:t("description")})]}),(0,a.jsxs)("div",{className:"mt-14 space-y-2",children:[(0,a.jsx)(eS,{items:i}),l.length>0&&(0,a.jsx)(eS,{items:l,reverse:!0,offset:s})]})]})}var eC=e.i(718502);function eP(){let e=(0,r.useTranslations)("landingRevamp.why"),t=e.raw("cards");return(0,a.jsxs)("section",{id:"why-kusart",className:"px-5 py-24 sm:px-8 lg:py-36",children:[(0,a.jsx)(A,{title:(0,a.jsxs)(a.Fragment,{children:[e("titleStart")," ",(0,a.jsx)("span",{className:R.default.pinkText,children:e("titleAccent")})]}),description:(0,a.jsx)(a.Fragment,{children:e.rich("description",{editing:e=>(0,a.jsx)(C,{href:"/oc-edit",children:e}),motion:e=>
1(0,a.jsx)(C,{href:"/image-to-video",children:e})})})}),(0,a.jsx)("div",{className:`mx-auto mt-16 max-w-[1500px] lg:mt-24 ${R.default.whyFan}`,children:(0,a.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:flex lg:justify-center lg:gap-0",children:S.map((e,r)=>(0,a.jsxs)("article",{className:`relative min-h-[330px] overflow-hidden rounded-[2rem] border-0 bg-[#18191b] p-6 shadow-[0_28px_80px_rgba(0,0,0,0.38)] sm:p-7 lg:-ml-16 lg:w-[270px] lg:shrink-0 lg:first:ml-0 xl:w-[300px] ${R.default.whyCard}`,children:[(0,a.jsx)("div",{className:"absolute right-0 top-0 h-32 w-32 rounded-full bg-[#ff2f7d]/10 blur-3xl"}),(0,a.jsxs)("div",{className:"flex items-start justify-between",children:[(0,a.jsx)("span",{className:"flex h-14 w-14 items-center justify-center rounded-2xl bg-[#ff2f7d]/15 text-[#ff4d90]",children:(0,a.jsx)(e.icon,{className:"h-7 w-7"})}),(0,a.jsx)(eC.ArrowUpRight,{className:"h-5 w-5 text-white/25"})]}),(0,a.jsx)("h3",{className:"mt-14 text-2xl font-black leading-tight text-[#ff4d90]",children:t[r].title}),(0,a.jsx)("p",{className:"mt-4 text-sm font-light leading-6 text-white/52",children:t[r].description})]},t[r].title))})})]})}let eO=(0,u.default)("MoveHorizontal",[["path",{d:"m18 8 4 4-4 4",key:"1ak13k"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}]]),eL=[{id:"outfit",labelKey:"editOutfit",ctaKey:"editOutfitCta",after:"/oc-edit/examples/outfit-after-uchikake.webp",href:"/play/ai-outfit-changer"},{id:"hairstyle",labelKey:"editHairstyle",ctaKey:"editHairstyleCta",after:"/oc-edit/examples/hairstyle-after-twintails.webp",href:"/play/ai-hairstyle-changer",beforeImageStyle:{transform:"scale(2.05)",transformOrigin:"50% 0%"},afterImageStyle:{transform:"scale(2.05)",transformOrigin:"50% 0%"}},{id:"pose",labelKey:"editPose",ctaKey:"editPoseCta",after:"/oc-edit/examples/pose-after-camera.webp",href:"/play/ai-pose-changer"}
1,{id:"background",labelKey:"editBackground",ctaKey:"editBackgroundCta",after:"/oc-edit/examples/background-after-cafe.webp",href:"/play/ai-background-changer"},{id:"face-swap",labelKey:"editFaceSwap",ctaKey:"editFaceSwapCta",after:"/oc-edit/examples/face-after-gothic.jpg",href:"/play/ai-face-swap",beforeImageStyle:{transform:"scale(2.75)",transformOrigin:"50% 0%"},afterImageStyle:{transform:"scale(2.75)",transformOrigin:"50% 0%"}}],eA=eL[0];function eR(){let e=(0,r.useTranslations)("landingRevamp.workflow.visuals"),[l,n]=(0,t.useState)(eA.id),[o,d]=(0,t.useState)(50),[c,p]=(0,t.useState)(!1),[h,u]=(0,t.useState)(!1),[x,f]=(0,t.useState)(!1),[g,b]=(0,t.useState)(!1),[w,v]=(0,t.useState)(!1),y=eL.find(e=>e.id===l)??eA,N=y.before??"/oc-edit/examples/outfit-before.webp",k=e(y.labelKey),_=c||x||g||w;(0,t.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>v(e.matches);return a(),e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[]),(0,t.useEffect)(()=>{if(_)return;let e=window.setTimeout(()=>{n(e=>{let a=eL.findIndex(a=>a.id===e);return eL[(a+1)%eL.length].id}),d(50)},3e3);return()=>window.clearTimeout(e)},[_,l]),(0,t.useEffect)(()=>{if(g||h||50===o)return;let e=window.setTimeout(()=>d(50),300);return()=>window.clearTimeout(e)},[o,h,g]);let S=e=>{let a=e.currentTarget.getBoundingClientRect();d(Math.min(100,Math.max(0,Math.round((e.clientX-a.left)/a.width*100))))},T=e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),b(!1)},C=o<=0?"polygon(0 0, 0 0, 0 100%, 0 100%)":o>=100?"polygon(0 0, 100% 0, 100% 100%, 0 100%)":`polygon(0 0, calc(${o}% + 14px) 0, calc(${o}% - 14px) 100%, 0 100%)`,P={"--comparison-position":`${o}%`};return(0,a.jsxs)("div",{className:`relative w-full min-w-0 max-w-full overflow-hidden rounded-[2rem] border-0 bg-[#0b0c0e] p-4 sm:p-6 ${R.default.editComparisonPanel} ${R.default.softGlow}`,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onFocusCapture:e=>f(e.target.matches(":focus-visible")),onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||f(!1)},children:[(0,a.jsx)("div",{className:"absolute -right-16 top-1/3 h-64 w-64 rounded-full bg-[#6d5dfc]/15 blur-3xl"}),(0,a.jsxs)("div",{className:"relative z-10 min-w-0",children:[(0,a.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(j.WandSparkles,{className:"h-4 w-4 text-[#8f82ff]"}),(0,a.jsx)("p",{className:"text-sm font-bold text-white",children:e("comparisonTitle")})]}),(0,a.jsxs)("span",{className:"sr-only",children:[eL.findIndex(e=>e.id===y.id)+1,"/",eL.length]})]}),(0,a.jsxs)("div",{className:R.default.editComparisonBody,children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"sr-only",children:e("chooseEdit")}),(0,a.jsx)("div",{className:"flex flex-col gap-2",role:"group","aria-label":e("chooseEdit"),children:eL.map(t=>{let r=e(t.labelKey),i=t.id===y.id;return(0,a.jsxs)("button",{type:"button","aria-pressed":i,"aria-label":e("editButtonAria",{name:r}),onClick:()=>{n(t.id),d(50)},className:`relative flex flex-col items-center gap-1 overflow-hidden rounded-xl border p-1.5 text-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff4f91] sm:flex-row sm:gap-2 sm:text-left ${R.default.editCategoryButton} ${i?"border-[#ff4f91] bg-[#ff2f7d]/10 text-white":"border-white/10 bg-white/[0.03] text-white/60 hover:border-white/25 hover:text-white"}`,children:[(0,a.jsx)("span",{className:"relative h-9 w-9 shrink-0 overflow-hidden rounded-lg bg-[#ececec] sm:h-11 sm:w-11",children:(0,a.jsx)(s.default,{src:t.after,alt:"",fill:!0,className:"object-cover object-top",sizes:"44px"})}),(0,a.jsx)("span",{className:"min-w-0 truncate text-[10px] font-semibold sm:text-xs",children:r}),i&&!_&&(0,a.jsx)("span",{className:R.default.editCategoryProgress,"aria-hidden":"true"},`${t.id}-progress`)]},t.id)})})]}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("div",{"data-testid":"edit-comparison-canvas",className:`group relative mx-auto overflow-hidden rounded-2xl border border-white/15 bg-[#ececec] shadow-2xl focus-within:ring-2 focus-within:ring-[#ff4f91] ${R.default.editComparisonCanvas} ${g||h?R.default.editComparisonTracking:""}`,style:P,onPointerEnter:e=>{"mouse"===e.pointerType&&u(!0)},onPointerLeave:e=>{"mouse"===e.pointerType&&u(!1)},onPointerDown:e=>{"mouse"!==e.pointerType&&(b(!0),e.currentTarget.setPointerCapture(e.pointerId)),S(e)},onPointerMove:e=>{("mouse"===e.pointerType||e.currentTarget.hasPointerCapture(e.pointerId))&&S(e)},onPointerUp:T,onPointerCancel:T,children:[(0,a.jsx)("div",{className:`absolute inset-0 ${R.default.editComparisonReveal}`,children:(0,a.jsx)(s.default,{src:y.after,alt:`${k} \xb7 ${e("after")}
1`,fill:!0,draggable:!1,className:"select-none object-cover",style:y.afterImageStyle,sizes:"(max-width: 640px) 76vw, 304px"})},y.id),(0,a.jsx)("div",{className:`absolute inset-0 ${R.default.editComparisonBefore} ${R.default.editComparisonReveal}`,style:{clipPath:C},children:(0,a.jsx)(s.default,{src:N,alt:e("before"),fill:!0,draggable:!1,className:"select-none object-cover",style:y.beforeImageStyle,sizes:"(max-width: 640px) 76vw, 304px"})},`${y.id}-before`),(0,a.jsx)("span",{className:"pointer-events-none absolute left-2.5 top-2.5 rounded-full border border-white/25 bg-black/55 px-2.5 py-1 text-[10px] font-semibold text-white shadow-lg backdrop-blur-sm sm:text-xs",children:e("before")}),(0,a.jsxs)("span",{className:"pointer-events-none absolute right-2.5 top-2.5 max-w-[46%] truncate rounded-full border border-white/25 bg-black/55 px-2.5 py-1 text-[10px] font-semibold text-white shadow-lg backdrop-blur-sm sm:text-xs",children:[e("after")," · ",k]}),(0,a.jsx)("div",{className:R.default.editComparisonDivider,"aria-hidden":"true"}),(0,a.jsx)("span",{className:R.default.editComparisonHandle,"aria-hidden":"true",children:(0,a.jsx)(eO,{className:"h-4 w-4",strokeWidth:2.5})}),(0,a.jsx)("input",{type:"range",min:"0",max:"100",value:o,onChange:e=>d(Number(e.target.value)),"aria-label":e("comparisonSliderAria",{name:k}),className:"pointer-events-none absolute inset-0 z-20 h-full w-full appearance-none opacity-0"})]}),(0,a.jsxs)(m.Link,{href:y.href,className:`group mx-auto mt-3 ${R.default.workflowPrimaryCta} ${R.default.editComparisonCta}`,children:[e(y.ctaKey),(0,a.jsx)("span",{className:R.default.workflowPrimaryCtaIcon,"aria-hidden":"true",children:(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})})]})]})]})]})]})}var eI=e.i(782666),e$=e.i(473168),eM=e.i(3562);let eE=[{id:"neko-cat-demon",name:"Neko",portrait:"/Oc-generator/example/kusapics-1761493103795.webp",tags:[{label:"Little Devil",image:"/Oc-generator/oc-prompt-%20picture/Halloween_classic/Little%20Devil.webp"},{label:"Paw Gloves",image:"/Oc-generator/oc-prompt-%20picture/Character%20Features/Gloves/Paw_Gloves.webp"},{label:"Bat Wings",image:"/Oc-generator/oc-prompt-%20picture/Clothing%20System/Special%20Features/Bat_Wings.webp"}
1,{label:"Gradient Hair",image:"/Oc-generator/oc-prompt-%20picture/Character%20Features/Hair%20Texture/Gradient_hair.webp"}]},{id:"aiden",name:"Aiden",portrait:"/Oc-generator/example/aiden.webp",tags:[{label:"Blonde Hair",image:"/Oc-generator/color-previews/hair-color/blonde.png"},{label:"Cyan Eyes",image:"/Oc-generator/color-previews/eye-color/cyan.png"},{label:"Bat Wings",image:"/Oc-generator/oc-prompt-%20picture/Clothing%20System/Special%20Features/Bat_Wings.webp"},{label:"Long Dress",image:"/Oc-generator/oc-prompt-%20picture/Clothing%20System/Dress/Long_Dress.webp"}]},{id:"kai",name:"Kai",portrait:"/Oc-generator/example/kusapics-1762453205643.webp",tags:[{label:"Wolf Ears",image:"/Oc-generator/oc-prompt-%20picture/Character%20Features/Ears/Wolf_ears.webp"},{label:"Gas Mask",image:"/Oc-generator/oc-prompt-%20picture/Character%20Features/Facial%20Features/Mask.webp"},{label:"Scarf",image:"/Oc-generator/oc-prompt-%20picture/Character%20Features/Neck%20Accessories/Scarf.webp"},{label:"Down Jacket",image:"/Oc-generator/oc-prompt-%20picture/Clothing%20System/Casual%20%26%20Loungewear/Down_Jacket.webp"}]},{id:"luna",name:"Luna",portrait:"/companyprofile/products/oc-maker/20251019-014209.webp",tags:[{label:"Pink Hair",image:"/O
1c-generator/color-previews/hair-color/pink.png"},{label:"Heterochromia",image:"/Oc-generator/oc-prompt-%20picture/Character%20Features/Pupil%20Shape/Heterochromia.webp"},{label:"Butterfly Wings",image:"/Oc-generator/oc-prompt-%20picture/Clothing%20System/Special%20Features/Butterfly_Wings.webp"},{label:"Off-shoulder Dress",image:"/Oc-generator/oc-prompt-%20picture/Clothing%20System/Dress/Off-shoulder_Dress.webp"}]},{id:"nova",name:"Nova",portrait:"/Oc-generator/example/kusapics-1761851433862.webp",tags:[{label:"Pumpkin Witch",image:"/Oc-generator/oc-prompt-%20picture/Halloween_costume/Pumpkin%20Witch.webp"},{label:"Pink Hair",image:"/Oc-generator/color-previews/hair-color/pink.png"},{label:"Cat Tail",image:"/Oc-generator/oc-prompt-%20picture/Clothing%20System/Special%20Features/Cat_Tail.webp"},{label:"Red Eyes",image:"/Oc-generator/color-previews/eye-color/red.png"}]}],eB=eE[0];function eF(){let e=(0,r.useTranslations)("landingRevamp.workflow.visuals"),l=(0,t.useRef)(null),n=(0,t.useRef)(null),[o,d]=(0,t.useState)(eB.id),[c,p]=(0,t.useState)(null),[h,u]=(0,t.useState)(null),[x,f]=(0,t.useState)(0),[g,b]=(0,t.useState)(!1),[w,v]=(0,t.useState)(!1),[j,y]=(0,t.useState)(!1),[N,k]=(0,t.useState)(!0),[_,S]=(0,t.useState)(!1),T=eE.find(e=>e.id===o)??eB,C=h??c,P=T.tags.find(e=>e.label===C)??null,O=g||w||null!==c||!j||!N||_;(0,t.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>S(e.matches);return a(),e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[]),(0,t.useEffect)(()=>{let e=l.current;if(!e)return;let a=new IntersectionObserver(([e])=>y(e?.isIntersecting??!1),{threshold:.3});return a.observe(e),()=>a.disconnect()},[]),(0,t.useEffect)(()=>{let e=()=>k("visible"===document.visibilityState);return e(),document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[]),(0,t.useEffect)(()=>{if(!c)return;let e=e=>{let a=e.target;a instanceof Node&&n.current?.contains(a)||(p(null),u(null))};return window.addEventListener("pointerdown",e),()=>window.removeEventListener("pointerdown",e)},[c]),(0,t.useEffect)(()=>{if(O)return;let e=window.setTimeout(()=>{d(e=>{let a=eE.findIndex(a=>a.id===e);return eE[(a+1)%eE.length].id}),p(null),u(null),f(0)},3e3);return()=>window.clearTimeout(e)},[O,o]),(0,t.useEffect)(()=>{f(0)},[T.id]),(0,t.useEffect)(()=>{if(O||T.tags.length<2)return;let e=window.setTimeout(()=>{f(e=>(e+1)%T.tags.length)},1450);return()=>window.clearTimeout(e)},[O,x,T.id,T.tags.length]);let L=`/oc-generator?preset=${T.id}`;return(0,a.jsxs)("div",{ref:l,className:`relative w-full min-w-0 max-w-full overflow-hidden rounded-[2rem] border-0 bg-[#0b0c0e] p-4 sm:p-6 ${R.default.characterRecipePanel} ${R.default.softGlow}`,onMouseEnter:()=>b(!0),onMouseLeave:()=>{b(!1),p(null),u(null)},onFocusCapture:e=>v(e.target.matches(":focus-visible")),onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||v(!1)},children:[(0,a.jsx)("div",{className:"absolute -left-16 top-1/3 h-64 w-64 rounded-full bg-[#ff2f7d]/15 blur-3xl"}),(0,a.jsxs)("div",{className:"relative z-10 min-w-0",children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.16em] text-white/55",children:e("chooseCharacter")}),(0,a.jsxs)("span",{className:"sr-only",children:[eE.findIndex(e=>e.id===T.id)+1,"/",eE.length]})]}),(0,a.jsxs)("div",{className:R.default.characterRecipeBody,children:[(0,a.jsx)("div",{className:R.default.characterPicker,role:"group","aria-label":e("chooseCharacter"),children:eE.map(t=>{let r=t.id===T.id;return(0,a.jsxs)("button",{type:"button","aria-pressed":r,"aria-label":e("characterButtonAria",{name:t.name}),onClick:()=>{d(t.id),p(null),u(null),f(0)},className:`group relative min-w-0 overflow-hidden border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff4f91] ${R.default.characterPickerButton} ${r?"border-[#ff4f91] bg-[#ff2f7d]/10 text-white shadow-[0_0_0_1px_rgba(255,79,145,0.25)]":"border-white/10 bg-white/[0.03] text-white/60 opacity-60 hover:border-white/30 hover:text-white hover:opacity-100"}`,children:[(0,a.jsx)("span",{className:R.default.characterPickerArtwork,children:(0,a.jsx)(s.default,{src:t.portrait,alt:t.name,fill:!0,className:"object-cover object-top transition-transform duration-300 group-hover:scale-105",sizes:"(max-width: 640px) 16vw, (max-width: 1023px) 96px, 52px"})}),(0,a.jsx)("span",{className:R.default.characterPickerShade,"aria-hidden":"true"}),(0,a.jsx)("span",{className:R.default.characterPickerName,children:t.name}),r&&(0,a.jsx)("span",{className:"absolute right-1 top-1 flex h-5 w-5 items-center justify-center rounded-full bg-[#ff2f7d] text-white shadow-lg",children:(0,a.jsx)(eI.Check,{className:"h-3 w-3",strokeWidth:3})}),r&&!O&&(0,a.jsx)("span",{className:R.default.characterCardProgress,"aria-hidden":"true"},`${t.id}-progress`)]},t.id)})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("div",{className:`relative mx-auto overflow-hidden rounded-2xl border border-white/10 bg-[#15161a] shadow-2xl ${R.default.characterHeroStage}`,children:[(0,a.jsxs)("div",{className:`absolute inset-0 ${R.default.characterHeroReveal}`,children:[(0,a.jsx)(s.default,{src:T.portrait,alt:T.name,fill:!0,className:"object-contain",sizes:"(max-width: 640px) 68vw, (max-width: 1023px) 280px, 384px"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/75 via-trans
1parent to-transparent"}),(0,a.jsx)("span",{className:"absolute left-3 top-3 rounded-full border border-white/15 bg-black/55 px-2.5 py-1 text-sm font-bold text-white shadow-lg backdrop-blur-sm",children:T.name})]},T.id),P&&(0,a.jsx)("div",{className:`absolute inset-x-3 z-20 overflow-hidden rounded-xl border border-white/20 bg-[#17181d] shadow-2xl ${R.default.characterTagPreview}`,children:(0,a.jsxs)("div",{className:`relative ${R.default.characterTagPreviewBody}`,children:[(0,a.jsx)(s.default,{src:P.image,alt:P.label,fill:!0,className:"object-contain",sizes:"(max-width: 640px) 58vw, (max-width: 1023px) 240px, 320px"}),(0,a.jsx)("div",{className:`absolute inset-0 ${R.default.characterTagOverlay}`}),(0,a.jsx)("span",{className:`absolute inset-x-3 bottom-2 truncate text-xs font-semibold text-white ${R.default.characterTagLabel}`,children:P.label})]})},P.label),(0,a.jsxs)("div",{className:`absolute inset-x-0 bottom-0 z-10 ${R.default.characterTagTray}`,children:[(0,a.jsxs)("div",{className:"mb-1.5 flex items-center gap-1.5 px-3",children:[(0,a.jsx)(eM.SlidersHorizontal,{className:"h-3.5 w-3.5 text-[#ff5c99]"}),(0,a.jsx)("p",{className:"text-[10px] font-bold text-white/85",children:e("recipeTitle")})]}),(0,a.jsx)("div",{ref:n,className:`flex flex-wrap gap-1.5 px-3 pb-3 ${R.default.characterTagRail}`,children:T.tags.map((e,t)=>{let r=e.label===c,i=e.label===P?.label,l=t===x&&!P&&!O;return(0,a.jsxs)("button",{type:"button","data-tag-index":t,"data-preview-active":i?"true":void 0,"data-preview-selected":r?"true":void 0,"data-autoplay-active":l?"true":void 0,"aria-pressed":r,onPointerEnter:a=>{"mouse"===a.pointerType&&u(e.label)},onPointerLeave:e=>{"mouse"===e.pointerType&&(u(null),p(null))},onFocus:()=>u(e.label),onBlur:()=>{u(null),p(null)},onClick:()=>p(a=>a===e.label?null:e.label),className:`flex min-w-0 items-center gap-1.5 rounded-full border py-1 pl-1 pr-2.5 text-[10px] font-semibold shadow-lg backdrop-blur-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff4f91] ${R.default.characterTagButton} ${i||l?"border-[#ff4f91] bg-[#ff2f7d]/25 text-white":"border-white/15 bg-black/55 text-white/75 hover:border-white/35 hover:text-white"}`,children:[(0,a.jsx)("span",{className:`relative h-7 w-7 shrink-0 overflow-hidden rounded-full border border-white/20 bg-white/10 ${R.default.characterTagThumbnail}`,children:(0,a.jsx)(s.default,{src:e.image,alt:"",fill:!0,className:"object-cover",sizes:"28px"})}),(0,a.jsx)("span",{children:e.label}),(0,a.jsx)("span",{className:R.default.characterTagPreviewCue,"aria-hidden":"true",children:(0,a.jsx)(e$.Eye,{className:"h-3 w-3"})})]},e.label)})},T.id)]})]}),(0,a.jsxs)(m.Link,{href:L,className:`group mx-auto mt-3 ${R.default.workflowPrimaryCta} ${R.default.characterRecipeCta}`,children:[e("createSameCharacter"),(0,a.jsx)("span",{className:R.default.workflowPrimaryCtaIcon,"aria-hidden":"true",children:(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})})]})]})]})]})]})}var eq=e.i(868729);e.i(954230);var eK=e.i(323462),eD=e.i(351958),eG=e.i(599075),ez=e.i(637557),eW=e.i(796436);function eV({selectedStyle:e}){let s=(0,r.useTranslations)("landingRevamp.workflow.visuals"),[i,l]=(0,t.useState)(""),n=(0,m.useRouter)(),o=i.trim();return(0,a.jsxs)("form",{onSubmit:a=>{if(a.preventDefault(),!o||!e)return;let t=ez.useGeneratorStore.getState();t.setPrompt(o),t.setAmount("1"),t.setSelectedModel("Kusa-Anima"),t.setSelectedAnimaStyles([{style:e,weight:(0,eG.getAnimaSelectionDefaultWeight)(e)}]),(0,eW.markAutoGenerateImage)("Homepage/LandingWorkflow"),(0,h.trackLandingPromptSubmitted)({style_id:e.id,style_name:e.name,prompt_length:o.length}),n.push("/image-generator/kusa-anima")},className:"absolute inset-x-5 bottom-5 flex h-14 items-center gap-3 rounded-2xl border-0 bg-[#25262e] px-4 shadow-[0_8px_24px_rgba(0,0,0,0.35)] transition-[background-color,box-shadow] duration-200 focus-within:bg-[#30313b] focus-within:shadow-[0_8px_28px_rgba(255,47,125,0.18)] sm:inset-x-10",children:[(0,a.jsx)("label",{htmlFor:"landing-image-prompt",className:"sr-only",children:s("promptLabel")}),(0,a.jsx)("input",{id:"landing-image-prompt",type:"text",value:i,onChange:e=>l(e.target.value),maxLength:1200,autoComplete:"off",placeholder:e?s("selectedStylePrompt",{style:e.name}):s("chooseStylePrompt"),className:"min-w-0 flex-1 border-0 bg-transparent text-sm text-white outline-none placeholder:text-white/55 sm:text-base"}),(0,a.jsx)("button",{type:"submit",disabled:!o||!e,"aria-label":s("generateAria"),className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-[#ff2f7d] text-white transition duration-200 hover:bg-[#ff4d91] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/70 disabled:cursor-not-allowed disabled:opacity-45",children:(0,a.jsx)(d.Send,{className:"h-4 w-4"})})]})}function eH(){let e=(0,r.useTranslations)("landingRevamp.workflow.visual
1s"),[s,i]=(0,t.useState)(null),l=(0,eq.useQuery)({queryKey:["landing","anima-styles"],queryFn:()=>eK.animaStyleApi.listForUser(),staleTime:6e5}),n=(0,t.useMemo)(()=>(l.data?.styles??[]).filter(e=>e.is_active&&!!(e.preview_image_url||e.image_url||e.example_images_urls?.[0])).sort((e,a)=>e.sort_order-a.sort_order).slice(0,5),[l.data?.styles]),o=n.find(e=>e.id===s)??n[0]??null,d=(0,t.useMemo)(()=>o?(0,eD.mapAnimaOfficialStyleToStyle)(o):null,[o]);return(0,a.jsxs)("div",{className:`relative min-h-[460px] overflow-hidden rounded-[2rem] border-0 bg-[#090a0c] p-5 sm:p-8 ${R.default.softGlow}`,children:[(0,a.jsx)("div",{className:"absolute inset-x-0 top-1/2 h-px bg-gradient-to-r from-transparent via-[#ff2f7d]/60 to-transparent"}),(0,a.jsx)("div",{className:`grid h-[330px] grid-cols-3 items-end gap-2 sm:grid-cols-5 sm:gap-3 ${R.default.styleDeck}`,children:l.isPending?Array.from({length:5},(e,t)=>(0,a.jsx)("div",{className:`relative h-[260px] animate-pulse overflow-hidden rounded-2xl border-0 bg-white/[0.045] sm:h-[310px] ${0===t||4===t?"hidden sm:block":""} ${R.default.styleCard}`},t)):n.map((t,r)=>{let s=t.preview_image_url||t.image_url||t.example_images_urls?.[0]||"/placeholder.svg",l=o?.id===t.id;return(0,a.jsxs)("button",{type:"button","aria-pressed":l,"aria-label":e("useAnimaStyle",{style:t.name}),"data-selected":l,onClick:()=>i(t.id),className:`group relative h-[260px] overflow-hidden rounded-2xl border bg-[#242529] text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff4b8d] sm:h-[310px] ${0===r||r
1===n.length-1?"hidden sm:block":""} ${l?"border-[#ff4b8d] shadow-[0_0_0_2px_rgba(255,63,135,0.24),0_18px_50px_rgba(255,47,125,0.18)]":"border-white/10"} ${R.default.styleCard}`,children:[(0,a.jsx)("img",{src:s,alt:e("animaStyleAlt",{style:t.name}),className:"h-full w-full object-cover"}),(0,a.jsx)("span",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black via-black/60 to-transparent px-2 pb-4 pt-14 text-center text-xs font-semibold text-white sm:text-sm",children:t.name}),l&&(0,a.jsx)("span",{className:"absolute right-3 top-3 flex h-7 w-7 items-center justify-center rounded-full bg-[#ff2f7d] text-white shadow-lg",children:(0,a.jsx)(eI.Check,{className:"h-4 w-4",strokeWidth:3})})]},t.id)})}),!l.isPending&&0===n.length&&(0,a.jsx)("div",{className:"absolute inset-x-8 top-1/2 -translate-y-1/2 text-center text-sm text-white/45",children:e("stylesUnavailable")}),(0,a.jsx)(eV,{selectedStyle:d})]})}var eX=e.i(264627),eQ=e.i(192386),eZ=e.i(14002),eU=e.i(671073),eY=e.i(15945);let eJ={chooseVideoTemplate:"Choose a motion template",videoTrySame:"Make one like this",videoPlay:"Play video",videoPause:"Pause video",videoPrevious:"Previous motion template",videoNext:"Next motion template"};function e0(){let e=(0,r.useTranslations)("landingRevamp.workflow.visuals"),s=(0,m.useRouter)(),{data:l=[],isLoading:n}=(0,eq.useQuery)({queryKey:["landing-i2v-official-templates","Seedance2"],queryFn:async()=>{let e=await eY.PromptTemplateApi.listPromptTemplates({category:"i2v",model:"Seedance2",page:1,page_size:200});return(e.data?.templates??[]).filter(e=>!!e.cover_image&&!!e.cover_video).slice(0,5).map(e=>({id:`official-${e.id}`,name:e.name,src:e.cover_video,poster:e.cover_image,templateId:e.id}))},staleTime:3e5}),o=(0,t.useRef)(null),d=(0,t.useRef)(null),[c,p]=(0,t.useState)(0),[u,x]=(0,t.useState)(!1),[f,g]=(0,t.useState)(!1),[b,w]=(0,t.useState)(!1),[v,j]=(0,t.useState)(!1),[y,N]=(0,t.useState)(!1),k=a=>e.has(a)?e(a):eJ[a],_=l[c]??l[0],S=_?.name,T=f||b||!v||y;(0,t.useEffect)(()=>{p(e=>0===l.length?0:Math.min(e,l.length-1))},[l.length]),(0,t.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>N(e.matches);return a(),e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[]),(0,t.useEffect)(()=>{let e=o.current;if(!e)return;let a=new IntersectionObserver(([e])=>j(e?.isIntersecting??!1),{threshold:.3});return a.observe(e),()=>a.disconnect()},[]),(0,t.useEffect)(()=>{if(T||l.length<=1)return;let e=window.setTimeout(()=>{p(e=>(e+1)%l.length),x(!1)},5200);return()=>window.clearTimeout(e)},[T,c,l.length]),(0,t.useEffect)(()=>{d.current&&!u&&d.current.play().catch(()=>void 0)},[u,c]);let C=(e,a)=>{let t=l[e];t&&(p(e),x(!1),(0,h.trackLandingVideoTemplateSelected)({template_id:t.templateId,template_name:t.name??"",index:e,trigger:a}))};return _?(0,a.jsxs)("div",{ref:o,className:`relative w-full min-w-0 max-w-full overflow-hidden rounded-[2rem] border-0 bg-[#0b0c0e] p-4 sm:p-6 ${R.default.videoTemplatePanel} ${R.default.softGlow}`,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),onFocusCapture:()=>w(!0),onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||w(!1)},children:[(0,a.jsx)("div",{className:"absolute -right-20 top-1/4 h-64 w-64 rounded-full bg-[#ff2f7d]/12 blur-3xl"}),(0,a.jsxs)("div",{className:"relative z-10 min-w-0",children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.16em] text-white/55",children:k("chooseVideoTemplate")}),(0,a.jsxs)("span",{className:"sr-only",children:[c+1,"/",l.length]})]}),(0,a.jsxs)("div",{className:R.default.videoTemplateBody,children:[(0,a.jsxs)("div",{className:`relative overflow-hidden rounded-2xl border border-white/15 bg-black shadow-2xl ${R.default.videoTemplateStage}`,children:[(0,a.jsx)("video",{ref:d,autoPlay:!y,muted:!0,loop:!0,playsInline:!0,preload:"metadata",poster:_.poster,className:`h-full w-full object-contain ${R.default.videoTemplateReveal}`,"aria-label":`${e("videoAria")} \xb7 ${S??`${c+1}/${l.length}`}`,children:(0,a.jsx)("source",{src:_.src,type:"video/mp4"})},_.id),S&&(0,a.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 flex items-start justify-between bg-gradient-to-b from-black/65 to-transparent p-3",children:(0,a.jsx)("p",{className:"max-w-[75%] truncate text-sm font-bold text-white",children:S})}),(0,a.jsx)("button",{type:"button",onClick:()=>{let e=d.current;e&&(e.paused?(e.play().catch(()=>void 0),x(!1)):(e.pause(),x(!0)))},"aria-label":k(u?"videoPlay":"videoPause"),className:`absolute left-1/2 top-1/2 flex h-12 w-12 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full border border-white/25 bg-black/35 text-white shadow-xl backdrop-blur-md transition-opacity focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff4f91] ${R.default.videoTemplatePlayback}`,children:u?(0,a.jsx)(eU.Play,{className:"ml-0.5 h-5 w-5 fill-current"}):(0,a.jsx)(eZ.Pause,{className:"h-5 w-5 fill-current"})}),(0,a.jsx)("button",{type:"button",onClick:()=>{0!==l.length&&C((c-1+l.length)%l.length,"arrow")},"aria-label":k("videoPrevious"),className:"absolute left-2 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full border border-white/15 bg-black/45 text-white/85 backdrop-blur-md transition hover:bg-black/70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff4f91]",children:(0,a.jsx)(eQ.ChevronLeft,{className:"h-5 w-5"})}),(0,a.jsx)("button",{type:"button",onClick:()=>{0!==l.length&&C((c+1)%l.length,"arrow")},"aria-label":k("videoNext"),className:"absolute right-2 top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full border border-white/15 bg-black/45 text-white/85 backdrop-blur-md transition hover:bg-black/70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff4f91]",children:(0,a.jsx)(er.ChevronRight,{className:"h-5 w-5"})}),!T&&(0,a.jsx)("span",{className:R.default.videoTemplateProgress,"aria-hidden":"true"},`${_.id}-progress`)]}),(0,a.jsx)("div",{className:R.default.videoTemplateRail,role:"group","aria-label":k("chooseVideoTemplate"),children:l.map((e,t)=>{let r=t===c,s=e.name;return(0,a.jsxs)("button",{type:"button","aria-pressed":r,onClick:()=>C(t,"click"),className:`group relative min-w-0 overflow-hidden rounded-xl border text-left transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#ff4f91] ${R.default.videoTemplateThumb} ${r?"border-[#ff4f91] bg-[#ff2f7d]/12 text-white":"border-white/10 bg-white/[0.03] text-white/55 hover:border-white/30 hover:text-white"}`,children:[(0,a.jsx)("video",{src:e.src,poster:e.poster,muted:!0,playsInl
1ine:!0,preload:"metadata",tabIndex:-1,"aria-hidden":"true",className:"pointer-events-none absolute inset-0 h-full w-full object-cover opacity-65 transition-transform duration-300 group-hover:scale-105 group-hover:opacity-90",onLoadedMetadata:e=>{e.currentTarget.currentTime=Math.min(.2,e.currentTarget.duration||.2)}}),(0,a.jsx)("span",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/10 to-transparent"}),s&&(0,a.jsx)("span",{className:"absolute inset-x-2 bottom-1.5 truncate text-[10px] font-bold",children:s})]},e.id)})}),(0,a.jsxs)("button",{type:"button",onClick:()=>{_&&(eX.useImageToVideoStore.getState().restoreTemplate(_.templateId,"Seedance2Pro"),(0,h.trackLandingVideoTemplateApplied)({template_id:_.templateId,template_name:_.name??"",index:c}),s.push("/image-to-video"))},className:`group inline-flex min-h-14 w-full items-center justify-center gap-2 rounded-2xl bg-[#ff2f7d] px-5 text-xs font-bold text-white shadow-lg shadow-[#ff2f7d]/15 transition hover:bg-[#ff4b8d] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/70 ${R.default.videoTemplateCta}`,children:[k("videoTrySame"),(0,a.jsx)(i.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})]})]})]}):(0,a.jsx)("div",{className:`relative w-full min-w-0 max-w-full overflow-hidden rounded-[2rem] border-0 bg-[#0b0c0e] p-4 sm:p-6 ${R.default.videoTemplatePanel} ${R.default.softGlow}`,"aria-busy":n,children:(0,a.jsxs)("div",{className:"relative z-10 min-w-0",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.16em] text-white/55",children:k("chooseVideoTemplate")}),(0,a.jsx)("div",{className:`mt-3 overflow-hidden rounded-2xl border border-white/10 bg-white/[0.025] ${R.default.videoTemplateStage}`,children:(0,a.jsx)("div",{className:"h-full w-full animate-pulse bg-gradient-to-br from-white/[0.06] via-white/[0.02] to-[#ff2f7d]/10"})})]})})}function e2({visual:e}){return"styles"===e?(0,a.jsx)(eH,{}):"character"===e?(0,a.jsx)(eF,{}):"edit"===e?(0,a.jsx)(eR,{}):(0,a.jsx)(e0,{})}function e1(){let e=(0,r.useTranslations)("landingRevamp.workflow"),t=e.raw("steps");return(0,a.jsxs)("section",{id:"workflow",className:"scroll-mt-24 px-5 py-24 sm:px-8 lg:py-32",children:[(0,a.jsx)(A,{title:(0,a.jsxs)(a.Fragment,{children:[e("title")," ",(0,a.jsx)("span",{className:R.default.pinkText,children:e("accent")})]}),description:e("description")}),(0,a.jsx)("div",{className:"mx-auto mt-12 max-w-7xl space-y-28 lg:mt-16 lg:space-y-40",children:y.map((r,s)=>{let l=t[s];return(0,a.jsxs)("article",{className:(0,O.cn)("grid items-center gap-12 lg:grid-cols-[0.82fr_1.18fr] lg:gap-24",s%2==1&&"lg:grid-cols-[1.18fr_0.82fr]"),children:[(0,a.jsxs)("div",{className:(0,O.cn)("flex flex-col",s%2==1&&"lg:order-2"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 text-sm font-semibold uppercase tracking-[0.16em] text-[#ff6ca3]",children:[(0,a.jsx)("span",{children:r.number}),(0,a.jsx)("span",{className:"h-px w-8 bg-[#ff3f87]/45"}),(0,a.jsx)("span",{children:l.label})]}),(0,a.jsx)("h3",{className:"mt-7 max-w-2xl text-balance text-3xl font-black leading-[1.02] tracking-[-0.04em] text-white sm:text-4xl lg:text-[2.5rem]",children:l.title}),(0,a.jsx)("p",{className:"mt-7 max-w-xl text-base font-light leading-8 text-white/58 sm:text-lg",children:e.rich(`steps.${s}.description`,{clothing:e=>(0,a.jsx)(C,{href:"/play/ai-outfit-changer",children:e}),poses:e=>(0,a.jsx)(C,{href:"/play/ai-pose-changer",children:e}),hairstyles:e=>(0,a.jsx)(C,{href:"/play/ai-hairstyle-changer",children:e}),backgrounds:e=>(0,a.jsx)(C,{href:"/play/ai-background-changer",children:e})})}),(0,a.jsxs)(m.Link,{href:r.href,className:"mt-10 inline-flex w-fit items-center gap-2 rounded-full bg-gradient-to-r from-[#9f174e] to-[#dc0758] px-6 py-3.5 text-sm font-bold text-white shadow-lg shadow-[#ff2f7d]/10 transition-transform hover:translate-x-1 sm:text-base",children:[l.cta,(0,a.jsx)(i.ArrowRight,{className:"h-4 w-4"})]})]}),(0,a.jsx)("div",{className:(0,O.cn)("min-w-0",s%2==1&&"lg:order-1"),children:(0,a.jsx)(e2,{visual:r.visual})})]},r.number)})})]})}var e4=e.i(730687),e5=e.i(1283);function e3(){let e=(0,r.useTranslations)("landing"),s=(0,r.useTranslations)("landingRevamp"),i=(0,t.useRef)(null);!function(){let e=(0,r.useTranslations)("landing"),a=(0,e5.useSearchParams)(),s=(0,m.useRouter)(),{user:i,loading:l}=(0,J.useAuthState)(),{setIsOpen:n}=(0,U.useSignInModalStore)();(0,t.useEffect)(()=>{l||!i||sessionStorage.getItem("intentionalLandingPageVisit")||s.push("/home")},[l,s,i]),(0,t.useEffect)(()=>{"true"===a.get("verified")&&(e4.toast.success(e("toast.emailVerified")),n(!0),s.replace("/"))},[s,a,n,e])}(),(0,t.useEffect)(()=>{let e=i.current;if(!e)return;let a=e=>{let a=e.target?.closest("a[href]");if(!a)return;let t=a.getAttribute("href")??"";t.startsWith("#")||(0,h.trackLandingLinkClicked)({section:a.closest("section[id], header[id]")?.id??"unknown",target_path:t,link_text:a.textContent?.trim().slice(0,60)??""})};return e.addEventListener("click",a),()=>e.removeEventListener("click",a)},[i]);let l=e.raw("testimonials.items"),n=e.raw("faq.items").map((a,t)=>3===t?{...a,answerLinks:[{label:e("faq.emotesLinkLabel"),href:"/emoji-workshop"}]}:a);return(0,a.jsxs)("div",{ref:i,className:`min-h-screen overflow-x-hidden text-white ${R.default.page}`,children:[(0,a.jsx)(ej,{}),(0,a.jsxs)("main",{children:[(0,a.jsx)(H,{}),(0,a.jsx)(e1,{}),(0,a.jsx)($,{}),(0,a.jsx)(eN,{}),(0,a.jsx)(z,{}),(0,a.jsx)(eP,{}),(0,a.jsx)(eT,{items:l}),(0,a.jsx)(E,{faqTitle:e("faq.title"),faqTitleAccent:s("faq.titleAccent"),faqDescription:s("faq.description"),faqItems:n,ctaTitle:s("faq.ctaTitle"),ctaTitleAccent:s("faq.ctaTitleAccent"),ctaText:s("faq.ctaText"),ctaButton:s("faq.ctaButton"),bannerAlt:s("faq.bannerAlt")})]})]})}e.s(["LandingPageLayout",()=>e3],378993)}]);
2
3//# sourceMappingURL=c9f5cccdf1ad20d0.js.map
4//# chunkId=01a0a55a-3dd9-7443-a78e-40906040727c

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.