import{r as n,j as e,R as g,P as $,X as k,u as C,g as E,h as S,V as I,W as D,x as _,s as M,m as z,Y as A,y as O}from"./index-2dTGQAIg.js";import"./analytics-Bu8LxldC.js";const P=({videoId:t,className:y,title:o,subtitle:d,children:x,delay:r=2500})=>{const[s,a]=n.useState(!1),[i,m]=n.useState(!1),[c,u]=n.useState(!1),[b,j]=n.useState(0);n.useEffect(()=>{const l=setTimeout(()=>{"requestIdleCallback"in window?window.requestIdleCallback(()=>u(!0)):u(!0)},r);return()=>clearTimeout(l)},[r]);const w=`https://img.youtube.com/vi/${t}/maxresdefault.jpg`,v=`https://www.youtube.com/embed/${t}?autoplay=1&mute=1&loop=1&playlist=${t}&controls=0&showinfo=0&rel=0&modestbranding=1&playsinline=1&enablejsapi=1&iv_load_policy=3&disablekb=1&fs=0`,N=`https://www.youtube.com/embed/${t}?autoplay=1&rel=0&modestbranding=1&playsinline=1&iv_load_policy=3`,f=n.useCallback(()=>{a(!0),document.body.style.overflow="hidden"},[]),p=n.useCallback(()=>{a(!1),document.body.style.overflow=""},[]);return n.useEffect(()=>{const l=h=>{h.key==="Escape"&&s&&p()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[s,p]),n.useEffect(()=>{const l=()=>{document.visibilityState==="visible"&&!s&&c&&j(h=>h+1)};return document.addEventListener("visibilitychange",l),()=>document.removeEventListener("visibilitychange",l)},[s,c]),e.jsxs(e.Fragment,{children:[e.jsx("section",{className:g("w-full py-8 md:py-12",y),children:e.jsxs("div",{className:"max-w-[1400px] mx-auto px-4 md:px-8",children:[(o||d)&&e.jsxs("div",{className:"text-center mb-6 md:mb-8",children:[o&&e.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-foreground mb-2",children:o}),d&&e.jsx("p",{className:"text-base md:text-lg text-muted-foreground max-w-2xl mx-auto",children:d})]}),e.jsxs("div",{className:"relative w-full aspect-video max-h-[650px] rounded-xl md:rounded-2xl overflow-hidden bg-neutral-900 shadow-lg md:shadow-xl cursor-pointer group",onClick:f,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),role:"button",tabIndex:0,"aria-label":"Play video with sound",onKeyDown:l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),f())},children:[!c&&e.jsx("img",{src:w,alt:"Cendra AI demo video thumbnail",className:"absolute inset-0 w-full h-full object-cover",loading:"eager",fetchPriority:"high",decoding:"sync",width:1280,height:720}),c&&e.jsx("iframe",{src:v,title:"Cendra AI demo video - hospitality AI agent preview",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",className:"absolute inset-0 w-full h-full pointer-events-none",style:{border:"none"},loading:"lazy"},b),e.jsx("div",{className:g("absolute inset-0 bg-gradient-to-t from-neutral-900/60 via-neutral-900/20 to-neutral-900/40 transition-opacity duration-300",i?"opacity-100":"opacity-0")}),e.jsx("div",{className:g("absolute inset-0 flex items-center justify-center z-10 transition-opacity duration-300",i||!c?"opacity-100":"opacity-0"),children:e.jsxs("div",{className:"relative flex items-center justify-center w-16 h-16 md:w-20 md:h-20 lg:w-24 lg:h-24 rounded-full bg-white/90 backdrop-blur-sm shadow-2xl transition-all duration-300 ease-out hover:bg-primary-700 hover:scale-110 focus:bg-primary-700 focus:scale-110 focus:ring-4 focus:ring-primary-500/50",children:[e.jsx($,{className:"w-6 h-6 md:w-8 md:h-8 lg:w-10 lg:h-10 text-primary-700 group-hover:text-white transition-colors duration-300 ml-1",fill:"currentColor"}),e.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-white/30 animate-ping opacity-75"})]})})]}),x&&e.jsx("div",{className:"mt-6 md:mt-8 text-center",children:x})]})}),s&&e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-neutral-900/95 backdrop-blur-sm animate-in fade-in duration-200",onClick:p,role:"dialog","aria-modal":"true","aria-label":"Video player",children:[e.jsx("button",{onClick:p,"aria-label":"Close video",className:"absolute top-4 right-4 md:top-6 md:right-6 z-50 flex items-center justify-center w-12 h-12 rounded-full bg-white/10 text-white hover:bg-white/20 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-white/50",children:e.jsx(k,{className:"w-6 h-6"})}),e.jsx("div",{className:"relative w-full max-w-5xl mx-4 animate-in zoom-in-95 duration-300",onClick:l=>l.stopPropagation(),children:e.jsx("div",{className:"relative w-full pt-[56.25%] rounded-lg overflow-hidden shadow-2xl bg-neutral-900",children:e.jsx("iframe",{src:N,title:"Cendra AI demo video - hospitality AI guest messaging automation",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"absolute inset-0 w-full h-full",style:{border:"none"},loading:"lazy"})})})]})]})},L=()=>{const{t,i18n:y}=C("ourStory"),o=y.language?.split("-")[0]||"en";E({pageName:"our_story"}),S({pageName:"our_story"});const[d,x]=n.useState(new Set),r=n.useRef({});n.useEffect(()=>{const a=new IntersectionObserver(i=>{i.forEach(m=>{if(m.isIntersecting){const c=m.target.getAttribute("data-section");c&&x(u=>new Set([...u,c]))}})},{threshold:.2,rootMargin:"-50px"});return Object.values(r.current).forEach(i=>{i&&a.observe(i)}),()=>a.disconnect()},[]);const s=a=>d.has(a);return e.jsxs("main",{className:"min-h-screen bg-background",children:[e.jsxs(I,{children:[e.jsx("title",{children:t("meta.title")}),e.jsx("meta",{name:"description",content:t("meta.description")}),e.jsx("meta",{property:"og:title",content:t("meta.title")}),e.jsx("meta",{property:"og:description",content:t("meta.description")}),e.jsx("meta",{property:"og:url",content:`https://cendra.ai/${o==="en"?"":o+"/"}our-story`}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:image",content:"https://cendra.ai/og-image.png"}),e.jsx("link",{rel:"canonical",href:`https://cendra.ai/${o==="en"?"":o+"/"}our-story`})]}),e.jsx("section",{className:"py-12 md:py-16 flex flex-col items-center justify-center px-4 pt-28 bg-background",children:e.jsxs("div",{ref:a=>r.current.hero=a,"data-section":"hero",className:"text-center max-w-3xl mx-auto",children:[e.jsxs("h1",{className:`text-5xl md:text-7xl lg:text-8xl font-bold text-foreground tracking-tight mb-10 transition-all duration-700 ${s("hero")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:[t("hero.introducing")," ",t("hero.brand")&&e.jsx("span",{className:"text-primary",children:t("hero.brand")})]}),e.jsx("p",{className:`text-2xl md:text-3xl lg:text-4xl text-muted-foreground font-light leading-relaxed transition-all duration-700 ${s("hero")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:"150ms"},children:t("hero.subtitle")}),e.jsx("p",{className:`text-xl md:text-2xl lg:text-3xl text-muted-foreground font-light mt-2 transition-all duration-700 ${s("hero")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:"300ms"},children:t("hero.tagline")})]})}),e.jsx(P,{videoId:"kMwRz3ew9_8"}),e.jsx("section",{className:"py-12 md:py-16 bg-secondary/20 content-auto-lg",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{ref:a=>r.current.problems=a,"data-section":"problems",className:"max-w-3xl mx-auto text-center",children:[e.jsx("p",{className:`text-2xl md:text-3xl lg:text-4xl font-light text-muted-foreground mb-14 transition-all duration-700 ${s("problems")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:t("problems.headline")}),e.jsx("div",{className:"space-y-10",children:["bottle","boatHotel","botHotel"].map((a,i)=>e.jsxs("div",{className:`transition-all duration-700 ${s("problems")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:`${200+i*150}ms`},children:[e.jsx("p",{className:"text-xl md:text-2xl font-medium text-foreground mb-2",children:t(`problems.items.${a}.title`)}),e.jsx("p",{className:"text-lg md:text-xl text-muted-foreground font-light",children:t(`problems.items.${a}.description`)})]},a))})]})})}),e.jsx("section",{className:"py-16 md:py-20 bg-background content-auto-xl",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{ref:a=>r.current.manifesto=a,"data-section":"manifesto",className:"max-w-3xl mx-auto text-center",children:[e.jsx("div",{className:"space-y-2 mb-16",children:["line1","line2","line3"].map((a,i)=>e.jsx("p",{className:`text-2xl md:text-3xl lg:text-4xl font-light text-foreground leading-snug transition-all duration-700 ${s("manifesto")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:`${i*150}ms`},children:t(`manifesto.opening.${a}`)},a))}),e.jsx("div",{className:"space-y-1 mb-20",children:["line1","line2","line3"].map((a,i)=>e.jsx("p",{className:`text-xl md:text-2xl lg:text-3xl text-muted-foreground font-light transition-all duration-700 ${s("manifesto")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:`${450+i*120}ms`},children:t(`manifesto.criteria.${a}`)},a))}),e.jsx("div",{className:`mb-20 transition-all duration-1000 ${s("manifesto")?"opacity-100 scale-100":"opacity-0 scale-95"}`,style:{transitionDelay:"900ms"},children:e.jsx("p",{className:"text-6xl md:text-8xl lg:text-9xl font-bold text-accent tracking-tight",children:t("manifesto.brand")})}),e.jsx("p",{className:`text-lg md:text-xl lg:text-2xl text-foreground font-medium mb-16 transition-all duration-700 ${s("manifesto")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:"1100ms"},children:t("manifesto.qualities")}),e.jsxs("p",{className:`text-xl md:text-2xl lg:text-3xl text-muted-foreground font-light leading-relaxed max-w-xl mx-auto transition-all duration-700 ${s("manifesto")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:"1300ms"},children:[t("manifesto.closing.line1"),e.jsx("br",{}),t("manifesto.closing.line2")]})]})})}),e.jsx("section",{className:"py-12 md:py-16 bg-secondary/20",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{ref:a=>r.current.cta=a,"data-section":"cta",className:"max-w-4xl mx-auto",children:[e.jsx("div",{className:"text-center mb-10",children:e.jsx("div",{className:`mb-6 transition-all duration-700 ${s("cta")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,children:e.jsx(D,{})})}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-center",children:[e.jsx("div",{className:`transition-all duration-700 ${s("cta")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:"200ms"},children:e.jsx(_,{})}),e.jsxs("div",{className:`text-center md:text-left space-y-4 transition-all duration-700 ${s("cta")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:"400ms"},children:[e.jsx("p",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wider",children:t("cta.orText","Or start immediately")}),e.jsx(M,{size:"lg",variant:"premium",className:"w-full md:w-auto",onClick:()=>{z("start_now","our_story"),A("https://app.botel.ai","our_story"),window.location.href="https://app.botel.ai"},children:t("cta.startNow","Start Now")})]})]})]})})}),e.jsx(O,{})]})};export{L as default};