// Main app

const I18N = /*EDITMODE-BEGIN*/{
  "tr": {
    "navFeatures": "Özellikler",
    "navHowItWorks": "Nasıl Çalışır",
    "navStores": "Mağazalar",
    "navStories": "Hikayeler",
    "navDownload": "İndir",
    "downloadOn": "İndir",
    "getItOn": "İndir",
    "heroEyebrow": "Türkiye'nin İstek Listesi Uygulaması",
    "heroH1a": "Sevdiklerine",
    "heroH1b": "doğru",
    "heroH1c": "hediyeyi seç.",
    "heroBrandTag": "Türkiye'nin İstek Listesi Uygulaması",
    "heroBrandSub": "#1 Wishlist Experience",
    "statStores": "Mağaza",
    "navHowTo": "Nasıl Kullanılır",
    "heroLede": "Doğum günleri, özel anlar ve sürprizler için istek listesi oluştur. Arkadaşlarınla paylaş, ne istediklerini bil, hediye stresine son ver.",
    "statUsers": "Aktif Kullanıcı",
    "floatLabel1": "Yeni Liste",
    "floatVal1": "Melis'in Doğum Günü",
    "floatLabel2": "Satın Alındı",
    "floatVal2": "Seramik Vazo",

    "greeting": "Merhaba",
    "greetingSub": "Sevdiklerin için en güzel hediyeleri seçme zamanı.",
    "upcoming": "Yaklaşan Doğum Günleri",
    "all": "Tümü",
    "melisBday": "Melis'in Doğum Günü",
    "daysLeft": "gün kaldı",
    "myLists": "Listelerim",
    "homeDeco": "Ev Dekorasyonu",
    "forMe": "Kendim İçin",
    "birthday": "Doğum Günü",
    "itemUnit": "ürün",
    "shareEasy": "Arkadaşlarınla kolayca paylaş, sürpriz hediyelerle mutlu et!",
    "addFriend": "Arkadaş Ekle",
    "perfume": "Parfüm",
    "ceramicVase": "Seramik Vazo",
    "beige": "Bej",
    "sunglasses": "Güneş Gözlüğü",
    "uvProtect": "UV Korumalı",
    "shoulderBag": "Omuz Çantası",
    "green": "Yeşil",
    "bought": "Satın Alındı",
    "reserve": "Reserve",
    "available": "Uygun",
    "sort": "Sırala",
    "shareList": "Listeyi Paylaş",
    "friends": "Arkadaşlarım",
    "searchFriend": "Arkadaş ara...",
    "closestFriends": "En Yakın Arkadaşlar",
    "sharedList": "ortak liste",
    "sharedLists": "ortak liste",
    "friendInvite": "Arkadaş Daveti",
    "moreFriends": "Daha fazla arkadaş,",
    "moreSurprise": "daha fazla sürpriz!",
    "inviteDesc": "Arkadaşlarını davet et, listelerini birlikte paylaş.",
    "sendInvite": "Davet Gönder",
    "allFriends": "Tüm Arkadaşlar",
    "add": "Ekle",
    "discover": "Keşfet",
    "searchStore": "Mağaza veya ürün ara...",
    "popularStores": "Popüler Mağazalar",
    "userSearch": "Kullanıcı Ara",
    "tabHome": "Ana Sayfa",
    "tabLists": "Listelerim",
    "tabDiscover": "Keşfet",
    "tabFriends": "Arkadaşlar",

    "feat_eyebrow": "Özellikler",
    "feat_titleA": "Hediye seçmenin",
    "feat_titleB": "yeni hali",
    "feat_sub": "Listeden mağazaya, arkadaştan sürprize — her şey tek bir yerde.",
    "feat1Title": "Listeler oluştur, durumu takip et",
    "feat1Body": "Doğum günü, taşınma, mezuniyet  her özel an için ayrı liste. Alındı, rezerve, uygun olanları net gör.",
    "feat1Item1": "Zara Red Vanilla",
    "feat1Item2": "Seramik Vazo",
    "feat1Item3": "Güneş Gözlüğü",
    "feat2Title": "Arkadaşlarınla paylaş",
    "feat2Body": "Yakın çevren listelerini görür, sürpriz koordine eder. Aynı hediyeyi iki kişi almaz.",
    "feat3Title": "450+ mağazaya tek tıkla ulaş",
    "feat3Body": "Trendyol'dan Karaca'ya, Mango'dan Sephora'ya  sevdiğin markalardan link kopyala, listene ekle. Sade bir akış.",

    "prev_eyebrow": "Nasıl Kullanılır",
    "prev_titleA": "Dört basit hareket,",
    "prev_titleB": "doğru hediye.",
    "prev_sub": "Uygulamayı açtıktan sonraki ilk 60 saniyen şöyle.",
    "step1Title": "1. Yeni liste oluştur",
    "step1Body": "Bir başlık, bir tarih, birkaç emoji. 'Oluştur'a bas  ilk listen 10 saniyede hazır.",
    "step1Tip": "İpucu: Listeyi 'gizli' tutup sürpriz hazırlayabilirsin.",
    "step2Title": "2. Ürün linkini yapıştır",
    "step2Body": "Sevdiğin bir ürünü mağazadan kopyala, uygulamaya yapıştır. Fotoğraf, isim, fiyat otomatik dolar.",
    "step2Tip": "Trendyol, Zara, Mango, Karaca… paylas-yapıştır-bitti.",
    "step3Title": "3. Arkadaşla paylaş",
    "step3Body": "Listeyi yakın çevrenle bölüş. Onlar 'Reserve' işaretler, kimse aynı hediyeyi iki kez almaz.",
    "step3Tip": "Link üzerinden de hesabı olmayanlara gönderebilirsin.",
    "step4Title": "4. Hediyeyi işaretle",
    "step4Body": "Bir ürüne dokun, 'Satın Alındı' diyebilirsin. Liste sahibi görmez  sürpriz korunur.",
    "step4Tip": "İstersen yalnız 'Reserve' yap, kimse çakışmasın.",
    "howCreateStep": "Yeni Liste",
    "howCreateTitle": "Yeni listeni isimlendir",
    "howCreateSub": "Bir başlık, bir tarih, birkaç emoji — 10 saniye.",
    "howFieldName": "Liste İsmi",
    "howFieldDate": "Tarih",
    "howFieldFriends": "Arkadaşları davet et",
    "howCreateBtn": "Listeyi Oluştur",
    "howAddStep": "Ürün Ekle",
    "howAddTitle": "Linki yapıştır, gerisi otomatik",
    "howAddSub": "Sevdiğin mağazadan kopyala, biz dolduruyoruz.",
    "howAddField": "Ürün Linki",
    "howPaste": "Yapıştır",
    "howFetching": "Ürün bilgileri alınıyor…",
    "howAddNote": "✓ Fotoğraf, fiyat, isim hazır",
    "howAddBtn": "Listeye Ekle",
    "howShareTitle": "Listeyi Paylaş",
    "howShareSub": "Linki kopyala ya da bir uygulamadan gönder.",
    "howCopy": "Kopyala",
    "howMore": "Diğeri",
    "howShareFriends": "Melis, Zeynep ve Arda da bu listede",
    "howMarkStep": "Ürün Detayı",
    "howMarkField": "Durum seç",
    "howSecretTitle": "Sürpriz güvende",
    "howSecretSub": "Liste sahibi 'Satın Alındı' işaretini görmez.",
    "howMarkBtn": "Hediye Linkine Git",

    "stores_eyebrow": "Mağazalar",
    "stores_titleA": "Sevdiğin her marka,",
    "stores_titleB": "tek tap uzakta.",
    "stores_sub": "450'den fazla mağazaya tek tıkla ulaş, listene ekle. Link kopyala-yapıştır kadar kolay.",

    "testi_eyebrow": "Hikayeler",
    "testi_titleA": "Kullanıcılarımız",
    "testi_titleB": "ne diyor?",
    "testi1": "Doğum gününde annem tam istediğim parfümü aldı. Hayatımda ilk defa bir hediye iadesi yapmadım  tarif edemem o duyguyu.",
    "testi2": "Kız arkadaşımın listesini görünce hediye almak bir bilmece olmaktan çıktı. Şimdi sürpriz gerçekten sürpriz.",
    "testi3": "Arkadaş grubuyla taşınma hediyesi koordine ettik  7 kişi, 7 farklı eşya, sıfır çakışma. Mükemmel.",

    "cta_eyebrow": "Şimdi başla",
    "cta_titleA": "Bir sonraki hediye",
    "cta_titleB": "tam isabet.",
    "cta_sub": "Ücretsiz indir. Listenle 30 saniyede başla.",

    "foot_brand": "Türkiye'nin istek listesi uygulaması. Doğru hediye, doğru insan, doğru an.",
    "foot_product": "Ürün",
    "foot_company": "Şirket",
    "foot_about": "Hakkımızda",
    "foot_blog": "Blog",
    "foot_contact": "İletişim",
    "foot_press": "Basın",
    "foot_legal": "Yasal",
    "foot_privacy": "Gizlilik",
    "foot_terms": "Kullanım Şartları",
    "foot_rights": "Tüm hakları saklıdır."
  },
  "en": {
    "navFeatures": "Features",
    "navHowItWorks": "How it works",
    "navStores": "Stores",
    "navStories": "Stories",
    "navDownload": "Download",
    "downloadOn": "Download on",
    "getItOn": "Get it on",
    "heroEyebrow": "Türkiye's wishlist app",
    "heroH1a": "Pick the",
    "heroH1b": "right",
    "heroH1c": "gift, every time.",
    "heroBrandTag": "Türkiye's Wishlist App",
    "heroBrandSub": "#1 Wishlist Experience",
    "statStores": "Stores",
    "navHowTo": "How to Use",
    "heroLede": "Build wishlists for birthdays, special moments, and surprises. Share with friends, know exactly what they want, end the gift guessing forever.",
    "statUsers": "Active Users",
    "floatLabel1": "New List",
    "floatVal1": "Melis's Birthday",
    "floatLabel2": "Purchased",
    "floatVal2": "Ceramic Vase",

    "greeting": "Hello",
    "greetingSub": "Time to pick the perfect gifts for your loved ones.",
    "upcoming": "Upcoming Birthdays",
    "all": "All",
    "melisBday": "Melis's Birthday",
    "daysLeft": "days left",
    "myLists": "My Lists",
    "homeDeco": "Home Decor",
    "forMe": "For Myself",
    "birthday": "Birthday",
    "itemUnit": "items",
    "shareEasy": "Share with friends easily, surprise them with the perfect gifts!",
    "addFriend": "Add Friend",
    "perfume": "Perfume",
    "ceramicVase": "Ceramic Vase",
    "beige": "Beige",
    "sunglasses": "Sunglasses",
    "uvProtect": "UV Protected",
    "shoulderBag": "Shoulder Bag",
    "green": "Green",
    "bought": "Bought",
    "reserve": "Reserve",
    "available": "Available",
    "sort": "Sort",
    "shareList": "Share List",
    "friends": "My Friends",
    "searchFriend": "Search friends...",
    "closestFriends": "Closest Friends",
    "sharedList": "shared list",
    "sharedLists": "shared lists",
    "friendInvite": "Friend Invite",
    "moreFriends": "More friends,",
    "moreSurprise": "more surprises!",
    "inviteDesc": "Invite your friends, share lists together.",
    "sendInvite": "Send Invite",
    "allFriends": "All Friends",
    "add": "Add",
    "discover": "Discover",
    "searchStore": "Search stores or products...",
    "popularStores": "Popular Stores",
    "userSearch": "Search Users",
    "tabHome": "Home",
    "tabLists": "Lists",
    "tabDiscover": "Discover",
    "tabFriends": "Friends",

    "feat_eyebrow": "Features",
    "feat_titleA": "Gifting,",
    "feat_titleB": "reimagined",
    "feat_sub": "From list to store, from friend to surprise — everything in one place.",
    "feat1Title": "Build lists, track every item",
    "feat1Body": "Birthdays, housewarmings, graduations  a list for every occasion. See what's bought, reserved, or still available.",
    "feat1Item1": "Zara Red Vanilla",
    "feat1Item2": "Ceramic Vase",
    "feat1Item3": "Sunglasses",
    "feat2Title": "Share with friends",
    "feat2Body": "Your close circle sees your lists and coordinates surprises. Nobody buys the same gift twice.",
    "feat3Title": "Reach 450+ stores in one tap",
    "feat3Body": "From Trendyol to Karaca, Mango to Sephora  copy a link from the brands you love and add it to your list. Effortless.",

    "prev_eyebrow": "How to use",
    "prev_titleA": "Four simple moves,",
    "prev_titleB": "the perfect gift.",
    "prev_sub": "Your first 60 seconds with the app look like this.",
    "step1Title": "1. Create a new list",
    "step1Body": "A title, a date, a few emojis. Hit 'Create'  your first list is ready in 10 seconds.",
    "step1Tip": "Tip: keep the list 'private' to prep a surprise.",
    "step2Title": "2. Paste the product link",
    "step2Body": "Copy a product link from any store, paste it in. Photo, name, and price auto-fill.",
    "step2Tip": "Trendyol, Zara, Mango, Karaca… share-paste-done.",
    "step3Title": "3. Share with friends",
    "step3Body": "Send the list to your close circle. They mark 'Reserve' so nobody buys the same gift.",
    "step3Tip": "You can also send the public link to people without an account.",
    "step4Title": "4. Mark gifts as bought",
    "step4Body": "Tap an item, mark it 'Bought'. The list owner won't see it  surprise stays safe.",
    "step4Tip": "Or just 'Reserve' to prevent overlap.",
    "howCreateStep": "New List",
    "howCreateTitle": "Name your new list",
    "howCreateSub": "A title, a date, a few emojis — 10 seconds.",
    "howFieldName": "List Name",
    "howFieldDate": "Date",
    "howFieldFriends": "Invite friends",
    "howCreateBtn": "Create List",
    "howAddStep": "Add Item",
    "howAddTitle": "Paste a link, we'll do the rest",
    "howAddSub": "Copy from any store, we auto-fill the details.",
    "howAddField": "Product Link",
    "howPaste": "Paste",
    "howFetching": "Fetching product info…",
    "howAddNote": "✓ Photo, price, name ready",
    "howAddBtn": "Add to List",
    "howShareTitle": "Share Your List",
    "howShareSub": "Copy the link or send via an app.",
    "howCopy": "Copy",
    "howMore": "More",
    "howShareFriends": "Melis, Zeynep, and Arda are on this list",
    "howMarkStep": "Item Detail",
    "howMarkField": "Pick status",
    "howSecretTitle": "Surprise stays safe",
    "howSecretSub": "List owner can't see the 'Bought' marker.",
    "howMarkBtn": "Go to Gift Link",

    "stores_eyebrow": "Stores",
    "stores_titleA": "Every brand you love,",
    "stores_titleB": "one tap away.",
    "stores_sub": "Reach 450+ stores in one tap, add to your list. As easy as copy-paste.",

    "testi_eyebrow": "Stories",
    "testi_titleA": "What our",
    "testi_titleB": "users say",
    "testi1": "On my birthday, my mom got me exactly the perfume I wanted. First time in my life I didn't return a gift  that feeling is hard to describe.",
    "testi2": "Once I saw my girlfriend's list, gift-buying stopped being a riddle. Now the surprise is actually a surprise.",
    "testi3": "Coordinated a housewarming with the friend group  7 people, 7 different items, zero overlap. Perfect.",

    "cta_eyebrow": "Get started",
    "cta_titleA": "Your next gift,",
    "cta_titleB": "right on the mark.",
    "cta_sub": "Free to download. Start your first list in 30 seconds.",

    "foot_brand": "Türkiye's wishlist app. The right gift, the right person, the right moment.",
    "foot_product": "Product",
    "foot_company": "Company",
    "foot_about": "About",
    "foot_blog": "Blog",
    "foot_contact": "Contact",
    "foot_press": "Press",
    "foot_legal": "Legal",
    "foot_privacy": "Privacy",
    "foot_terms": "Terms",
    "foot_rights": "All rights reserved."
  }
}/*EDITMODE-END*/;

