import{r as n,j as e,a as h,G as $,Z as k,u as S,l as C,s as E,v as D,z as I,D as _,_ as z,J as M,B as O,m as A,K as H}from"./index-BRjtJt2l.js";import"./analytics-Bu8LxldC.js";const P=({videoId:a,className:g,title:c,subtitle:d,children:x,delay:o=2500})=>{const[s,t]=n.useState(!1),[l,m]=n.useState(!1),[r,u]=n.useState(!1),[b,w]=n.useState(0);n.useEffect(()=>{const i=setTimeout(()=>{"requestIdleCallback"in window?window.requestIdleCallback(()=>u(!0)):u(!0)},o);return()=>clearTimeout(i)},[o]);const j=`https://img.youtube.com/vi/${a}/maxresdefault.jpg`,v=`https://www.youtube.com/embed/${a}?autoplay=1&mute=1&loop=1&playlist=${a}&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/${a}?autoplay=1&rel=0&modestbranding=1&playsinline=1&iv_load_policy=3`,f=n.useCallback(()=>{t(!0),document.body.style.overflow="hidden"},[]),p=n.useCallback(()=>{t(!1),document.body.style.overflow=""},[]);return n.useEffect(()=>{const i=y=>{y.key==="Escape"&&s&&p()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[s,p]),n.useEffect(()=>{const i=()=>{document.visibilityState==="visible"&&!s&&r&&w(y=>y+1)};return document.addEventListener("visibilitychange",i),()=>document.removeEventListener("visibilitychange",i)},[s,r]),e.jsxs(e.Fragment,{children:[e.jsx("section",{className:h("w-full py-8 md:py-12",g),children:e.jsxs("div",{className:"max-w-[1400px] mx-auto px-4 md:px-8",children:[(c||d)&&e.jsxs("div",{className:"text-center mb-6 md:mb-8",children:[c&&e.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-foreground mb-2",children:c}),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:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),f())},children:[!r&&e.jsx("img",{src:j,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}),r&&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:h("absolute inset-0 bg-gradient-to-t from-neutral-900/60 via-neutral-900/20 to-neutral-900/40 transition-opacity duration-300",l?"opacity-100":"opacity-0")}),e.jsx("div",{className:h("absolute inset-0 flex items-center justify-center z-10 transition-opacity duration-300",l||!r?"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:i=>i.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"})})})]})]})},T=()=>{const{t:a,i18n:g}=S("ourStory"),c=C();E({pageName:"our_story"}),D({pageName:"our_story"});const[d,x]=n.useState(new Set),o=n.useRef({});n.useEffect(()=>{const t=new IntersectionObserver(l=>{l.forEach(m=>{if(m.isIntersecting){const r=m.target.getAttribute("data-section");r&&x(u=>new Set([...u,r]))}})},{threshold:.2,rootMargin:"-50px"});return Object.values(o.current).forEach(l=>{l&&t.observe(l)}),()=>t.disconnect()},[]);const s=t=>d.has(t);return e.jsxs("main",{className:"min-h-screen bg-background",children:[e.jsx(I,{title:a("meta.title"),description:a("meta.description"),canonicalPath:"/our-story"}),e.jsx(_,{items:[{name:"Home",path:"/"},{name:"Our Story",path:"/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:t=>o.current.hero=t,"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:[a("hero.introducing")," ",a("hero.brand")&&e.jsx("span",{className:"text-primary",children:a("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:a("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:a("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:t=>o.current.problems=t,"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:a("problems.headline")}),e.jsx("div",{className:"space-y-10",children:["bottle","boatHotel","botHotel"].map((t,l)=>e.jsxs("div",{className:`transition-all duration-700 ${s("problems")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:`${200+l*150}ms`},children:[e.jsx("p",{className:"text-xl md:text-2xl font-medium text-foreground mb-2",children:a(`problems.items.${t}.title`)}),e.jsx("p",{className:"text-lg md:text-xl text-muted-foreground font-light",children:a(`problems.items.${t}.description`)})]},t))})]})})}),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:t=>o.current.manifesto=t,"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((t,l)=>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:`${l*150}ms`},children:a(`manifesto.opening.${t}`)},t))}),e.jsx("div",{className:"space-y-1 mb-20",children:["line1","line2","line3"].map((t,l)=>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+l*120}ms`},children:a(`manifesto.criteria.${t}`)},t))}),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:a("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:a("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:[a("manifesto.closing.line1"),e.jsx("br",{}),a("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:t=>o.current.cta=t,"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(z,{})})}),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(M,{})}),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:a("cta.orText","Or start immediately")}),e.jsx(O,{size:"lg",variant:"premium",className:"w-full md:w-auto",onClick:()=>{A("start_now","our_story"),c("/get-started")},children:a("cta.startNow","Start Now")})]})]})]})})}),e.jsx(H,{})]})};export{T as default};