const copy={ko:{navAbout:'서비스 소개',navFeatures:'주요 기능',navDownload:'다운로드',eyebrow:'A new way to connect',heroTitle:'국경을 넘어,<br>당신에게 오는 설렘',heroSub:'문화와 언어를 넘어, 진심이 닿는 인연을 만나보세요.',heroButton:'FlyPick 만나기',featureKicker:'Made for meaningful connection',featureTitle:'마음이 닿는 순간까지,<br>더 자연스럽게',f1Title:'프로필 탐색',f1Text:'나와 잘 맞는 새로운 인연을 천천히 찾아보세요.',f2Title:'Pick과 매칭',f2Text:'마음이 가는 상대에게 Pick을 보내고 서로를 알아가세요.',f3Title:'실시간 번역 채팅',f3Text:'언어가 달라도 대화의 설렘은 이어질 수 있어요.',howKicker:'How it works',howTitle:'가볍게 시작해,<br>진심으로 이어지는 시간',s1Title:'프로필 만들기',s1Text:'나를 보여줄 이야기를 담아보세요.',s2Title:'마음에 드는 상대 Pick',s2Text:'관심이 가는 인연에게 마음을 표현해요.',s3Title:'매칭 후 대화',s3Text:'서로의 일상과 마음을 나눠보세요.',safeKicker:'Your space, your choice',safeTitle:'편안한 만남을 위한<br>선택권은 당신에게',safeText:'원하지 않는 대화나 프로필은 차단하거나 신고할 수 있습니다.',downloadKicker:'Coming soon',downloadTitle:'당신의 다음 인연이<br>날아오고 있어요.',downloadText:'FlyPick은 현재 출시를 준비하고 있습니다.',downloadButton:'출시 준비 중',contactPending:'문의 정보 준비 중',privacyPending:'개인정보처리방침 준비 중',termsPending:'이용약관 준비 중',rights:'All rights reserved.'},en:{navAbout:'About',navFeatures:'Features',navDownload:'Download',eyebrow:'A new way to connect',heroTitle:'A flutter that crosses<br>borders to find you',heroSub:'Meet meaningful connections beyond culture and language.',heroButton:'Meet FlyPick',featureKicker:'Made for meaningful connection',featureTitle:'A more natural way<br>to let hearts connect',f1Title:'Explore profiles',f1Text:'Take your time discovering someone who feels right for you.',f2Title:'Pick & match',f2Text:'Send a Pick to someone you like and get to know each other.',f3Title:'Live translation chat',f3Text:'Keep the conversation going, even when you speak different languages.',howKicker:'How it works',howTitle:'Start simply.<br>Connect sincerely.',s1Title:'Create your profile',s1Text:'Share the story that is yours.',s2Title:'Pick someone you like',s2Text:'Show your interest when a connection catches your eye.',s3Title:'Chat after matching',s3Text:'Share your everyday moments and thoughts.',safeKicker:'Your space, your choice',safeTitle:'Your choices shape<br>a more comfortable space',safeText:'You can block or report conversations and profiles you do not want to engage with.',downloadKicker:'Coming soon',downloadTitle:'Your next connection<br>is on its way.',downloadText:'FlyPick is getting ready to launch.',downloadButton:'Preparing for launch',contactPending:'Contact details coming soon',privacyPending:'Privacy policy coming soon',termsPending:'Terms of service coming soon',rights:'All rights reserved.'}};
const toggle=document.querySelector('#language-toggle'),menu=document.querySelector('#language-menu');
function setLang(lang){document.documentElement.lang=lang;document.querySelectorAll('[data-i18n]').forEach(el=>el.innerHTML=copy[lang][el.dataset.i18n]);toggle.innerHTML=(lang==='ko'?'KO':'EN')+' <span>⌄</span>';document.title=lang==='ko'?'FlyPick | 국경을 넘어, 당신에게 오는 설렘':'FlyPick | A flutter that crosses borders to find you';menu.hidden=true;}
toggle.addEventListener('click',()=>menu.hidden=!menu.hidden);menu.addEventListener('click',e=>{if(e.target.dataset.lang)setLang(e.target.dataset.lang)});document.addEventListener('click',e=>{if(!e.target.closest('.header-tools'))menu.hidden=true});document.querySelector('#year').textContent=new Date().getFullYear();