function App() {
  const [lang, setLang] = React.useState('tr');
  const [screenIndex, setScreenIndex] = React.useState(0);
  const t = I18N[lang];

  // Auto-rotate hero screens
  React.useEffect(() => {
    const id = setInterval(() => setScreenIndex(i => (i + 1) % 4), 3800);
    return () => clearInterval(id);
  }, []);

  // Update lang attribute
  React.useEffect(() => { document.documentElement.lang = lang; }, [lang]);

  // Cursor blob
  React.useEffect(() => {
    if (window.matchMedia('(max-width: 640px)').matches) return;
    const blob = document.createElement('div');
    blob.className = 'cursor-blob';
    document.body.appendChild(blob);
    const onMove = (e) => { blob.style.transform = `translate(${e.clientX}px, ${e.clientY}px) translate(-50%, -50%)`; };
    window.addEventListener('mousemove', onMove);
    return () => { window.removeEventListener('mousemove', onMove); blob.remove(); };
  }, []);

  return (
    <>
      <Nav lang={lang} setLang={setLang} t={t} />
      <Hero t={t} screenIndex={screenIndex} setScreenIndex={setScreenIndex} />
      <Features t={t} />
      <Preview t={t} />
      <Stores t={t} />
      <Testimonials t={t} />
      <CTA t={t} />
      <Footer t={t} />
    </>
  );
}

ReactDOM.createRoot(document.getElementById('root')).render(<App />);
