// shared-data.jsx — copy, apps, and shared small utilities

const copy = {
  ja: {
    heroBadge: '個人開発中',
    heroTitle: ['モバイルアプリを、', '個人開発で。'],
    heroSub: '企画から運用まで一貫して個人で手がけるモバイルアプリ開発。Flutter / Firebase / AI を軸に、iOS / Android 両OS向けのプロダクトをつくっています。',
    ctaPrimary: 'Works を見る',
    ctaSecondary: 'About',

    aboutKicker: 'About',
    aboutTitle: '企画から運用まで、一気通貫で。',
    aboutBody1: 'IoT・金融・教育など、多様な業界でのモバイルアプリ開発に携わってきました。ネイティブ（iOS / Android）からクロスプラットフォーム（Flutter）まで、プロジェクトに応じた技術選定で、どちらのOSにも最適な体験を届けています。',
    aboutBody2: '要件定義・設計・UI / UX・実装・ストア公開・運用まで、すべての工程を個人で担当。現在は AI を活用した自社プロダクトの企画・開発にも取り組んでいます（モバイル歴 10 年以上）。',
    stat1Num: '多業界',
    stat1Label: 'IoT / 金融 / 教育',
    stat2Num: 'iOS & Android',
    stat2Label: '両OS 対応',
    stat3Num: 'End-to-End',
    stat3Label: '企画から運用まで',

    worksKicker: 'Works',
    worksTitle: '制作実績',
    worksSub: '企画・設計・デザイン・実装・運用まで、すべて個人で担当しています。',

    contactKicker: 'Links',
    contactTitle: '発信とリリース情報。',
    contactSub: '新作アプリのリリース情報や開発の裏側を発信しています。アプリへのご意見・フィードバックも歓迎です。',
    followAlong: '発信・リリース情報',
    followSub: '新作アプリのリリース情報や開発の裏側を発信しています。',
  },
  en: {
    heroBadge: 'Indie dev',
    heroTitle: ['Mobile apps,', 'built indie.'],
    heroSub: 'Planning, design, engineering and operations — all under one roof. I ship apps for iOS and Android with Flutter, Firebase and AI.',
    ctaPrimary: 'See Works',
    ctaSecondary: 'About',

    aboutKicker: 'About',
    aboutTitle: 'End-to-end, under one roof.',
    aboutBody1: 'I have shipped mobile apps across IoT, finance and education. From native iOS / Android to cross-platform Flutter — I pick the stack that fits, and deliver experiences that feel at home on both platforms.',
    aboutBody2: 'I own every step myself: requirements, architecture, UI / UX, implementation, release and operations. Today I also ship my own indie products powered by AI. (10+ years on mobile.)',
    stat1Num: 'Multi-industry',
    stat1Label: 'IoT / Finance / Edu',
    stat2Num: 'iOS & Android',
    stat2Label: 'Both stores',
    stat3Num: 'End-to-End',
    stat3Label: 'Plan → Operate',

    worksKicker: 'Works',
    worksTitle: 'Selected Works',
    worksSub: 'Planning, design, engineering and operations — all handled in-house.',

    contactKicker: 'Links',
    contactTitle: 'Follow along.',
    contactSub: 'Release notes and build logs from new apps. Feedback on the apps is always welcome.',
    followAlong: 'Follow along',
    followSub: 'Release notes, build logs and behind-the-scenes on new apps.',
  },
};

