import{c as $,r as n,j as e,a as g,G as S,_ as C,u as w,l as E,s as D,v as I,z as M,D as _,$ as z,J as O,B as V,m as A,K as H,Z as P}from"./index-DMhQuCwd.js";import"./analytics-Bu8LxldC.js";/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const L=$("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]),T=({videoId:a,className:f,title:d,subtitle:c,children:x,delay:u=2500})=>{const[o,s]=n.useState(!1),[t,l]=n.useState(!1),[r,m]=n.useState(!1),[y,j]=n.useState(0);n.useEffect(()=>{const i=setTimeout(()=>{"requestIdleCallback"in window?window.requestIdleCallback(()=>m(!0)):m(!0)},u);return()=>clearTimeout(i)},[u]);const v=`https://img.youtube.com/vi/${a}/maxresdefault.jpg`,N=`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`,k=`https://www.youtube.com/embed/${a}?autoplay=1&rel=0&modestbranding=1&playsinline=1&iv_load_policy=3`,b=n.useCallback(()=>{s(!0),document.body.style.overflow="hidden"},[]),p=n.useCallback(()=>{s(!1),document.body.style.overflow=""},[]);return n.useEffect(()=>{const i=h=>{h.key==="Escape"&&o&&p()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[o,p]),n.useEffect(()=>{const i=()=>{document.visibilityState==="visible"&&!o&&r&&j(h=>h+1)};return document.addEventListener("visibilitychange",i),()=>document.removeEventListener("visibilitychange",i)},[o,r]),e.jsxs(e.Fragment,{children:[e.jsx("section",{className:g("w-full py-8 md:py-12",f),children:e.jsxs("div",{className:"max-w-[1400px] mx-auto px-4 md:px-8",children:[(d||c)&&e.jsxs("div",{className:"text-center mb-6 md:mb-8",children:[d&&e.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold text-foreground mb-2",children:d}),c&&e.jsx("p",{className:"text-base md:text-lg text-muted-foreground max-w-2xl mx-auto",children:c})]}),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:b,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),role:"button",tabIndex:0,"aria-label":"Play video with sound",onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),b())},children:[!r&&e.jsx("img",{src:v,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:N,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"},y),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",t?"opacity-100":"opacity-0")}),e.jsx("div",{className:g("absolute inset-0 flex items-center justify-center z-10 transition-opacity duration-300",t||!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(S,{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})]})}),o&&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(C,{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:k,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"})})})]})]})},K=()=>{const{t:a,i18n:f}=w("ourStory"),{t:d}=w("common"),c=E();D({pageName:"our_story"}),I({pageName:"our_story"});const[x,u]=n.useState(new Set),o=n.useRef({});n.useEffect(()=>{const t=new IntersectionObserver(l=>{l.forEach(r=>{if(r.isIntersecting){const m=r.target.getAttribute("data-section");m&&u(y=>new Set([...y,m]))}})},{threshold:.2,rootMargin:"-50px"});return Object.values(o.current).forEach(l=>{l&&t.observe(l)}),()=>t.disconnect()},[]);const s=t=>x.has(t);return e.jsxs("main",{className:"min-h-screen bg-background",children:[e.jsx(M,{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.jsxs("button",{onClick:()=>c("/press"),className:`inline-flex items-center gap-2 text-muted-foreground hover:text-primary text-sm font-medium transition-all duration-700 mt-6 ${s("hero")?"opacity-100 translate-y-0":"opacity-0 translate-y-4"}`,style:{transitionDelay:"450ms"},children:[e.jsx(L,{className:"h-4 w-4"}),d("footer.press")]})]})}),e.jsx(T,{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(O,{})}),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(V,{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,{}),e.jsx(P,{})]})};export{K as default};