const apps = [
  {
    id: 'yomiai',
    name: 'YomiAI',
    iconBg: 'linear-gradient(135deg,#0A84FF,#5E9BFF)',
    stack: ['Flutter', 'Riverpod', 'Firebase', 'Gemini API', 'RevenueCat'],
    appStore: 'https://apps.apple.com/app/id6759408091',
    googlePlay: 'https://play.google.com/store/apps/details?id=com.zawasystem.yomiai',
    ja: {
      tagline: 'AIで読むRSSリーダー',
      desc: 'AIレコメンド・生体認証カテゴリーロック・日本語完全サポートを兼ね備えたRSSリーダー。既存アプリにない3要件の同時実現で差別化。',
      techHighlight: 'Gemini API を用いたレコメンドをオフラインファースト設計に組み込み、同期コストを最小化。読む速度を妨げない構成。',
      features: [
        'Gemini API による記事レコメンド',
        '生体認証によるカテゴリーロック',
        'オフラインファースト設計',
        'フリーミアム課金（Free / Pro）',
        '日本語 / 英語 ローカライズ',
        'タブレット最適化レイアウト',
      ],
    },
    en: {
      tagline: 'RSS, read by AI',
      desc: 'An RSS reader built around three pillars competitors lack: AI recommendations, biometric category lock, and full Japanese support.',
      techHighlight: 'Gemini API integrated into an offline-first cache — low sync cost, fast reading.',
      features: [
        'Gemini-powered feed recommendations',
        'Biometric lock on categories',
        'Offline-first architecture',
        'Freemium (Free / Pro)',
        'JA / EN localization',
        'Tablet-optimized layouts',
      ],
    },
  },
  {
    id: 'moshimono',
    name: 'もしモノ',
    iconBg: 'linear-gradient(135deg,#FF9500,#FFB84D)',
    stack: ['Flutter', 'Firebase', 'Firestore', 'go_router', 'RevenueCat'],
    appStore: 'https://apps.apple.com/app/id6761032188',
    googlePlay: 'https://play.google.com/store/apps/details?id=com.zawasystem.moshimono',
    ja: {
      tagline: '「食べたら、買い足す」防災備蓄管理',
      desc: 'ローリングストックを習慣化するための防災備蓄管理アプリ。賞味期限通知・家族共有・備蓄スコアで、無理なく続けられる備えを。',
      techHighlight: 'Firestore のセキュリティルールで家族単位の権限を分離。Deep Link による招待フローで、スムーズなメンバー追加を実現。',
      features: [
        '賞味期限のローカル通知',
        '家族共有（招待・メンバー管理）',
        '消費・補充のサイクル記録',
        '備蓄スコアで達成度を可視化',
        'Google / Apple サインイン',
        'フリーミアム課金',
      ],
    },
    en: {
      tagline: 'Eat it, restock it — disaster prep',
      desc: 'A home-stockpile app that turns rolling stock into a habit: expiry reminders, family sharing, and a preparedness score you can actually keep up with.',
      techHighlight: 'Firestore security rules isolate family scopes; deep-linked invites keep the onboarding flow seamless.',
      features: [
        'Local expiry notifications',
        'Family sharing & invites',
        'Consume / restock cycle log',
        'Preparedness score',
        'Google / Apple sign-in',
        'Freemium tiers',
      ],
    },
  },
  {
    id: 'maskly',
    name: 'Maskly',
    iconBg: 'linear-gradient(135deg,#34C759,#7FE09B)',
    stack: ['Flutter', 'Firebase AI Logic', 'Gemini API', 'ML Kit', 'AdMob'],
    appStore: 'https://apps.apple.com/app/id6762533085',
    googlePlay: 'https://play.google.com/store/apps/details?id=com.zawasystem.maskly',
    ja: {
      tagline: '写真の個人情報をワンタップで自動マスク',
      desc: '顔・ナンバープレート・クレカ・各種IDカード・QR/バーコード・住所や電話番号などを自動検出してマスク。日本の住所・マイナンバー等に特化。',
      techHighlight: 'ML Kit のオンデバイス検出と、日本の住所・番号体系に合わせた正規表現を組み合わせ、基本はオンデバイスで処理。ユーザーが許可した場合のみ Gemini API を利用。',
      features: [
        '顔・ナンバープレートの自動マスク',
        'オフラインファースト設計',
        '電話番号・メール・住所を正規表現で検出',
        'QR / バーコード検出',
        'iOS Share Extension / Android Intent',
        '手動マスク追加・調整モード',
      ],
    },
    en: {
      tagline: 'One-tap photo redaction',
      desc: 'Auto-detects faces, license plates, credit cards, IDs, QR codes, phone numbers and addresses — tuned for Japanese formats and on-device first.',
      techHighlight: 'ML Kit on-device detection + regex tuned for Japanese address and ID formats. Processing stays on-device by default; Gemini API is used only with explicit user consent.',
      features: [
        'Faces & license plates',
        'Offline-first architecture',
        'Phone, email, address via regex',
        'QR / barcode detection',
        'iOS Share Ext. / Android Intent',
        'Manual mask adjustments',
      ],
    },
  },
];

const links = {
  x: 'https://x.com/zawasystem',
  appStore: 'https://apps.apple.com/developer/id1878501994',
  googlePlay: 'https://play.google.com/store/apps/developer?id=ZAWA+SYSTEM',
};

window.copy = copy;
window.apps = apps;
window.links = links;
