Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

301 KB
Raw Blame
<!DOCTYPE html>
<html lang="th" dir="ltr">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>WebBrain — AI Browser Agent ฟรี โอเพนซอร์สสำหรับ Chrome, Firefox และ Edge</title>
  <meta name="description" content="WebBrain เป็นทางเลือกฟรีและโอเพนซอร์สแทนปลั๊กอินเบราว์เซอร์ของ Claude เป็น AI browser agent สำหรับ Chrome, Firefox และ Edge — อ่านหน้า สกัดข้อมูล และทำงานแบบอัตโนมัติ ใช้งานร่วมกับ llama.cpp, OpenAI, Claude, OpenRouter ได้ UI หลายภาษา ภาพหน้าจอประหยัดโทเค็น สัญญาอนุญาต GPL-3.0-or-later">
  <meta name="keywords" content="AI browser agent, การทำงานอัตโนมัติในเบราว์เซอร์, ปลั๊กอินเบราว์เซอร์โอเพนซอร์ส, ทางเลือกแทนปลั๊กอินเบราว์เซอร์ของ Claude, ทางเลือกแทน OpenClaw, การทำงานอัตโนมัติบนเว็บ, ส่วนขยาย LLM สำหรับเบราว์เซอร์, ส่วนขยาย AI ของ Chrome, แอดออน AI ของ Firefox, llama.cpp ในเบราว์เซอร์, GPT browser agent, ผู้ช่วย AI ในเบราว์เซอร์, AI สำหรับ web scraping, เครื่องมือ AI โอเพนซอร์ส, AI browser โฮสต์เอง, AI ในเบราว์เซอร์หลายภาษา, ส่วนขยาย AI ที่ประหยัดโทเค็น">
  <meta property="og:title" content="WebBrain — AI Browser Agent ฟรี โอเพนซอร์ส">
  <meta property="og:description" content="ทางเลือกโอเพนซอร์สแทนปลั๊กอินเบราว์เซอร์ของ Claude ส่วนขยายเบราว์เซอร์ที่ขับเคลื่อนด้วย AI สำหรับ Chrome และ Firefox อ่าน เข้าใจ และทำให้หน้าเว็บใด ๆ ทำงานอัตโนมัติ รองรับ LLM หลายผู้ให้บริการ UI หลายภาษา ฟรีตลอดไป">
  <meta property="og:type" content="website">
  <meta property="og:url" content="https://webbrain.one/th/">
  <meta property="og:site_name" content="WebBrain">
  <meta property="og:locale" content="th-TH">
  <meta property="og:image" content="https://webbrain.one/og-image.png">
  <meta property="og:image:secure_url" content="https://webbrain.one/og-image.png">
  <meta property="og:image:type" content="image/png">
  <meta property="og:image:width" content="1200">
  <meta property="og:image:height" content="630">
  <meta property="og:image:alt" content="WebBrain — AI Browser Agent ฟรี โอเพนซอร์ส">
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:title" content="WebBrain — AI Browser Agent โอเพนซอร์ส">
  <meta name="twitter:description" content="ทางเลือกฟรีและโอเพนซอร์สแทนปลั๊กอินเบราว์เซอร์ของ Claude เอเจนต์ AI สำหรับ Chrome และ Firefox ใช้งานร่วมกับ LLM ภายในเครื่องหรือบนคลาวด์ UI 5 ภาษา ประหยัดโทเค็นเป็นค่าเริ่มต้น">
  <meta name="twitter:image" content="https://webbrain.one/twitter-image.png">
  <meta name="twitter:image:alt" content="WebBrain — AI Browser Agent ฟรี โอเพนซอร์ส">
  <meta name="robots" content="index, follow">
  <link rel="icon" type="image/png" href="/favicon.png">
  <link rel="canonical" href="https://webbrain.one/th/">
  <link rel="alternate" hreflang="en" href="https://webbrain.one/">
  <link rel="alternate" hreflang="es" href="https://webbrain.one/es/">
  <link rel="alternate" hreflang="fr" href="https://webbrain.one/fr/">
  <link rel="alternate" hreflang="tr" href="https://webbrain.one/tr/">
  <link rel="alternate" hreflang="zh" href="https://webbrain.one/zh/">
  <link rel="alternate" hreflang="ru" href="https://webbrain.one/ru/">
  <link rel="alternate" hreflang="uk" href="https://webbrain.one/uk/">
  <link rel="alternate" hreflang="ar" href="https://webbrain.one/ar/">
  <link rel="alternate" hreflang="ja" href="https://webbrain.one/ja/">
  <link rel="alternate" hreflang="ko" href="https://webbrain.one/ko/">
  <link rel="alternate" hreflang="id" href="https://webbrain.one/id/">
  <link rel="alternate" hreflang="th" href="https://webbrain.one/th/">
  <link rel="alternate" hreflang="ms" href="https://webbrain.one/ms/">
  <link rel="alternate" hreflang="tl" href="https://webbrain.one/tl/">
  <link rel="alternate" hreflang="he" href="https://webbrain.one/he/">
  <link rel="alternate" hreflang="hi" href="https://webbrain.one/hi/">
  <link rel="alternate" hreflang="pt" href="https://webbrain.one/pt/">
  <link rel="alternate" hreflang="vi" href="https://webbrain.one/vi/">
  <link rel="alternate" hreflang="bn" href="https://webbrain.one/bn/">
  <link rel="alternate" hreflang="fa" href="https://webbrain.one/fa/">
  <link rel="alternate" hreflang="nl" href="https://webbrain.one/nl/">
  <link rel="alternate" hreflang="de" href="https://webbrain.one/de/">
  <link rel="alternate" hreflang="x-default" href="https://webbrain.one/">
  <!-- JSON-LD Structured Data -->
  <script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "WebBrain",
  "applicationCategory": "BrowserApplication",
  "operatingSystem": "Chrome, Edge, Firefox",
  "offers": {
    "@type": "Offer",
    "price": "0",
    "priceCurrency": "USD"
  },
  "description": "WebBrain เป็นทางเลือกฟรีและโอเพนซอร์สแทนปลั๊กอินเบราว์เซอร์ของ Claude เป็น AI browser agent สำหรับ Chrome, Firefox และ Edge — อ่านหน้า สกัดข้อมูล และทำงานแบบอัตโนมัติ ใช้งานร่วมกับ llama.cpp, OpenAI, Claude, OpenRouter ได้ UI หลายภาษา ภาพหน้าจอประหยัดโทเค็น สัญญาอนุญาต GPL-3.0-or-later",
  "url": "https://webbrain.one/th/",
  "inLanguage": "th-TH",
  "downloadUrl": "https://chromewebstore.google.com/detail/webbrain/ljhijonmfahplgbbacgcfnaihbjljhhb",
  "softwareVersion": "5.1.0",
  "author": {
    "@type": "Person",
    "name": "Emre Sokullu",
    "url": "https://emresokullu.com"
  },
  "license": "https://www.gnu.org/licenses/gpl-3.0.html",
  "isAccessibleForFree": true,
  "image": "https://webbrain.one/logo-github.png",
  "screenshot": "https://webbrain.one/og-image.png"
}
  </script>
  <script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "inLanguage": "th-TH",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "WebBrain เป็นทางเลือกฟรีของปลั๊กอินเบราว์เซอร์ของ Claude หรือเปล่า?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ใช่ WebBrain ให้ความสามารถของ AI browser agent ที่คล้ายกัน — อ่านหน้า สกัดข้อมูล คลิกปุ่ม กรอกฟอร์ม และทำให้เวิร์กโฟลว์หลายขั้นเป็นอัตโนมัติ ต่างจากปลั๊กอินเบราว์เซอร์ของ Claude ที่เป็นกรรมสิทธิ์ ซึ่งต้องใช้สมาชิก Claude Pro และทำงานเฉพาะกับโมเดลของ Anthropic เท่านั้น WebBrain ฟรีโดยสิ้นเชิง โอเพนซอร์ส (สัญญาอนุญาต GPL-3.0-or-later) และรองรับผู้ให้บริการ LLM หลายราย รวมถึงโมเดลภายในเครื่องที่ทำงานทั้งหมดบนเครื่องของคุณ"
      }
    },
    {
      "@type": "Question",
      "name": "ค่าสมัครสมาชิก WebBrain Compass เท่าไร?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ตอนนี้ WebBrain Compass ราคา 5 ดอลลาร์สหรัฐ/เดือนต่อโปรไฟล์อุปกรณ์ ซึ่งถูกกว่า Claude Pro มากในช่วงนี้ การใช้งานขณะนี้ไม่จำกัดภายใต้นโยบายการใช้งานที่เป็นธรรม: การใช้งานส่วนตัวตามปกติใช้ได้ แต่ไม่อนุญาตการใช้งานในทางที่ผิด การใช้งานอัตโนมัติปริมาณสูง การนำไปขายต่อ หรือปริมาณการใช้งานที่สูงผิดปกติ การสมัครสมาชิกผูกกับตัวระบุอุปกรณ์ที่ส่วนขยายสร้างให้กับ GUID ของเบราว์เซอร์ + OS นั้น ไม่ได้ผูกกับบัญชีผู้ใช้ หากตัวระบุหายไปเพราะคุณรีเซ็ตพื้นที่เก็บข้อมูลของส่วนขยาย ลบโปรไฟล์เบราว์เซอร์ ติดตั้งเบราว์เซอร์ใหม่ เปลี่ยนเบราว์เซอร์/OS หรือทำอุปกรณ์หาย เราไม่สามารถกู้คืนหรือโอนย้ายให้ได้ และจะไม่คืนเงินจากกรณีนั้น"
      }
    },
    {
      "@type": "Question",
      "name": "ฉันจะจัดการหรือยกเลิกการสมัครสมาชิกได้อย่างไร?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "จัดการการเรียกเก็บเงินที่ api.webbrain.one/account และเข้าสู่ระบบด้วยอีเมลของคุณ"
      }
    },
    {
      "@type": "Question",
      "name": "ฉันชำระเงิน WebBrain Compass แล้ว แต่ส่วนขยายยังขอให้ชำระอีกครั้ง ฉันต้องจ่ายซ้ำหรือไม่?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ไม่ต้อง — อย่าชำระเงินซ้ำ การสมัคร Compass ของคุณผูกกับตัวระบุเบราว์เซอร์/อุปกรณ์ที่ส่วนขยายสร้างขึ้น ดังนั้นหากตัวระบุนั้นเปลี่ยนไป (เบราว์เซอร์หรืออุปกรณ์ใหม่ ติดตั้งเบราว์เซอร์ใหม่ ลบโปรไฟล์เบราว์เซอร์ หรือรีเซ็ตที่เก็บข้อมูลส่วนขยาย) ส่วนขยายจะไม่รู้จักการสมัครเดิมของคุณและขอให้ชำระเงิน เชื่อมต่อการสมัครเดิมของคุณกับเบราว์เซอร์ปัจจุบันผ่านพอร์ทัลบริการตนเองที่ api.webbrain.one/portal แล้วทำตามคำแนะนำเพื่อกู้คืนการเข้าถึง สำหรับใบเสร็จและการเปลี่ยนแปลงการเรียกเก็บเงินอื่น ๆ ให้จัดการการเรียกเก็บเงินที่ api.webbrain.one/account ด้วยอีเมลของคุณ"
      }
    },
    {
      "@type": "Question",
      "name": "Cloud Sync แบบเข้ารหัสทำงานอย่างไร?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Cloud Sync เป็นฟีเจอร์เสริมสำหรับสมาชิก WebBrain Compass ที่ยังใช้งานอยู่ ซิงก์ความจำ WebBrain ข้อความเติมอัตโนมัติของโปรไฟล์ และการตั้งค่าผู้ให้บริการที่รองรับ รวมถึงคีย์ API โดยไม่ซิงก์ประวัติแชท ประวัติเบราว์เซอร์ ภาพหน้าจอหน้าเว็บ หรือโทเค็น OAuth เข้าถึง/รีเฟรชแบบเก่า เบราว์เซอร์จะเข้ารหัสคลังซิงก์ก่อนอัปโหลดด้วยรหัสผ่านที่คุณเลือก WebBrain Compass เก็บเฉพาะคลังที่เข้ารหัสแล้วเท่านั้น อ่านความจำ ข้อความโปรไฟล์ การตั้งค่าผู้ให้บริการ หรือคีย์ API ของคุณไม่ได้ และกู้รหัสผ่านซิงก์แทนคุณไม่ได้ ช่องอีเมลใช้สำหรับยืนยันตัวตน billing/subscription แบบ magic-link ของ WebBrain Compass ไม่ใช่รหัสผ่านบัญชี หาก UI บอกให้เปลี่ยนรหัสผ่านใน Cloud Sync หมายถึง รหัสผ่านเข้ารหัสการซิงก์ ไม่ใช่รหัสผ่านบัญชี WebBrain หากลืมรหัสผ่านซิงก์ จะถอดรหัสคลังคลาวด์เก่าไม่ได้ คุณรีเซ็ตคลังคลาวด์แล้วอัปโหลดสำเนาเข้ารหัสใหม่จากอุปกรณ์ที่ยังมีข้อมูลในเครื่องได้"
      }
    },
    {
      "@type": "Question",
      "name": "WebBrain เปรียบเทียบกับ OpenClaw, Browser-Use และเฟรมเวิร์กเอเจนต์ AI อื่น ๆ ได้อย่างไร?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "เป็นเครื่องมือคนละหมวด WebBrain คือส่วนขยายเบราว์เซอร์ — คุณติดตั้งใน Chrome หรือ Firefox และสนทนากับมันในแถบด้านข้าง ไม่ต้องเขียนโค้ด ส่วนเฟรมเวิร์กอย่าง OpenClaw และ Browser-Use คือ SDK สำหรับนักพัฒนาเพื่อสร้างไปป์ไลน์เบราว์เซอร์อัตโนมัติด้วย Python โดยทั่วไปจะใช้เบราว์เซอร์แบบ headless และ CDP คิดอย่างนี้: WebBrain ใช้สำหรับท่องเว็บประจำวันคู่กับผู้ช่วย AI; เฟรมเวิร์กเอเจนต์ใช้สำหรับสร้างบอท scraping และระบบทดสอบอัตโนมัติ ใช้คู่กันได้ — เสริมกัน"
      }
    },
    {
      "@type": "Question",
      "name": "ฉันแก้ไขเวิร์กโฟลว์ของ WebBrain ได้หรือไม่?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ได้ ใช้ ตัวแก้ไขเวิร์กโฟลว์ WebBrain เพื่อตรวจสอบ แก้ไข ตรวจสอบความถูกต้อง และส่งออกไฟล์ JSON ของเวิร์กโฟลว์ในเบราว์เซอร์ของคุณ"
      }
    },
    {
      "@type": "Question",
      "name": "ใช้ WebBrain แบบออฟไลน์ทั้งหมดได้ไหม?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ได้ ผู้ให้บริการเริ่มต้นของ WebBrain คือ llama.cpp ซึ่งรันโมเดล AI ในเครื่องคุณ ไม่ต้องใช้คีย์ API, AI ไม่ต้องใช้อินเทอร์เน็ต และข้อมูลก็ไม่ออกจากเครื่องคุณเลย เพียงดาวน์โหลดโมเดล GGUF เริ่ม llama-server แล้วคุณจะมี AI browser agent ที่เป็นส่วนตัวเต็มรูปแบบ คุณยังสามารถใช้ Ollama ผ่าน endpoint ที่เข้ากันได้กับ OpenAI ได้ด้วย"
      }
    },
    {
      "@type": "Question",
      "name": "กล่องฉุกเฉินคืออะไร และ RAG แบบออฟไลน์ทำงานอย่างไร?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "กล่องฉุกเฉินคือคอลเลกชันเอกสารอ้างอิงภาคสนามสาธารณสมบัติที่คัดสรรแล้วประมาณ 570 ฉบับ (การแพทย์ การเอาตัวรอด การศึกษา การสื่อสาร) ซึ่ง WebBrain สามารถดาวน์โหลดและจัดทำดัชนีในเครื่องได้ เมื่อติดตั้งแล้ว คุณสามารถถามคำถามเชิงข้อเท็จจริงแบบออฟไลน์และรับคำตอบจากเอกสารเหล่านั้นได้โดยไม่ต้องเชื่อมต่ออินเทอร์เน็ต เบื้องหลัง WebBrain ใช้ SQLite FTS5 สำหรับค้นหาคำสำคัญอย่างรวดเร็วทั้งในกล่องฉุกเฉินและคลัง Wikipedia ที่ติดตั้งไว้ รวมถึงชั้นการค้นหาเชิงความหมายเสริมที่ใช้โมเดล E5 หลายภาษาที่ดาวน์โหลดในเครื่อง (~140 MB) ผลลัพธ์จากทั้งสองวิธีจะถูกรวมและกระจายความหลากหลาย และทุกคำตอบจะอ้างอิงข้อความต้นฉบับที่ตรงจุด การอ้างอิงจะเปิดในตัวอ่านในเครื่องซึ่งตรวจสอบความสมบูรณ์ของเอกสารก่อนแสดง — ไม่มีการนำทางไปยังหน้าเว็บจริง คุณยังติดตั้งคลัง Wikipedia ผ่านโหมด Apocalypse เพื่อฐานความรู้ออฟไลน์ที่กว้างขึ้นได้ ตัวกรองแหล่งที่มาและภาษาช่วยให้คุณควบคุมว่าจะค้นในคอลเลกชันใด"
      }
    },
    {
      "@type": "Question",
      "name": "WebBrain รองรับโมเดล AI ใดบ้าง?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "WebBrain รองรับผู้ให้บริการ 4 ประเภท: llama.cpp (โมเดล GGUF ภายในเครื่องใด ๆ), OpenAI (GPT-4o, GPT-4 ฯลฯ), Claude (Claude Opus, Sonnet, Haiku ผ่าน API ดั้งเดิม) และ OpenRouter (เข้าถึงโมเดลกว่า 100 โมเดลจากผู้ให้บริการต่าง ๆ) endpoint API ใด ๆ ที่เข้ากันได้กับ OpenAI ก็ใช้ได้ ดังนั้นคุณยังใช้บริการอย่าง Together AI, Groq, Mistral หรือเซิร์ฟเวอร์ภายในเครื่องใด ๆ ที่มีอินเทอร์เฟซเข้ากันได้กับ OpenAI ก็ได้"
      }
    },
    {
      "@type": "Question",
      "name": "โมเดลที่แนะนำที่สุดคืออะไร?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ณ 21 เมษายน 2026 คำแนะนำอันดับหนึ่งคือ Qwen 3.6 35B เหตุผล: ในเบนช์มาร์กด้านการมองเห็นของเรา (vision-model-shootout) มันทำได้ดีกว่า Gemma 4 ในการเข้าใจภาพหน้าจอ ขณะที่ยังใช้งานจริงสำหรับการอินเฟอเรนซ์ภายในเครื่องได้ สำหรับ GPU ระดับผู้บริโภค RTX 5090 เหมาะที่สุด ส่วน RTX 4090 มักใช้งานได้ด้วยการควอนไทซ์ INT4 AutoRound ผ่าน Intel/Qwen3.6-35B-A3B-int4-AutoRound เพื่อความเร็วสูงสุด เราแนะนำให้เซิร์ฟด้วย vLLM ตัวอย่างคำสั่ง: python -u -m vllm.entrypoints.openai.api_server --model Intel/Qwen3.6-35B-A3B-int4-AutoRound --served-model-name qwen3.6-35b --quantization auto --dtype bfloat16 --max-model-len 65536 --max-num-batched-tokens 32768 --max-num-seqs 4 --host 0.0.0.0 --port 8000 --gpu-memory-utilization 0.92 --enable-prefix-caching --enable-chunked-prefill --limit-mm-per-prompt '{\"image\": 4, \"video\": 1}' --mm-processor-cache-type shm --reasoning-parser qwen3 --enable-auto-tool-choice --tool-call-parser qwen3_coder --trust-remote-code --allowed-origins '[\"*\"]' --speculative-config '{\"method\": \"dflash\", \"model\": \"z-lab/Qwen3.6-35B-A3B-DFlash\", \"num_speculative_tokens\": 15}' --attention-backend flash_attn DFlash speculative decoding เป็นทางเลือก"
      }
    },
    {
      "@type": "Question",
      "name": "เหตุใด WebGPU จึงมีให้ใช้เฉพาะในโหมด Apocalypse?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "เนื่องจากเรายังไม่คิดว่าการอนุมานข้อความด้วย WebGPU ภายในเบราว์เซอร์ดีพอสำหรับผู้ใช้ส่วนใหญ่ และเราไม่ต้องการให้คุณต้องทนกับประสบการณ์ที่ไม่ดี หากต้องการใช้โมเดล LFM2.5 2.6B เดียวกันภายในเครื่อง ให้รันการอนุมานบนเครื่องของคุณด้วย llama.cpp หรือ Ollama แล้วชี้ WebBrain ไปยังเอนด์พอยต์ภายในเครื่องนั้นแทนการพึ่งพา WebGPU ระบบสำรองด้านการมองเห็นผ่าน WebGPU ยังคงใช้งานได้ เพราะโมเดลมีขนาดเล็กกว่ามากและระบบสำรองนี้ถูกเรียกใช้เพียงเป็นครั้งคราว"
      }
    },
    {
      "@type": "Question",
      "name": "เจอ “Failed to fetch” เมื่อเชื่อมต่อกับเซิร์ฟเวอร์ LLM ภายใน (vLLM, Ollama, llama.cpp) บนเครือข่ายของฉัน",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "หากเซิร์ฟเวอร์ LLM อยู่บนเครื่องอื่นในเครือข่ายภายในของคุณ (เช่น http://192.168.1.x:8000) Chrome จะบล็อกคำขอเว้นแต่เซิร์ฟเวอร์จะส่ง เฮดเดอร์ CORS วิธีแก้ขึ้นกับเซิร์ฟเวอร์ของคุณ: vLLM: เริ่มด้วย --allowed-origins '[\"*\"]' (ค่าต้องเป็นลิสต์ JSON) Ollama: ตั้งตัวแปรสภาพแวดล้อม OLLAMA_ORIGINS=* ก่อนเริ่ม llama.cpp: เปิด CORS เป็นค่าเริ่มต้น — ไม่ต้องเปลี่ยน หากเซิร์ฟเวอร์ของคุณรันที่ localhost (เครื่องเดียวกับเบราว์เซอร์) ปกติไม่จำเป็นต้องใช้ CORS ปัญหานี้กระทบเฉพาะการเชื่อมต่อข้ามเครื่องบนเครือข่ายภายในเท่านั้น ตรวจสอบให้แน่ใจว่า base URL ในการตั้งค่าของ WebBrain ลงท้ายด้วย /v1 (เช่น http://192.168.1.47:8000/v1) ข้อยกเว้น: Ollama ที่ใช้จากส่วนขยายเบราว์เซอร์อาจยังต้องใช้ OLLAMA_ORIGINS; ดู FAQ ของ Ollama ด้านล่าง"
      }
    },
    {
      "@type": "Question",
      "name": "ทำไม Ollama บน localhost ถึงคืนค่า 403 จากส่วนขยาย WebBrain?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Ollama เวอร์ชันใหม่อาจปฏิเสธคำขอจาก origin ของส่วนขยายเบราว์เซอร์ แม้ Ollama จะทำงานอยู่บนเครื่องเดียวกัน ส่วนขยายจะส่ง Origin เช่น chrome-extension://... หรือ moz-extension://... และ Ollama อาจตอบกลับ 403 หาก origin เหล่านี้ไม่ได้รับอนุญาต ปิดแอป Ollama บนเดสก์ท็อปที่กำลังใช้พอร์ต 11434 อยู่ก่อน จากนั้นเริ่ม Ollama ด้วยคำสั่งใดคำสั่งหนึ่งนี้: OLLAMA_ORIGINS=\"*\" ollama serve OLLAMA_ORIGINS=\"chrome-extension://*,moz-extension://*\" ollama serve ให้ URL พื้นฐานของ Ollama ใน WebBrain เป็น http://localhost:11434/v1 ต่อไป การตรวจด้วย curl ในเทอร์มินัลอาจยังใช้ได้โดยไม่ต้องตั้งค่านี้ เพราะไม่ได้ส่ง origin ของส่วนขยายเบราว์เซอร์"
      }
    },
    {
      "@type": "Question",
      "name": "WebBrain ใช้งานบน Firefox ได้ไหม?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ได้ WebBrain มาพร้อมทั้งเวอร์ชัน Chrome (Manifest V3 ใช้ sidePanel API) และเวอร์ชัน Firefox (Manifest V2 ใช้ sidebar_action) ทั้งสองเวอร์ชันมีคุณสมบัติเหมือนกัน เวอร์ชัน Firefox สามารถโหลดเป็นแอดออนชั่วคราวเพื่อใช้พัฒนา หรือเผยแพร่ไปยัง addons.mozilla.org เพื่อการติดตั้งถาวรได้"
      }
    },
    {
      "@type": "Question",
      "name": "ย้ายแถบด้านข้างของ Firefox จากซ้ายไปขวาแบบแถบด้านข้างของ Chrome ได้ไหม?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ได้ — แถบด้านข้างของ Firefox โดยปกติจะอยู่ทางซ้าย แต่คุณสามารถสลับได้ คลิกขวาที่ส่วนหัวของแถบด้านข้าง แล้วเลือก Move Sidebar to Right (หรือใช้ View → Sidebar → Move Sidebar to Right จากแถบเมนู) ตำแหน่งจะคงอยู่หลังจากรีสตาร์ท ส่วน sidePanel ของ Chrome โดยปกติอยู่ทางขวาและผู้ใช้ไม่สามารถย้ายจากตัวพาเนลเองได้"
      }
    },
    {
      "@type": "Question",
      "name": "การใช้ WebBrain ใน Web Panel ของ Vivaldi มีข้อจำกัดหรือไม่?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "มี Web Panel ของ Vivaldi จะบล็อกกล่องโต้ตอบ JavaScript แบบเนทีฟ เช่น confirm(), alert() และ prompt() การสลับโหมด Ask, Act และ Dev ของ WebBrain ไม่ได้พึ่งกล่องเหล่านี้แล้ว แต่การทำงานรองบางอย่างยังคงพึ่งอยู่ การบันทึก: ตอนนี้ยังไม่ควรใช้ /record ใน Vivaldi หากการบันทึกล้มเหลว Vivaldi อาจซ่อนการแจ้งเตือนข้อผิดพลาดและไม่แสดงคำอธิบาย Settings, History, Traces และ Ollama handoff: หน้าเหล่านี้ก็มีกล่องโต้ตอบแบบเนทีฟเช่นกัน แต่ปกติ WebBrain จะเปิดเป็นแท็บทั่วไปที่ใช้งานได้ หากคุณเพิ่มหน้าใดลงใน Web Panel ด้วยตนเอง ให้เปิดในแท็บปกติก่อนใช้การทำงานที่ต้องพึ่งกล่องโต้ตอบ"
      }
    },
    {
      "@type": "Question",
      "name": "WebBrain ใช้งานปลอดภัยไหม? มันแก้ไขหน้าเว็บได้หรือเปล่า?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "WebBrain มีสามโหมด โหมดถาม (ค่าเริ่มต้น) เป็นแบบอ่านอย่างเดียวและไม่สามารถแก้ไขหน้าได้ โหมดทำอนุญาตการทำงานของเบราว์เซอร์ เช่น คลิก พิมพ์ และนำทาง ส่วนโหมด Dev เพิ่มเครื่องมือดีบักหน้าเว็บ การกระทำที่มีผลตามมาต้องได้รับอนุมัติโดยค่าเริ่มต้น หากปิดด่านสิทธิ์นี้ WebBrain จะแสดงแบนเนอร์คำเตือนที่มองเห็นได้ คุณสามารถหยุดเอเจนต์ได้ทุกเมื่อด้วยปุ่มหยุด ซอร์สโค้ดของส่วนขยายเปิดเผยเต็มที่บน GitHub เพื่อการตรวจสอบ"
      }
    },
    {
      "@type": "Question",
      "name": "แบนเนอร์ «WebBrain started debugging this browser» คืออะไร? ทำไม WebBrain จึงใช้ CDP?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "เพื่อให้ดำเนินการบนหน้าเว็บได้อย่างเชื่อถือได้ WebBrain ใช้ Chrome DevTools Protocol (CDP) ผ่าน API ส่วนขยายมาตรฐาน chrome.debugger ซึ่งเป็นสาเหตุที่ทำให้ขึ้นแบนเนอร์ «WebBrain started debugging this browser» ของ Chrome โดย CDP ช่วยให้เอเจนต์คลิกและพิมพ์ด้วยเหตุการณ์อินพุตที่เชื่อถือได้ซึ่งเว็บไซต์สมัยใหม่ยอมรับจริง ส่วนเหตุการณ์สังเคราะห์ที่ส่งจาก content script มักถูกปฏิเสธโดยหลายเว็บไซต์ Web Components และช่องที่ควบคุมโดยเฟรมเวิร์ก นอกจากนี้ WebBrain ยังใช้มันจับภาพหน้าจอความละเอียดระดับพิกเซลสำหรับการสำรองด้วยวิชัน และเข้าถึง iframe ข้ามต้นทางและ shadow DOM ที่ content script มองไม่เห็น โหมดถามแบบอ่านอย่างเดียวไม่จำเป็นต้องใช้ CDP การอ่านหน้าและ accessibility tree ทำผ่าน content script ปกติ สิ่งที่ต้องใช้ CDP คือความน่าเชื่อถือของโหมดทำและงานข้ามต้นทาง และในส่วนขยาย Manifest V3 ไม่มี API ใดที่ให้อินพุตที่เชื่อถือได้โดยไม่ใช้ดีบักเกอร์ WebBrain จะแนบดีบักเกอร์เฉพาะเมื่อการกระทำต้องใช้เท่านั้น แบบแยกตามแท็บ และส่วนขยายทั้งหมดเป็นโอเพนซอร์ส คุณจึงตรวจสอบได้ว่าเซสชันทำอะไรบ้าง CDP มีพลังมาก เราจึงถือว่าขอบเขตของมันเป็นสิ่งที่ต้องจำกัด (แนบเมื่อจำเป็น ไม่ใช้กับการอ่าน) และการรัดกุมยิ่งขึ้นอยู่ในแผนงานด้านความปลอดภัยของเรา"
      }
    },
    {
      "@type": "Question",
      "name": "มันถามฉันเยอะเกินไป ปิดได้ไหม?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ข้อความขออนุมัติเหล่านี้มีไว้เพื่อความปลอดภัยของคุณ แม้แต่ในเว็บไซต์ที่คุณไว้วางใจ ผู้ไม่หวังดีอาจเลียนแบบคำสั่งของ LLM หรือแทรกเนื้อหาที่พยายามทำให้เอเจนต์ทำสิ่งต่าง ๆ ในนามของคุณที่คุณจะไม่อนุมัติ นั่นคือเหตุผลที่ WebBrain ต้องขออนุมัติก่อนการกระทำที่มีผลตามมา หากคุณยังไม่ต้องการผ่านข้อความเหล่านี้ ให้พิมพ์ /dangerously-skip-permissions ในแผงด้านข้าง หรือปิดได้: เปิดปลั๊กอินด้านข้าง คลิกไอคอนรูปวงล้อในส่วนหัว ไปที่แท็บ Permissions ใน settings.html แล้วปิดตัวเลือก Ask before consequential actions."
      }
    },
    {
      "@type": "Question",
      "name": "ใช้ WebBrain สำหรับ web scraping และการสกัดข้อมูลอย่างไร?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "เพียงเปิดหน้าเว็บใด ๆ เปิดแถบด้านข้างของ WebBrain แล้วถามเป็นภาษาธรรมชาติ: \"สกัดชื่อสินค้าและราคาทั้งหมดจากหน้านี้\", \"ดึงที่อยู่อีเมลทั้งหมดบนหน้านี้\" หรือ \"สรุปบทความนี้เป็นข้อ ๆ\" AI agent จะอ่านเนื้อหาของหน้า เข้าใจโครงสร้าง และส่งข้อมูลที่สกัดได้กลับมา สำหรับ scraping ที่ซับซ้อนกว่านั้น สลับไปที่โหมดทำ เอเจนต์สามารถเดินทางข้ามหน้า กดปุ่มแบ่งหน้า และรวบรวมข้อมูลจากหลายหน้าได้"
      }
    },
    {
      "@type": "Question",
      "name": "WebBrain เรียก API โดยตรง หรือคลิกผ่าน UI เสมอ?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "โดยค่าเริ่มต้น WebBrain จะ ผ่าน UI ที่มองเห็นได้เสมอ สำหรับทุกการกระทำที่สร้าง แก้ไข ลบ ส่ง โพสต์ หรือซื้ออะไรก็ตาม มันจะเดินทางไปยังหน้า กรอกฟอร์ม และคลิกปุ่ม — แบบเดียวกับที่คุณจะทำ มันจะปฏิเสธการเรียก endpoint REST/GraphQL โดยตรงผ่าน fetch() ในพื้นหลังเพื่อทำการเปลี่ยนแปลง สิ่งนี้เป็นความตั้งใจ: การกระทำผ่าน API มองไม่เห็น (คุณไม่เห็นว่าส่งอะไรไป) มักต้องใช้โทเค็นยืนยันแยกที่คุณอาจยังไม่ได้ตั้งค่า และมีรัศมีผลกระทบที่กว้างกว่าการคลิกผิดที่มองเห็นได้ UI-first หมายถึงทุกอย่างปรากฏบนหน้าจอ ในเซสชันเบราว์เซอร์ปกติของคุณ และสามารถหยุดได้ สำหรับการ อ่าน ข้อมูล — ดึง README, ดู issue, เปรียบเทียบราคาระหว่างไซต์, ตรวจสอบหน้าแสดงสถานะ — WebBrain ใช้คำขอ HTTP พื้นหลังได้อย่างอิสระผ่านเครื่องมือ fetch_url และ research_url การอ่านไม่ใช่การกระทำ; ไม่เปลี่ยนอะไรในบริการระยะไกล จึงไม่มีข้อกังวลด้านความปลอดภัยแบบเดียวกัน หากคุณต้องการอนุญาตให้แก้ไขผ่าน API สำหรับงานเฉพาะ พิมพ์ /allow-api ที่ต้นข้อความ (ตามด้วยคำอธิบายงานสั้น ๆ ก็ได้) การข้ามผ่านระดับการสนทนานี้ช่วยให้ WebBrain ถอยไปใช้ endpoint API เมื่อ UI ใช้งานไม่ได้จริง ๆ ในขณะที่ยังคงให้ความสำคัญกับ UI เมื่อ UI ใช้งานได้ ป้ายติดถาวรจะปรากฏเหนือพื้นที่ป้อนข้อความขณะที่การข้ามผ่านยังทำงานอยู่ และจะหายไปเมื่อคุณรีเซ็ตการสนทนา"
      }
    },
    {
      "@type": "Question",
      "name": "ใช้ใน LM Studio ก็ได้เหมือนกันไหม?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ได้ เครื่องมือเครือข่ายแบบอ่านอย่างเดียวของ WebBrain — fetch_url และ research_url — มาในรูปของปลั๊กอิน LM Studio เดี่ยว ๆ ที่ webbrain/web-tools ติดตั้งด้วย lms clone webbrain/web-tools แล้วเปิดใช้ในแชต LM Studio ใดก็ได้ — โมเดลใด ๆ ที่รองรับการเรียกใช้เครื่องมือจะสามารถเรียกใช้สองเครื่องมือนี้ได้โดยไม่ต้องติดตั้งส่วนขยายเบราว์เซอร์ Node ล้วน ไม่ใช้เบราว์เซอร์ headless ซอร์ส: lmstudio-plugin/"
      }
    },
    {
      "@type": "Question",
      "name": "ฉันเลื่อนขึ้นหรือลงขณะที่ WebBrain กำลังทำงานในแท็บของฉันได้ไหม?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "โดยส่วนใหญ่ได้ — โดยเฉพาะใน โหมด Ask สำหรับคำขอแบบอ่านอย่างเดียว เช่น “สรุปหน้านี้” คุณเลื่อนหน้าต่อได้ในขณะที่ WebBrain ทำงาน เมื่อใดควรหลีกเลี่ยง? ภาพหน้าจออัตโนมัติจะแสดงวิวพอร์ตปัจจุบันของแท็บ ขณะที่ WebBrain กำลังตรวจสอบหรือโต้ตอบกับเนื้อหาที่มองเห็นอยู่ใน โหมด Act หรือ Dev การเลื่อนอาจทำให้เป้าหมายขยับหรือเปลี่ยนสิ่งที่โมเดลมองเห็น รอให้ขั้นตอนนั้นเสร็จก่อนแล้วจึงเลื่อน นอกเหนือจากช่วงเหล่านั้น คุณใช้หน้าต่อได้ตามปกติ"
      }
    },
    {
      "@type": "Question",
      "name": "ในขณะที่ WebBrain ทำงานในหน้าหนึ่ง ฉันสลับไปแท็บอื่นได้ไหม?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ได้ ตั้งแต่เวอร์ชัน 27.0.0 เป็นต้นมา WebBrain จะหลีกเลี่ยงการแย่งโฟกัสทั้งในเบราว์เซอร์ที่ใช้ Chromium และ Firefox เว้นแต่ว่าจำเป็นต้องเข้าถึงแท็บเบื้องหน้าอย่างแท้จริง งานจะยังคงผูกกับแท็บที่เริ่มต้น คุณจึงทำงานในแท็บอื่นได้อย่างปลอดภัย หากมีขั้นตอนที่เกิดขึ้นไม่บ่อยและต้องนำแท็บเดิมมาไว้เบื้องหน้า WebBrain อาจโฟกัสแท็บนั้นชั่วครู่ หลีกเลี่ยงการคลิกหรือพิมพ์ในแท็บเดียวกันขณะที่ WebBrain กำลังดำเนินการอยู่"
      }
    },
    {
      "@type": "Question",
      "name": "การกรอกโปรไฟล์อัตโนมัติทำงานอย่างไร และปลอดภัยไหม?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "การกรอกโปรไฟล์อัตโนมัติเป็นคุณสมบัติเลือกได้ใน การตั้งค่า → หน่วยความจำ คุณกรอกประวัติย่อ — ชื่อ อีเมลที่ทำงาน บริษัท และรหัสผ่าน ใช้แล้วทิ้ง สำหรับการสมัครเสี่ยงต่ำ — แล้วเปิดใช้งาน เมื่อเปิดใช้ WebBrain จะเพิ่มข้อความนั้นต่อท้าย system prompt ของเอเจนต์ เพื่อให้มันกรอกฟอร์มสมัครได้โดยไม่ต้องถามทุกครั้ง ข้อความถูกเก็บ เป็นข้อความธรรมดา ใน local storage ของเบราว์เซอร์ มัน จะไม่ ถูกส่งไปยังโปรเจกต์ WebBrain แต่ จะถูกส่ง ไปยังผู้ให้บริการ LLM ที่คุณตั้งค่าไว้ในทุกเทิร์น ในฐานะส่วนหนึ่งของ system prompt ปิดเป็นค่าเริ่มต้น อย่าใส่รหัสผ่านของบัญชีสำคัญ ที่นี่ (Google, Apple, iCloud, ธนาคาร, SSO ที่ทำงาน, อีเมลหลัก) บัญชีเหล่านั้นควรใช้ 2FA และไม่ควรมอบให้เอเจนต์อยู่แล้ว กรณีใช้งานที่ตั้งใจคือรหัสผ่านใช้แล้วทิ้งที่คุณใช้ซ้ำสำหรับการสมัครจดหมายข่าวและการทดลองใช้ฟรี"
      }
    },
    {
      "@type": "Question",
      "name": "การตั้งค่าเบลอภาพหน้าจอรับประกันหรือไม่ว่าข้อมูลส่วนตัวของฉันจะไม่มีวันไปถึงโมเดลวิชั่นบนคลาวด์?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ไม่ — มันช่วยลดความเสี่ยง ไม่ใช่การรับประกัน เมื่อเปิดใช้งาน (การตั้งค่า → ขั้นสูง → การเบลอภาพหน้าจอ ปิดอยู่โดยค่าเริ่มต้น) WebBrain จะเบลอช่องฟอร์มและข้อความที่ดูเหมือนอีเมลหรือหมายเลขโทรศัพท์บนภาพหน้าจอทุกภาพ ก่อน ที่จะส่งไปยังโมเดลวิชั่น การตรวจจับทำงานทั้งหมดบนอุปกรณ์ของคุณโดยใช้หลักการ DOM heuristics ไม่มีการส่งข้อมูลเพิ่มเติมใดๆ ฟีเจอร์นี้เป็นแบบ best-effort และ fail-open หากตัวตรวจจับไม่สามารถทำงานบนหน้าใดหน้าหนึ่งได้ — เช่น ทันทีหลังการนำทาง ในตัวแสดง PDF หรือบนหน้าเบราว์เซอร์ที่ถูกจำกัด — ภาพหน้าจอจะยังคงถูกส่งไปโดยไม่ถูกเบลอ แทนที่จะยกเลิกงานของคุณ เนื้อหาที่หลักการ DOM heuristics มองไม่เห็น (ข้อความที่วาดบน canvas ข้อมูลส่วนบุคคลในรูปภาพ วิดเจ็ตที่ไม่ปกติ) ก็อาจหลุดรอดได้เช่นกัน และการตั้งค่านี้ครอบคลุมเฉพาะภาพหน้าจอเท่านั้น ข้อความในหน้าเว็บที่ส่งไปยังโมเดลจะไม่ถูกเบลอโดยการตั้งค่านี้ หากต้องการความเป็นส่วนตัวด้านวิชั่นอย่างเต็มที่ ให้ใช้โมเดลภายในเครื่อง เมื่อใช้ผู้ให้บริการแบบออฟไลน์ เช่น llama.cpp หรือ Ollama ภาพหน้าจอและข้อความในหน้าเว็บจะไม่ออกจากเครื่องของคุณเลย จึงไม่มีอะไรต้องเบลอตั้งแต่แรก — นี่คือการตั้งค่าเดียวที่รับประกันความเป็นส่วนตัวได้จริง ดู \"ใช้ WebBrain แบบออฟไลน์ทั้งหมดได้ไหม?\" ด้านบน ไม่มีเครื่องที่แรงพอจะรันโมเดลภายในเครื่องแบบรองรับวิชั่น? ทางเลือกที่ดีคือใช้โมเดลภายในเครื่องขนาดเล็กสำหรับการวางแผนและเรียกใช้เครื่องมือ (เบาพอสำหรับ CPU/GPU ทั่วไป) ควบคู่กับผู้ให้บริการคลาวด์สำหรับการเรียกใช้วิชั่นย่อย พร้อมเปิดการเบลอภาพหน้าจอไว้ ด้วยวิธีนี้บทสนทนาและข้อความในหน้าเว็บของคุณยังคงอยู่ในเครื่อง และทุกภาพหน้าจอที่ส่งออกไปยังวิชั่นบนคลาวด์จะถูกเบลอช่องฟอร์มและอีเมล/เบอร์โทรที่ตรวจพบไว้ล่วงหน้าแล้ว — ลดความเสี่ยงบนคลาวด์โดยไม่ต้องใช้ฮาร์ดแวร์สำหรับโมเดลวิชั่นภายในเครื่องแบบเต็มรูปแบบ ตั้งค่าการแบ่งนี้ได้ที่ ผู้ให้บริการ → การมองเห็น (ดู \"WebBrain ควบคุมบิล LLM บนคลาวด์อย่างไร?\" ด้านบน)"
      }
    },
    {
      "@type": "Question",
      "name": "WebBrain ทำอย่างไรกับแบนเนอร์ Cookie และ paywall?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "แบนเนอร์ Cookie: WebBrain รู้จักแบนเนอร์ยินยอมจากเฟรมเวิร์กที่พบทั่วไป (OneTrust, Cookiebot, Didomi, Quantcast, Google Funding Choices, TrustArc) และปิดมันก่อนวิเคราะห์หน้า ลำดับความสำคัญคือ \"ปฏิเสธทั้งหมด\" / \"ปฏิเสธที่ไม่จำเป็น\" / \"เฉพาะจำเป็น\" เมื่อมองเห็นชัดเจน หากไม่เห็นจะกลับไปใช้ \"ยอมรับทั้งหมด\" แทนที่จะหลงทางในเขาวงกต \"จัดการการตั้งค่า\" Paywall: WebBrain รายงาน paywall อย่างตรงไปตรงมาและบอกคุณว่ามองเห็นอะไรจริง ๆ (พาดหัว สาระสั้น ๆ ย่อหน้าแรก) มัน ไม่ พยายามผ่าน paywall — ไม่มี archive.today, 12ft.io, การล้าง Cookie, การปิด JS หรือเล่ห์ของโหมดผู้อ่าน หากต้องการบทความเต็ม ให้เข้าสู่ระบบด้วยสมาชิก หรือขอให้ WebBrain หาแหล่งฟรีของเรื่องเดียวกัน"
      }
    },
    {
      "@type": "Question",
      "name": "WebBrain รองรับโหมด dry-run หรือไม่?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ณ 7.0.0 ยังไม่รองรับ โหมด dry-run มีแผนแล้วและอยู่ในแผนงาน"
      }
    },
    {
      "@type": "Question",
      "name": "WebBrain ส่ง DOM ทั้งหมดไปยังโมเดล AI หรือไม่?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ไม่ โดยค่าเริ่มต้น WebBrain จะไม่ส่ง HTML ดิบหรือข้อมูล DOM ดิบทั้งหมด ระบบเริ่มจาก URL และชื่อหน้า คำแนะนำที่ตรงกับเว็บไซต์ และภาพหน้าจอของพื้นที่ที่มองเห็นแบบเลือกใช้เมื่อเปิดใช้งานการมองเห็น เมื่องานต้องใช้เนื้อหาของหน้า WebBrain จะอ่านตามความจำเป็นในรูปแบบโครงสร้างการช่วยการเข้าถึงเชิงความหมายที่ย่อแล้วหรือข้อความที่แยกออกมา การอ่านจะกรองตามการมองเห็นเมื่อเหมาะสม จำกัดจำนวนอักขระ และแบ่งผลลัพธ์เป็นหน้า การเข้าถึงซอร์สของหน้าแบบดิบมีเฉพาะในโหมด Dev เท่านั้น"
      }
    },
    {
      "@type": "Question",
      "name": "ทำไม WebBrain 33.0.0 ขึ้นไปจึงใช้สัญญาอนุญาต GPL?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "WebBrain 33.0.0 ขึ้นไปเผยแพร่ภายใต้ GPL-3.0-or-later เนื่องจากส่วนขยายเบราว์เซอร์รวมและผสานรวมรันไทม์ WebAssembly ของ Xapian/libzim ที่ได้รับอนุญาต GPL สำหรับการค้นหาข้อความเต็มในคลัง ZIM ของ Wikipedia แพ็กเกจส่วนขยายมีประกาศ GPL ที่เกี่ยวข้อง และซอร์สโค้ดที่เกี่ยวข้องครบถ้วนของรันไทม์ที่รวมอยู่จะเผยแพร่พร้อมกับทุกรุ่น รุ่นก่อน 33.0.0 ยังคงใช้สัญญาอนุญาต MIT ส่วนโปรเจกต์ย่อยที่เผยแพร่อิสระและคอมโพเนนต์บุคคลที่สามยังคงใช้สัญญาอนุญาตตามที่ระบุ ดูบันทึกการตัดสินใจเรื่องสัญญาอนุญาตสำหรับรายละเอียด"
      }
    },
    {
      "@type": "Question",
      "name": "WebBrain ควบคุมบิล LLM บนคลาวด์อย่างไร?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "มีสามชั้นที่เป็นอิสระต่อกัน: ภาพหน้าจอประหยัดโทเค็น ก่อนรูปจะออกจากเครื่องของคุณ WebBrain ปรับขนาด (จำกัดด้านที่สั้นกว่า โดยรักษาสัดส่วน) และบีบอัด JPEG ซ้ำ ๆ จนกระทั่งพอดีกับงบโทเค็นรูปต่อเทิร์น ภาพหน้าจอ 2000×1200 ที่จะใช้โทเค็นอินพุตประมาณ 1,500 บน GPT-4o จะถูกบีบลงเหลือ ~300–500 โทเค็น โดยไม่มีความสูญเสียในทางปฏิบัติสำหรับงานอ่านหน้า ใช้งานอยู่ใน _fitImageDimensions พร้อมยูนิตเทสต์สำหรับคณิตศาสตร์ของงบ การตัด context อัจฉริยะ ประวัติการสนทนา เอาต์พุตของเครื่องมือ และดัมป์ DOM แบบฝังในแต่ละเทิร์นล้วนมีขีดจำกัด และจะถูกตัดจากเก่าที่สุดก่อนเมื่อหน้าต่าง context ของโมเดลที่ใช้งานอยู่ใกล้เต็ม คุณจะไม่เห็นการรันบวมขึ้นเงียบ ๆ จาก 10k โทเค็นเป็น 100k เพราะ read_page คืนบทความยาวขนาดนวนิยาย โมเดลด้านการมองเห็นโดยเฉพาะ จับคู่โมเดลข้อความราคาถูก (เช่น GPT-4o-mini) สำหรับการวางแผนและเรียกใช้เครื่องมือ กับโมเดลที่รองรับการมองเห็นแยก (เช่น GPT-4o) เฉพาะภาพหน้าจอ คุณจะได้ไม่ต้องจ่ายราคาของโมเดลมัลติโมดัลในทุกเทิร์น ตั้งค่าได้ที่ ผู้ให้บริการ → การมองเห็น ผลลัพธ์สุดท้าย: เซสชันยาว ๆ กับผู้ให้บริการคลาวด์ยังคาดเดาได้ หากต้องการการควบคุมเต็มที่ ใช้ llama.cpp ภายในเครื่อง — ต้นทุนต่อโทเค็นเป็นศูนย์"
      }
    },
    {
      "@type": "Question",
      "name": "ฉันสามารถมีส่วนร่วมกับ WebBrain ได้ไหม?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ได้สิ! WebBrain ใช้สัญญาอนุญาต GPL-3.0-or-later และยินดีรับการมีส่วนร่วม ดู รีโพ GitHub สำหรับ issue คำขอคุณสมบัติ และแนวทางการมีส่วนร่วม"
      }
    }
  ]
}
  </script>
  <script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://webbrain.one/#organization",
      "name": "WebBrain",
      "url": "https://webbrain.one/",
      "logo": "https://webbrain.one/logo-github.png",
      "sameAs": [
        "https://github.com/webbrain-one/webbrain",
        "https://mastoturk.org/@webbrain",
        "https://bsky.app/profile/webbrain-one.bsky.social",
        "https://huggingface.co/webbrain-one"
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://webbrain.one/#website",
      "name": "WebBrain",
      "url": "https://webbrain.one/th/",
      "inLanguage": "th-TH",
      "description": "WebBrain เป็นทางเลือกฟรีและโอเพนซอร์สแทนปลั๊กอินเบราว์เซอร์ของ Claude เป็น AI browser agent สำหรับ Chrome, Firefox และ Edge — อ่านหน้า สกัดข้อมูล และทำงานแบบอัตโนมัติ ใช้งานร่วมกับ llama.cpp, OpenAI, Claude, OpenRouter ได้ UI หลายภาษา ภาพหน้าจอประหยัดโทเค็น สัญญาอนุญาต GPL-3.0-or-later",
      "publisher": {
        "@id": "https://webbrain.one/#organization"
      }
    }
  ]
}
  </script>
  <style>
    /* ================================================================
       RESET & BASE
       ================================================================ */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    /* ----- Theme tokens -----
       Dark is the original palette. Light is a warm cream / coffee scheme.
       Pick by setting `data-theme="light"` or `data-theme="dark"` on <html>.
       The early-paint script in <head> handles initial selection from
       localStorage > prefers-color-scheme. The whole site (including the
       hero browser mockup) reads from these vars; hardcoded rgba(255,255,255,*)
       values were swapped for --tint-* tokens that invert per theme. */
    :root {
      --bg: #0b0e17;
      --bg-card: #111827;
      --bg-card-hover: #1a2233;
      --surface: #161d2e;
      --border: rgba(255,255,255,0.07);
      --text: #e4e4ec;
      --text-dim: #8b8fa4;
      --accent: #6c63ff;
      --accent-glow: rgba(108,99,255,0.25);
      --accent2: #a78bfa;
      --success: #34d399;
      --warning: #fbbf24;
      /* Subtle tints that ride on top of the bg/card — used for
         placeholder bars, language dropdown chrome, etc. */
      --tint-soft: rgba(255,255,255,0.05);
      --tint-soft-2: rgba(255,255,255,0.04);
      --tint-medium: rgba(255,255,255,0.08);
      --tint-strong: rgba(255,255,255,0.10);
      --tint-stronger: rgba(255,255,255,0.22);
      --shadow-card: rgba(0,0,0,0.30);
      --shadow-strong: rgba(0,0,0,0.40);
      --nav-bg: rgba(11,14,23,0.80);
      --url-bg: rgba(0,0,0,0.30);
      /* Browser mockup interior: in dark mode the side panel keeps its
         original near-black blues so it reads as the WebBrain plugin UI.
         In light mode (override below) these become warm cream tones. */
      --sp-bg: #1a1a2e;
      --sp-msg-assistant-bg: #16213e;
      --sp-msg-assistant-border: rgba(255,255,255,0.06);
      --sp-input-bg: #1e2746;
      /* Hero gradient text accent — keeps the same pink pop in both themes. */
      --hero-gradient-3: #e879f9;
      --radius: 16px;
      --radius-sm: 10px;
      --max-w: 1368px;
      color-scheme: dark;
    }

    :root[data-theme="light"] {
      --bg: #f7f1e6;
      --bg-card: #fffdf8;
      --bg-card-hover: #f2e9d4;
      --surface: #ede2cb;
      --border: rgba(89,55,25,0.15);
      --text: #2c1810;
      --text-dim: #6b5b47;
      --accent: #5b52e8;
      --accent-glow: rgba(91,82,232,0.20);
      --accent2: #7c6ce6;
      --success: #2d8866;
      --warning: #b97a00;
      --tint-soft: rgba(89,55,25,0.05);
      --tint-soft-2: rgba(89,55,25,0.07);
      --tint-medium: rgba(89,55,25,0.10);
      --tint-strong: rgba(89,55,25,0.14);
      --tint-stronger: rgba(89,55,25,0.22);
      --shadow-card: rgba(89,55,25,0.10);
      --shadow-strong: rgba(89,55,25,0.18);
      --nav-bg: rgba(247,241,230,0.85);
      --url-bg: rgba(89,55,25,0.07);
      /* Light-mode mockup interior — cream variant of the WebBrain panel. */
      --sp-bg: #f5e9d0;
      --sp-msg-assistant-bg: #fff7e1;
      --sp-msg-assistant-border: rgba(89,55,25,0.10);
      --sp-input-bg: #fdf3dc;
      --hero-gradient-3: #b94db3;
      color-scheme: light;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      overflow-x: hidden;
    }

    a { color: var(--accent2); text-decoration: none; }
    a:hover { text-decoration: underline; }

    /* ================================================================
       GLOW BACKGROUND
       ================================================================ */
    .glow-bg {
      position: fixed;
      inset: 0;
      z-index: -1;
      overflow: hidden;
    }
    .glow-bg::before {
      content: '';
      position: absolute;
      width: 600px; height: 600px;
      top: -120px; left: 50%;
      transform: translateX(-50%);
      background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
      filter: blur(80px);
    }
    .glow-bg::after {
      content: '';
      position: absolute;
      width: 400px; height: 400px;
      bottom: 10%; inset-inline-end: -100px;
      background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 70%);
      filter: blur(60px);
    }

    /* ================================================================
       TOP ANNOUNCEMENT BANNER
       ================================================================ */
    .top-announcement-banner {
      background: linear-gradient(90deg, rgba(167, 139, 250, 0.14), rgba(240, 167, 47, 0.14));
      border-bottom: 1px solid var(--border);
      text-align: center;
      font-size: 13px;
      line-height: 1.4;
      padding: 7px 16px;
      position: relative;
      z-index: 101;
    }
    .top-announcement-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      color: var(--text);
      text-decoration: none;
      font-weight: 500;
      transition: color 0.15s ease;
    }
    .top-announcement-link:hover {
      color: var(--accent2);
      text-decoration: none;
    }
    .top-announcement-pill {
      display: inline-flex;
      align-items: center;
      padding: 1px 7px;
      font-size: 10px;
      font-weight: 750;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      background: var(--accent);
      color: #fff;
      border-radius: 999px;
    }
    .top-announcement-arrow {
      display: inline-block;
      transition: transform 0.15s ease;
    }
    .top-announcement-link:hover .top-announcement-arrow {
      transform: translateX(3px);
    }

    /* ================================================================
       NAV
       ================================================================ */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(20px);
      background: var(--nav-bg);
      border-bottom: 1px solid var(--border);
      overflow-x: clip;
    }
    .nav-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 14px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .nav-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 20px;
      font-weight: 800;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .nav-brand .brand-logo {
      width: 28px;
      height: 28px;
      border-radius: 7px;
      flex: 0 0 auto;
    }
    .nav-links { display: flex; gap: 22px; align-items: center; margin-inline-start: auto; min-width: 0; }
    .nav-links a {
      color: var(--text-dim);
      font-size: 14px;
      font-weight: 500;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--text); text-decoration: none; }
    .nav-links a[aria-current="page"] { color: var(--text); }
    @media (max-width: 1080px) {
      .nav-links .nav-secondary { display: none; }
    }
    .language-picker {
      position: relative;
      display: flex;
      align-items: center;
      flex: 0 0 auto;
      direction: ltr;
    }
    .language-select-native {
      display: none;
    }
    .language-picker-btn {
      min-height: 32px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: var(--tint-soft);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 5px 7px;
      font: inherit;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s;
    }
    .language-picker-btn:hover,
    .language-picker-btn[aria-expanded="true"] {
      background: var(--tint-medium);
      border-color: var(--tint-stronger);
    }
    .language-picker-btn:focus-visible {
      outline: 2px solid var(--accent-glow);
      outline-offset: 2px;
    }
    .language-picker-flag,
    .language-picker-option-flag {
      display: block;
      flex: 0 0 auto;
      object-fit: cover;
      border: 1px solid var(--border);
      background: var(--tint-soft);
    }
    .language-picker-flag {
      width: 20px;
      height: 15px;
      border-radius: 3px;
    }
    .language-picker-code {
      min-width: 18px;
      color: var(--text);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.45px;
      line-height: 1;
      text-align: center;
    }
    .language-picker-caret {
      width: 11px;
      height: 11px;
      color: var(--text-dim);
      transition: transform 0.2s;
    }
    .language-picker-btn[aria-expanded="true"] .language-picker-caret {
      transform: rotate(180deg);
    }
    .language-picker-menu {
      position: absolute;
      z-index: 110;
      top: calc(100% + 8px);
      right: 0;
      width: 236px;
      max-width: calc(100vw - 20px);
      max-height: min(384px, 68vh);
      overflow-y: auto;
      padding: 6px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 18px 45px var(--shadow-strong);
      direction: ltr;
    }
    .language-picker-menu[hidden] {
      display: none;
    }
    .picker-menu-highlight {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 0;
      width: 0;
      height: 0;
      border-radius: 7px;
      background: var(--accent-glow);
      opacity: 0;
      pointer-events: none;
      will-change: transform, width, height;
      transition:
        transform 170ms cubic-bezier(0.22, 1, 0.36, 1),
        width 170ms cubic-bezier(0.22, 1, 0.36, 1),
        height 170ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 90ms ease;
    }
    .picker-menu-highlight.visible {
      opacity: 1;
    }
    .picker-menu-highlight.instant {
      transition: none;
    }
    .language-picker-option {
      position: relative;
      z-index: 1;
      width: 100%;
      display: grid;
      grid-template-columns: 24px minmax(0, 1fr) 24px 14px;
      align-items: center;
      gap: 9px;
      min-height: 38px;
      padding: 7px 8px;
      background: transparent;
      color: var(--text);
      border: 0;
      border-radius: 7px;
      font: inherit;
      text-align: left;
      cursor: pointer;
    }
    .language-picker-option:hover,
    .language-picker-option:focus-visible {
      background: transparent;
      outline: none;
    }
    .language-picker-option:focus-visible {
      box-shadow: inset 0 0 0 1px var(--accent);
    }
    .language-picker-option[aria-selected="true"] {
      background: transparent;
      box-shadow: inset 2px 0 0 var(--accent);
    }
    .language-picker-option-flag {
      width: 24px;
      height: 18px;
      border-radius: 3px;
    }
    .language-picker-option-name {
      min-width: 0;
      overflow: hidden;
      color: var(--text);
      font-size: 12px;
      font-weight: 600;
      line-height: 1.2;
      text-overflow: ellipsis;
      white-space: nowrap;
      unicode-bidi: plaintext;
    }
    .language-picker-option-code {
      color: var(--text);
      opacity: 0.55;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.4px;
      text-align: center;
    }
    .language-picker-check {
      color: var(--accent);
      font-size: 12px;
      opacity: 0;
    }
    .language-picker-option[aria-selected="true"] .language-picker-check {
      opacity: 1;
    }
    .nav-cta {
      background: var(--accent) !important;
      color: #fff !important;
      -webkit-text-fill-color: initial !important;
      padding: 8px 20px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 13px;
      transition: background 0.2s, transform 0.1s;
    }
    .nav-cta:hover { background: #5a52d5 !important; transform: translateY(-1px); text-decoration: none !important; }

    /* GitHub stars pill — populated via JS on load, cached in localStorage. */
    .gh-stars {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px 5px 8px;
      background: var(--tint-soft-2);
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--text);
      -webkit-text-fill-color: initial;
      font-size: 12px;
      font-weight: 600;
      line-height: 1;
      transition: background 0.2s, border-color 0.2s, transform 0.1s;
    }
    .gh-stars:hover {
      background: var(--tint-medium);
      border-color: var(--accent);
      text-decoration: none;
      transform: translateY(-1px);
    }
    .gh-stars svg { width: 14px; height: 14px; flex-shrink: 0; }
    .gh-stars .gh-icon { color: var(--text-dim); }
    .gh-stars .gh-star { color: var(--warning); }
    .gh-stars .gh-count {
      color: var(--text);
      font-variant-numeric: tabular-nums;
      min-width: 1ch;
    }
    .gh-stars[data-loading="1"] .gh-count { color: var(--text-dim); }

    /* Theme toggle — sun in light mode, moon in dark mode. JS just flips
       the data-theme attribute on <html>; the CSS swap is purely visual. */
    .theme-toggle {
      appearance: none;
      -webkit-appearance: none;
      background: var(--tint-soft-2);
      border: 1px solid var(--border);
      border-radius: 999px;
      width: 30px;
      height: 30px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text-dim);
      transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
    }
    .theme-toggle:hover {
      background: var(--tint-medium);
      border-color: var(--accent);
      color: var(--text);
      transform: translateY(-1px);
    }
    .theme-toggle:focus-visible {
      outline: 2px solid var(--accent2);
      outline-offset: 2px;
    }
    .theme-toggle svg { width: 16px; height: 16px; display: block; }
    /* Show the icon for the theme the button will switch TO: in dark mode
       show the sun (click → light); in light mode show the moon. */
    .theme-toggle .icon-sun { display: block; }
    .theme-toggle .icon-moon { display: none; }
    :root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
    :root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

    /* ================================================================
       HERO
       ================================================================ */
    .hero {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 100px 24px 80px;
      text-align: center;
    }
    @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

    .hero h1 {
      font-size: clamp(40px, 6vw, 68px);
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 20px;
      letter-spacing: -1.5px;
    }
    .hero h1 .gradient {
      background: linear-gradient(135deg, var(--accent), var(--accent2), var(--hero-gradient-3));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .hero p {
      font-size: 18px;
      color: var(--text-dim);
      max-width: 600px;
      margin: 0 auto 36px;
      line-height: 1.7;
    }
    .hero-actions {
      display: flex;
      gap: 14px;
      justify-content: center;
      flex-wrap: wrap;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      border-radius: var(--radius-sm);
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: all 0.2s;
    }
    .btn-primary {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 4px 24px var(--accent-glow);
    }
    .btn-primary:hover { background: #5a52d5; transform: translateY(-2px); text-decoration: none; color: #fff; }
    .btn-secondary {
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--border);
    }
    .btn-secondary:hover { background: var(--bg-card-hover); transform: translateY(-2px); text-decoration: none; }
    .btn svg { width: 18px; height: 18px; }

    /* Social proof under the hero CTAs — credibility metadata, not a second
       CTA bar. Everything sits at 13px so it stays clearly below the
       Install/GitHub buttons. Instead of pills (which read as a second row
       of buttons) each claim gets a marker-pen highlight: a skewed, slightly
       rotated bar behind the text, painted from theme-specific tokens so the
       wash stays readable on both the dark navy and the cream background.
       Separators hang off each cell as ::after, which keeps a stray dot from
       ever starting a wrapped line. */
    .hero-proof {
      --marker-featured: linear-gradient(100deg, rgba(116,91,255,0.22), rgba(221,120,255,0.34));
      --marker-hunt: linear-gradient(100deg, rgba(255,159,67,0.22), rgba(255,196,91,0.38));
      --marker-press: linear-gradient(100deg, rgba(99,102,241,0.18), rgba(56,189,248,0.28));
      --marker-users: linear-gradient(100deg, rgba(116,91,255,0.16), rgba(104,211,178,0.28));
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 8px 12px;
      max-width: 900px;
      margin: 22px auto 0;
      font-size: 13px;
      line-height: 1.5;
      color: var(--text-dim);
    }
    /* The cream theme washes out low-alpha ink, so the light palette runs a
       touch denser and more saturated to land at the same visual weight. */
    :root[data-theme="light"] .hero-proof {
      --marker-featured: linear-gradient(100deg, rgba(108,99,255,0.26), rgba(217,112,255,0.34));
      --marker-hunt: linear-gradient(100deg, rgba(255,138,30,0.30), rgba(255,183,60,0.42));
      --marker-press: linear-gradient(100deg, rgba(91,82,232,0.20), rgba(14,165,233,0.25));
      --marker-users: linear-gradient(100deg, rgba(108,99,255,0.20), rgba(45,136,102,0.26));
    }
    .hero-proof-cell {
      position: relative;
      display: inline-flex;
      align-items: center;
      color: var(--text-dim);
      transition: color 0.2s, transform 0.2s;
    }
    .hero-proof-cell:not(:last-child)::after {
      content: "·";
      margin-inline-start: 12px;
      opacity: 0.55;
      pointer-events: none;
    }
    .hero-proof-label {
      position: relative;
      z-index: 0;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 2px 1px;
      color: var(--text);
      font-weight: 600;
      transition: color 0.2s;
    }
    /* The highlight itself. z-index:-1 keeps it under the text; the label and
       the users cell both set z-index:0 so the bar stays trapped in their own
       stacking context instead of sliding behind the hero background. */
    .hero-proof-label::before,
    .hero-proof-users::before {
      content: "";
      position: absolute;
      z-index: -1;
      inset-inline: -5px;
      bottom: 2px;
      height: 9px;
      border-radius: 3px 7px 4px 5px;
      background: var(--marker-featured);
      transform: rotate(-1.2deg) skewX(-10deg);
      opacity: 0.9;
      transition: transform 0.2s, opacity 0.2s;
    }
    .hero-proof-hunt::before {
      background: var(--marker-hunt);
      transform: rotate(1deg) skewX(-8deg);
    }
    .hero-proof-press::before {
      background: var(--marker-press);
      transform: rotate(-0.5deg) skewX(-7deg);
    }
    .hero-proof-users {
      z-index: 0;
      gap: 6px;
      padding: 2px 1px;
    }
    .hero-proof-users::before {
      background: var(--marker-users);
      transform: rotate(-0.7deg) skewX(-8deg);
    }
    .hero-proof-icon {
      width: 15px;
      height: 15px;
      flex-shrink: 0;
      object-fit: contain;
      display: block;
    }
    .hero-proof-users .hero-proof-icon { color: var(--success); }
    a.hero-proof-cell:hover { color: var(--text); text-decoration: none; transform: translateY(-1px); }
    a.hero-proof-cell:hover .hero-proof-label { text-decoration: none; }
    a.hero-proof-cell:hover .hero-proof-label::before {
      opacity: 1;
      transform: rotate(0deg) skewX(-6deg) scaleX(1.04);
    }
    a.hero-proof-cell:focus-visible {
      outline: 2px solid var(--accent2);
      outline-offset: 3px;
      border-radius: 8px;
    }

    /* A video chapter card that follows the demo: show what the product does
       first, then answer the "will it click things without asking me" objection.
       The real presenter frame makes the interaction legible before hover. */
    .hero-trust {
      max-width: 940px;
      margin: 58px auto 0;
      position: relative;
      display: grid;
      grid-template-columns: minmax(190px, 226px) minmax(0, 1fr);
      gap: 22px;
      padding: 12px;
      overflow: hidden;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: 0 18px 48px var(--shadow-card);
      text-align: start;
      cursor: pointer;
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .hero-trust:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
      box-shadow: 0 22px 58px var(--shadow-strong);
    }
    .hero-trust:focus-within {
      outline: 2px solid var(--accent2);
      outline-offset: 4px;
    }
    .hero-trust-media {
      position: relative;
      min-height: 150px;
      overflow: hidden;
      background: #090b11;
      border: 1px solid var(--border);
      border-radius: 12px;
      isolation: isolate;
    }
    .hero-trust-media::after {
      content: '';
      position: absolute;
      z-index: 1;
      inset: 0;
      background: linear-gradient(180deg, transparent 42%, rgba(3, 5, 10, 0.76));
      pointer-events: none;
    }
    .hero-trust-thumbnail {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    .hero-trust:hover .hero-trust-thumbnail {
      transform: scale(1.035);
    }
    .hero-trust-copy {
      min-width: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 5px 12px 5px 0;
    }
    [dir="rtl"] .hero-trust-copy {
      padding: 5px 0 5px 12px;
    }
    .hero-trust-heading {
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }
    .hero-trust-kicker {
      display: block;
      margin-bottom: 2px;
      color: var(--accent2);
      font-size: 10px;
      font-weight: 750;
      letter-spacing: 0.11em;
      line-height: 1.2;
      text-transform: uppercase;
    }
    .hero-trust-title {
      margin: 0;
      color: var(--text);
      font-size: 15px;
      font-weight: 700;
      line-height: 1.35;
    }
    .hero-trust-shield {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      color: var(--success);
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: inset 0 0 0 3px var(--tint-soft-2);
    }
    .hero-trust-shield .shield {
      width: 20px;
      height: 20px;
    }
    .hero-trust-play {
      position: absolute;
      z-index: 2;
      inset: 50% auto auto 50%;
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      color: #fff;
      background: rgba(108, 99, 255, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.42);
      border-radius: 50%;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
      transform: translate(-50%, -50%);
      transition: background 0.2s ease, transform 0.2s ease;
    }
    .hero-trust-play svg {
      width: 16px;
      height: 16px;
      margin-inline-start: 2px;
    }
    .hero-trust:hover .hero-trust-play,
    .hero-trust:focus-within .hero-trust-play {
      background: var(--accent);
      transform: translate(-50%, -50%) scale(1.08);
    }
    .hero-trust-watch {
      position: absolute;
      z-index: 2;
      inset-inline: 10px;
      inset-block-end: 9px;
      overflow: hidden;
      color: #fff;
      font-size: 10px;
      font-weight: 650;
      line-height: 1.25;
      text-align: center;
      text-overflow: ellipsis;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
      white-space: nowrap;
    }
    .hero-trust-list {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .hero-trust-list li {
      display: flex;
      position: relative;
      align-items: center;
      min-width: 0;
      min-height: 50px;
      /* Logical padding: the ✓ badge is placed with inset-inline-start, so a
         physical padding-left would collide with the text in RTL locales. */
      padding-block: 9px;
      padding-inline: 35px 9px;
      background: var(--tint-soft-2);
      border: 1px solid var(--border);
      border-radius: 10px;
      font-size: 11px;
      font-weight: 550;
      color: var(--text-dim);
      line-height: 1.35;
    }
    .hero-trust-list li::before {
      content: '✓';
      position: absolute;
      inset-inline-start: 9px;
      top: 50%;
      width: 18px;
      height: 18px;
      display: grid;
      place-items: center;
      transform: translateY(-50%);
      color: var(--success);
      background: var(--tint-soft-2);
      border: 1px solid var(--border);
      border-radius: 50%;
      font-size: 11px;
      font-weight: 700;
      line-height: 1;
    }
    .hero-trust-trigger {
      position: absolute;
      z-index: 3;
      inset: 0;
      width: 100%;
      height: 100%;
      padding: 0;
      background: transparent;
      border: 0;
      border-radius: inherit;
      cursor: pointer;
    }
    .hero-trust-trigger:focus {
      outline: 0;
    }

    /* The security explainer lives in the top layer, keeping the landing page
       concise while preserving the richer safety story on demand. */
    .security-video-dialog {
      position: fixed;
      inset: 0;
      width: min(960px, calc(100vw - 32px));
      max-width: none;
      max-height: calc(100dvh - 32px);
      margin: auto;
      padding: 0;
      overflow: auto;
      color: var(--text);
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    }
    .security-video-dialog::backdrop {
      background: rgba(7, 9, 16, 0.78);
      backdrop-filter: blur(10px);
    }
    .security-video-dialog-shell {
      overflow: hidden;
      border-radius: inherit;
    }
    .security-video-dialog-copy {
      position: relative;
      padding: 24px 72px 22px 26px;
      background:
        radial-gradient(circle at 10% 0%, var(--tint-soft-2), transparent 48%),
        var(--bg-card);
      border-bottom: 1px solid var(--border);
    }
    [dir="rtl"] .security-video-dialog-copy {
      padding: 24px 26px 22px 72px;
    }
    .security-video-dialog-kicker {
      margin-bottom: 7px;
      color: var(--success);
      font-size: 11px;
      font-weight: 750;
      letter-spacing: 1.4px;
      text-transform: uppercase;
    }
    .security-video-dialog-title {
      max-width: 720px;
      font-size: clamp(22px, 3.4vw, 34px);
      line-height: 1.14;
      letter-spacing: -0.6px;
    }
    .security-video-dialog-description {
      max-width: 760px;
      margin-top: 10px;
      color: var(--text-dim);
      font-size: 14px;
      line-height: 1.6;
    }
    .security-video-dialog-close {
      position: absolute;
      inset-block-start: 20px;
      inset-inline-end: 20px;
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      color: var(--text-dim);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 50%;
      cursor: pointer;
      transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }
    .security-video-dialog-close:hover {
      color: var(--text);
      background: var(--bg-card-hover);
      border-color: var(--accent);
    }
    .security-video-dialog-close:focus-visible {
      outline: 2px solid var(--accent2);
      outline-offset: 3px;
    }
    .security-video-dialog-close svg {
      width: 18px;
      height: 18px;
    }
    .security-video-dialog-stage {
      display: grid;
      place-items: center;
      background: #03050a;
    }
    .security-video-dialog-frame {
      width: 100%;
      aspect-ratio: 16 / 9;
    }
    .security-video-dialog-frame video {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: #03050a;
    }
    @media (max-width: 768px) {
      .hero-trust {
        grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
        margin-top: 50px;
        gap: 16px;
      }
      .hero-trust-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .security-video-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 15px;
      }
      .security-video-dialog-copy {
        padding: 20px 62px 18px 20px;
      }
      [dir="rtl"] .security-video-dialog-copy {
        padding: 20px 20px 18px 62px;
      }
      .security-video-dialog-close {
        inset-block-start: 16px;
        inset-inline-end: 16px;
        width: 36px;
        height: 36px;
      }
      .security-video-dialog-frame {
        width: min(100%, calc((100dvh - 210px) * 0.5625));
        aspect-ratio: 9 / 16;
      }
    }
    @media (max-width: 560px) {
      .hero-trust {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 44px;
        padding: 10px;
      }
      .hero-trust-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
      }
      .hero-trust-copy,
      [dir="rtl"] .hero-trust-copy {
        padding: 2px 8px 8px;
      }
      .hero-trust-list {
        grid-template-columns: 1fr;
      }
      .hero-trust-list li {
        min-height: 42px;
        padding-block: 9px;
        padding-inline: 38px 10px;
      }
    }
    @media (prefers-reduced-motion: reduce) {
      .picker-menu-highlight,
      .hero-trust,
      .hero-trust-play,
      .hero-trust-thumbnail {
        transition: none;
      }
      .hero-trust:hover {
        transform: none;
      }
    }

    /* Hero screenshot mockup */
    .hero-visual {
      margin-top: 60px;
      position: relative;
      overflow: hidden;
    }
    .browser-mockup {
      max-width: 820px;
      margin: 0 auto;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: 0 24px 80px var(--shadow-strong);
    }
    .browser-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 16px;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
    }
    .browser-dots { display: flex; gap: 6px; }
    .browser-dots span {
      width: 10px; height: 10px;
      border-radius: 50%;
    }
    .browser-dots span:nth-child(1) { background: #ef4444; }
    .browser-dots span:nth-child(2) { background: #fbbf24; }
    .browser-dots span:nth-child(3) { background: #34d399; }
    .browser-url {
      flex: 1;
      min-width: 0;
      margin-inline-start: 12px;
      background: var(--url-bg);
      border-radius: 6px;
      padding: 5px 12px;
      font-size: 12px;
      color: var(--text-dim);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .browser-body {
      display: flex;
      min-height: 380px;
      flex: 1;
    }
    .browser-page {
      flex: 1;
      padding: 24px;
      font-size: 13px;
      color: var(--text-dim);
      line-height: 1.8;
    }
    .browser-page h3 { color: var(--text); margin-bottom: 8px; font-size: 16px; }
    .browser-page .placeholder-line {
      height: 10px;
      background: var(--tint-soft-2);
      border-radius: 4px;
      margin-bottom: 8px;
    }
    .browser-page .placeholder-line:nth-child(odd) { width: 90%; }
    .browser-page .placeholder-line:nth-child(even) { width: 70%; }

    /* Side panel mockup */
    .side-panel {
      width: 300px;
      border-inline-start: 1px solid var(--border);
      background: var(--sp-bg);
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
    }
    /* Scene 5 has list-like extraction output, so keep the response aligned
       like real chat content instead of inheriting the centered hero text. */
    .scene-response-left .sp-msg.assistant { text-align: start; }
    .sp-header {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .sp-header .sp-brand {
      font-size: 14px;
      font-weight: 700;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .sp-brand-logo { width: 20px; height: 20px; border-radius: 5px; flex: 0 0 auto; }
    .sp-header .sp-brand .sp-domain {
      font-weight: 500;
      opacity: 1;
      background: none;
      -webkit-text-fill-color: rgba(228,228,236,0.75);
    }
    .sp-status {
      width: 7px; height: 7px;
      background: var(--success);
      border-radius: 50%;
    }
    /* Ask / Act / Dev mode switch in the panel header */
    .sp-modes {
      display: flex;
      gap: 2px;
      padding: 2px;
      background: var(--tint-soft-2);
      border: 1px solid var(--border);
      border-radius: 999px;
      margin-inline-start: auto;
      margin-inline-end: 8px;
    }
    .sp-mode {
      font-size: 9px;
      font-weight: 600;
      line-height: 1;
      padding: 3px 7px;
      border-radius: 999px;
      color: var(--text-dim);
    }
    .sp-mode.is-on {
      background: var(--accent);
      color: #fff;
    }
    .sp-messages {
      flex: 1;
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      overflow: hidden;
    }
    .sp-msg {
      padding: 8px 12px;
      border-radius: 10px;
      font-size: 12px;
      line-height: 1.5;
      max-width: 90%;
      overflow-wrap: anywhere;
      opacity: 0;
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .sp-msg.user {
      background: var(--accent);
      color: #fff;
      align-self: flex-end;
    }
    .sp-msg.assistant {
      background: var(--sp-msg-assistant-bg);
      border: 1px solid var(--sp-msg-assistant-border);
      align-self: flex-start;
    }
    /* Messages animate only inside the active scene. Toggling .is-active on the
       scene removes/reapplies the animation rule, restarting it each cycle. */
    .browser-mockup.is-active .sp-msg          { animation: fadeUp 0.45s ease both; }
    .browser-mockup.is-active .sp-msg.user     { animation-delay: 0.15s; }
    .browser-mockup.is-active .sp-msg.assistant{ animation-delay: 0.45s; }
    /* Variant 4 — second turn lands after the first answer has settled. */
    .browser-mockup.is-active .sp-msg.user-2       { animation-delay: 0.95s; }
    .browser-mockup.is-active .sp-msg.assistant-2  { animation-delay: 1.30s; }
    .sp-msg .step {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 10px;
      color: var(--text-dim);
      margin-bottom: 4px;
    }
    .sp-msg .step .check { color: var(--success); }
    .sp-input {
      padding: 10px;
      border-top: 1px solid var(--border);
    }
    .sp-input-box {
      display: flex;
      align-items: center;
      background: var(--sp-input-bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 8px 12px;
      font-size: 11px;
      color: var(--text-dim);
    }

    /* ================================================================
       MOCKUP STACK — 5 demo scenes share the same grid cell and
       cross-fade between them. The container takes the height of the
       tallest scene so the surrounding layout doesn't jump.
       ================================================================ */
    .mockup-stack {
      display: grid;
      /* Single column that fills the container — without this, grid auto-
         sizes the track to max-content of the items, which collapses the
         mockup to ~470px instead of the 820px it had before. */
      grid-template-columns: minmax(0, 1fr);
      max-width: 820px;
      margin: 0 auto;
      overflow: hidden;
    }
    .mockup-stage {
      position: relative;
      max-width: 940px;
      margin: 0 auto;
      padding-inline: 58px;
    }
    .mockup-stack > .browser-mockup {
      grid-column: 1;
      grid-row: 1;
      display: flex;
      flex-direction: column;
      /* Reset the base .browser-mockup's `margin: 0 auto` — on a grid item,
         auto margins absorb the leftover track space instead of letting
         the item stretch, which left the mockup ~470px wide. */
      margin: 0;
      width: 100%;
      opacity: 0;
      transform: scale(0.985);
      transition: opacity 0.55s ease, transform 0.55s ease;
      pointer-events: none;
    }
    .mockup-stack > .browser-mockup.is-active {
      opacity: 1;
      transform: scale(1);
      pointer-events: auto;
    }
    .scene-arrow {
      appearance: none;
      -webkit-appearance: none;
      position: absolute;
      top: 50%;
      z-index: 3;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      padding: 0;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--surface);
      color: var(--text);
      box-shadow: 0 12px 30px var(--shadow);
      cursor: pointer;
      transform: translateY(-50%);
      transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    }
    .scene-arrow:hover {
      background: var(--bg-card-hover);
      border-color: var(--accent);
      color: var(--text);
      transform: translateY(-50%) scale(1.04);
      box-shadow: 0 16px 36px var(--shadow-strong);
    }
    .scene-arrow:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
    .scene-arrow svg {
      width: 20px;
      height: 20px;
      display: block;
    }
    .scene-arrow-prev { inset-inline-start: 0; }
    .scene-arrow-next { inset-inline-end: 0; }

    .scene-nav {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 22px;
    }
    .scene-dot {
      appearance: none;
      -webkit-appearance: none;
      background: var(--tint-strong);
      border: 1px solid var(--border);
      border-radius: 999px;
      width: 9px;
      height: 9px;
      padding: 0;
      cursor: pointer;
      transition: background 0.2s, width 0.3s, box-shadow 0.2s;
    }
    .scene-dot:hover { background: var(--tint-stronger); }
    .scene-dot.is-active {
      background: var(--accent);
      width: 26px;
      box-shadow: 0 0 0 3px rgba(108,99,255,0.18);
    }
    .scene-dot:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

    /* ----- v2 — "clone this site" landing-page mockup ----- */
    .page-landing {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .pl-logo {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.4px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .pl-logo .pl-mark {
      color: var(--accent2);
      font-size: 16px;
    }
    .pl-hero {
      background: linear-gradient(135deg, rgba(108,99,255,0.18), rgba(167,139,250,0.10));
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 18px 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
    }
    .pl-headline {
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.2;
    }
    .pl-headline em {
      font-style: normal;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .pl-buttons { display: flex; gap: 8px; }
    .pl-btn {
      height: 22px;
      width: 70px;
      border-radius: 6px;
      background: var(--tint-medium);
    }
    .pl-btn.primary { background: var(--accent); width: 86px; }
    .pl-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    .pl-tile {
      height: 54px;
      border-radius: 8px;
      border: 1px solid var(--border);
    }
    .pl-tile:nth-child(1) { background: linear-gradient(135deg, rgba(108,99,255,0.22), rgba(108,99,255,0.04)); }
    .pl-tile:nth-child(2) { background: linear-gradient(135deg, rgba(167,139,250,0.22), rgba(167,139,250,0.04)); }
    .pl-tile:nth-child(3) { background: linear-gradient(135deg, rgba(52,211,153,0.22), rgba(52,211,153,0.04)); }
    /* Dev scene — after WebBrain suggests the CSS fix, the page preview
       visibly gains spacing between the blocks. */
    @keyframes plSpread {
      from { gap: 10px; margin-top: 0; }
      to { gap: 26px; margin-top: 14px; }
    }
    .browser-mockup.is-active .pl-grid {
      animation: plSpread 0.6s ease both;
      animation-delay: 2.1s;
    }
    /* Mini code editor inside an assistant message (Dev mode) */
    .sp-code {
      margin-top: 6px;
      border: 1px solid var(--sp-msg-assistant-border);
      border-radius: 8px;
      overflow: hidden;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      text-align: start;
    }
    .sp-code-bar {
      padding: 4px 9px;
      background: #1c2038;
      color: #9aa3c0;
      font-size: 9px;
      letter-spacing: 0.3px;
      text-align: left;
    }
    .sp-code-body {
      padding: 6px 0;
      background: #14172a;
      color: #c9d2ea;
      font-size: 10px;
      line-height: 1.7;
    }
    .sp-code-body span {
      display: block;
      padding: 0 9px;
      white-space: pre;
      text-align: left;
    }
    .sp-code-body .del { color: #f38ba8; background: rgba(243,139,168,0.08); }
    .sp-code-body .add { color: #8ce3ad; background: rgba(140,227,173,0.10); }
    .palette-dot {
      width: 11px;
      height: 11px;
      border-radius: 50%;
      display: inline-block;
      box-shadow: 0 0 0 1px var(--tint-strong);
    }

    /* ----- v3 — landscape video player (YouTube-style watch page) ----- */
    .page-video {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 12px;
      padding: 18px 16px;
      background: radial-gradient(circle at 50% 20%, rgba(167,139,250,0.10), transparent 70%);
    }
    .pv-frame {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 10px 28px rgba(0,0,0,0.40);
      background:
        linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.72) 100%),
        linear-gradient(135deg, #2d1b69, #6c63ff 65%, #ec4899);
      color: #fff;
    }
    /* Soft frosted play disc — readable as "video" without the loud
       YouTube-red brand hit that pulls focus from the agent panel. */
    .pv-frame::before {
      content: '';
      position: absolute;
      inset: 0;
      margin: auto;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: rgba(255,255,255,0.16);
      border: 1px solid rgba(255,255,255,0.28);
      box-shadow: 0 6px 18px rgba(0,0,0,0.28);
      backdrop-filter: blur(6px);
      pointer-events: none;
    }
    .pv-frame::after {
      content: '';
      position: absolute;
      inset: 0;
      margin: auto;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 7px 0 7px 12px;
      border-color: transparent transparent transparent rgba(255,255,255,0.92);
      transform: translateX(2px);
      pointer-events: none;
    }
    .pv-controls {
      position: absolute;
      inset-inline: 0;
      bottom: 0;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 8px 10px 9px;
      background: linear-gradient(180deg, transparent, rgba(0,0,0,0.72));
    }
    .pv-progress {
      position: relative;
      height: 3px;
      border-radius: 2px;
      background: rgba(255,255,255,0.28);
      overflow: hidden;
    }
    .pv-progress::after {
      content: '';
      position: absolute;
      inset-block: 0;
      inset-inline-start: 0;
      width: 38%;
      background: rgba(255,255,255,0.88);
      border-radius: 2px;
    }
    .pv-controls-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 10px;
      color: rgba(255,255,255,0.9);
    }
    .pv-time {
      font-variant-numeric: tabular-nums;
      letter-spacing: 0.2px;
    }
    .pv-controls-icons {
      display: flex;
      gap: 8px;
      opacity: 0.85;
      font-size: 11px;
    }
    .pv-meta {
      display: flex;
      flex-direction: column;
      gap: 4px;
      text-align: start;
      min-width: 0;
    }
    .pv-caption {
      color: var(--text);
      font-size: 13px;
      font-weight: 650;
      line-height: 1.35;
      letter-spacing: 0.1px;
    }
    .pv-username {
      color: var(--text-dim);
      font-size: 11px;
      font-weight: 500;
    }

    /* Scene 4 — a compact browser-style completion bubble lands with the
       assistant's response. The ring draw and check pop make the
       successful file handoff readable without turning it into confetti. */
    .download-complete-toast {
      position: absolute;
      inset-inline-end: 14px;
      bottom: 58px;
      z-index: 3;
      display: flex;
      align-items: center;
      gap: 9px;
      width: min(218px, calc(100% - 28px));
      padding: 9px 11px;
      border: 1px solid rgba(255,255,255,0.13);
      border-radius: 11px;
      background: rgba(15,18,31,0.94);
      color: #f2f4ff;
      box-shadow: 0 14px 32px rgba(0,0,0,0.38);
      backdrop-filter: blur(10px);
      opacity: 0;
      transform: translateY(14px) scale(0.96);
    }
    .scene-download-panel { position: relative; }
    .download-complete-icon {
      position: relative;
      width: 32px;
      height: 32px;
      flex: 0 0 32px;
    }
    .download-complete-icon svg {
      position: absolute;
      inset: 0;
      width: 32px;
      height: 32px;
      overflow: visible;
    }
    .download-complete-track,
    .download-complete-ring {
      fill: none;
      stroke-width: 2.5;
    }
    .download-complete-track { stroke: rgba(52,211,153,0.20); }
    .download-complete-ring {
      stroke: var(--success);
      stroke-linecap: round;
      stroke-dasharray: 69.2;
      stroke-dashoffset: 69.2;
      transform: rotate(-90deg);
      transform-origin: 16px 16px;
    }
    .download-complete-check {
      fill: none;
      stroke: var(--success);
      stroke-width: 2.5;
      stroke-linecap: round;
      stroke-linejoin: round;
      opacity: 0;
      transform: scale(0.55);
      transform-origin: 16px 16px;
    }
    .download-complete-copy { min-width: 0; line-height: 1.3; text-align: start; }
    .download-complete-copy strong {
      display: block;
      font-size: 11px;
      letter-spacing: 0.1px;
    }
    .download-complete-copy span {
      display: block;
      margin-top: 2px;
      color: rgba(226,231,247,0.70);
      font-size: 9px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    @keyframes downloadToastIn {
      from { opacity: 0; transform: translateY(14px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes downloadRingComplete {
      from { stroke-dashoffset: 69.2; }
      to { stroke-dashoffset: 0; }
    }
    @keyframes downloadCheckPop {
      from { opacity: 0; transform: scale(0.55); }
      to { opacity: 1; transform: scale(1); }
    }
    .browser-mockup.is-active .download-complete-toast {
      animation: downloadToastIn 0.42s cubic-bezier(0.2, 0.85, 0.25, 1.15) 0.45s both;
    }
    .browser-mockup.is-active .download-complete-ring {
      animation: downloadRingComplete 0.62s ease-out 0.55s both;
    }
    .browser-mockup.is-active .download-complete-check {
      animation: downloadCheckPop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.4) 1.08s both;
    }

    /* ----- v5 (scene 5) — product catalog grid ----- */
    .pp-sub {
      font-size: 10px;
      color: var(--text-dim);
      margin-bottom: 12px;
      letter-spacing: 0.2px;
    }
    .pp-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }
    .pp-card {
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 8px;
      background: var(--tint-soft-2);
      line-height: 1.4;
    }
    .pp-thumb {
      height: 44px;
      border-radius: 6px;
      margin-bottom: 7px;
      border: 1px solid var(--border);
    }
    .pp-thumb.t1 { background: linear-gradient(135deg, rgba(108,99,255,0.30), rgba(108,99,255,0.06)); }
    .pp-thumb.t2 { background: linear-gradient(135deg, rgba(167,139,250,0.30), rgba(167,139,250,0.06)); }
    .pp-thumb.t3 { background: linear-gradient(135deg, rgba(52,211,153,0.30), rgba(52,211,153,0.06)); }
    .pp-thumb.t4 { background: linear-gradient(135deg, rgba(245,215,110,0.34), rgba(245,215,110,0.07)); }
    .pp-thumb.t5 { background: linear-gradient(135deg, rgba(236,72,153,0.26), rgba(236,72,153,0.05)); }
    .pp-thumb.t6 { background: linear-gradient(135deg, rgba(96,165,250,0.30), rgba(96,165,250,0.06)); }
    .pp-name {
      font-size: 11px;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .pp-price {
      font-size: 10px;
      font-weight: 700;
      color: var(--accent2);
    }

    /* ----- v4 — long-form article ----- */
    .page-article h3 { margin-bottom: 4px; }
    .pa-meta {
      font-size: 11px;
      color: var(--text-dim);
      margin-bottom: 14px;
      letter-spacing: 0.2px;
    }

    /* ----- v5 — tax / accounting form fill ----- */
    .page-taxform h3 { margin-bottom: 2px; }
    .tf-meta {
      font-size: 10px;
      color: var(--text-dim);
      margin-bottom: 12px;
      letter-spacing: 0.2px;
    }
    .tf-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px 12px;
    }
    .tf-field { min-width: 0; }
    .tf-field.wide { grid-column: 1 / -1; }
    .tf-label {
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--text-dim);
      margin-bottom: 3px;
      line-height: 1.3;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
    }
    .tf-label b {
      color: var(--text);
      font-weight: 700;
      margin-inline-end: 2px;
    }
    .tf-label .tf-tags {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }
    .tf-check {
      color: var(--success);
      font-size: 10px;
      opacity: 0;
    }
    /* "from memory" chip — appears on fields WebBrain recalled rather
       than read off the page. */
    .tf-mem {
      font-size: 8px;
      font-weight: 600;
      line-height: 1;
      padding: 2px 5px;
      border-radius: 999px;
      border: 1px solid var(--accent2);
      color: var(--accent2);
      text-transform: none;
      letter-spacing: 0.2px;
      opacity: 0;
    }
    .browser-mockup.is-active .tf-mem {
      animation: tfCheck 0.25s ease-out both;
      animation-delay: calc(var(--d, 0.8s) + 0.45s);
    }
    .tf-input {
      display: flex;
      align-items: center;
      height: 24px;
      padding: 0 8px;
      background: var(--tint-soft-2);
      border: 1px solid var(--border);
      border-radius: 6px;
      font-size: 11px;
      color: var(--text);
      line-height: 1;
      overflow: hidden;
      white-space: nowrap;
    }
    .tf-value {
      display: inline-block;
      max-width: 0;
      overflow: hidden;
      white-space: nowrap;
      opacity: 0;
    }
    @keyframes tfType {
      0% { max-width: 0; opacity: 1; }
      100% { max-width: 160px; opacity: 1; }
    }
    @keyframes tfCheck {
      from { opacity: 0; transform: scale(0.6); }
      to { opacity: 1; transform: scale(1); }
    }
    /* Fields "type themselves in" one after another while the scene is
       active. Per-field stagger comes from the inline --d custom prop. */
    .browser-mockup.is-active .tf-value {
      animation: tfType 0.5s steps(14, end) both;
      animation-delay: var(--d, 0.8s);
    }
    .browser-mockup.is-active .tf-check {
      animation: tfCheck 0.25s ease-out both;
      animation-delay: calc(var(--d, 0.8s) + 0.45s);
    }
    .tf-submit {
      margin-top: 12px;
      display: inline-flex;
      align-items: center;
      height: 24px;
      padding: 0 14px;
      border-radius: 6px;
      background: var(--accent);
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      opacity: 0.55;
    }

    /* Reduced motion — keep messages visible and disable cross-fade. */
    @media (prefers-reduced-motion: reduce) {
      .sp-msg { opacity: 1; }
      .browser-mockup.is-active .sp-msg { animation: none; }
      .mockup-stack > .browser-mockup { transition: none; transform: none; }
      .tf-value, .browser-mockup.is-active .tf-value { animation: none; max-width: none; opacity: 1; }
      .tf-check, .browser-mockup.is-active .tf-check { animation: none; opacity: 1; }
      .tf-mem, .browser-mockup.is-active .tf-mem { animation: none; opacity: 1; }
      .browser-mockup.is-active .pl-grid { animation: none; gap: 26px; margin-top: 14px; }
      .download-complete-toast,
      .browser-mockup.is-active .download-complete-toast { animation: none; opacity: 1; transform: none; }
      .download-complete-ring,
      .browser-mockup.is-active .download-complete-ring { animation: none; stroke-dashoffset: 0; }
      .download-complete-check,
      .browser-mockup.is-active .download-complete-check { animation: none; opacity: 1; transform: none; }
    }

    /* ================================================================
       FEATURES
       ================================================================ */
    .section {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 80px 24px;
    }
    .section-label {
      text-align: center;
      font-size: 13px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: var(--accent);
      margin-bottom: 12px;
    }
    .section-title {
      text-align: center;
      font-size: clamp(28px, 4vw, 42px);
      font-weight: 700;
      margin-bottom: 16px;
      letter-spacing: -0.5px;
    }
    .section-subtitle {
      text-align: center;
      color: var(--text-dim);
      max-width: 560px;
      margin: 0 auto 48px;
      font-size: 16px;
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }
    .feature-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 28px;
      transition: all 0.25s;
    }
    .feature-card:hover {
      background: var(--bg-card-hover);
      border-color: rgba(108,99,255,0.2);
      transform: translateY(-4px);
      box-shadow: 0 12px 40px var(--shadow-card);
    }
    .feature-icon {
      width: 44px; height: 44px;
      background: var(--accent-glow);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      margin-bottom: 16px;
    }
    .feature-card h3 {
      font-size: 17px;
      font-weight: 600;
      margin-bottom: 8px;
    }
    .feature-card p {
      color: var(--text-dim);
      font-size: 14px;
      line-height: 1.6;
    }
    /* Inline consent/permission note on powerful-capability cards, so the
       "is this opt-in / confirmed per-action?" answer sits with the feature
       instead of only in the security section further down. */
    .feature-card .feature-note {
      display: flex;
      align-items: flex-start;
      gap: 7px;
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
      font-size: 12.5px;
      line-height: 1.5;
      color: var(--text-dim);
    }
    .feature-card .feature-note::before {
      content: '🔒';
      flex: 0 0 auto;
      font-size: 12px;
      line-height: 1.5;
    }
    /* Progressive enhancement: the grid ships fully expanded, and JS collapses
       it to the six headline capabilities. Without JS all twelve stay visible
       and the toggle never renders. */
    .features-grid[data-collapsed="true"] .feature-card[data-extra] {
      display: none;
    }
    .features-more {
      display: none;
      justify-content: center;
      margin-top: 28px;
    }
    .features-grid[data-collapsed] + .features-more {
      display: flex;
    }
    .features-more-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 11px 22px;
      color: var(--text);
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 10px;
      font: inherit;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s, transform 0.2s;
    }
    .features-more-btn:hover {
      background: var(--bg-card-hover);
      border-color: var(--accent);
      transform: translateY(-1px);
    }
    .features-more-btn:focus-visible {
      outline: 2px solid var(--accent-glow);
      outline-offset: 2px;
    }
    .features-more-btn svg {
      width: 14px;
      height: 14px;
      color: var(--text-dim);
      transition: transform 0.2s;
    }
    .features-more-btn[aria-expanded="true"] svg {
      transform: rotate(180deg);
    }
    @media (prefers-reduced-motion: reduce) {
      .features-more-btn,
      .features-more-btn svg { transition: none; }
      .features-more-btn:hover { transform: none; }
    }

    /* ================================================================
       WORD ON THE WEB — compact quote strip
       ================================================================ */
    .voices-section { max-width: 1180px; padding-top: 44px; padding-bottom: 28px; margin-inline: auto; }
    .voices-section h2 {
      margin-bottom: 24px;
      font-size: 13px; font-weight: 700; letter-spacing: .12em;
      text-transform: uppercase; color: var(--text-dim);
      text-align: center;
    }
    .voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 0; }
    .voice {
      display: grid; grid-template-columns: auto 1fr; gap: 16px;
      align-items: center; padding: 10px 24px; text-align: start;
      margin: 0;
    }
    .voice + .voice { border-inline-start: 1px solid var(--border); }
    .voice-portrait { width: 76px; height: 76px; margin: 0; grid-row: span 2; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
    :root:not([data-theme="light"]) .voice-portrait { mix-blend-mode: normal; background: #fff; filter: brightness(.88); }
    .voice blockquote { margin: 0 0 6px; font: 400 15px/1.45 Georgia, 'Times New Roman', serif; text-wrap: pretty; color: var(--text); }
    .voice-featured .voice-portrait { width: 90px; height: 90px; margin-top: 0; }
    .voice-featured blockquote { font-size: 19px; line-height: 1.35; font-weight: 500; }
    .voice-name { display: inline; font-size: 13px; font-weight: 700; color: var(--text); }
    .voice-source { margin: 0 0 0 6px; font-size: 12px; color: var(--accent2); text-decoration: underline; text-underline-offset: 4px; }
    .voice-source:hover { color: var(--text); }
    .voice-source:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
    @media (max-width: 860px) {
      .voices-grid { grid-template-columns: 1fr; gap: 18px; max-width: 540px; margin-inline: auto; }
      .voice { padding: 14px 16px; }
      .voice + .voice { border-inline-start: 0; border-top: 1px solid var(--border); }
      .voice-portrait { width: 68px; height: 68px; }
      .voice-featured .voice-portrait { width: 76px; height: 76px; }
    }

    /* ================================================================
       DEMO DUO CARDS — Security & vs Claude in Chrome
       ================================================================ */
    .demo-duo-cards {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      max-width: 1100px;
      margin: 44px auto 0;
      align-items: stretch;
    }
    .demo-duo-card {
      position: relative;
      display: grid;
      grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
      gap: 18px;
      padding: 14px;
      overflow: hidden;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: 0 18px 48px var(--shadow-card);
      text-align: start;
      cursor: pointer;
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .demo-duo-card:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
      box-shadow: 0 22px 58px var(--shadow-strong);
    }
    .demo-duo-card:focus-within {
      outline: 2px solid var(--accent2);
      outline-offset: 4px;
    }
    .demo-duo-media {
      position: relative;
      min-height: 140px;
      height: 100%;
      overflow: hidden;
      background: #090b11;
      border: 1px solid var(--border);
      border-radius: 12px;
      isolation: isolate;
    }
    .demo-duo-media::after {
      content: '';
      position: absolute;
      z-index: 1;
      inset: 0;
      background: linear-gradient(180deg, transparent 40%, rgba(3, 5, 10, 0.78));
      pointer-events: none;
    }
    .demo-duo-thumbnail {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    .demo-duo-card:hover .demo-duo-thumbnail {
      transform: scale(1.04);
    }
    .demo-duo-play {
      position: absolute;
      z-index: 2;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: rgba(167, 139, 250, 0.9);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
      transition: transform 0.2s ease, background 0.2s ease;
    }
    .demo-duo-play svg {
      width: 14px;
      height: 14px;
      margin-inline-start: 2px;
    }
    .demo-duo-card:hover .demo-duo-play {
      transform: translate(-50%, -50%) scale(1.1);
      background: var(--accent);
    }
    .demo-duo-watch {
      position: absolute;
      z-index: 2;
      bottom: 8px;
      left: 8px;
      right: 8px;
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-align: center;
      text-transform: uppercase;
      text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    }
    .demo-duo-copy {
      min-width: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 4px 6px 4px 0;
    }
    [dir="rtl"] .demo-duo-copy {
      padding: 4px 0 4px 6px;
    }
    .demo-duo-header {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 8px;
    }
    .demo-duo-badge-icon {
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      border-radius: 8px;
      background: var(--tint-soft-2);
      color: var(--accent2);
    }
    .demo-duo-badge-icon.demo-duo-vs {
      color: var(--warning);
    }
    .demo-duo-badge-icon svg {
      width: 16px;
      height: 16px;
    }
    .demo-duo-kicker {
      display: block;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-dim);
    }
    .demo-duo-title {
      margin: 2px 0 0;
      font-size: 16px;
      font-weight: 750;
      line-height: 1.3;
      color: var(--text);
      letter-spacing: -0.01em;
    }
    .demo-duo-list {
      margin: 6px 0 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 4px;
    }
    .demo-duo-list li {
      position: relative;
      padding-inline-start: 18px;
      font-size: 12px;
      line-height: 1.4;
      color: var(--text-dim);
    }
    .demo-duo-list li::before {
      content: '✓';
      position: absolute;
      inset-inline-start: 0;
      color: var(--success);
      font-weight: 700;
      font-size: 11px;
    }
    .demo-duo-desc {
      margin: 6px 0 0;
      font-size: 12px;
      line-height: 1.45;
      color: var(--text-dim);
    }
    .demo-duo-callout {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 10px;
    }
    .demo-duo-tag {
      display: inline-flex;
      align-items: center;
      padding: 3px 8px;
      font-size: 10px;
      font-weight: 650;
      border-radius: 999px;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
    }
    .demo-duo-trigger {
      position: absolute;
      inset: 0;
      z-index: 3;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
      border: 0;
      background: transparent;
    }
    @media (max-width: 900px) {
      .demo-duo-cards {
        grid-template-columns: 1fr;
        max-width: 560px;
      }
    }
    @media (max-width: 520px) {
      .demo-duo-card {
        grid-template-columns: 1fr;
      }
      .demo-duo-media {
        min-height: 180px;
        height: 180px;
      }
    }

    /* ================================================================
       INLINE FAQ
       ================================================================ */
    .faq-inline-section {
      max-width: 860px;
      margin-inline: auto;
    }
    .faq-inline-grid {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 36px;
    }
    .faq-inline-item {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      overflow: hidden;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .faq-inline-item:hover {
      border-color: var(--accent);
    }
    .faq-inline-item[open] {
      border-color: var(--accent);
      box-shadow: 0 8px 24px var(--shadow-card);
    }
    .faq-inline-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 18px 22px;
      font-size: 16px;
      font-weight: 650;
      color: var(--text);
      cursor: pointer;
      list-style: none;
      user-select: none;
    }
    .faq-inline-summary::-webkit-details-marker {
      display: none;
    }
    .faq-inline-chevron {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      color: var(--text-dim);
      transition: transform 0.2s ease, color 0.2s ease;
    }
    .faq-inline-item[open] .faq-inline-chevron {
      transform: rotate(180deg);
      color: var(--accent);
    }
    .faq-inline-answer {
      padding: 0 22px 20px;
      font-size: 15px;
      line-height: 1.65;
      color: var(--text-dim);
    }
    .faq-inline-answer p {
      margin: 0 0 10px;
    }
    .faq-inline-answer p:last-child {
      margin-bottom: 0;
    }
    .faq-inline-answer a {
      color: var(--accent2);
      text-decoration: underline;
    }
    .faq-inline-cta-wrap {
      margin-top: 32px;
      display: flex;
      justify-content: center;
    }

    /* ================================================================
       DEVELOPER FRAMEWORKS WRAP (in MCP Section)
       ================================================================ */
    .developer-frameworks-wrap {
      margin-top: 56px;
      padding-top: 40px;
      border-top: 1px solid var(--border);
    }
    .developer-frameworks-heading {
      font-size: 18px;
      font-weight: 700;
      color: var(--text-dim);
      margin-bottom: 20px;
      text-align: center;
    }

    /* ================================================================
       APOCALYPSE MODE — compact banner
       ================================================================ */
    .apocalypse-banner-section {
      max-width: 1100px;
      margin: 0 auto;
      padding-top: 24px;
      padding-bottom: 24px;
    }
    .apocalypse-compact-card {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
      padding: 24px 30px;
      background: #11100e;
      color: #f5f2e9;
      border: 1px solid #34302a;
      border-radius: 18px;
      box-shadow: 0 16px 40px rgba(9, 8, 6, .24);
      overflow: hidden;
    }
    .apocalypse-compact-card::before {
      content: '';
      position: absolute;
      inset-block: 0;
      inset-inline-start: 0;
      width: 4px;
      background: #f0a72f;
    }
    .apocalypse-compact-info {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .apocalypse-compact-kicker {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: #f7bd5f;
      font: 750 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      text-transform: uppercase;
      letter-spacing: .14em;
    }
    .apocalypse-compact-kicker .apocalypse-kicker-mark {
      font-size: 16px;
    }
    .apocalypse-compact-title {
      margin: 0;
      font-size: 20px;
      font-weight: 700;
      color: #fffdf7;
      letter-spacing: -0.02em;
    }
    .apocalypse-compact-lead {
      margin: 0;
      color: #bcb6aa;
      font-size: 14px;
      line-height: 1.5;
    }
    .apocalypse-compact-lead strong {
      color: #f5f2e9;
    }
    .apocalypse-compact-actions {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-shrink: 0;
    }
    .apocalypse-video-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      font-size: 13px;
      border-radius: 8px;
      background: #201e1a;
      color: #f7bd5f;
      border: 1px solid #453e34;
      cursor: pointer;
      font-weight: 650;
      transition: all 0.2s ease;
    }
    .apocalypse-video-btn:hover {
      background: #2a2722;
      border-color: #f7bd5f;
      color: #ffd590;
    }
    .apocalypse-video-btn:focus-visible {
      outline: 2px solid #f7bd5f;
      outline-offset: 3px;
    }
    .apocalypse-docs-link {
      color: #f7bd5f;
      font-size: 13px;
      font-weight: 650;
      text-decoration: underline;
      text-underline-offset: 3px;
      white-space: nowrap;
    }
    .apocalypse-docs-link:hover {
      color: #ffd590;
    }
    @media (max-width: 820px) {
      .apocalypse-compact-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
        gap: 18px;
      }
      .apocalypse-compact-actions {
        width: 100%;
        justify-content: flex-start;
      }
    }

    /* ================================================================
       PROVIDERS — constellation layout

       A central WebBrain core orbited by provider nodes connected via
       SVG lines. The container is sized as a fixed aspect-ratio canvas
       (a square on small screens, wide rectangle on desktop). Each node
       is positioned with --x/--y CSS variables in % so the SVG line ends
       and node centers stay aligned across viewports.
       ================================================================ */
    .provider-constellation {
      position: relative;
      max-width: 880px;
      margin: 56px auto 0;
      aspect-ratio: 16 / 9;
      isolation: isolate;
    }
    .constellation-lines {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      overflow: visible;
      z-index: 0;
    }
    .constellation-lines line {
      stroke: var(--border);
      stroke-width: 1;
      stroke-dasharray: 3 5;
      opacity: 0.9;
      transition: stroke 0.25s, opacity 0.25s;
    }
    .constellation-lines line.is-active {
      stroke: var(--accent);
      stroke-dasharray: none;
      opacity: 1;
    }

    .constellation-center {
      position: absolute;
      left: 50%; top: 50%;
      width: 96px; height: 96px;
      transform: translate(-50%, -50%);
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cc-core {
      width: 76px; height: 76px;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, var(--accent2), var(--accent) 60%, #4f46c4);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 36px;
      box-shadow: 0 0 0 6px rgba(108,99,255,0.12), 0 12px 40px rgba(108,99,255,0.35);
      position: relative;
      z-index: 1;
    }
    .cc-core img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
    .cc-ring {
      position: absolute;
      inset: -10px;
      border: 1px solid rgba(167,139,250,0.35);
      border-radius: 50%;
      animation: cc-pulse 4s ease-in-out infinite;
    }
    .cc-ring-2 {
      inset: -28px;
      border-color: rgba(108,99,255,0.18);
      animation-delay: 1s;
    }
    @keyframes cc-pulse {
      0%, 100% { transform: scale(1); opacity: 0.8; }
      50%      { transform: scale(1.08); opacity: 0.35; }
    }

    .provider-node {
      position: absolute;
      left: var(--x); top: var(--y);
      transform: translate(-50%, -50%);
      z-index: 3;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      animation: pn-float 6s ease-in-out infinite;
      animation-delay: var(--d, 0s);
      text-decoration: none;
      color: inherit;
    }
    @keyframes pn-float {
      0%, 100% { transform: translate(-50%, calc(-50% - 4px)); }
      50%      { transform: translate(-50%, calc(-50% + 4px)); }
    }
    .pn-bubble {
      width: 56px; height: 56px;
      border-radius: 50%;
      background: var(--bg-card);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
    }
    /* Same provider artwork as Settings. The light chip keeps mono
       currentColor SVGs legible in both site themes. */
    .pn-logo {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      background: rgba(255,255,255,0.94);
      padding: 5px;
      box-sizing: border-box;
      object-fit: contain;
      display: block;
    }
    .provider-node:hover .pn-bubble,
    .provider-node:focus-visible .pn-bubble {
      transform: scale(1.12);
      border-color: var(--accent);
      background: var(--bg-card-hover);
      box-shadow: 0 8px 28px rgba(108,99,255,0.35);
    }
    .pn-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-dim);
      letter-spacing: 0.2px;
      transition: color 0.25s;
      white-space: nowrap;
    }
    .provider-node:hover .pn-label,
    .provider-node:focus-visible .pn-label { color: var(--text); }
    .pn-bubble.local { background: rgba(52,211,153,0.12); color: var(--success); border-color: rgba(52,211,153,0.25); }
    .pn-bubble.ollama { background: rgba(38,121,255,0.12); color: #2679ff; border-color: rgba(38,121,255,0.25); }
    .pn-bubble.openai { background: rgba(16,163,127,0.12); color: #10a37f; border-color: rgba(16,163,127,0.25); }
    .pn-bubble.anthropic { background: rgba(204,149,96,0.12); color: #cc9560; border-color: rgba(204,149,96,0.25); }
    .pn-bubble.openrouter { background: rgba(108,99,255,0.12); color: var(--accent2); border-color: rgba(108,99,255,0.3); }
    .pn-bubble.studiolm { background: rgba(245,158,11,0.12); color: #f59e0b; border-color: rgba(245,158,11,0.25); }
    .pn-bubble.vllm { background: rgba(99,102,241,0.12); color: #6366f1; border-color: rgba(99,102,241,0.25); }
    /* Grok is a white-on-black brand. In dark mode the bubble is near-white
       on dark; light mode inverts to dark glyph on cream. */
    .pn-bubble.grok { background: rgba(255,255,255,0.06); color: #e5e5e5; border-color: rgba(255,255,255,0.2); }
    :root[data-theme="light"] .pn-bubble.grok { background: rgba(0,0,0,0.06); color: #1a1a1a; border-color: rgba(0,0,0,0.2); }
    .pn-bubble.gemini { background: rgba(66,133,244,0.12); color: #4285f4; border-color: rgba(66,133,244,0.25); }
    .pn-bubble.deepseek { background: rgba(72,191,255,0.12); color: #48bfff; border-color: rgba(72,191,255,0.25); }
    .pn-bubble.mistral { background: rgba(255,127,80,0.12); color: #ff7f50; border-color: rgba(255,127,80,0.25); }

    /* Reduced-motion: kill the float + ring pulse so users on
       prefers-reduced-motion see a static layout. */
    @media (prefers-reduced-motion: reduce) {
      .provider-node { animation: none; transform: translate(-50%, -50%); }
      .cc-ring, .cc-ring-2 { animation: none; }
    }



    /* ================================================================
       DOWNLOAD / INSTALL
       ================================================================ */
    .download-section {
      text-align: center;
    }
    .download-companion { margin-top: 24px; font-size: 14px; }
    .download-companion a { color: var(--accent2); text-decoration: underline; text-underline-offset: 4px; }
    .download-companion a:hover { color: var(--text); }
    .download-companion a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
    .download-cards {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 20px;
      margin-top: 40px;
      max-width: 860px;
      margin-left: auto;
      margin-right: auto;
    }
    .download-row {
      display: grid;
      gap: 20px;
      align-items: stretch;
    }
    .download-row-current {
      grid-template-columns: 1fr;
    }
    .download-row-secondary {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .download-card {
      position: relative;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 32px 28px;
      text-align: center;
      flex: 1 1 0;
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: all 0.25s;
    }
    .download-card:hover {
      border-color: var(--accent);
      transform: translateY(-4px);
      box-shadow: 0 12px 40px var(--shadow-card);
    }
    .download-card .browser-icon {
      width: 48px;
      height: 48px;
      margin-bottom: 14px;
      display: grid;
      place-items: center;
    }
    .download-card .browser-icon img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: contain;
      filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
    }
    .download-card h3 { font-size: 18px; margin-bottom: 6px; }
    .download-card p { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }
    .download-card-actions {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: auto;
    }
    .download-card .btn {
      width: 100%;
      justify-content: center;
      line-height: 1.35;
    }
    .download-card .btn svg { flex: 0 0 auto; }
    .download-card-firefox .btn-primary {
      overflow-wrap: normal;
      word-break: normal;
      hyphens: none;
    }
    .download-card-edge .btn-primary {
      background: linear-gradient(135deg, #0078d4, #13a10e);
    }
    .download-card.is-disabled {
      filter: grayscale(1);
      opacity: 0.72;
    }
    .download-card.is-disabled:hover {
      border-color: var(--border);
      box-shadow: none;
      transform: none;
    }
    .download-card.is-disabled .btn {
      cursor: not-allowed;
      color: #f1f1f1;
      background: #2a2a2a;
      border-color: #6f6f6f;
      box-shadow: none;
    }
    .edge-unavailable-tip {
      position: absolute;
      top: -36px;
      left: 50%;
      transform: translateX(-50%);
      background: #1a1a1a;
      color: #e0e0e0;
      font-size: 12px;
      font-weight: 500;
      line-height: 1;
      padding: 7px 12px;
      border-radius: 6px;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.15s ease;
      z-index: 10;
      box-shadow: 0 2px 8px rgba(0,0,0,0.35);
      border: 1px solid rgba(255,255,255,0.08);
    }
    .edge-unavailable-tip::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 5px solid transparent;
      border-top-color: #1a1a1a;
    }
    .download-card-edge.is-disabled:hover .edge-unavailable-tip {
      opacity: 1;
    }
    .download-row-current .download-card {
      padding: 38px 32px;
      border-color: rgba(0, 212, 255, 0.45);
    }
    .download-row-current .browser-icon {
      width: 58px;
      height: 58px;
    }
    .download-row-current h3 { font-size: 20px; }
    .download-row-current .download-card-actions {
      max-width: 380px;
    }


    /* ================================================================
       MCP BRIDGE
       ================================================================ */
    .mcp-setup {
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) + 4px);
      background: var(--bg-card);
      box-shadow: 0 24px 70px var(--shadow-card);
    }
    .mcp-steps {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .mcp-step { min-width: 0; padding: 34px 36px; }
    .mcp-step + .mcp-step { border-inline-start: 1px solid var(--border); }
    .mcp-step h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
    .mcp-step-n {
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      font-size: 14px;
      font-weight: 700;
    }
    .mcp-step > p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.65; }
    .mcp-prompt {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 22px;
      padding: 14px 14px 14px 18px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--bg);
    }
    .mcp-prompt code {
      flex: 1;
      min-width: 0;
      color: var(--text);
      font-family: 'SFMono-Regular', Consolas, monospace;
      font-size: 14px;
      line-height: 1.55;
      overflow-wrap: anywhere;
      user-select: all;
    }
    .mcp-copy-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      flex: 0 0 auto;
      padding: 9px 14px;
      border: 1px solid var(--accent);
      border-radius: 9px;
      background: var(--accent);
      color: #fff;
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }
    .mcp-copy-btn:hover { filter: brightness(1.08); }
    .mcp-copy-btn:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
    .mcp-copy-btn svg { width: 15px; height: 15px; }
    .mcp-copy-btn.is-copied { border-color: var(--success); background: var(--success); }
    /* What the visitor will type next, drawn as their own chat message. */
    .mcp-step > .mcp-example {
      width: fit-content;
      max-width: 100%;
      margin: 22px 0 0;
      padding: 12px 16px;
      border-radius: 14px 14px 4px 14px;
      background: var(--accent);
      color: #fff;
      font-size: 14px;
      line-height: 1.5;
    }
    .mcp-foot {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px 14px;
      padding: 18px 36px;
      border-top: 1px solid var(--border);
      background: var(--tint-soft);
    }
    .mcp-foot .btn { padding: 10px 16px; font-size: 13px; }
    .mcp-req { margin: 0 0 0 auto; color: var(--text-dim); font-size: 13px; }

    /* ================================================================
       OPEN SOURCE
       ================================================================ */
    .oss-banner {
      max-width: 760px;
      margin: 0 auto;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 40px;
      text-align: center;
    }
    .oss-banner h3 { font-size: 24px; margin-bottom: 12px; }
    .oss-banner p { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
    .share-row {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
      align-items: center;
    }
    .share-row .btn { gap: 8px; }
    .share-major {
      min-width: 184px;
      justify-content: center;
    }
    .share-icon.btn {
      width: 44px;
      height: 44px;
      padding: 0;
      border-radius: 12px;
      flex: 0 0 44px;
      justify-content: center;
      gap: 0;
    }
    .share-icon.btn svg {
      width: 19px;
      height: 19px;
    }

    /* ================================================================
       COMPARISON TABLE
       ================================================================ */
    .compare-table-wrap {
      overflow-x: auto;
      max-width: 920px;
      margin: 0 auto;
    }
    .compare-table {
      width: 100%;
      border-collapse: collapse;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      overflow: hidden;
      font-size: 14px;
    }
    .compare-table th,
    .compare-table td {
      padding: 12px 16px;
      text-align: start;
      border-bottom: 1px solid var(--border);
    }
    .compare-table thead th {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-dim);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      background: var(--surface);
    }
    .compare-table thead th.highlight {
      color: var(--accent);
    }
    .compare-table td.highlight {
      color: var(--accent2);
      font-weight: 600;
    }
    .compare-table tbody tr {
      transition: background 0.15s;
    }
    .compare-table tbody tr:hover {
      background: rgba(108,99,255,0.04);
    }
    .compare-video-card {
      position: relative;
      width: min(920px, 100%);
      margin: 18px auto 0;
      padding: 17px 18px;
      display: grid;
      grid-template-columns: 52px minmax(0, 1fr) auto;
      align-items: center;
      gap: 16px;
      overflow: hidden;
      color: var(--text);
      background:
        linear-gradient(110deg, var(--tint-soft-2), transparent 58%),
        var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      box-shadow: 0 12px 30px var(--shadow-card);
      font: inherit;
      text-align: start;
      cursor: pointer;
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .compare-video-card::before {
      content: '';
      position: absolute;
      inset: 0 auto 0 0;
      width: 3px;
      background: linear-gradient(180deg, var(--accent2), var(--success));
    }
    [dir="rtl"] .compare-video-card::before {
      inset: 0 0 0 auto;
    }
    .compare-video-card:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
      box-shadow: 0 17px 38px var(--shadow-strong);
    }
    .compare-video-card:focus-visible {
      outline: 2px solid var(--accent2);
      outline-offset: 4px;
    }
    .compare-video-card-icon {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      color: #fff;
      background: linear-gradient(145deg, var(--accent), var(--accent2));
      border-radius: 15px;
      box-shadow: 0 8px 22px var(--accent-glow);
    }
    .compare-video-card-icon svg {
      width: 22px;
      height: 22px;
      margin-inline-start: 2px;
    }
    .compare-video-card-copy {
      display: grid;
      gap: 4px;
      min-width: 0;
    }
    .compare-video-card-title {
      font-size: 15px;
      font-weight: 720;
      line-height: 1.35;
      letter-spacing: -0.1px;
    }
    .compare-video-card-description {
      color: var(--text-dim);
      font-size: 12px;
      line-height: 1.5;
    }
    .compare-video-card-action {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 9px 12px;
      color: var(--accent2);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }
    .compare-video-card-runtime {
      padding-inline-start: 9px;
      color: var(--text-dim);
      border-inline-start: 1px solid var(--border);
      font-size: 10px;
      font-variant-numeric: tabular-nums;
      letter-spacing: 0.4px;
    }
    .comparison-video-dialog .security-video-dialog-kicker {
      color: var(--accent2);
    }

    /* ================================================================
       FAQ BRIDGE
       ================================================================ */
    .faq-bridge {
      max-width: 760px;
      margin: 34px auto 0;
      padding: 16px 18px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(45,212,191,0.05));
      color: inherit;
      text-decoration: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .faq-bridge:hover,
    .faq-bridge:focus-visible {
      border-color: var(--accent);
      box-shadow: 0 10px 28px var(--shadow-card);
      text-decoration: none;
      color: inherit;
    }
    .faq-bridge:focus-visible {
      outline: 2px solid var(--accent2);
      outline-offset: 3px;
    }
    .faq-bridge-mark {
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(45,212,191,0.28);
      border-radius: 50%;
      color: var(--accent2);
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      font-weight: 800;
    }
    .faq-bridge strong { font-size: 14px; }
    .faq-bridge-cta { color: var(--accent2); font-size: 13px; font-weight: 700; }
    .faq-bridge:hover .faq-bridge-cta,
    .faq-bridge:focus-visible .faq-bridge-cta { color: var(--text); }
    @media (max-width: 560px) {
      .faq-bridge { grid-template-columns: auto 1fr; }
      .faq-bridge-cta { grid-column: 2; }
    }

    /* ================================================================
       DEMO VIDEO
       ================================================================ */
    .video-showcase {
      max-width: 900px;
      margin: 0 auto;
    }
    .video-frame {
      position: relative;
      width: 100%;
      /* 16:9 — the demo video is native 1920x1080 now that the chapter text
         lives in full-bleed preroll cards instead of a letterboxed caption
         band. Matches every other media frame on the page. */
      padding-bottom: 56.25%;
      border-radius: var(--radius);
      overflow: hidden;
      border: 1px solid var(--border);
      background: #000;
      box-shadow: 0 20px 40px var(--shadow-strong);
    }
    .video-frame video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
      background: #000;
      object-fit: contain;
    }
    /* ================================================================
       RESPONSIVE
       ================================================================ */
    @media (max-width: 768px) {
      body { overflow-x: hidden; }
      .mockup-stage { padding-inline: 0; }
      .scene-arrow { display: none; }
      .browser-body { flex-direction: column; }
      .side-panel { width: 100%; border-inline-start: none; border-top: 1px solid var(--border); min-height: 260px; }
      .nav-inner { width: 100%; padding: 12px 10px; gap: 8px; }
      .nav-brand { min-width: 0; font-size: 17px; gap: 6px; }
      .nav-links { gap: 8px; flex-shrink: 0; }
      .nav-links a:not(.nav-cta) { display: none; }
      .nav-cta { padding: 8px 14px; font-size: 12px; }
      .language-picker-menu { max-width: calc(100vw - 20px); }
      .gh-stars { display: none; }
      /* The theme toggle would overflow the 24px-padded header at phone
         widths. prefers-color-scheme still auto-picks the right theme
         on mobile, so visitors aren't stranded — just no manual flip. */
      .theme-toggle { display: none; }
      .provider-constellation { aspect-ratio: 4 / 5; max-width: 420px; }
      .pn-bubble { width: 46px; height: 46px; font-size: 18px; }
      .pn-logo { width: 29px; height: 29px; border-radius: 8px; padding: 4px; }
      .pn-label { font-size: 11px; }
      .cc-core { width: 64px; height: 64px; font-size: 28px; }
      .video-showcase { max-width: 380px; }
      .video-frame { padding-bottom: 177.78%; }
      .compare-video-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
      }
      .compare-video-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
      }
      .compare-video-card-action {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 2px;
      }
    }
    @media (max-width: 560px) {
      /* Stack the install cards on small phones — squeezing two side-by-side
         below this width makes the buttons too cramped to tap reliably. */
      .download-cards { max-width: 360px; }
      .download-row-secondary { grid-template-columns: 1fr; }
      /* Stack the hero social-proof row on phones: three full-length phrases
         squeezed onto shared lines read worse than one line each. */
      .hero-proof { flex-direction: column; gap: 10px; }
      .hero-proof-cell:not(:last-child)::after { content: none; }
    }
    @media (max-width: 480px) {
      .hero { padding: 60px 16px 50px; }
      .hero-actions { flex-direction: column; align-items: center; }
      .btn { width: 100%; justify-content: center; }
    }

    /* ================================================================
       LEFT-ALIGNED LAYOUT — every section starts on the same left edge
       as the headline and the product cards, like webbrain.cloud.
       Figures (the provider constellation, the carousel) stay centred
       in their own frame.
       ================================================================ */
    .section-label,
    .section-title,
    .section-subtitle,
    .voices-section h2,
    .developer-frameworks-heading,
    .compare-heading,
    .compare-note,
    .download-section,
    .oss-banner { text-align: start; }
    .section-subtitle { max-width: 620px; margin: 0 0 44px; }
    .section-title { max-width: 860px; text-wrap: balance; }
    .compare-heading { margin-bottom: 16px; color: var(--text-dim); font-size: 16px; }
    .compare-note { max-width: 640px; margin-top: 20px; color: var(--text-dim); font-size: 13px; }
    .compare-table-wrap { max-width: none; margin: 0; }
    .voices-section { max-width: var(--max-w); }
    .features-more,
    .faq-inline-cta-wrap,
    .share-row { justify-content: flex-start; }
    .faq-inline-section { max-width: var(--max-w); }
    .faq-inline-grid { max-width: 860px; }
    .faq-bridge { margin-inline: 0; }
    .download-cards { margin-inline: 0; }
    .oss-banner { max-width: none; margin: 0; }
    .oss-banner p { margin-inline: 0; max-width: 560px; }
    .path-browser .hero-proof { justify-content: flex-start; max-width: none; margin-inline: 0; }
    /* The shared footer lines up with the sections' text column. */
    :root { --wb-footer-width: min(calc(100% - 48px), calc(var(--max-w) - 48px)); }

    /* ================================================================
       HOMEPAGE HERO — headline, then the browser extension at full
       width with the live scene carousel, then WebBrain for websites
       as a smaller strip. The sections below are the extension's.
       ================================================================ */
    .home {
      --accent-text: #9d97ff;
      --accent-hover: #5a52d5;
      --border-strong: rgba(255,255,255,0.16);
      --success-bg: rgba(52,211,153,0.10);
      --danger: #ff8d9b;
      --illo-bg: #0f1522;
      --illo-line: rgba(255,255,255,0.10);
      --code-bg: #0a0d16;
      --code-border: rgba(255,255,255,0.08);
      --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      display: block;
    }
    :root[data-theme="light"] .home {
      --accent-text: #5b52e8;
      --accent-hover: #4940ce;
      --border-strong: rgba(89,55,25,0.28);
      --success-bg: rgba(36,117,84,0.09);
      --danger: #a43b32;
      --illo-bg: #f4ead7;
      --illo-line: rgba(89,55,25,0.16);
      --code-bg: #211812;
      --code-border: #211812;
    }
    .home-hero {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 72px 24px 8px;
    }
    .hero-copy {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
      align-items: end;
      gap: 24px 56px;
    }
    .hero-kicker {
      margin: 0 0 20px;
      color: var(--accent-text);
      font: 730 11px/1.2 var(--mono);
      letter-spacing: 0.15em;
      text-transform: uppercase;
    }
    .home-hero h1 {
      font-size: clamp(44px, 6.4vw, 78px);
      font-weight: 770;
      line-height: 0.96;
      letter-spacing: -0.056em;
      text-wrap: balance;
      overflow-wrap: break-word;
    }
    .home-hero h1 .title-line { display: block; }
    /* Break Korean between words and Japanese between phrases, not mid-word. */
    :lang(ko) .home-hero h1 { word-break: keep-all; }
    :lang(ja) .home-hero h1 { word-break: auto-phrase; }
    .home-hero h1 .title-accent { color: var(--accent-text); }
    .hero-lede {
      max-width: 420px;
      margin-bottom: 6px;
      color: var(--text-dim);
      font-size: clamp(16px, 1.5vw, 18px);
      line-height: 1.65;
    }
    .hero-copy[data-title="long"] { grid-template-columns: 1fr; }
    .hero-copy[data-title="long"] h1 { font-size: clamp(38px, 5.4vw, 64px); }
    .hero-copy[data-title="long"] .hero-lede { max-width: 640px; margin-bottom: 0; }
    :lang(ar) .hero-kicker, :lang(fa) .hero-kicker, :lang(he) .hero-kicker,
    :lang(hi) .hero-kicker, :lang(bn) .hero-kicker, :lang(th) .hero-kicker,
    :lang(zh) .hero-kicker, :lang(ja) .hero-kicker, :lang(ko) .hero-kicker {
      font-family: inherit;
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0;
      text-transform: none;
    }
    :lang(ar) .home-hero h1, :lang(fa) .home-hero h1, :lang(he) .home-hero h1,
    :lang(hi) .home-hero h1, :lang(bn) .home-hero h1, :lang(th) .home-hero h1 {
      letter-spacing: 0;
      line-height: 1.18;
    }
    :lang(zh) .home-hero h1, :lang(ja) .home-hero h1, :lang(ko) .home-hero h1 {
      letter-spacing: -0.02em;
      line-height: 1.12;
    }

    /* ----- The two products ----- */
    .path {
      position: relative;
      min-width: 0;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 20px;
      box-shadow: 0 24px 64px var(--shadow-card);
    }
    .path-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
    .path h2 {
      font-size: 25px;
      font-weight: 750;
      line-height: 1.15;
      letter-spacing: -0.035em;
    }
    .path-text p {
      max-width: 560px;
      margin-top: 10px;
      color: var(--text-dim);
      font-size: 15px;
      line-height: 1.65;
    }
    .path-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 9px;
      border-radius: 999px;
      background: var(--success-bg);
      color: var(--success);
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }
    .path-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
    .path-badge-open { background: var(--accent-glow); color: var(--accent-text); }
    .path-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
    .path-btn {
      min-height: 46px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 11px 20px;
      border: 1px solid var(--accent);
      border-radius: 10px;
      background: var(--accent);
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.2;
      text-align: center;
      white-space: nowrap;
      box-shadow: 0 10px 26px var(--accent-glow);
      transition: background 0.15s ease, transform 0.15s ease;
    }
    .path-btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; transform: translateY(-1px); }
    .path-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
    .path-btn-ink { border-color: var(--text); background: var(--text); color: var(--bg); box-shadow: 0 10px 26px var(--shadow-card); }
    .path-btn-ink:hover { background: var(--text); color: var(--bg); opacity: 0.88; }
    .path-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
    .path-link {
      color: var(--text);
      font-size: 14px;
      font-weight: 650;
      text-decoration: underline;
      text-decoration-color: var(--border-strong);
      text-underline-offset: 4px;
    }
    .path-link:hover { color: var(--accent-text); text-decoration-color: currentColor; }
    .path-action {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: var(--text);
      font-size: 14px;
      font-weight: 650;
      white-space: nowrap;
      cursor: pointer;
    }
    .path-action:hover { color: var(--text); text-decoration: none; }
    .path-action-icon {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border: 1px solid var(--border-strong);
      border-radius: 50%;
      color: var(--accent-text);
      transition: background 0.15s ease, border-color 0.15s ease;
    }
    .path-action:hover .path-action-icon { border-color: var(--accent); background: var(--accent-glow); }
    .path-action-icon svg { width: 12px; height: 12px; }
    .path-action-meta { color: var(--text-dim); font-weight: 500; font-variant-numeric: tabular-nums; }
    .path-action[aria-busy="true"] { cursor: progress; }
    .path-action[aria-busy="true"] .path-action-icon svg { display: none; }
    .path-action[aria-busy="true"] .path-action-icon::after {
      content: '';
      width: 12px;
      height: 12px;
      border: 2px solid var(--accent-glow);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: path-spin 0.8s linear infinite;
    }
    @keyframes path-spin { to { transform: rotate(360deg); } }
    .path-status { flex-basis: 100%; color: var(--danger); font-size: 13px; }
    .path-status:empty { display: none; }

    /* Browser extension: copy and actions on one line, the carousel below
       at the size it had as the old hero. */
    .path-browser {
      margin-top: 44px;
      padding: 30px 32px 26px;
      overflow: hidden;
      background:
        radial-gradient(ellipse 70% 60% at 50% 100%, var(--accent-glow), transparent 70%),
        var(--bg-card);
    }
    .path-browser .path-copy {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 20px 40px;
    }
    .path-browser .path-actions { flex: 0 0 auto; }
    .path-browser h2 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -0.04em; }
    .path-browser .hero-visual { margin-top: 30px; overflow: visible; }
    .path-browser .scene-arrow { background: var(--bg-card); }
    .path-browser .hero-proof { margin-top: 26px; margin-bottom: 4px; }

    /* WebBrain for websites: a strip with the code illustration. */
    .path-websites {
      display: grid;
      grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
      align-items: center;
      gap: 32px;
      margin-top: 18px;
      padding: 12px 32px 12px 12px;
    }
    .path-websites .path-copy { display: flex; flex-direction: column; gap: 22px; padding: 14px 0; }

    .illo {
      position: relative;
      height: 190px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--illo-bg);
      direction: ltr;
    }
    .illo .ln { display: block; height: 6px; border-radius: 3px; background: var(--illo-line); }
    .illo .ln-title { height: 9px; width: 46%; background: var(--text-dim); opacity: 0.45; }
    .illo .w95 { width: 95%; } .illo .w85 { width: 85%; } .illo .w75 { width: 75%; } .illo .w60 { width: 60%; }
    .illo-site { border-color: var(--code-border); background: var(--code-bg); }
    .code-pane { position: absolute; inset: 0 auto 0 0; width: 62%; color: #e9e1d6; }
    .code-tabbar { height: 27px; display: flex; align-items: flex-end; padding: 0 10px; border-bottom: 1px solid rgba(255,255,255,0.07); }
    .code-tab { padding: 5px 10px 6px; border-radius: 6px 6px 0 0; background: rgba(255,255,255,0.07); color: #d8cfc3; font: 600 9.5px/1 var(--mono); }
    .code-lines { display: block; padding: 9px 0; font: 500 10.5px/1.8 var(--mono); background: none; border: 0; }
    .code-line { display: block; padding-right: 12px; white-space: pre; }
    .code-line::before { content: attr(data-n); display: inline-block; width: 28px; padding-right: 10px; color: #6f655c; text-align: right; }
    .code-line.is-added { background: rgba(143,224,176,0.11); }
    .code-line.is-added::before { content: '+'; color: #8fe0b0; }
    .tk-tag { color: #ffa877; }
    .tk-attr { color: #b3c2ff; }
    .tk-str { color: #8fe0b0; }
    .tk-dim { color: #8a7f75; }
    .sp-pane {
      position: absolute;
      top: 16px;
      right: 14px;
      bottom: -1px;
      width: 41%;
      overflow: hidden;
      border: 1px solid var(--border);
      border-bottom: 0;
      border-radius: 10px 10px 0 0;
      background: var(--bg-card);
      box-shadow: 0 -8px 30px rgba(0,0,0,0.28);
    }
    .sp-nav { height: 22px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border-bottom: 1px solid var(--border); }
    .sp-logo { width: 9px; height: 9px; border-radius: 3px; background: #e5784c; }
    .sp-nav .ln { width: 16%; height: 4px; }
    .sp-nav .ln:first-of-type { margin-left: auto; }
    .sp-body { display: flex; flex-direction: column; gap: 7px; padding: 12px 11px; }
    .sp-drawer {
      position: absolute;
      right: 9px;
      bottom: 38px;
      width: 66%;
      display: flex;
      flex-direction: column;
      gap: 5px;
      padding: 8px;
      border: 1px solid var(--border);
      border-radius: 9px;
      background: var(--bg-card);
      box-shadow: 0 10px 24px var(--shadow-strong);
    }
    .sp-drawer .ln { height: 4px; }
    .sp-chip { width: 82%; height: 11px; border: 1px solid rgba(124,108,230,0.45); border-radius: 999px; background: var(--accent-glow); }
    .sp-launcher {
      position: absolute;
      right: 9px;
      bottom: 9px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 10px;
      border-radius: 999px;
      background: linear-gradient(135deg, #5b52e8, #7c6ce6 55%, #b94db3);
      color: #fff;
      font: 700 9.5px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
      box-shadow: 0 6px 16px rgba(91,82,232,0.35);
    }


    /* "Watch it in action": the product video in a dialog. */
    .video-dialog {
      width: min(1040px, calc(100vw - 32px));
      max-width: none;
      max-height: calc(100vh - 32px);
      margin: auto;
      padding: 0;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--bg-card);
      color: var(--text);
      box-shadow: 0 30px 90px rgba(0,0,0,0.5);
    }
    .video-dialog::backdrop { background: rgba(8,10,18,0.74); backdrop-filter: blur(4px); }
    .video-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 20px; }
    .video-dialog-head h2 { font-size: 16px; font-weight: 750; letter-spacing: -0.02em; }
    .video-dialog-close {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border: 1px solid var(--border);
      border-radius: 50%;
      background: transparent;
      color: var(--text);
      cursor: pointer;
    }
    .video-dialog-close:hover { background: var(--tint-soft); }
    .video-dialog-close svg { width: 16px; height: 16px; }
    .video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 110px); background: #000; }

    @keyframes home-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    .hero-copy { animation: home-rise 0.5s ease-out both; }
    .path-browser { animation: home-rise 0.55s ease-out 0.06s both; }

    @media (max-width: 960px) {
      .hero-copy { grid-template-columns: 1fr; }
      .hero-lede { max-width: 600px; margin-bottom: 0; }
      .path-browser .path-copy { flex-direction: column; align-items: flex-start; }
      .path-websites { grid-template-columns: 1fr; padding: 12px 12px 22px; gap: 10px; }
      .path-websites .path-copy { padding: 14px 14px 0; }
    }
    @media (max-width: 768px) {
      .home-hero { padding: 48px 16px 0; }
      .path-browser { padding: 22px 16px 20px; margin-top: 34px; }
      .video-dialog { width: min(440px, calc(100vw - 24px)); }
      .video-dialog video { aspect-ratio: 9 / 16; }
    }
    @media (max-width: 640px) {
      .path-actions { flex-direction: column; align-items: stretch; }
      .path-btn { width: 100%; }
      .path-action, .path-more { align-self: flex-start; }
      .illo { height: 172px; }
      .code-pane { width: 59%; }
      .code-lines { font-size: 9px; }
      .code-line::before { width: 22px; padding-right: 7px; }
      .sp-pane { right: 10px; width: 37%; }
      .path-browser .path-copy { align-items: stretch; }
    }

    /* ================================================================
       SPLIT HERO — like webbrain.cloud: the pitch and its actions on the
       left, the extension at work on the right, on a 1320px page.
       ================================================================ */
    .hero-split {
      display: grid;
      grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
      align-items: center;
      gap: clamp(40px, 5vw, 80px);
    }
    .hero-split .hero-copy { display: block; }
    .hero-split .home-hero h1,
    .home-hero .hero-split h1 { font-size: clamp(44px, 5.2vw, 76px); }
    .hero-split .hero-copy[data-title="long"] h1 { font-size: clamp(36px, 4vw, 54px); }
    .hero-split .hero-lede { max-width: 540px; margin: 26px 0 0; }
    .hero-actions-row { margin-top: 32px; }
    .hero-split .hero-proof { justify-content: flex-start; max-width: none; margin: 30px 0 0; }
    .path-browser {
      margin-top: 0;
      padding: 0;
      animation-delay: 0.1s;
    }
    .path-browser .path-copy { display: block; padding: 20px 24px 18px; border-bottom: 1px solid var(--border); }
    .path-browser h2 { font-size: 21px; letter-spacing: -0.03em; }
    .path-browser .path-text p { margin-top: 6px; font-size: 14px; line-height: 1.55; }
    .path-browser .hero-visual { margin: 0; padding: 20px 20px 16px; }
    .path-browser .mockup-stage { max-width: none; padding-inline: 0; }
    .path-browser .mockup-stack { max-width: none; }
    .path-browser .scene-arrow { display: none; }
    .path-browser .scene-nav { margin-top: 16px; }
    .path-websites { margin-top: 48px; }
    /* The carousel sits straight on the page: no card, border or shadow
       around it, so the browser mockup reads as part of the hero. */
    .path-browser { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
    .path-browser .hero-visual { padding: 0; }
    .path-browser .scene-dot.is-active { background: var(--bg-card); }
    @media (max-width: 1100px) {
      .hero-split { grid-template-columns: 1fr; gap: 44px; }
      .hero-split .hero-lede { max-width: 640px; }
    }
    @media (max-width: 640px) {
      .hero-split .hero-proof { align-items: flex-start; }
    }

    /* ================================================================
       SECTION RHYTHM ON THE WIDE PAGE
       ================================================================ */
    /* Section intros: label and title on the left, the intro on the
       right, bottoms aligned — as on webbrain.cloud. */
    .section-intro {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
      align-items: end;
      gap: 20px 64px;
      margin-bottom: 44px;
    }
    .section-title { line-height: 1.12; }
    .section-intro .section-title { margin-bottom: 0; }
    .section-intro .section-subtitle { max-width: 520px; margin: 0; }

    /* FAQ and install: the intro stays beside the questions and the
       download cards instead of above them. */
    .section-aside {
      display: grid;
      grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
      grid-auto-rows: min-content;
      column-gap: clamp(40px, 6vw, 88px);
      align-items: start;
    }
    .section-aside > .section-intro { grid-column: 1; grid-row: 1; display: block; margin: 0; }
    .section-aside > .section-intro .section-title { margin-bottom: 14px; }
    .section-aside > :not(.section-intro) { grid-column: 2; }
    .section-aside > .faq-inline-grid,
    .section-aside > .download-cards { grid-row: 1 / span 3; margin-top: 0; max-width: none; }
    .section-aside > .faq-inline-cta-wrap,
    .section-aside > .download-companion { grid-column: 1; grid-row: 2; margin-top: 24px; }
    .faq-inline-section { max-width: var(--max-w); }

    .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .apocalypse-banner-section { max-width: var(--max-w); padding-inline: 24px; }

    /* Share banner: the words on the left, the buttons on the right. */
    .oss-banner {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      column-gap: 48px;
    }
    .oss-banner h3, .oss-banner p { grid-column: 1; }
    .oss-banner p { margin-bottom: 0; }
    .oss-banner .share-row { grid-column: 2; grid-row: 1 / span 2; }

    /* Carousel tabs: name each scene, like webbrain.cloud's CLI / Python
       / REST tabs. The rotation script keeps driving .is-active. */
    .path-browser .hero-visual { display: flex; flex-direction: column; padding-top: 14px; }
    .path-browser .scene-nav {
      order: -1;
      justify-content: flex-start;
      gap: 4px;
      margin: 0 0 14px;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .path-browser .scene-nav::-webkit-scrollbar { display: none; }
    .path-browser .scene-dot,
    .path-browser .scene-dot.is-active {
      width: auto;
      height: auto;
      flex: 0 0 auto;
      padding: 6px 11px;
      border: 1px solid transparent;
      border-radius: 8px;
      background: transparent;
      color: var(--text-dim);
      font: 600 13px/1.2 inherit;
      font-family: inherit;
      white-space: nowrap;
      cursor: pointer;
      box-shadow: none;
    }
    .path-browser .scene-dot:hover { background: var(--tint-soft); color: var(--text); }
    .path-browser .scene-dot.is-active { border-color: var(--border); background: var(--bg); color: var(--text); }

    @media (max-width: 960px) {
      .section-intro { grid-template-columns: 1fr; }
      .section-aside { grid-template-columns: 1fr; }
      .section-aside > * { grid-column: 1 !important; grid-row: auto !important; }
      .section-aside > .section-intro { margin-bottom: 32px; }
      .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .oss-banner { grid-template-columns: 1fr; }
      .mcp-steps { grid-template-columns: 1fr; }
      .mcp-step + .mcp-step { border-inline-start: 0; border-top: 1px solid var(--border); }
      .mcp-step, .mcp-foot { padding-inline: 20px; }
      .mcp-req { margin-inline-start: 0; flex-basis: 100%; }
      .oss-banner .share-row { grid-column: 1; grid-row: auto; margin-top: 24px; }
    }
    @media (max-width: 640px) {
      .features-grid { grid-template-columns: 1fr; }
      .mcp-prompt { flex-direction: column; align-items: stretch; }
    }
  </style>

  <!-- Theme bootstrap — runs synchronously before first paint so the page
       opens in the visitor's chosen theme without a dark-flash. Order of
       precedence: previously saved choice in localStorage > prefers-color-
       scheme > dark fallback. Wrapped in try/catch because localStorage
       can throw in private-mode Safari and some sandboxed iframes. -->
  <script>
    (function () {
      try {
        var saved = localStorage.getItem('webbrain-theme');
        var theme = (saved === 'light' || saved === 'dark')
          ? saved
          : (window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark');
        document.documentElement.setAttribute('data-theme', theme);
      } catch (_) {
        document.documentElement.setAttribute('data-theme', 'dark');
      }
    })();
  </script>

  <!-- Progressive enhancement: the flag picker is JS-only, so without scripting
       we hide it and reveal a real <a href> language list in the footer. -->
  <noscript>
    <style>
      .language-picker { display: none !important; }
      .wb-footer-languages { display: flex !important; }
    </style>
  </noscript>

  <!-- Site footer styles: start -->
  <style>
    .wb-footer {
      --wb-footer-text: var(--text, var(--ink, #2c1810));
      --wb-footer-dim: var(--text-dim, var(--muted, #6b5b47));
      --wb-footer-line: var(--border, var(--line, rgba(89, 55, 25, 0.15)));
      margin: 0;
      padding: 0;
      border-top: 1px solid var(--wb-footer-line);
      background: var(--wb-footer-bg, none);
      color: var(--wb-footer-dim);
      font-size: 13px;
      line-height: 1.5;
      text-align: start;
    }
    .wb-footer-inner {
      width: var(--wb-footer-width, min(calc(100% - 48px), 1100px));
      margin: 0 auto;
      padding: 26px 0 30px;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
    /* Page links start on the brand's left edge; the social icons sit at
       the far end of the same row. */
    .wb-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
    .wb-footer-brand { display: flex; flex-direction: column; gap: 5px; }
    .wb-footer-tagline { margin: 0; color: var(--wb-footer-text); font-size: 15px; font-weight: 700; line-height: 1.4; }
    .wb-footer-copy { margin: 0; }
    .wb-footer-copy a { color: var(--wb-footer-text); font-weight: 650; text-decoration: none; }
    .wb-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
    .wb-footer-social { display: flex; align-items: center; gap: 8px; }
    .wb-footer-links a { color: var(--wb-footer-dim); font-weight: 600; text-decoration: none; }
    .wb-footer a:hover { color: var(--wb-footer-text); text-decoration: none; }
    .wb-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
    .wb-footer-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: -4px 0; border-radius: 6px; }
    .wb-footer-icon:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
    .wb-footer-icon svg { display: block; width: 15px; height: 15px; }
    /* Only shown without JavaScript, when the language picker can't run. */
    .wb-footer-languages { display: none; flex-wrap: wrap; gap: 6px 12px; width: 100%; direction: ltr; }
    .wb-footer-languages span { color: var(--wb-footer-text); font-weight: 700; }
    @media (max-width: 860px) {
      .wb-footer-inner { width: var(--wb-footer-width, calc(100% - 32px)); }
    }
  </style>
  <!-- Site footer styles: end -->
  <!-- Plausible analytics: start -->
  <!-- Privacy-friendly analytics by Plausible -->
  <script async src="https://157.230.3.9.sslip.io/js/pa-omp0F7DsOXM4sGKR50l7S.js"></script>
  <script>
    window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};
    plausible.init()
  </script>
  <!-- Plausible analytics: end -->
</head>
<body>

<div class="glow-bg"></div>

<!-- TOP ANNOUNCEMENT BANNER -->
<aside class="top-announcement-banner">
  <a href="#mcp" class="top-announcement-link">
    <span class="top-announcement-pill">New</span>
    <span class="top-announcement-text">เซิร์ฟเวอร์ MCP สำหรับ Claude Code, Codex และ Cursor</span>
    <span class="top-announcement-arrow" aria-hidden="true">→</span>
  </a>
</aside>

<!-- NAV -->
<nav>
  <div class="nav-inner">
    <a href="https://webbrain.one/th/" class="nav-brand" style="text-decoration:none;">
      <img class="brand-logo" src="/logo-github.png" alt="" aria-hidden="true"> WebBrain<span style="opacity:0.5; font-weight:400; -webkit-text-fill-color:currentColor;">.one</span>
    </a>
    <div class="nav-links">
      
      <a href="/research/" class="nav-secondary">งานวิจัย</a>
      <a href="/docs/" class="nav-secondary">เอกสาร</a>
      <a href="/blog/" class="nav-secondary">บล็อก</a>
      <a href="#download" class="nav-cta">ดาวน์โหลด</a>
      <div class="language-picker" id="language-picker">
        <select class="language-select-native" id="lang-dropdown" tabindex="-1" aria-hidden="true" data-current="th">
          <option value="en">English</option>
          <option value="zh">中文</option>
          <option value="ar">العربية</option>
          <option value="bn">বাংলা</option>
          <option value="nl">Nederlands</option>
          <option value="tl">Filipino</option>
          <option value="fr">Français</option>
          <option value="de">Deutsch</option>
          <option value="he">עברית</option>
          <option value="hi">हिन्दी</option>
          <option value="id">Bahasa Indonesia</option>
          <option value="ja">日本語</option>
          <option value="ko">한국어</option>
          <option value="ms">Bahasa Melayu</option>
          <option value="fa">فارسی</option>
          <option value="pt">Português</option>
          <option value="ru">Русский</option>
          <option value="es">Español</option>
          <option value="th">ไทย</option>
          <option value="tr">Türkçe</option>
          <option value="uk">Українська</option>
          <option value="vi">Tiếng Việt</option>
        </select>
        <button class="language-picker-btn" type="button" id="language-picker-btn" aria-label="เลือกภาษา" title="เลือกภาษา" aria-haspopup="listbox" aria-expanded="false" aria-controls="language-picker-menu">
          <img class="language-picker-flag" id="language-picker-flag" src="/assets/flags/th.svg" alt="" aria-hidden="true">
          <span class="language-picker-code" id="language-picker-code">TH</span>
          <svg class="language-picker-caret" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
            <polyline points="6 9 12 15 18 9"/>
          </svg>
        </button>
        <div class="language-picker-menu" id="language-picker-menu" role="listbox" aria-label="เลือกภาษา" hidden></div>
      </div>
      <button class="theme-toggle" type="button" id="theme-toggle" aria-label="สลับธีมสว่าง / มืด" title="สลับธีมสว่าง / มืด">
        <svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
          <circle cx="12" cy="12" r="4"/>
          <path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/>
        </svg>
        <svg class="icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
          <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
        </svg>
      </button>
      <a href="https://github.com/webbrain-one/webbrain" class="gh-stars" target="_blank" rel="noopener" id="gh-stars" data-loading="1" aria-label="ติดดาว WebBrain บน GitHub">
        <svg class="gh-icon" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"/></svg>
        <svg class="gh-star" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2l2.99 6.36L22 9.4l-5 4.96L18.18 22 12 18.5 5.82 22 7 14.36 2 9.4l7.01-1.04L12 2z"/></svg>
        <span class="gh-count">—</span>
      </a>
    </div>
  </div>
</nav>

<!-- HERO -->
<main class="home" id="top">
<section class="home-hero" aria-labelledby="home-title">
  <div class="hero-split">
    <div class="hero-copy" data-title="short">
      <div class="hero-title">
        <!-- Until WebBrain for websites launches the hero speaks for the browser
             extension alone (WEBSITES_LAUNCHED in site-footer.mjs). -->
        <p class="hero-kicker">ฟรีและโอเพนซอร์ส</p>
        <h1 id="home-title"><span class="title-line">AI agent ในทุกหน้า</span> <span class="title-line title-accent">ที่คุณเข้าชม</span></h1>
      </div>
      <p class="hero-lede">WebBrain อ่าน อธิบาย และลงมือทำบนหน้าเว็บ เพิ่มลงใน Chrome, Edge หรือ Firefox แล้วรับความช่วยเหลือได้ทุกเว็บไซต์ กับโมเดลใดก็ได้ รวมถึงโมเดลในเครื่อง</p>
      <div class="path-actions hero-actions-row">
        <a href="https://chromewebstore.google.com/detail/webbrain/ljhijonmfahplgbbacgcfnaihbjljhhb" target="_blank" rel="noopener noreferrer" class="path-btn" id="hero-install-cta">
          <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
          <span id="hero-install-label">ติดตั้งส่วนขยาย</span>
        </a>
        <a href="/assets/webbrain-home-demo.mp4" class="path-action" id="home-video-open" aria-haspopup="dialog">
          <span class="path-action-icon"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M8 5.14v13.72a1 1 0 0 0 1.52.85l11-6.86a1 1 0 0 0 0-1.7l-11-6.86A1 1 0 0 0 8 5.14z"/></svg></span>
          <span>ดูการทำงานจริง</span>
          <span class="path-action-meta">1:21</span>
        </a>
      </div>
    <div class="hero-proof">
      <a class="hero-proof-cell" href="https://chromewebstore.google.com/detail/webbrain/ljhijonmfahplgbbacgcfnaihbjljhhb" target="_blank" rel="noopener noreferrer">
        <span class="hero-proof-label hero-proof-featured">
          <img class="hero-proof-icon" src="/assets/browser-chrome.svg" alt="" aria-hidden="true" width="15" height="15" decoding="async" draggable="false">
          แนะนำบน Chrome เว็บสโตร์
        </span>
      </a>
      <a class="hero-proof-cell" href="https://www.producthunt.com/products/webbrain" target="_blank" rel="noopener noreferrer">
        <span class="hero-proof-label hero-proof-hunt">
          <svg class="hero-proof-icon" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="12" fill="#da552f"/><path fill="#fff" d="M9 6.5h4.5a4 4 0 1 1 0 8H12v3H9v-11Zm3 3v2h1.5a1 1 0 1 0 0-2H12Z"/></svg>
          Product Hunt
        </span>
      </a>
      <a class="hero-proof-cell" href="https://www.marktechpost.com/2026/07/02/meet-webbrain-an-open-source-local-first-ai-browser-agent-that-reads-pages-and-automates-tasks-in-chrome-and-firefox/" target="_blank" rel="noopener noreferrer">
        <span class="hero-proof-label hero-proof-press">
          <img class="hero-proof-icon" src="/assets/marktechpost.svg" alt="" aria-hidden="true" width="15" height="15" decoding="async" draggable="false">
          MarkTechPost
        </span>
      </a>
    </div>
    </div>

  <!-- The browser extension leads: words on the left, the extension at
       work on the right, like webbrain.cloud's hero. -->
  <section class="path path-browser" aria-label="ในเบราว์เซอร์ของคุณ">

  <!-- Browser mockup — 5 demo scenarios that cross-fade. The first scene
       carries .is-active on load so its messages animate in immediately;
       the rotation script swaps the class on a timer / on click. -->
  <div class="hero-visual">
    <div class="mockup-stage">
      <button class="scene-arrow scene-arrow-prev" type="button" data-scene-step="-1" aria-label="สถานการณ์เดโมก่อนหน้า" aria-controls="mockup-stack">
        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 18l-6-6 6-6"/></svg>
      </button>
      <div class="mockup-stack" id="mockup-stack">

      <!-- Scene 1: Follow-up question (two-turn conversation) — Ask mode -->
      <div class="browser-mockup is-active" data-scene="0">
        <div class="browser-bar">
          <div class="browser-dots"><span></span><span></span><span></span></div>
          <div class="browser-url">https://magazine.dev/local-ai-2026</div>
        </div>
        <div class="browser-body">
          <div class="browser-page page-article">
            <h3>อนาคตของ AI ในเครื่อง</h3>
            <div class="pa-meta">โดย Jane Smith · อ่าน 8 นาที</div>
            <div class="placeholder-line"></div>
            <div class="placeholder-line"></div>
            <div class="placeholder-line"></div>
            <div class="placeholder-line"></div>
            <div class="placeholder-line"></div>
            <div class="placeholder-line"></div>
            <div class="placeholder-line"></div>
            <div class="placeholder-line"></div>
          </div>
          <div class="side-panel">
            <div class="sp-header">
              <span class="sp-brand"><img class="sp-brand-logo" src="/logo-github.png" alt="" aria-hidden="true"> WebBrain<span class="sp-domain">.one</span></span>
              <span class="sp-modes" aria-hidden="true"><span class="sp-mode is-on">Ask</span><span class="sp-mode">Act</span><span class="sp-mode">Dev</span></span>
              <span class="sp-status"></span>
            </div>
            <div class="sp-messages">
              <div class="sp-msg user">สรุปบทความนี้</div>
              <div class="sp-msg assistant">ตอนนี้ LLM ในเครื่องเทียบเท่าคุณภาพคลาวด์ในหลายงาน — ขับเคลื่อนด้วยการควอนไทซ์ที่ดีขึ้น GPU สำหรับผู้บริโภคที่เร็วขึ้น และการเปลี่ยนทิศทางที่ให้ความเป็นส่วนตัวเป็นอันดับแรก</div>
              <div class="sp-msg user user-2">ผู้เขียนคาดการณ์อะไรไว้สำหรับปี 2026?</div>
              <div class="sp-msg assistant assistant-2">
                <div class="step"><span class="check">&#10003;</span> กำลังเรียกคืนบริบทของบทความ</div>
                <div style="margin-top:6px;">ภายในปี <strong>2026</strong> ผู้เขียนคาดว่ามากกว่า 70% ของภาระงาน AI ของผู้บริโภคจะทำงานบนอุปกรณ์</div>
              </div>
            </div>
            <div class="sp-input">
              <div class="sp-input-box">ถามอะไรก็ได้เกี่ยวกับหน้านี้...</div>
            </div>
          </div>
        </div>
      </div>

      <!-- Scene 2: Tax form fill (Act mode) — fields type themselves in -->
      <div class="browser-mockup" data-scene="1" aria-hidden="true" inert>
        <div class="browser-bar">
          <div class="browser-dots"><span></span><span></span><span></span></div>
          <div class="browser-url">https://tax.example.gov/filing/quarterly-return</div>
        </div>
        <div class="browser-body">
          <div class="browser-page page-taxform">
            <h3>แบบแสดงรายการภาษีรายไตรมาส — แบบฟอร์ม QT-4</h3>
            <div class="tf-meta">กรมสรรพากร · ต้องกรอกทุกช่อง</div>
            <div class="tf-grid">
              <div class="tf-field wide">
                <div class="tf-label"><span><b>1a</b> ชื่อธุรกิจตามกฎหมาย</span> <span class="tf-tags"><span class="tf-mem" style="--d:0.7s;">จากหน่วยความจำ</span><span class="tf-check" style="--d:0.7s;">&#10003;</span></span></div>
                <div class="tf-input"><span class="tf-value" style="--d:0.7s;">Lumen Coffee LLC</span></div>
              </div>
              <div class="tf-field">
                <div class="tf-label"><span><b>1b</b> EIN / เลขประจำตัวผู้เสียภาษี</span> <span class="tf-tags"><span class="tf-mem" style="--d:1.1s;">จากหน่วยความจำ</span><span class="tf-check" style="--d:1.1s;">&#10003;</span></span></div>
                <div class="tf-input"><span class="tf-value" style="--d:1.1s;">84-2917465</span></div>
              </div>
              <div class="tf-field">
                <div class="tf-label"><span><b>2</b> รอบระยะเวลาการยื่น</span> <span class="tf-check" style="--d:1.6s;">&#10003;</span></div>
                <div class="tf-input"><span class="tf-value" style="--d:1.6s;">Q2 2026</span></div>
              </div>
              <div class="tf-field">
                <div class="tf-label"><span><b>5a</b> รายได้รวม</span> <span class="tf-check" style="--d:2.0s;">&#10003;</span></div>
                <div class="tf-input"><span class="tf-value" style="--d:2.0s;">$148,220.00</span></div>
              </div>
              <div class="tf-field">
                <div class="tf-label"><span><b>5b</b> ค่าใช้จ่ายที่หักได้</span> <span class="tf-check" style="--d:2.4s;">&#10003;</span></div>
                <div class="tf-input"><span class="tf-value" style="--d:2.4s;">$61,884.00</span></div>
              </div>
              <div class="tf-field">
                <div class="tf-label"><span><b>7</b> ค่าจ้างเงินเดือนรวม</span> <span class="tf-tags"><span class="tf-mem" style="--d:2.8s;">จากหน่วยความจำ</span><span class="tf-check" style="--d:2.8s;">&#10003;</span></span></div>
                <div class="tf-input"><span class="tf-value" style="--d:2.8s;">$38,400.00</span></div>
              </div>
              <div class="tf-field">
                <div class="tf-label"><span><b>9a</b> ภาษีที่ประมาณการและชำระแล้ว</span> <span class="tf-check" style="--d:3.2s;">&#10003;</span></div>
                <div class="tf-input"><span class="tf-value" style="--d:3.2s;">$9,500.00</span></div>
              </div>
              <div class="tf-field">
                <div class="tf-label"><span><b>9b</b> เครดิตจากงวดก่อน</span> <span class="tf-check" style="--d:3.6s;">&#10003;</span></div>
                <div class="tf-input"><span class="tf-value" style="--d:3.6s;">$1,250.00</span></div>
              </div>
              <div class="tf-field">
                <div class="tf-label"><span><b>11</b> ภาษีสุทธิที่ต้องชำระ</span> <span class="tf-check" style="--d:4.0s;">&#10003;</span></div>
                <div class="tf-input"><span class="tf-value" style="--d:4.0s;">$12,067.40</span></div>
              </div>
            </div>
            <span class="tf-submit">ยื่นแบบ</span>
          </div>
          <div class="side-panel">
            <div class="sp-header">
              <span class="sp-brand"><img class="sp-brand-logo" src="/logo-github.png" alt="" aria-hidden="true"> WebBrain<span class="sp-domain">.one</span></span>
              <span class="sp-modes" aria-hidden="true"><span class="sp-mode">Ask</span><span class="sp-mode is-on">Act</span><span class="sp-mode">Dev</span></span>
              <span class="sp-status"></span>
            </div>
            <div class="sp-messages">
              <div class="sp-msg user">กรอกฟอร์มนี้ให้หน่อย</div>
              <div class="sp-msg assistant">
                <div class="step"><span class="check">&#10003;</span> ดึงชื่อ EIN และเงินเดือน <strong>จากหน่วยความจำ</strong></div>
                <div class="step"><span class="check">&#10003;</span> พบช่องที่ต้องกรอก 9 ช่อง</div>
                <div class="step"><span class="check">&#10003;</span> กำลังคำนวณยอดรวมจากตัวเลข</div>
                <div style="margin-top:6px;">กรอกแล้ว <strong>9 ช่อง</strong> หยุดก่อนส่ง — ตรวจทานแล้วส่งเมื่อพร้อม</div>
              </div>
            </div>
            <div class="sp-input">
              <div class="sp-input-box">ถามอะไรก็ได้เกี่ยวกับหน้านี้...</div>
            </div>
          </div>
        </div>
      </div>

      <!-- Scene 3: Dev mode — CSS spacing question answered in a code editor -->
      <div class="browser-mockup" data-scene="2" aria-hidden="true" inert>
        <div class="browser-bar">
          <div class="browser-dots"><span></span><span></span><span></span></div>
          <div class="browser-url">http://localhost:3000/preview</div>
        </div>
        <div class="browser-body">
          <div class="browser-page page-landing">
            <div class="pl-logo"><span class="pl-mark">⬢</span>Acme Studio</div>
            <div class="pl-hero">
              <div class="pl-headline">สร้างสิ่งที่ <em>สวยงาม</em></div>
              <div class="pl-buttons">
                <span class="pl-btn primary"></span>
                <span class="pl-btn"></span>
              </div>
            </div>
            <div class="pl-grid">
              <div class="pl-tile"></div>
              <div class="pl-tile"></div>
              <div class="pl-tile"></div>
            </div>
          </div>
          <div class="side-panel">
            <div class="sp-header">
              <span class="sp-brand"><img class="sp-brand-logo" src="/logo-github.png" alt="" aria-hidden="true"> WebBrain<span class="sp-domain">.one</span></span>
              <span class="sp-modes" aria-hidden="true"><span class="sp-mode">Ask</span><span class="sp-mode">Act</span><span class="sp-mode is-on">Dev</span></span>
              <span class="sp-status"></span>
            </div>
            <div class="sp-messages">
              <div class="sp-msg user">จะทำให้บล็อกเหล่านี้ห่างกันมากขึ้น มีระยะห่างมากขึ้นได้อย่างไร?</div>
              <div class="sp-msg assistant">
                <div class="step"><span class="check">&#10003;</span> กำลังตรวจดูกริดใน DevTools</div>
                <div class="sp-code">
                  <div class="sp-code-bar">styles.css</div>
                  <div class="sp-code-body"><span>.feature-grid {</span><span class="del">-  gap: 10px;</span><span class="add">+  gap: 28px;</span><span class="add">+  margin-top: 32px;</span><span>}</span></div>
                </div>
                <div style="margin-top:6px;">เพิ่ม <strong>gap</strong> ของกริด และใส่ margin ให้ส่วนนี้</div>
              </div>
            </div>
            <div class="sp-input">
              <div class="sp-input-box">ถามอะไรก็ได้เกี่ยวกับหน้านี้...</div>
            </div>
          </div>
        </div>
      </div>

      <!-- Scene 4: Social video download — Act mode -->
      <div class="browser-mockup" data-scene="3" aria-hidden="true" inert>
        <div class="browser-bar">
          <div class="browser-dots"><span></span><span></span><span></span></div>
          <div class="browser-url">https://youtube.com/watch?v=n0m4dB0druM</div>
        </div>
        <div class="browser-body">
          <div class="browser-page page-video">
            <div class="pv-frame">
              <div class="pv-controls">
                <div class="pv-progress" aria-hidden="true"></div>
                <div class="pv-controls-row">
                  <span class="pv-time">0:09 / 0:24</span>
                  <span class="pv-controls-icons" aria-hidden="true">CC · ⚙ · ⛶</span>
                </div>
              </div>
            </div>
            <div class="pv-meta">
              <div class="pv-caption">ไทม์แลปส์พระอาทิตย์ตกเหนือ Bodrum</div>
              <div class="pv-username">@nomad</div>
            </div>
          </div>
          <div class="side-panel scene-download-panel">
            <div class="sp-header">
              <span class="sp-brand"><img class="sp-brand-logo" src="/logo-github.png" alt="" aria-hidden="true"> WebBrain<span class="sp-domain">.one</span></span>
              <span class="sp-modes" aria-hidden="true"><span class="sp-mode">Ask</span><span class="sp-mode is-on">Act</span><span class="sp-mode">Dev</span></span>
              <span class="sp-status"></span>
            </div>
            <div class="sp-messages">
              <div class="sp-msg user">ดาวน์โหลดวิดีโอนี้</div>
              <div class="sp-msg assistant">
                <div class="step"><span class="check">&#10003;</span> กำลังค้นหาสตรีมวิดีโอ</div>
                <div class="step"><span class="check">&#10003;</span> กำลังดึง MP4</div>
                <div style="margin-top:6px;">บันทึกไปยัง <strong>Downloads/nomad-bodrum.mp4</strong> แล้ว</div>
                <div style="margin-top:4px; font-size:11px; color: var(--text-dim);">1080p · 24s · 4.2 MB</div>
              </div>
            </div>
            <div class="download-complete-toast" aria-hidden="true">
              <span class="download-complete-icon">
                <svg viewBox="0 0 32 32" aria-hidden="true">
                  <circle class="download-complete-track" cx="16" cy="16" r="11"></circle>
                  <circle class="download-complete-ring" cx="16" cy="16" r="11"></circle>
                  <path class="download-complete-check" d="M10.5 16.3l3.6 3.5 7.5-8"></path>
                </svg>
              </span>
              <span class="download-complete-copy">
                <strong>ดาวน์โหลดเสร็จแล้ว</strong>
                <span>nomad-bodrum.mp4 · 4.2 MB</span>
              </span>
            </div>
            <div class="sp-input">
              <div class="sp-input-box">ถามอะไรก็ได้เกี่ยวกับหน้านี้...</div>
            </div>
          </div>
        </div>
      </div>

      <!-- Scene 5: Product extraction (Act mode) -->
      <div class="browser-mockup scene-response-left" data-scene="4" aria-hidden="true" inert>
        <div class="browser-bar">
          <div class="browser-dots"><span></span><span></span><span></span></div>
          <div class="browser-url">https://example.com/products</div>
        </div>
        <div class="browser-body">
          <div class="browser-page page-products">
            <h3>แค็ตตาล็อกสินค้า</h3>
            <div class="pp-sub">248 รายการ · เรียงตามขายดี</div>
            <div class="pp-grid">
              <div class="pp-card"><div class="pp-thumb t1"></div><div class="pp-name">Widget Pro</div><div class="pp-price">$29.99</div></div>
              <div class="pp-card"><div class="pp-thumb t2"></div><div class="pp-name">Super Gadget</div><div class="pp-price">$49.99</div></div>
              <div class="pp-card"><div class="pp-thumb t3"></div><div class="pp-name">MegaTool X</div><div class="pp-price">$19.99</div></div>
              <div class="pp-card"><div class="pp-thumb t4"></div><div class="pp-name">Nano Hub</div><div class="pp-price">$34.99</div></div>
              <div class="pp-card"><div class="pp-thumb t5"></div><div class="pp-name">Flex Stand</div><div class="pp-price">$24.99</div></div>
              <div class="pp-card"><div class="pp-thumb t6"></div><div class="pp-name">Prism Lamp</div><div class="pp-price">$59.99</div></div>
            </div>
          </div>
          <div class="side-panel">
            <div class="sp-header">
              <span class="sp-brand"><img class="sp-brand-logo" src="/logo-github.png" alt="" aria-hidden="true"> WebBrain<span class="sp-domain">.one</span></span>
              <span class="sp-modes" aria-hidden="true"><span class="sp-mode">Ask</span><span class="sp-mode is-on">Act</span><span class="sp-mode">Dev</span></span>
              <span class="sp-status"></span>
            </div>
            <div class="sp-messages">
              <div class="sp-msg user">สกัดชื่อสินค้าและราคาทั้งหมดจากหน้านี้</div>
              <div class="sp-msg assistant">
                <div class="step"><span class="check">&#10003;</span> กำลังอ่านหน้า</div>
                <div class="step"><span class="check">&#10003;</span> กำลังสกัดข้อมูล</div>
                <div style="margin-top:6px;">พบ <strong>สินค้า 24 รายการ</strong> ผลลัพธ์มีดังนี้:</div>
                <div style="margin-top:4px; font-size:11px; color: var(--text-dim);">
                  1. Widget Pro — $29.99<br>
                  2. Super Gadget — $49.99<br>
                  3. MegaTool X — $19.99<br>
                  <span style="color:var(--accent2);">...และอีก 21 รายการ</span>
                </div>
              </div>
            </div>
            <div class="sp-input">
              <div class="sp-input-box">ถามอะไรก็ได้เกี่ยวกับหน้านี้...</div>
            </div>
          </div>
        </div>
      </div>

      </div>
      <button class="scene-arrow scene-arrow-next" type="button" data-scene-step="1" aria-label="สถานการณ์เดโมถัดไป" aria-controls="mockup-stack">
        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.3" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 18l6-6-6-6"/></svg>
      </button>
    </div>

    <div class="scene-nav" role="tablist" aria-label="สลับสถานการณ์เดโม">
      <button class="scene-dot is-active" type="button" data-scene="0" role="tab" aria-selected="true" title="เดโมคำถามต่อเนื่อง">สรุป</button>
      <button class="scene-dot" type="button" data-scene="1" role="tab" aria-selected="false" title="เดโมการกรอกฟอร์ม">กรอกฟอร์ม</button>
      <button class="scene-dot" type="button" data-scene="2" role="tab" aria-selected="false" title="เดโมระยะห่าง CSS">พัฒนาเว็บ</button>
      <button class="scene-dot" type="button" data-scene="3" role="tab" aria-selected="false" title="เดโมดาวน์โหลดวิดีโอ">บันทึกวิดีโอ</button>
      <button class="scene-dot" type="button" data-scene="4" role="tab" aria-selected="false" title="เดโมการสกัดข้อมูลสินค้า">ทำงานอัตโนมัติ</button>
    </div>
  </div>

  </section>

  </div>

  
</section>

<dialog class="video-dialog" id="home-video-dialog" aria-labelledby="home-video-title">
  <div class="video-dialog-head">
    <h2 id="home-video-title">ดู WebBrain ทำงานจริง</h2>
    <button class="video-dialog-close" id="home-video-close" type="button" aria-label="ปิดวิดีโอ">
      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg>
    </button>
  </div>
  <video id="home-video" data-desktop-src="/assets/webbrain-home-demo.mp4" data-mobile-src="/assets/webbrain-home-demo-vertical.mp4" data-desktop-poster="/assets/webbrain-home-demo-poster.jpg" data-mobile-poster="/assets/webbrain-home-demo-poster-vertical.jpg" controls preload="none" playsinline></video>
</dialog>

<section class="section voices-section" id="voices" lang="en" dir="ltr" aria-labelledby="voices-title">
  <h2 id="voices-title">Word on the web</h2>
  <div class="voices-grid">
    <figure class="voice">
      <img class="voice-portrait" src="/assets/voices/chris-messina.png" alt="Illustrated portrait of Chris Messina" width="76" height="76" loading="lazy" decoding="async">
      <blockquote cite="https://www.producthunt.com/products/webbrain">“The power of this approach is that the assistant has access to your sessions, cookies, and context — <em>intact</em>.”</blockquote>
      <figcaption>
        <span class="voice-name">Chris Messina</span>
        <a class="voice-source" href="https://www.producthunt.com/products/webbrain" target="_blank" rel="noopener noreferrer">Product Hunt</a>
      </figcaption>
    </figure>
    <figure class="voice voice-featured">
      <img class="voice-portrait" src="/assets/voices/robert-scoble.png" alt="Illustrated portrait of Robert Scoble" width="90" height="90" loading="lazy" decoding="async">
      <blockquote cite="https://x.com/Scobleizer/status/2098481418687123967">“Makes Google Chrome a lot more useful.”</blockquote>
      <figcaption>
        <span class="voice-name">Robert Scoble</span>
        <a class="voice-source" href="https://x.com/Scobleizer/status/2098481418687123967" target="_blank" rel="noopener noreferrer">X / Scobleizer</a>
      </figcaption>
    </figure>
    <figure class="voice">
      <img class="voice-portrait" src="/assets/voices/asif-razzaq.png" alt="Illustrated portrait of Asif Razzaq" width="76" height="76" loading="lazy" decoding="async">
      <blockquote cite="https://www.marktechpost.com/2026/07/02/meet-webbrain-an-open-source-local-first-ai-browser-agent-that-reads-pages-and-automates-tasks-in-chrome-and-firefox/">“Run the agent against a local model, and no page data leaves your machine.”</blockquote>
      <figcaption>
        <span class="voice-name">Asif Razzaq</span>
        <a class="voice-source" href="https://www.marktechpost.com/2026/07/02/meet-webbrain-an-open-source-local-first-ai-browser-agent-that-reads-pages-and-automates-tasks-in-chrome-and-firefox/" target="_blank" rel="noopener noreferrer">MarkTechPost</a>
      </figcaption>
    </figure>
  </div>
</section>

<!-- 4. BRING YOUR OWN AI -->
<section class="section" id="providers" style="padding-top: 40px;">
  <header class="section-intro">
    <div class="section-intro-head">
      <div class="section-label">ผู้ให้บริการ LLM</div>
      <h2 class="section-title">นำ AI ของคุณมาเอง</h2>
    </div>
    <p class="section-subtitle">เชื่อมต่อกับ API ที่เข้ากันได้กับ OpenAI ใด ๆ หรือรันโมเดลภายในเครื่อง สลับผู้ให้บริการได้ทุกเมื่อจากการตั้งค่าของส่วนขยาย</p>
  </header>

  <!-- Constellation: central WebBrain core, 11 provider nodes orbiting on
       two arcs (5 above, 6 below). Connection lines drawn in SVG (viewBox
       is in % units via a 0–100 coordinate space so the line endpoints
       follow the % values used to position each node). The node order
       matches the line order so JS can map a hovered node → its line for
       highlight. Local runtimes (llama.cpp, Ollama, LM Studio, vLLM) are
       on the left edges of each arc; cloud providers fan out toward the
       right. Grok / Gemini / DeepSeek / Mistral are reached via the
       OpenAI-compatible config — any OpenAI-style endpoint works. -->
  <div class="provider-constellation" aria-label="นำ AI ของคุณมาเอง">
    <svg class="constellation-lines" viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true">
      <!-- order: llama.cpp, ollama, openai, anthropic, openrouter, lmstudio, vllm, grok, gemini, deepseek, mistral -->
      <line x1="50" y1="50" x2="10" y2="28"></line>
      <line x1="50" y1="50" x2="28" y2="12"></line>
      <line x1="50" y1="50" x2="50" y2="6"></line>
      <line x1="50" y1="50" x2="72" y2="12"></line>
      <line x1="50" y1="50" x2="90" y2="28"></line>
      <line x1="50" y1="50" x2="8" y2="72"></line>
      <line x1="50" y1="50" x2="24" y2="88"></line>
      <line x1="50" y1="50" x2="40" y2="95"></line>
      <line x1="50" y1="50" x2="60" y2="95"></line>
      <line x1="50" y1="50" x2="76" y2="88"></line>
      <line x1="50" y1="50" x2="92" y2="72"></line>
    </svg>

    <div class="constellation-center" aria-hidden="true">
      <div class="cc-ring cc-ring-2"></div>
      <div class="cc-ring"></div>
      <div class="cc-core"><img src="/logo-github.png" alt="" aria-hidden="true"></div>
    </div>

    <a class="provider-node" href="https://github.com/ggerganov/llama.cpp" target="_blank" rel="noopener" style="--x: 10%; --y: 28%; --d: 0s;" data-line="0">
      <div class="pn-bubble local"><img class="pn-logo" src="/assets/providers/llamacpp.svg" alt="" aria-hidden="true" width="34" height="34" decoding="async" loading="lazy" draggable="false"></div>
      <div class="pn-label">llama.cpp</div>
    </a>
    <a class="provider-node" href="https://ollama.com" target="_blank" rel="noopener" style="--x: 28%; --y: 12%; --d: 0.6s;" data-line="1">
      <div class="pn-bubble ollama"><img class="pn-logo" src="/assets/providers/ollama.svg" alt="" aria-hidden="true" width="34" height="34" decoding="async" loading="lazy" draggable="false"></div>
      <div class="pn-label">Ollama</div>
    </a>
    <a class="provider-node" href="https://platform.openai.com" target="_blank" rel="noopener" style="--x: 50%; --y: 6%; --d: 1.2s;" data-line="2">
      <div class="pn-bubble openai"><img class="pn-logo" src="/assets/providers/openai.svg" alt="" aria-hidden="true" width="34" height="34" decoding="async" loading="lazy" draggable="false"></div>
      <div class="pn-label">OpenAI</div>
    </a>
    <a class="provider-node" href="https://www.anthropic.com" target="_blank" rel="noopener" style="--x: 72%; --y: 12%; --d: 1.8s;" data-line="3">
      <div class="pn-bubble anthropic"><img class="pn-logo" src="/assets/providers/anthropic.svg" alt="" aria-hidden="true" width="34" height="34" decoding="async" loading="lazy" draggable="false"></div>
      <div class="pn-label">Claude</div>
    </a>
    <a class="provider-node" href="https://openrouter.ai" target="_blank" rel="noopener" style="--x: 90%; --y: 28%; --d: 2.4s;" data-line="4">
      <div class="pn-bubble openrouter"><img class="pn-logo" src="/assets/providers/openrouter.svg" alt="" aria-hidden="true" width="34" height="34" decoding="async" loading="lazy" draggable="false"></div>
      <div class="pn-label">OpenRouter</div>
    </a>
    <a class="provider-node" href="https://lmstudio.ai" target="_blank" rel="noopener" style="--x: 8%; --y: 72%; --d: 3.0s;" data-line="5">
      <div class="pn-bubble studiolm"><img class="pn-logo" src="/assets/providers/lmstudio.svg" alt="" aria-hidden="true" width="34" height="34" decoding="async" loading="lazy" draggable="false"></div>
      <div class="pn-label">LM Studio</div>
    </a>
    <a class="provider-node" href="https://docs.vllm.ai" target="_blank" rel="noopener" style="--x: 24%; --y: 88%; --d: 3.6s;" data-line="6">
      <div class="pn-bubble vllm"><img class="pn-logo" src="/assets/providers/vllm.svg" alt="" aria-hidden="true" width="34" height="34" decoding="async" loading="lazy" draggable="false"></div>
      <div class="pn-label">vLLM</div>
    </a>
    <a class="provider-node" href="https://x.ai/api" target="_blank" rel="noopener" style="--x: 40%; --y: 95%; --d: 4.2s;" data-line="7">
      <div class="pn-bubble grok"><img class="pn-logo" src="/assets/providers/xai.svg" alt="" aria-hidden="true" width="34" height="34" decoding="async" loading="lazy" draggable="false"></div>
      <div class="pn-label">Grok</div>
    </a>
    <a class="provider-node" href="https://ai.google.dev/gemini-api/docs/openai" target="_blank" rel="noopener" style="--x: 60%; --y: 95%; --d: 4.8s;" data-line="8">
      <div class="pn-bubble gemini"><img class="pn-logo" src="/assets/providers/gemini.svg" alt="" aria-hidden="true" width="34" height="34" decoding="async" loading="lazy" draggable="false"></div>
      <div class="pn-label">Gemini</div>
    </a>
    <a class="provider-node" href="https://api-docs.deepseek.com" target="_blank" rel="noopener" style="--x: 76%; --y: 88%; --d: 5.4s;" data-line="9">
      <div class="pn-bubble deepseek"><img class="pn-logo" src="/assets/providers/deepseek.svg" alt="" aria-hidden="true" width="34" height="34" decoding="async" loading="lazy" draggable="false"></div>
      <div class="pn-label">DeepSeek</div>
    </a>
    <a class="provider-node" href="https://docs.mistral.ai/api/" target="_blank" rel="noopener" style="--x: 92%; --y: 72%; --d: 6.0s;" data-line="10">
      <div class="pn-bubble mistral"><img class="pn-logo" src="/assets/providers/mistral.svg" alt="" aria-hidden="true" width="34" height="34" decoding="async" loading="lazy" draggable="false"></div>
      <div class="pn-label">Mistral</div>
    </a>
  </div>
</section>

<!-- 5. FEATURES (Core cards first, trimmed) -->
<section class="section" id="features">
  <header class="section-intro">
    <div class="section-intro-head">
      <div class="section-label">คุณสมบัติ</div>
      <h2 class="section-title">ทุกอย่างที่ AI ในเบราว์เซอร์ควรมี</h2>
    </div>
    <p class="section-subtitle">AI agent เต็มรูปแบบที่อยู่ในแถบด้านข้างของเบราว์เซอร์และเข้าใจหน้าเว็บใด ๆ</p>
  </header>

  <div class="features-grid" id="features-grid">
    <!-- 6 core cards shown first -->
    <div class="feature-card">
      <div class="feature-icon">📖</div>
      <h3>เข้าใจหน้า</h3>
      <p>อ่านและเข้าใจหน้าเว็บใด ๆ — บทความ เอกสาร แดชบอร์ด ฟอร์ม ถามคำถามและรับคำตอบทันทีจากเนื้อหาของหน้าปัจจุบัน</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">🤖</div>
      <h3>Browser agent เต็มรูปแบบ</h3>
      <p>คลิก พิมพ์ เลื่อน นำทาง และโต้ตอบกับหน้าแทนคุณ ทำให้งานซ้ำ ๆ เป็นอัตโนมัติด้วยคำสั่งภาษาธรรมชาติ</p>
      <p class="feature-note">ถามก่อนดำเนินการที่มีผลกระทบ ค่าเริ่มต้นคือโหมดถามแบบอ่านอย่างเดียว</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">📊</div>
      <h3>การสกัดข้อมูล</h3>
      <p>สกัดข้อมูลที่มีโครงสร้างจากหน้าใด ๆ — ตาราง รายการ ลิงก์ ฟอร์ม ส่งออกแค็ตตาล็อกสินค้า ผลการค้นหา หรือเนื้อหาของหน้าใด ๆ รองรับ PDF</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">💰</div>
      <h3>ประหยัดโทเค็น</h3>
      <p>ภาพหน้าจอจะถูกปรับขนาดและบีบอัด JPEG ซ้ำ ๆ ก่อนออกจากเครื่องของคุณ ทำให้โทเค็นรูปภาพเล็ก การตัด context อัจฉริยะและขีดจำกัดเอาต์พุตของเครื่องมือทำให้บิลคลาวด์คาดเดาได้ — ไม่มีค่าใช้จ่ายเซอร์ไพรส์ในเซสชันยาว ๆ</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">⚡</div>
      <h3>Context อัจฉริยะ</h3>
      <p>การจัดการ context อัตโนมัติป้องกันไม่ให้โทเค็นล้น ตัดประวัติการสนทนาอย่างชาญฉลาดและจำกัดเอาต์พุตของเครื่องมือ เพื่อให้เซสชันราบรื่นไม่สะดุด</p>
    </div>
    <div class="feature-card">
      <div class="feature-icon">👁️</div>
      <h3>โมเดลด้านการมองเห็นโดยเฉพาะ</h3>
      <p>จับคู่โมเดลเฉพาะข้อความที่รวดเร็วสำหรับวางแผน กับโมเดลที่รองรับการมองเห็นสำหรับอ่านภาพหน้าจอ ถูกและเร็วกว่าการใช้โมเดลมัลติโมดัลขนาดใหญ่ตัวเดียวทำทุกอย่าง</p>
    </div>

    <!-- Extra cards behind "show more" -->
    <div class="feature-card" data-extra>
      <div class="feature-icon">🍪</div>
      <h3>รู้จัก Cookie และ Paywall</h3>
      <p>ปิดแบนเนอร์ยินยอม (OneTrust, Cookiebot, Didomi, Quantcast) ก่อนวิเคราะห์หน้า ตรวจพบ paywall และบอกตามตรงแทนที่จะแต่งเนื้อหาบทความหรือพยายามหลีกเลี่ยง</p>
    </div>
    <div class="feature-card" data-extra>
      <div class="feature-icon">👤</div>
      <h3>กรอกโปรไฟล์อัตโนมัติ</h3>
      <p>ประวัติย่อแบบเลือกได้ — ชื่อ อีเมลที่ทำงาน บริษัท และรหัสผ่านใช้ครั้งเดียว — ช่วยให้เอเจนต์ผ่านฟอร์มสมัครที่มีความเสี่ยงต่ำได้โดยไม่ต้องถามทุกครั้ง ปิดเป็นค่าเริ่มต้น และทุกอย่างเก็บอยู่ในเครื่อง</p>
      <p class="feature-note">ปิดโดยค่าเริ่มต้น จัดเก็บไว้ในเบราว์เซอร์ของคุณเท่านั้น ไม่เคยส่งไปยัง WebBrain</p>
    </div>
    <div class="feature-card" data-extra>
      <div class="feature-icon">🧩</div>
      <h3>Optional CAPTCHA Solver</h3>
      <p>Enable optional CAPTCHA providers with your own API keys and weighted fallback. hCaptcha uses NopeCHA or NoneCap; other coverage varies by provider. <a href="/docs/captcha/" style="color:var(--accent);text-decoration:none;">See provider coverage and setup</a>.</p>
      <p class="feature-note">ปิดโดยค่าเริ่มต้น ใช้คีย์ของคุณเอง — จะไม่ติดต่อบริการ CAPTCHA ใดๆ เว้นแต่คุณเปิดใช้งาน</p>
    </div>
  </div>
  <div class="features-more">
    <button
      class="features-more-btn"
      id="features-more-btn"
      type="button"
      aria-expanded="false"
      aria-controls="features-grid"
      data-label-more="แสดงคุณสมบัติเพิ่มเติม"
      data-label-less="แสดงน้อยลง"
    >
      <span id="features-more-label">แสดงคุณสมบัติเพิ่มเติม</span>
      <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
        <polyline points="6 9 12 15 18 9"/>
      </svg>
    </button>
  </div>
</section>

<!-- 6. COMPARE: VS CLAUDE IN CHROME (Table only) -->
<section class="section" id="compare">
  <header class="section-intro">
    <div class="section-intro-head">
      <div class="section-label">ทำไมต้อง WebBrain?</div>
      <h2 class="section-title">WebBrain เปรียบเทียบอย่างไร?</h2>
    </div>
    <p class="section-subtitle">WebBrain ยืนอยู่บนจุดตัดของปลั๊กอิน AI ในเบราว์เซอร์และเฟรมเวิร์กเอเจนต์เต็มรูปแบบ นี่คือการเปรียบเทียบ</p>
  </header>

  <!-- vs Browser Plugins -->
  <h3 class="compare-heading">เทียบกับปลั๊กอิน AI ในเบราว์เซอร์</h3>
  <div class="compare-table-wrap">
    <table class="compare-table">
      <thead>
        <tr>
          <th>คุณสมบัติ</th>
          <th class="highlight">WebBrain</th>
          <th>Claude ใน Chrome</th>
        </tr>
      </thead>
      <tbody>
        <tr><td>โอเพนซอร์ส</td><td class="highlight">สัญญาอนุญาต GPL-3.0-or-later</td><td>เป็นกรรมสิทธิ์</td></tr>
        <tr><td>ราคา</td><td class="highlight">ฟรีตลอดไป</td><td>ต้องใช้ Claude Pro ($20/เดือน)</td></tr>
        <tr><td>รองรับ LLM ภายในเครื่อง</td><td class="highlight">llama.cpp, Ollama</td><td>ไม่ — เฉพาะ Claude</td></tr>
        <tr><td>หลายผู้ให้บริการ</td><td class="highlight">All OpenAI-compatible endpoints</td><td>เฉพาะ Claude</td></tr>
        <tr><td>UI แถบด้านข้าง</td><td class="highlight">ใช่</td><td>ใช่</td></tr>
        <tr><td>ออฟไลน์เต็มรูปแบบ</td><td class="highlight">ใช่ (พร้อม LLM ภายในเครื่อง)</td><td>ไม่ — ต้องใช้คลาวด์</td></tr>
        <tr><td>โฮสต์เองได้</td><td class="highlight">ใช่</td><td>ไม่</td></tr>
      </tbody>
    </table>
  </div>

  <p class="compare-note">
    WebBrain คือส่วนขยายเบราว์เซอร์สำหรับผู้ใช้ปลายทางที่ต้องการผู้ช่วย AI ขณะท่องเว็บ เฟรมเวิร์กเอเจนต์อย่าง OpenClaw คือเครื่องมือสำหรับนักพัฒนาในการสร้างไปป์ไลน์เบราว์เซอร์อัตโนมัติ เครื่องมือต่างกันสำหรับงานต่างกัน — และคุณสามารถใช้ทั้งสองอย่างได้
  </p>
</section>

<!-- 7. INLINE FAQ -->
<section class="section faq-inline-section section-aside" id="faq">
  <header class="section-intro">
    <div class="section-intro-head">
      <div class="section-label">คำถามที่พบบ่อย</div>
      <h2 class="section-title">คำถามที่พบบ่อย</h2>
    </div>
    <p class="section-subtitle">คำตอบสั้น ๆ เกี่ยวกับการตั้งค่า โมเดล การเรียกเก็บเงิน ความปลอดภัย และวิธีที่ WebBrain ทำงานในเบราว์เซอร์ของคุณ</p>
  </header>

  <div class="faq-inline-grid">
    <details class="faq-inline-item">
      <summary class="faq-inline-summary">
        <span>WebBrain เป็นทางเลือกฟรีของปลั๊กอินเบราว์เซอร์ของ Claude หรือเปล่า?</span>
        <svg class="faq-inline-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
      </summary>
      <div class="faq-inline-answer">
        ใช่ WebBrain ให้ความสามารถของ AI browser agent ที่คล้ายกัน — อ่านหน้า สกัดข้อมูล คลิกปุ่ม กรอกฟอร์ม และทำให้เวิร์กโฟลว์หลายขั้นเป็นอัตโนมัติ ต่างจากปลั๊กอินเบราว์เซอร์ของ Claude ที่เป็นกรรมสิทธิ์ ซึ่งต้องใช้สมาชิก Claude Pro และทำงานเฉพาะกับโมเดลของ Anthropic เท่านั้น WebBrain ฟรีโดยสิ้นเชิง โอเพนซอร์ส (สัญญาอนุญาต GPL-3.0-or-later) และรองรับผู้ให้บริการ LLM หลายราย รวมถึงโมเดลภายในเครื่องที่ทำงานทั้งหมดบนเครื่องของคุณ
      </div>
    </details>

    <details class="faq-inline-item">
      <summary class="faq-inline-summary">
        <span>WebBrain ใช้งานปลอดภัยไหม? มันแก้ไขหน้าเว็บได้หรือเปล่า?</span>
        <svg class="faq-inline-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
      </summary>
      <div class="faq-inline-answer">
        WebBrain มีสามโหมด โหมดถาม (ค่าเริ่มต้น) เป็นแบบอ่านอย่างเดียวและไม่สามารถแก้ไขหน้าได้ โหมดทำอนุญาตการทำงานของเบราว์เซอร์ เช่น คลิก พิมพ์ และนำทาง ส่วนโหมด Dev เพิ่มเครื่องมือดีบักหน้าเว็บ การกระทำที่มีผลตามมาต้องได้รับอนุมัติโดยค่าเริ่มต้น หากปิดด่านสิทธิ์นี้ WebBrain จะแสดงแบนเนอร์คำเตือนที่มองเห็นได้ คุณสามารถหยุดเอเจนต์ได้ทุกเมื่อด้วยปุ่มหยุด ซอร์สโค้ดของส่วนขยายเปิดเผยเต็มที่บน GitHub เพื่อการตรวจสอบ
      </div>
    </details>

    <details class="faq-inline-item">
      <summary class="faq-inline-summary">
        <span>ใช้ WebBrain แบบออฟไลน์ทั้งหมดได้ไหม?</span>
        <svg class="faq-inline-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
      </summary>
      <div class="faq-inline-answer">
        ได้ ผู้ให้บริการเริ่มต้นของ WebBrain คือ llama.cpp ซึ่งรันโมเดล AI ในเครื่องคุณ ไม่ต้องใช้คีย์ API, AI ไม่ต้องใช้อินเทอร์เน็ต และข้อมูลก็ไม่ออกจากเครื่องคุณเลย เพียงดาวน์โหลดโมเดล GGUF เริ่ม llama-server แล้วคุณจะมี AI browser agent ที่เป็นส่วนตัวเต็มรูปแบบ คุณยังสามารถใช้ Ollama ผ่าน endpoint ที่เข้ากันได้กับ OpenAI ได้ด้วย
      </div>
    </details>

    <details class="faq-inline-item">
      <summary class="faq-inline-summary">
        <span>WebBrain รองรับโมเดล AI ใดบ้าง?</span>
        <svg class="faq-inline-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
      </summary>
      <div class="faq-inline-answer">
        WebBrain รองรับผู้ให้บริการ 4 ประเภท: llama.cpp (โมเดล GGUF ภายในเครื่องใด ๆ), OpenAI (GPT-4o, GPT-4 ฯลฯ), Claude (Claude Opus, Sonnet, Haiku ผ่าน API ดั้งเดิม) และ OpenRouter (เข้าถึงโมเดลกว่า 100 โมเดลจากผู้ให้บริการต่าง ๆ) endpoint API ใด ๆ ที่เข้ากันได้กับ OpenAI ก็ใช้ได้ ดังนั้นคุณยังใช้บริการอย่าง Together AI, Groq, Mistral หรือเซิร์ฟเวอร์ภายในเครื่องใด ๆ ที่มีอินเทอร์เฟซเข้ากันได้กับ OpenAI ก็ได้
      </div>
    </details>

    <details class="faq-inline-item">
      <summary class="faq-inline-summary">
        <span>WebBrain ทำอย่างไรกับแบนเนอร์ Cookie และ paywall?</span>
        <svg class="faq-inline-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
      </summary>
      <div class="faq-inline-answer">
        <p><strong>แบนเนอร์ Cookie:</strong> WebBrain รู้จักแบนเนอร์ยินยอมจากเฟรมเวิร์กที่พบทั่วไป (OneTrust, Cookiebot, Didomi, Quantcast, Google Funding Choices, TrustArc) และปิดมันก่อนวิเคราะห์หน้า ลำดับความสำคัญคือ "ปฏิเสธทั้งหมด" / "ปฏิเสธที่ไม่จำเป็น" / "เฉพาะจำเป็น" เมื่อมองเห็นชัดเจน หากไม่เห็นจะกลับไปใช้ "ยอมรับทั้งหมด" แทนที่จะหลงทางในเขาวงกต "จัดการการตั้งค่า"</p><p><strong>Paywall:</strong> WebBrain รายงาน paywall อย่างตรงไปตรงมาและบอกคุณว่ามองเห็นอะไรจริง ๆ (พาดหัว สาระสั้น ๆ ย่อหน้าแรก) มัน <strong>ไม่</strong> พยายามผ่าน paywall — ไม่มี archive.today, 12ft.io, การล้าง Cookie, การปิด JS หรือเล่ห์ของโหมดผู้อ่าน หากต้องการบทความเต็ม ให้เข้าสู่ระบบด้วยสมาชิก หรือขอให้ WebBrain หาแหล่งฟรีของเรื่องเดียวกัน</p>
      </div>
    </details>

    <details class="faq-inline-item">
      <summary class="faq-inline-summary">
        <span>WebBrain ใช้งานบน Firefox ได้ไหม?</span>
        <svg class="faq-inline-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
      </summary>
      <div class="faq-inline-answer">
        ได้ WebBrain มาพร้อมทั้งเวอร์ชัน Chrome (Manifest V3 ใช้ sidePanel API) และเวอร์ชัน Firefox (Manifest V2 ใช้ sidebar_action) ทั้งสองเวอร์ชันมีคุณสมบัติเหมือนกัน เวอร์ชัน Firefox สามารถโหลดเป็นแอดออนชั่วคราวเพื่อใช้พัฒนา หรือเผยแพร่ไปยัง addons.mozilla.org เพื่อการติดตั้งถาวรได้
      </div>
    </details>
  </div>

  <div class="faq-inline-cta-wrap">
    <a class="faq-bridge" id="faq" href="/docs/th/faq/">
      <span class="faq-bridge-mark" aria-hidden="true">?</span>
      <strong>คำถามที่พบบ่อย</strong>
      <span class="faq-bridge-cta">คำถามที่พบบ่อย (30+ questions) <span aria-hidden="true">→</span></span>
    </a>
  </div>
</section>

<!-- 8. DOWNLOAD -->
<section class="section download-section section-aside" id="download">
  <header class="section-intro">
    <div class="section-intro-head">
      <div class="section-label">เริ่มต้นใช้งาน</div>
      <h2 class="section-title">ติดตั้ง WebBrain</h2>
    </div>
    <p class="section-subtitle">ใช้ได้กับ Chrome, Edge และ Firefox ฟรี โอเพนซอร์ส ไม่ต้องมีบัญชี</p>
  </header>

  <div class="download-cards" data-download-cards>
    <div class="download-row download-row-current" data-download-current>
      <div class="download-card download-card-chrome" data-browser-card="chrome">
        <div class="browser-icon"><img src="/assets/browser-chrome.svg" alt="" aria-hidden="true"></div>
        <h3>Chrome และ Chromium</h3>
        <p>Manifest V3 · Chrome 116+ · ใช้งานได้กับ Brave, Opera, Vivaldi และเบราว์เซอร์ที่เข้ากันได้กับ Chromium อื่น ๆ ด้วย</p>
        <div class="download-card-actions">
          <a href="https://chromewebstore.google.com/detail/webbrain/ljhijonmfahplgbbacgcfnaihbjljhhb" target="_blank" rel="noopener noreferrer" class="btn btn-primary">
            <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16" height="16"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
            ดาวน์โหลดจาก Chrome Web Store
          </a>
          <a href="https://github.com/webbrain-one/webbrain/tree/main/src/chrome" target="_blank" rel="noopener noreferrer" class="btn btn-secondary">
            ดูซอร์สโค้ดของเวอร์ชัน Chrome
          </a>
        </div>
      </div>
    </div>
    <div class="download-row download-row-secondary" data-download-secondary>
      <div class="download-card download-card-firefox" data-browser-card="firefox">
        <div class="browser-icon"><img src="/assets/browser-firefox.svg" alt="" aria-hidden="true"></div>
        <h3>Firefox</h3>
        <p>Manifest V2 · Firefox 109+</p>
        <div class="download-card-actions">
          <a href="https://addons.mozilla.org/en-US/firefox/addon/webbrain/" target="_blank" rel="noopener noreferrer" class="btn btn-primary" style="background: #ff9800;">
            <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16" height="16"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
            ดาวน์โหลดจาก Firefox Add‑ons
          </a>
          <a href="https://github.com/webbrain-one/webbrain/tree/main/src/firefox" target="_blank" rel="noopener noreferrer" class="btn btn-secondary">
            ดูซอร์สโค้ดของเวอร์ชัน Firefox
          </a>
        </div>
      </div>
      <div class="download-card download-card-edge is-disabled" data-browser-card="edge" aria-disabled="true">
        <div class="edge-unavailable-tip" data-edge-tip>Microsoft Edge does not work with Mac/Linux</div>
        <div class="browser-icon"><img src="/assets/browser-edge.svg" alt="" aria-hidden="true"></div>
        <h3>Microsoft Edge</h3>
        <p>Manifest V3 · Windows 10/11 · ต้องใช้ Microsoft Edge บน Windows</p>
        <div class="download-card-actions">
          <button type="button" class="btn btn-primary" disabled data-edge-windows-link data-href="https://microsoftedge.microsoft.com/addons/detail/dfbioajafcijomhljabppcelecgdgfeo">
            <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16" height="16"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
            ดาวน์โหลดจาก Edge Add-ons
          </button>
          <button type="button" class="btn btn-secondary" disabled data-edge-windows-link data-href="https://github.com/webbrain-one/webbrain/tree/main/src/chrome">
            ดูซอร์สโค้ดของเวอร์ชัน Chromium
          </button>
        </div>
      </div>
    </div>
  </div>
  <p class="download-companion"><a href="https://www.webbrain.one/companion/">WebBrain Companion <span aria-hidden="true">→</span></a></p>
</section>

<!-- 9. FOR DEVELOPERS (MCP & Frameworks) -->
<section class="section developer-section" id="mcp">
  <header class="section-intro">
    <div class="section-intro-head">
      <div class="section-label">ใหม่ · เซิร์ฟเวอร์ MCP</div>
      <h2 class="section-title">เอเจนต์เขียนโค้ดของคุณ ภายในเบราว์เซอร์ที่คุณใช้อยู่แล้ว</h2>
    </div>
    <p class="section-subtitle">เชื่อมต่อ Claude Code, Codex, Cursor, OpenCode หรือไคลเอนต์ MCP แบบ stdio ใด ๆ กับแท็บ Chromium ที่คุณลงชื่อเข้าใช้ไว้ WebBrain ยังคงด่านสิทธิ์ระดับงานไว้ในเบราว์เซอร์ และตอนนี้ส่งคืน JSON แบบมีโครงสร้างได้ด้วย</p>
  </header>

  <!-- How people actually use it: paste one prompt into the coding agent
       they already run, then ask for browser work in plain words. -->
  <div class="mcp-setup">
    <ol class="mcp-steps">
      <li class="mcp-step">
        <h3><span class="mcp-step-n" aria-hidden="true">1</span>ให้เอเจนต์ของคุณตั้งค่าให้</h3>
        <p>วางข้อความนี้ใน Claude Code, Codex, Cursor หรือไคลเอนต์ MCP ในเครื่องตัวใดก็ได้ เอเจนต์จะอ่านคู่มือและเพิ่ม WebBrain ให้คุณ</p>
        <div class="mcp-prompt">
          <code id="mcp-prompt-text">อ่าน https://webbrain.one/docs/mcp/ แล้วตั้งค่าเซิร์ฟเวอร์ WebBrain MCP ให้ฉัน</code>
          <button class="mcp-copy-btn" type="button" id="mcp-copy" data-copied="คัดลอกแล้ว" aria-describedby="mcp-prompt-text">
            <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="12" height="12" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg>
            <span>คัดลอก</span>
          </button>
        </div>
      </li>
      <li class="mcp-step">
        <h3><span class="mcp-step-n" aria-hidden="true">2</span>จากนั้นสั่งงานในเบราว์เซอร์</h3>
        <p>เอเจนต์จะส่งงานให้ WebBrain ในเบราว์เซอร์ที่คุณลงชื่อเข้าใช้อยู่แล้ว WebBrain ยังคงถามก่อนทำสิ่งที่สำคัญ</p>
        <p class="mcp-example">ใช้ WebBrain สรุปแดชบอร์ด CI ที่เปิดอยู่ในเบราว์เซอร์ของฉัน</p>
      </li>
    </ol>
    <div class="mcp-foot">
      <a href="/docs/mcp/" class="btn btn-primary">เปิดคู่มือ MCP ฉบับสมบูรณ์</a>
      <a href="https://github.com/webbrain-one/webbrain/tree/main/mcp-server" target="_blank" rel="noopener noreferrer" class="btn btn-secondary">GitHub</a>
      <p class="mcp-req">ต้องใช้ Chrome, Edge, Brave, Opera หรือ Vivaldi ที่ติดตั้ง WebBrain และ Node.js 20 ขึ้นไปในเครื่องเดียวกัน</p>
    </div>
  </div>

  <div class="developer-frameworks-wrap">
    <h3 class="developer-frameworks-heading">เทียบกับเฟรมเวิร์กเอเจนต์ AI <span style="font-weight:400; font-size:13px;">(คนละหมวด)</span></h3>
    <div class="compare-table-wrap">
      <table class="compare-table">
        <thead>
          <tr>
            <th>ด้าน</th>
            <th class="highlight">WebBrain</th>
            <th>OpenClaw / Browser-Use / ฯลฯ</th>
          </tr>
        </thead>
        <tbody>
          <tr><td>มันคืออะไร?</td><td class="highlight">ส่วนขยายเบราว์เซอร์ (เครื่องมือผู้ใช้ปลายทาง)</td><td>เฟรมเวิร์กเอเจนต์ / SDK (เครื่องมือสำหรับนักพัฒนา)</td></tr>
          <tr><td>ผู้ใช้เป้าหมาย</td><td class="highlight">ทุกคน — ไม่ต้องเขียนโค้ด</td><td>นักพัฒนาที่สร้างระบบอัตโนมัติ</td></tr>
          <tr><td>การติดตั้ง</td><td class="highlight">ติดตั้งในเบราว์เซอร์ด้วยคลิกเดียว</td><td>ต้องตั้งค่า Python/Docker</td></tr>
          <tr><td>UI</td><td class="highlight">แชตในแถบด้านข้างในตัว</td><td>ไม่มี UI — โค้ดหรือ API เท่านั้น</td></tr>
          <tr><td>ควบคุมเบราว์เซอร์</td><td>Content script (เบา)</td><td>CDP / Playwright (ควบคุมเต็มที่)</td></tr>
          <tr><td>เวิร์กโฟลว์หลายแท็บ</td><td>การสนทนาแยกตามแท็บ</td><td>ออเคสเตรชันหลายแท็บที่โปรแกรมได้</td></tr>
          <tr><td>โหมด headless</td><td>ไม่ — รันในเบราว์เซอร์ของคุณ</td><td>ใช่ — ระบบอัตโนมัติแบบ headless</td></tr>
          <tr><td>ความสามารถในการขยาย</td><td>เพิ่มผู้ให้บริการ LLM ที่กำหนดเองได้</td><td>Python SDK เต็มรูปแบบ เครื่องมือกำหนดเอง</td></tr>
          <tr><td>เหมาะที่สุดสำหรับ</td><td class="highlight">ผู้ช่วย AI สำหรับท่องเว็บประจำวัน</td><td>ไปป์ไลน์ scraping / ทดสอบอัตโนมัติ</td></tr>
        </tbody>
      </table>
    </div>
  </div>
</section>

<!-- 10. APOCALYPSE MODE (Compact Banner) -->
<section class="section apocalypse-banner-section" id="apocalypse" aria-labelledby="apocalypse-banner-title">
  <div class="apocalypse-compact-card">
    <div class="apocalypse-compact-info">
      <div class="apocalypse-compact-kicker">
        <span class="apocalypse-kicker-mark" aria-hidden="true">☢</span>
        <span>โหมดอาคัปปอลิส</span>
      </div>
      <h3 id="apocalypse-banner-title" class="apocalypse-compact-title">WebBrain พร้อม แม้ไม่มีอินเทอร์เน็ต</h3>
      <p class="apocalypse-compact-lead"><strong>ความรู้แบบออฟไลน์ ภายใต้การควบคุมของคุณ</strong> ตั้งค่าองค์ประกอบสำคัญสี่อย่างสำหรับแชทส่วนตัวในเครื่อง ได้แก่ โมเดลข้อความ โมเดลการมองเห็น วิกิพีเดียออฟไลน์หนึ่งฉบับ และกล่องฉุกเฉิน</p>
    </div>
    <div class="apocalypse-compact-actions">
      <button
        class="btn btn-secondary apocalypse-video-btn"
        id="apocalypse-video-open"
        type="button"
        aria-haspopup="dialog"
        aria-controls="apocalypse-video-dialog"
      >
        <svg viewBox="0 0 16 16" fill="currentColor" width="14" height="14" aria-hidden="true"><path d="M4.5 2.8a1 1 0 0 1 1.52-.85l8 5.2a1 1 0 0 1 0 1.7l-8 5.2A1 1 0 0 1 4.5 13.2V2.8z"/></svg>
        ดูวิดีโอของเรา
      </button>
      <a class="apocalypse-docs-link" href="/docs/apocalypse-mode/">
        เอกสาร <span aria-hidden="true">→</span>
      </a>
    </div>
  </div>
</section>

<!-- VIDEO MODALS -->
<dialog
  class="security-video-dialog apocalypse-video-dialog"
  id="apocalypse-video-dialog"
  aria-labelledby="apocalypse-video-dialog-title"
  aria-describedby="apocalypse-video-dialog-description"
>
  <div class="security-video-dialog-shell">
    <div class="security-video-dialog-copy">
      <div class="security-video-dialog-kicker">โหมดอาคัปปอลิส</div>
      <h2 class="security-video-dialog-title" id="apocalypse-video-dialog-title">WebBrain พร้อม แม้ไม่มีอินเทอร์เน็ต</h2>
      <p class="security-video-dialog-description" id="apocalypse-video-dialog-description">ตั้งค่าองค์ประกอบสำคัญสี่อย่างสำหรับแชทส่วนตัวในเครื่อง ได้แก่ โมเดลข้อความ โมเดลการมองเห็น วิกิพีเดียออฟไลน์หนึ่งฉบับ และกล่องฉุกเฉิน</p>
      <button
        class="security-video-dialog-close"
        id="apocalypse-video-close"
        type="button"
        aria-label="ปิดวิดีโอโหมดอาคัปปอลิส"
      >
        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg>
      </button>
    </div>
    <div class="security-video-dialog-stage">
      <div class="security-video-dialog-frame">
        <video id="apocalypse-video" data-desktop-src="/assets/apocalypse-mode.mp4" data-mobile-src="/assets/apocalypse-mode.mp4" controls preload="none" playsinline></video>
      </div>
    </div>
  </div>
</dialog>

<!-- SPREAD THE WORD / OPEN SOURCE -->
<section class="section">
  <div class="oss-banner">
    <h3>ส่งต่อ แชร์ความรัก</h3>
    <p>WebBrain อยู่ภายใต้สัญญาอนุญาต GPL-3.0-or-later และทำงานทั้งหมดในเบราว์เซอร์ของคุณ หากมีประโยชน์ ให้ดาวเราหรือแชร์ — นั่นคือวิธีที่โปรเจกต์โอเพนซอร์สอิสระจะถูกค้นพบ</p>
    <div class="share-row">
      <a href="https://github.com/webbrain-one/webbrain" target="_blank" rel="noopener" class="btn btn-primary share-major">
        <svg viewBox="0 0 24 24" fill="currentColor" width="18" height="18" aria-hidden="true"><path d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.57.1.78-.25.78-.55 0-.27-.01-1-.02-1.97-3.2.7-3.87-1.54-3.87-1.54-.52-1.32-1.27-1.67-1.27-1.67-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.75 2.69 1.25 3.34.95.1-.74.4-1.25.73-1.54-2.55-.29-5.24-1.28-5.24-5.69 0-1.26.45-2.29 1.18-3.1-.12-.29-.51-1.46.11-3.05 0 0 .97-.31 3.18 1.18.92-.26 1.91-.39 2.9-.39.99 0 1.98.13 2.9.39 2.21-1.49 3.18-1.18 3.18-1.18.62 1.59.23 2.76.11 3.05.74.81 1.18 1.84 1.18 3.1 0 4.42-2.69 5.4-5.25 5.68.41.36.78 1.06.78 2.13 0 1.54-.01 2.79-.01 3.17 0 .31.21.66.79.55C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5z"/></svg>
        ⭐ ติดดาวบน GitHub
      </a>
      <a href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwebbrain.one%2Fth%2F" target="_blank" rel="noopener" class="btn btn-secondary share-major">
        <svg viewBox="0 0 24 24" fill="currentColor" width="18" height="18" aria-hidden="true"><path d="M20.45 20.45h-3.555v-5.569c0-1.328-.024-3.038-1.852-3.038-1.853 0-2.136 1.447-2.136 2.94v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.268 2.37 4.268 5.455v6.284zM5.34 7.433a2.062 2.062 0 11.001-4.124 2.062 2.062 0 010 4.124zM7.119 20.45H3.555V9h3.564v11.45zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>
        แชร์บน LinkedIn
      </a>
      <a href="https://x.com/intent/post?text=WebBrain%20%E2%80%94%20AI%20browser%20agent%20%E0%B8%9F%E0%B8%A3%E0%B8%B5%20%E0%B9%82%E0%B8%AD%E0%B9%80%E0%B8%9E%E0%B8%99%E0%B8%8B%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%AA%20%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A%20Chrome%20%E0%B9%81%E0%B8%A5%E0%B8%B0%20Firefox%20UI%20%E0%B8%AB%E0%B8%A5%E0%B8%B2%E0%B8%A2%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%20%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%AB%E0%B8%A2%E0%B8%B1%E0%B8%94%E0%B9%82%E0%B8%97%E0%B9%80%E0%B8%84%E0%B9%87%E0%B8%99%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B9%80%E0%B8%A3%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B8%95%E0%B9%89%E0%B8%99%20%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%AA%E0%B8%B1%E0%B8%8D%E0%B8%8D%E0%B8%B2%E0%B8%AD%E0%B8%99%E0%B8%B8%E0%B8%8D%E0%B8%B2%E0%B8%95%20GPL-3.0-or-later&amp;url=https%3A%2F%2Fwebbrain.one%2Fth%2F" target="_blank" rel="noopener" class="btn btn-secondary share-icon" aria-label="แชร์บน X" title="แชร์บน X">
        <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231 5.45-6.231zm-1.161 17.52h1.833L7.084 4.126H5.117l11.966 15.644z"/></svg>
      </a>
      <a href="https://mastoturk.org/share?text=WebBrain%20%E2%80%94%20AI%20browser%20agent%20%E0%B8%9F%E0%B8%A3%E0%B8%B5%20%E0%B9%82%E0%B8%AD%E0%B9%80%E0%B8%9E%E0%B8%99%E0%B8%8B%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%AA%20%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A%20Chrome%20%E0%B9%81%E0%B8%A5%E0%B8%B0%20Firefox%20UI%20%E0%B8%AB%E0%B8%A5%E0%B8%B2%E0%B8%A2%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%20%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%AB%E0%B8%A2%E0%B8%B1%E0%B8%94%E0%B9%82%E0%B8%97%E0%B9%80%E0%B8%84%E0%B9%87%E0%B8%99%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B9%80%E0%B8%A3%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B8%95%E0%B9%89%E0%B8%99%20%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%AA%E0%B8%B1%E0%B8%8D%E0%B8%8D%E0%B8%B2%E0%B8%AD%E0%B8%99%E0%B8%B8%E0%B8%8D%E0%B8%B2%E0%B8%95%20GPL-3.0-or-later%20https%3A%2F%2Fwebbrain.one%2Fth%2F" target="_blank" rel="noopener" class="btn btn-secondary share-icon" aria-label="แชร์บน Mastodon" title="แชร์บน Mastodon">
        <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M21.327 8.566c0-5.035-3.298-6.511-3.298-6.511C16.366 1.292 13.508.971 12.04.947h-.036c-1.468.024-4.326.345-5.989 1.108 0 0-3.298 1.476-3.298 6.511 0 1.153-.022 2.535.014 4.001.12 4.935.907 9.799 5.478 11.007 2.106.557 3.916.674 5.374.594 2.645-.147 4.128-.943 4.128-.943l-.087-1.918s-1.888.595-4.012.523c-2.104-.072-4.326-.227-4.668-2.809a5.289 5.289 0 0 1-.047-.724s2.066.505 4.686.625c1.603.073 3.107-.094 4.632-.276 2.925-.349 5.474-2.149 5.794-3.793.503-2.591.462-6.287.462-6.287ZM8.545 15.023H6.09V8.996c0-2.534 1.627-3.829 3.424-3.829 1.963 0 2.909 1.268 3.35 2.257.44-.989 1.386-2.257 3.349-2.257 1.797 0 3.424 1.295 3.424 3.829v6.027h-2.454V9.174c0-1.233-.519-1.859-1.557-1.859-1.148 0-1.724.742-1.724 2.207v3.203h-2.454V9.522c0-1.465-.576-2.207-1.724-2.207-1.038 0-1.557.626-1.557 1.859v5.849Z"/></svg>
      </a>
      <a href="https://bsky.app/intent/compose?text=WebBrain%20%E2%80%94%20AI%20browser%20agent%20%E0%B8%9F%E0%B8%A3%E0%B8%B5%20%E0%B9%82%E0%B8%AD%E0%B9%80%E0%B8%9E%E0%B8%99%E0%B8%8B%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%AA%20%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A%20Chrome%20%E0%B9%81%E0%B8%A5%E0%B8%B0%20Firefox%20UI%20%E0%B8%AB%E0%B8%A5%E0%B8%B2%E0%B8%A2%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2%20%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%AB%E0%B8%A2%E0%B8%B1%E0%B8%94%E0%B9%82%E0%B8%97%E0%B9%80%E0%B8%84%E0%B9%87%E0%B8%99%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B9%80%E0%B8%A3%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B8%95%E0%B9%89%E0%B8%99%20%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%AA%E0%B8%B1%E0%B8%8D%E0%B8%8D%E0%B8%B2%E0%B8%AD%E0%B8%99%E0%B8%B8%E0%B8%8D%E0%B8%B2%E0%B8%95%20GPL-3.0-or-later%20https%3A%2F%2Fwebbrain.one%2Fth%2F" target="_blank" rel="noopener" class="btn btn-secondary share-icon" aria-label="แชร์บน Bluesky" title="แชร์บน Bluesky">
        <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 10.8c-1.1-2.1-4-6-6.8-8C2.6.9 1.6 1.3.9 1.6.1 1.9 0 3.1 0 3.8c0 .7.4 5.7.6 6.5.8 2.7 3.7 3.7 5.6 3.4-3.5.6-6.5 2-2.5 6.5 4.3 4.5 5.9-1 6.3-2.8.1-.5.2-.8.3-.8.1 0 .2.3.3.8.4 1.8 2 7.3 6.3 2.8 4-4.5 1-5.9-2.5-6.5 1.9.3 4.8-.7 5.6-3.4.2-.8.6-5.8.6-6.5 0-.7-.1-1.9-.9-2.2-.7-.3-1.7-.6-4.3 1.2-2.8 2-5.7 5.9-6.8 8Z"/></svg>
      </a>
    </div>
  </div>
</section>

</main>

<!-- Site footer: start -->
<footer class="wb-footer">
  <div class="wb-footer-inner">
    <div class="wb-footer-brand">
      <p class="wb-footer-tagline">พันธกิจของเราคือทำให้เว็บฉลาดขึ้น</p>
      <p class="wb-footer-copy">© 2026 WebBrain สร้างโดย <a href="https://emresokullu.com" target="_blank">Emre Sokullu</a> และ<a href="https://github.com/webbrain-one/webbrain/graphs/contributors" target="_blank">ผู้ร่วมสนับสนุน</a></p>
    </div>
    <div class="wb-footer-row">
      <div class="wb-footer-links">
        <a href="/th/">ส่วนขยายเบราว์เซอร์</a>
        <a href="/companion/th/">Companion สำหรับเดสก์ท็อป</a>
        <a href="/research/">งานวิจัย</a>
        <a href="/docs/">เอกสาร</a>
        <a href="/docs/th/faq/">คำถามที่พบบ่อย</a>
        <a href="/blog/">บล็อก</a>
        <a href="/privacy">นโยบายความเป็นส่วนตัว</a>
        <a href="https://github.com/webbrain-one/webbrain/issues" target="_blank" rel="noopener">รายงานข้อบกพร่อง</a>
        <a href="https://github.com/webbrain-one/webbrain/blob/main/LICENSE" target="_blank" rel="noopener">สัญญาอนุญาต GPL-3.0</a>
        <a href="https://pressreleases.online/org/webbrain.one" target="_blank" rel="noopener">สื่อมวลชน</a>
        <a href="https://api.webbrain.one/account" target="_blank" rel="noopener">สมัครสมาชิก Compass</a>
      </div>
      <div class="wb-footer-social">
        <a href="https://mastoturk.org/@webbrain" target="_blank" rel="me noopener" aria-label="WebBrain บน Mastodon" title="WebBrain บน Mastodon" class="wb-footer-icon"><svg viewBox="0 0 24 24" fill="currentColor" width="15" height="15" aria-hidden="true"><path d="M21.327 8.566c0-5.035-3.298-6.511-3.298-6.511C16.366 1.292 13.508.971 12.04.947h-.036c-1.468.024-4.326.345-5.989 1.108 0 0-3.298 1.476-3.298 6.511 0 1.153-.022 2.535.014 4.001.12 4.935.907 9.799 5.478 11.007 2.106.557 3.916.674 5.374.594 2.645-.147 4.128-.943 4.128-.943l-.087-1.918s-1.888.595-4.012.523c-2.104-.072-4.326-.227-4.668-2.809a5.289 5.289 0 0 1-.047-.724s2.066.505 4.686.625c1.603.073 3.107-.094 4.632-.276 2.925-.349 5.474-2.149 5.794-3.793.503-2.591.462-6.287.462-6.287ZM8.545 15.023H6.09V8.996c0-2.534 1.627-3.829 3.424-3.829 1.963 0 2.909 1.268 3.35 2.257.44-.989 1.386-2.257 3.349-2.257 1.797 0 3.424 1.295 3.424 3.829v6.027h-2.454V9.174c0-1.233-.519-1.859-1.557-1.859-1.148 0-1.724.742-1.724 2.207v3.203h-2.454V9.522c0-1.465-.576-2.207-1.724-2.207-1.038 0-1.557.626-1.557 1.859v5.849Z"/></svg></a>
        <a href="https://bsky.app/profile/webbrain-one.bsky.social" target="_blank" rel="me noopener" aria-label="WebBrain บน Bluesky" title="WebBrain บน Bluesky" class="wb-footer-icon"><svg viewBox="0 0 24 24" fill="currentColor" width="15" height="15" aria-hidden="true"><path d="M12 10.8c-1.1-2.1-4-6-6.8-8C2.6.9 1.6 1.3.9 1.6.1 1.9 0 3.1 0 3.8c0 .7.4 5.7.6 6.5.8 2.7 3.7 3.7 5.6 3.4-3.5.6-6.5 2-2.5 6.5 4.3 4.5 5.9-1 6.3-2.8.1-.5.2-.8.3-.8.1 0 .2.3.3.8.4 1.8 2 7.3 6.3 2.8 4-4.5 1-5.9-2.5-6.5 1.9.3 4.8-.7 5.6-3.4.2-.8.6-5.8.6-6.5 0-.7-.1-1.9-.9-2.2-.7-.3-1.7-.6-4.3 1.2-2.8 2-5.7 5.9-6.8 8Z"/></svg></a>
        <a href="https://discord.gg/cgC325ssfw" target="_blank" rel="noopener" aria-label="WebBrain บน Discord" title="WebBrain บน Discord" class="wb-footer-icon"><svg viewBox="0 0 16 16" fill="currentColor" width="15" height="15" aria-hidden="true"><path d="M13.545 2.907a13.227 13.227 0 0 0-3.257-1.011c.05.069.098.137.142.207a12.471 12.471 0 0 0-3.616 0c.044-.07.093-.138.143-.207A13.207 13.207 0 0 0 3.7 2.907 13.136 13.136 0 0 0 .931 13.362a13.667 13.667 0 0 0 4.022 2.018c.33-.442.623-.907.87-1.396a8.95 8.95 0 0 1-1.37-.652c.114-.083.225-.171.33-.269a9.6 9.6 0 0 0 8.243 0c.108.09.218.18.33.269a8.923 8.923 0 0 1-1.37.652c.248.489.54.954.87 1.396a13.667 13.667 0 0 0 4.022-2.018 13.136 13.136 0 0 0-2.769-10.455zM5.106 11.275c-.788 0-1.438-.72-1.438-1.608 0-.889.625-1.608 1.438-1.608.818 0 1.451.726 1.438 1.608 0 .888-.625 1.608-1.438 1.608zm5.788 0c-.788 0-1.438-.72-1.438-1.608 0-.889.625-1.608 1.438-1.608.818 0 1.451.726 1.438 1.608 0 .888-.625 1.608-1.438 1.608z"/></svg></a>
        <a href="https://huggingface.co/webbrain-one" target="_blank" rel="me noopener" aria-label="WebBrain บน Hugging Face" title="WebBrain บน Hugging Face" class="wb-footer-icon"><svg viewBox="0 0 24 24" fill="currentColor" width="15" height="15" aria-hidden="true"><path d="M12.025 1.13c-5.77 0-10.449 4.647-10.449 10.378 0 1.112.178 2.181.503 3.185.064-.222.203-.444.416-.577a.96.96 0 0 1 .524-.15c.293 0 .584.124.84.284.278.173.48.408.71.694.226.282.458.611.684.951v-.014c.017-.324.106-.622.264-.874s.403-.487.762-.543c.3-.047.596.06.787.203s.31.313.4.467c.15.257.212.468.233.542.01.026.653 1.552 1.657 2.54.616.605 1.01 1.223 1.082 1.912.055.537-.096 1.059-.38 1.572.637.121 1.294.187 1.967.187.657 0 1.298-.063 1.921-.178-.287-.517-.44-1.041-.384-1.581.07-.69.465-1.307 1.081-1.913 1.004-.987 1.647-2.513 1.657-2.539.021-.074.083-.285.233-.542.09-.154.208-.323.4-.467a1.08 1.08 0 0 1 .787-.203c.359.056.604.29.762.543s.247.55.265.874v.015c.225-.34.457-.67.683-.952.23-.286.432-.52.71-.694.257-.16.547-.284.84-.285a.97.97 0 0 1 .524.151c.228.143.373.388.43.625l.006.04a10.3 10.3 0 0 0 .534-3.273c0-5.731-4.678-10.378-10.449-10.378M8.327 6.583a1.5 1.5 0 0 1 .713.174 1.487 1.487 0 0 1 .617 2.013c-.183.343-.762-.214-1.102-.094-.38.134-.532.914-.917.71a1.487 1.487 0 0 1 .69-2.803m7.486 0a1.487 1.487 0 0 1 .689 2.803c-.385.204-.536-.576-.916-.71-.34-.12-.92.437-1.103.094a1.487 1.487 0 0 1 .617-2.013 1.5 1.5 0 0 1 .713-.174m-10.68 1.55a.96.96 0 1 1 0 1.921.96.96 0 0 1 0-1.92m13.838 0a.96.96 0 1 1 0 1.92.96.96 0 0 1 0-1.92M8.489 11.458c.588.01 1.965 1.157 3.572 1.164 1.607-.007 2.984-1.155 3.572-1.164.196-.003.305.12.305.454 0 .886-.424 2.328-1.563 3.202-.22-.756-1.396-1.366-1.63-1.32q-.011.001-.02.006l-.044.026-.01.008-.03.024q-.018.017-.035.036l-.032.04a1 1 0 0 0-.058.09l-.014.025q-.049.088-.11.19a1 1 0 0 1-.083.116 1.2 1.2 0 0 1-.173.18q-.035.029-.075.058a1.3 1.3 0 0 1-.251-.243 1 1 0 0 1-.076-.107c-.124-.193-.177-.363-.337-.444-.034-.016-.104-.008-.2.022q-.094.03-.216.087-.06.028-.125.063l-.13.074q-.067.04-.136.086a3 3 0 0 0-.135.096 3 3 0 0 0-.26.219 2 2 0 0 0-.12.121 2 2 0 0 0-.106.128l-.002.002a2 2 0 0 0-.09.132l-.001.001a1.2 1.2 0 0 0-.105.212q-.013.036-.024.073c-1.139-.875-1.563-2.317-1.563-3.203 0-.334.109-.457.305-.454m.836 10.354c.824-1.19.766-2.082-.365-3.194-1.13-1.112-1.789-2.738-1.789-2.738s-.246-.945-.806-.858-.97 1.499.202 2.362c1.173.864-.233 1.45-.685.64-.45-.812-1.683-2.896-2.322-3.295s-1.089-.175-.938.647 2.822 2.813 2.562 3.244-1.176-.506-1.176-.506-2.866-2.567-3.49-1.898.473 1.23 2.037 2.16c1.564.932 1.686 1.178 1.464 1.53s-3.675-2.511-4-1.297c-.323 1.214 3.524 1.567 3.287 2.405-.238.839-2.71-1.587-3.216-.642-.506.946 3.49 2.056 3.522 2.064 1.29.33 4.568 1.028 5.713-.624m5.349 0c-.824-1.19-.766-2.082.365-3.194 1.13-1.112 1.789-2.738 1.789-2.738s.246-.945.806-.858.97 1.499-.202 2.362c-1.173.864.233 1.45.685.64.451-.812 1.683-2.896 2.322-3.295s1.089-.175.938.647-2.822 2.813-2.562 3.244 1.176-.506 1.176-.506 2.866-2.567 3.49-1.898-.473 1.23-2.037 2.16c-1.564.932-1.686 1.178-1.464 1.53s3.675-2.511 4-1.297c.323 1.214-3.524 1.567-3.287 2.405.238.839 2.71-1.587 3.216-.642.506.946-3.49 2.056-3.522 2.064-1.29.33-4.568 1.028-5.713-.624"/></svg></a>
      </div>
    </div>
    <div class="wb-footer-languages">
      <span>เลือกภาษา</span>
      <a href="/" hreflang="en" lang="en">English</a>
      <a href="/zh/" hreflang="zh" lang="zh">中文</a>
      <a href="/ar/" hreflang="ar" lang="ar">العربية</a>
      <a href="/bn/" hreflang="bn" lang="bn">বাংলা</a>
      <a href="/nl/" hreflang="nl" lang="nl">Nederlands</a>
      <a href="/tl/" hreflang="tl" lang="tl">Filipino</a>
      <a href="/fr/" hreflang="fr" lang="fr">Français</a>
      <a href="/de/" hreflang="de" lang="de">Deutsch</a>
      <a href="/he/" hreflang="he" lang="he">עברית</a>
      <a href="/hi/" hreflang="hi" lang="hi">हिन्दी</a>
      <a href="/id/" hreflang="id" lang="id">Bahasa Indonesia</a>
      <a href="/ja/" hreflang="ja" lang="ja">日本語</a>
      <a href="/ko/" hreflang="ko" lang="ko">한국어</a>
      <a href="/ms/" hreflang="ms" lang="ms">Bahasa Melayu</a>
      <a href="/fa/" hreflang="fa" lang="fa">فارسی</a>
      <a href="/pt/" hreflang="pt" lang="pt">Português</a>
      <a href="/ru/" hreflang="ru" lang="ru">Русский</a>
      <a href="/es/" hreflang="es" lang="es">Español</a>
      <a href="/th/" hreflang="th" lang="th">ไทย</a>
      <a href="/tr/" hreflang="tr" lang="tr">Türkçe</a>
      <a href="/uk/" hreflang="uk" lang="uk">Українська</a>
      <a href="/vi/" hreflang="vi" lang="vi">Tiếng Việt</a>
    </div>
  </div>
</footer>
<!-- Site footer: end -->

<script>
  (function () {
    const container = document.querySelector('[data-download-cards]');
    if (!container) return;

    const currentRow = container.querySelector('[data-download-current]');
    const secondaryRow = container.querySelector('[data-download-secondary]');
    const cards = Array.prototype.slice.call(container.querySelectorAll('[data-browser-card]'));
    if (!currentRow || !secondaryRow || !cards.length) return;

    const ua = navigator.userAgent || '';
    const platform = (
      navigator.userAgentData && navigator.userAgentData.platform
        ? navigator.userAgentData.platform
        : navigator.platform || ''
    ).toLowerCase();
    const isWindows = platform.indexOf('win') !== -1;

    const edgeCard = cards.find((card) => card.dataset.browserCard === 'edge');
    if (edgeCard && isWindows) {
      edgeCard.classList.remove('is-disabled');
      edgeCard.removeAttribute('aria-disabled');
      edgeCard.querySelectorAll('[data-edge-windows-link]').forEach(function (button) {
        const href = button.dataset.href;
        if (!href) return;
        const link = document.createElement('a');
        link.href = href;
        link.target = '_blank';
        link.rel = 'noopener noreferrer';
        link.className = button.className;
        link.innerHTML = button.innerHTML;
        button.replaceWith(link);
      });
    }

    let currentBrowser = 'chrome';
    if (/Edg\//.test(ua)) {
      currentBrowser = 'edge';
    } else if (/Firefox\//.test(ua)) {
      currentBrowser = 'firefox';
    }

    const currentCard = cards.find((card) => card.dataset.browserCard === currentBrowser) || cards[0];
    currentRow.appendChild(currentCard);
    cards.forEach(function (card) {
      if (card !== currentCard) secondaryRow.appendChild(card);
    });

    const heroBtn = document.getElementById('hero-install-cta');
    const heroLabel = document.getElementById('hero-install-label');
    if (heroBtn) {
      if (currentBrowser === 'firefox') {
        heroBtn.href = 'https://addons.mozilla.org/en-US/firefox/addon/webbrain/';
        if (heroLabel && document.documentElement.lang === 'en') heroLabel.textContent = 'Add to Firefox — free';
      } else if (currentBrowser === 'edge' && isWindows) {
        heroBtn.href = 'https://microsoftedge.microsoft.com/addons/detail/dfbioajafcijomhljabppcelecgdgfeo';
        if (heroLabel && document.documentElement.lang === 'en') heroLabel.textContent = 'Add to Edge — free';
      } else if (currentBrowser === 'edge') {
        heroBtn.href = '#download';
      } else {
        heroBtn.href = 'https://chromewebstore.google.com/detail/webbrain/ljhijonmfahplgbbacgcfnaihbjljhhb';
        if (heroLabel && document.documentElement.lang === 'en') heroLabel.textContent = 'Add to Chrome — free';
      }
    }
  })();
</script>

<script>
  (function () {
    // Pick the right source (desktop vs mobile) for every responsive video
    // on the page - the product video and the Apocalypse Mode modal.
    const videos = Array.prototype.slice.call(
      document.querySelectorAll('video[data-desktop-src]')
    );
    if (!videos.length) return;

    const mobileQuery = window.matchMedia('(max-width: 768px)');

    function syncVideoSources(event) {
      const isMobile = event && typeof event.matches === 'boolean'
        ? event.matches : mobileQuery.matches;
      videos.forEach(function (video) {
        const nextSrc = isMobile ? video.dataset.mobileSrc : video.dataset.desktopSrc;
        const nextPoster = isMobile ? video.dataset.mobilePoster : video.dataset.desktopPoster;
        if (nextPoster && video.poster !== nextPoster) {
          video.poster = nextPoster;
        }
        if (nextSrc && video.src !== nextSrc) {
          video.src = nextSrc;
        }
      });
    }

    syncVideoSources(mobileQuery);

    if (typeof mobileQuery.addEventListener === 'function') {
      mobileQuery.addEventListener('change', syncVideoSources);
    } else if (typeof mobileQuery.addListener === 'function') {
      mobileQuery.addListener(syncVideoSources);
    }
  })();
</script>

<script>
  (function () {
    const trigger = document.getElementById('apocalypse-video-open');
    const dialog = document.getElementById('apocalypse-video-dialog');
    const closeButton = document.getElementById('apocalypse-video-close');
    const video = document.getElementById('apocalypse-video');
    if (!trigger || !dialog || !closeButton || !video) return;

    let previousOverflow = '';

    function openApocalypseVideo() {
      if (dialog.open) return;
      previousOverflow = document.documentElement.style.overflow;
      document.documentElement.style.overflow = 'hidden';
      dialog.showModal();
      const playback = video.play();
      if (playback && typeof playback.catch === 'function') {
        playback.catch(function () {});
      }
    }

    function closeApocalypseVideo() {
      if (dialog.open) dialog.close();
    }

    trigger.addEventListener('click', openApocalypseVideo);
    closeButton.addEventListener('click', closeApocalypseVideo);
    dialog.addEventListener('click', function (event) {
      if (event.target === dialog) closeApocalypseVideo();
    });
    dialog.addEventListener('close', function () {
      video.pause();
      document.documentElement.style.overflow = previousOverflow;
      trigger.focus();
    });
  })();
</script>

<!-- "Watch it in action": play the product video in a dialog. Without
     JavaScript the link opens the video file. -->
<script>
  (function () {
    var trigger = document.getElementById('home-video-open');
    var dialog = document.getElementById('home-video-dialog');
    var closeButton = document.getElementById('home-video-close');
    var video = document.getElementById('home-video');
    if (!trigger || !dialog || !closeButton || !video || typeof dialog.showModal !== 'function') return;
    var portrait = window.matchMedia('(max-width: 768px)');
    var previousOverflow = '';

    function chooseSource() {
      var src = portrait.matches ? video.dataset.mobileSrc : video.dataset.desktopSrc;
      var poster = portrait.matches ? video.dataset.mobilePoster : video.dataset.desktopPoster;
      if (poster && video.getAttribute('poster') !== poster) video.setAttribute('poster', poster);
      if (video.getAttribute('src') !== src) video.setAttribute('src', src);
    }

    trigger.addEventListener('click', function (event) {
      event.preventDefault();
      chooseSource();
      previousOverflow = document.documentElement.style.overflow;
      document.documentElement.style.overflow = 'hidden';
      dialog.showModal();
      var playback = video.play();
      if (playback && typeof playback.catch === 'function') playback.catch(function () {});
    });
    closeButton.addEventListener('click', function () { dialog.close(); });
    dialog.addEventListener('click', function (event) {
      if (event.target === dialog) dialog.close();
    });
    dialog.addEventListener('close', function () {
      video.pause();
      document.documentElement.style.overflow = previousOverflow;
      trigger.focus();
    });
  })();
</script>

<!-- "Demo": load WebBrain for websites on this page and open it, so visitors
     try the real assistant here. The script only loads on the first click.
     Without JavaScript the link goes to the dashboard's playground. -->
<script>
  (function () {
    var trigger = document.getElementById('home-demo-open');
    var status = document.getElementById('home-demo-status');
    if (!trigger || !status) return;
    var loading = null;

    function assistant() {
      return window.WebBrain && typeof window.WebBrain.open === 'function' ? window.WebBrain : null;
    }

    function loadAssistant() {
      if (!loading) {
        loading = new Promise(function (resolve, reject) {
          var script = document.createElement('script');
          script.src = trigger.getAttribute('data-embed-src');
          script.async = true;
          script.setAttribute('data-site-id', trigger.getAttribute('data-site-id'));
          script.onload = function () { assistant() ? resolve() : reject(new Error('WebBrain did not start')); };
          script.onerror = function () { script.remove(); reject(new Error('WebBrain could not load')); };
          document.body.appendChild(script);
        }).catch(function (error) {
          loading = null;
          throw error;
        });
      }
      return loading;
    }

    trigger.addEventListener('click', function (event) {
      event.preventDefault();
      status.textContent = '';
      if (assistant()) {
        assistant().open();
        return;
      }
      if (trigger.getAttribute('aria-busy') === 'true') return;
      trigger.setAttribute('aria-busy', 'true');
      loadAssistant()
        .then(function () { assistant().open(); })
        .catch(function () { status.textContent = trigger.getAttribute('data-error'); })
        .then(function () { trigger.removeAttribute('aria-busy'); });
    });
  })();
</script>

<!-- MCP: copy the setup prompt for the visitor's coding agent. -->
<script>
  (function () {
    var button = document.getElementById('mcp-copy');
    var text = document.getElementById('mcp-prompt-text');
    if (!button || !text) return;
    var label = button.querySelector('span');
    var original = label.textContent;
    var timer = null;
    function copied() {
      button.classList.add('is-copied');
      label.textContent = button.getAttribute('data-copied');
      clearTimeout(timer);
      timer = setTimeout(function () {
        button.classList.remove('is-copied');
        label.textContent = original;
      }, 2000);
    }
    function fallback() {
      var range = document.createRange();
      range.selectNodeContents(text);
      var selection = window.getSelection();
      selection.removeAllRanges();
      selection.addRange(range);
      try { if (document.execCommand('copy')) copied(); } catch (_) {}
    }
    button.addEventListener('click', function () {
      var value = text.textContent.trim();
      if (navigator.clipboard && window.isSecureContext) {
        navigator.clipboard.writeText(value).then(copied, fallback);
      } else {
        fallback();
      }
    });
  })();
</script>

<!-- Hero mockup rotation: cross-fade through 5 demo scenes. Click a dot or
     arrow to jump (and freeze the auto-rotate so a hand-picked scene stays put).
     Auto-rotate pauses on hover and when the tab is hidden. Skipped
     entirely under prefers-reduced-motion — the first scene just stays. -->
<script>
  (function () {
    const stack = document.getElementById('mockup-stack');
    if (!stack) return;
    const stage = stack.closest('.mockup-stage') || stack;
    const focusScope = stage.closest('.hero-visual') || stage;
    const scenes = stack.querySelectorAll(':scope > .browser-mockup');
    const dots = document.querySelectorAll('.scene-nav .scene-dot');
    const arrows = document.querySelectorAll('.scene-arrow');
    if (scenes.length < 2) return;

    const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
    const INTERVAL_MS = 6000;
    let current = 0;
    let timer = null;
    let userLocked = false; // set true once the visitor uses a manual control

    function activate(idx) {
      idx = ((idx % scenes.length) + scenes.length) % scenes.length;
      scenes.forEach((s, i) => {
        const on = i === idx;
        if (!on) {
          // Hide inactive scenes from screen readers + keyboard tab order.
          // (opacity:0 alone leaves their links/buttons in the a11y tree.)
          s.classList.remove('is-active');
          s.setAttribute('aria-hidden', 'true');
          s.setAttribute('inert', '');
        }
      });
      dots.forEach((d, i) => {
        const on = i === idx;
        d.classList.toggle('is-active', on);
        d.setAttribute('aria-selected', on ? 'true' : 'false');
      });
      // Force a reflow so re-applying the .is-active rule restarts the
      // message fade-up animation cleanly.
      void scenes[idx].offsetWidth;
      scenes[idx].classList.add('is-active');
      scenes[idx].removeAttribute('aria-hidden');
      scenes[idx].removeAttribute('inert');
      current = idx;
    }

    function tick() { activate(current + 1); }

    function start() {
      if (reduceMotion || userLocked || timer) return;
      timer = setInterval(tick, INTERVAL_MS);
    }
    function stop() {
      if (timer) { clearInterval(timer); timer = null; }
    }

    dots.forEach((dot) => {
      dot.addEventListener('click', function () {
        const idx = parseInt(dot.dataset.scene, 10);
        if (Number.isNaN(idx)) return;
        userLocked = true;
        stop();
        activate(idx);
      });
    });

    arrows.forEach((arrow) => {
      arrow.addEventListener('click', function () {
        const step = parseInt(arrow.dataset.sceneStep, 10);
        if (Number.isNaN(step)) return;
        userLocked = true;
        stop();
        activate(current + step);
      });
    });

    // Left/Right arrow keys step through scenes too, matching the on-screen
    // prev/next buttons. Scope them to while the hero is visible, hovered, or
    // contains focus so they work immediately without requiring a click, but
    // don't hijack arrow-key behavior elsewhere on the page (typing in an
    // input, the language <select>, browser back/forward gestures, etc).
    let hovering = false;
    const isRtl = document.documentElement.dir === 'rtl';
    stage.addEventListener('mouseenter', function () { hovering = true; stop(); });
    stage.addEventListener('mouseleave', function () { hovering = false; start(); });
    document.addEventListener('keydown', function (e) {
      if (e.key !== 'ArrowLeft' && e.key !== 'ArrowRight') return;
      const active = document.activeElement;
      const typing = active && (active.tagName === 'INPUT' || active.tagName === 'TEXTAREA' ||
        active.tagName === 'SELECT' || active.isContentEditable);
      if (typing) return;
      const heroRect = focusScope.getBoundingClientRect();
      const heroVisible = heroRect.bottom > 0 && heroRect.top < window.innerHeight &&
        heroRect.right > 0 && heroRect.left < window.innerWidth;
      if (!heroVisible && !hovering && !focusScope.contains(active)) return;
      // Physical Left/Right always matches the visual prev/next placement,
      // which itself flips for RTL via CSS logical properties.
      const visualStep = e.key === 'ArrowLeft' ? -1 : 1;
      const step = isRtl ? -visualStep : visualStep;
      userLocked = true;
      stop();
      activate(current + step);
      e.preventDefault();
    });
    document.addEventListener('visibilitychange', function () {
      if (document.hidden) stop(); else start();
    });

    start();
  })();
</script>

<!-- Provider constellation: light up each node's connection line on
     hover/focus so the relationship to the central WebBrain core is
     visible at a glance. CSS-only would mean a separate selector for
     every node — this is shorter and keeps the SVG data-driven. -->
<script>
  (function () {
    const lines = document.querySelectorAll('.constellation-lines line');
    const nodes = document.querySelectorAll('.provider-node[data-line]');
    if (!lines.length || !nodes.length) return;
    nodes.forEach(function (node) {
      const idx = parseInt(node.dataset.line, 10);
      const line = lines[idx];
      if (!line) return;
      const on = function () { line.classList.add('is-active'); };
      const off = function () { line.classList.remove('is-active'); };
      node.addEventListener('mouseenter', on);
      node.addEventListener('mouseleave', off);
      node.addEventListener('focus', on);
      node.addEventListener('blur', off);
    });
  })();
</script>

<!-- Theme toggle handler — flips data-theme on <html> and persists the
     choice in localStorage. Also reacts to OS-level theme changes if the
     user hasn't made an explicit choice yet, so the page stays in sync
     when they flip system settings. -->
<script>
  (function () {
    const btn = document.getElementById('theme-toggle');
    if (!btn) return;
    const root = document.documentElement;

    function setTheme(theme, persist) {
      root.setAttribute('data-theme', theme);
      if (persist) {
        try { localStorage.setItem('webbrain-theme', theme); } catch (_) {}
      }
    }

    btn.addEventListener('click', function () {
      const next = root.getAttribute('data-theme') === 'light' ? 'dark' : 'light';
      setTheme(next, true);
    });

    // Track OS theme changes — but only honor them when the user hasn't
    // picked a theme manually (localStorage empty).
    const mq = window.matchMedia('(prefers-color-scheme: light)');
    function onMQ(e) {
      try {
        if (localStorage.getItem('webbrain-theme')) return;
      } catch (_) { /* fall through and apply OS pref */ }
      setTheme(e.matches ? 'light' : 'dark', false);
    }
    if (typeof mq.addEventListener === 'function') mq.addEventListener('change', onMQ);
    else if (typeof mq.addListener === 'function') mq.addListener(onMQ);
  })();
</script>

<!-- GitHub stars pill — fetches count from the public unauthenticated
     /repos endpoint, caches it in localStorage for 6h to keep visitors well
     under GitHub's 60-req/hour anonymous limit and to render the cached
     value instantly on revisit. Page works fine if the request fails. -->
<script>
  (function () {
    const el = document.getElementById('gh-stars');
    if (!el) return;
    const countEl = el.querySelector('.gh-count');
    const REPO = 'webbrain-one/webbrain';
    const CACHE_KEY = 'gh-stars:' + REPO;
    const TTL_MS = 6 * 60 * 60 * 1000; // 6 hours

    function fmt(n) {
      if (n == null || isNaN(n)) return '—';
      if (n >= 1000) return (n / 1000).toFixed(n >= 10000 ? 0 : 1).replace(/\.0$/, '') + 'k';
      return String(n);
    }
    function render(n) {
      countEl.textContent = fmt(n);
      el.removeAttribute('data-loading');
    }

    try {
      const cached = JSON.parse(localStorage.getItem(CACHE_KEY) || 'null');
      if (cached && typeof cached.count === 'number') {
        render(cached.count);
        if (Date.now() - cached.ts < TTL_MS) return; // still fresh
      }
    } catch (_) { /* ignore corrupt cache */ }

    fetch('https://api.github.com/repos/' + REPO, { headers: { Accept: 'application/vnd.github+json' } })
      .then(function (r) { return r.ok ? r.json() : null; })
      .then(function (data) {
        if (!data || typeof data.stargazers_count !== 'number') return;
        render(data.stargazers_count);
        try {
          localStorage.setItem(CACHE_KEY, JSON.stringify({ count: data.stargazers_count, ts: Date.now() }));
        } catch (_) { /* storage full or disabled */ }
      })
      .catch(function () { /* offline / blocked — leave whatever we had */ });
  })();
</script>

<!-- Feature grid collapse. The markup ships expanded so the no-JS and crawler
     view keeps all twelve cards; this only runs to shorten the default view. -->
<script>
  (function () {
    const grid = document.getElementById('features-grid');
    const button = document.getElementById('features-more-btn');
    const label = document.getElementById('features-more-label');
    if (!grid || !button || !label) return;
    if (!grid.querySelector('.feature-card[data-extra]')) return;

    const moreLabel = button.dataset.labelMore || label.textContent;
    const lessLabel = button.dataset.labelLess || moreLabel;

    function setExpanded(expanded) {
      grid.dataset.collapsed = expanded ? 'false' : 'true';
      button.setAttribute('aria-expanded', expanded ? 'true' : 'false');
      label.textContent = expanded ? lessLabel : moreLabel;
    }

    setExpanded(false);

    button.addEventListener('click', function () {
      const expanded = button.getAttribute('aria-expanded') === 'true';
      setExpanded(!expanded);
      if (expanded) {
        // Collapsing can strand the viewport below the grid; pull it back to
        // the toggle so the page does not appear to jump to a later section.
        const top = button.getBoundingClientRect().top;
        if (top < 0) button.scrollIntoView({ block: 'center', behavior: 'smooth' });
      }
    });
  })();
</script>

<!-- Flag-based, path-preserving language picker. The native select remains a
     hidden value source while the visible listbox mirrors the extension UI. -->
<script>
  (function () {
    const LOCALES = ['en', 'es', 'fr', 'tr', 'zh', 'ru', 'uk', 'ar', 'ja', 'ko', 'id', 'th', 'ms', 'tl', 'he', 'hi', 'pt', 'vi', 'bn', 'fa', 'nl', 'de'];
    const FLAG_CODES = {"en":"us","es":"es","fr":"fr","tr":"tr","zh":"cn","ru":"ru","uk":"ua","ar":"sa","ja":"jp","ko":"kr","id":"id","th":"th","ms":"my","tl":"ph","he":"il","hi":"in","pt":"br","vi":"vn","bn":"bd","fa":"ir","nl":"nl","de":"de"};
    const picker = document.getElementById('language-picker');
    const sel = document.getElementById('lang-dropdown');
    const trigger = document.getElementById('language-picker-btn');
    const triggerFlag = document.getElementById('language-picker-flag');
    const triggerCode = document.getElementById('language-picker-code');
    const menu = document.getElementById('language-picker-menu');
    if (!picker || !sel || !trigger || !triggerFlag || !triggerCode || !menu) return;
    const current = sel.dataset.current || 'en';
    const controlLabel = trigger.getAttribute('aria-label') || 'Select language';
    let typeahead = '';
    let typeaheadTimer = null;

    function flagSrc(code) {
      return '/assets/flags/' + FLAG_CODES[code] + '.svg';
    }

    function options() {
      return Array.from(menu.querySelectorAll('.language-picker-option'));
    }

    function ensureMenuHighlight() {
      let highlight = menu.querySelector(':scope > .picker-menu-highlight');
      if (highlight) return highlight;
      highlight = document.createElement('div');
      highlight.className = 'picker-menu-highlight';
      highlight.setAttribute('aria-hidden', 'true');
      menu.prepend(highlight);
      return highlight;
    }

    function selectedOption() {
      return menu.querySelector('.language-picker-option[aria-selected="true"]');
    }

    function setMenuHighlight(option, instant) {
      const highlight = ensureMenuHighlight();
      if (!option || !menu.contains(option)) {
        highlight.classList.remove('visible');
        delete highlight.dataset.targetValue;
        return;
      }
      const targetValue = option.dataset.value || '';
      if (highlight.dataset.targetValue === targetValue && highlight.classList.contains('visible')) return;
      highlight.dataset.targetValue = targetValue;
      if (instant) highlight.classList.add('instant');
      highlight.style.left = option.offsetLeft + 'px';
      highlight.style.width = option.offsetWidth + 'px';
      highlight.style.height = option.offsetHeight + 'px';
      highlight.style.transform = 'translate3d(0, ' + option.offsetTop + 'px, 0)';
      highlight.classList.add('visible');
      if (instant) requestAnimationFrame(function () {
        highlight.classList.remove('instant');
      });
    }

    function syncPicker() {
      const code = sel.value || current;
      const selected = sel.querySelector('option[value="' + code + '"]');
      triggerFlag.src = flagSrc(code);
      triggerCode.textContent = code.toUpperCase();
      trigger.title = controlLabel + ': ' + (selected ? selected.textContent : code);
      trigger.setAttribute('aria-label', trigger.title);
      options().forEach(function (button) {
        button.setAttribute('aria-selected', button.dataset.value === code ? 'true' : 'false');
      });
      if (!menu.hidden) setMenuHighlight(selectedOption(), true);
    }

    function setOpen(open) {
      menu.hidden = !open;
      trigger.setAttribute('aria-expanded', open ? 'true' : 'false');
      if (open) {
        const selected = options().find(function (button) {
          return button.getAttribute('aria-selected') === 'true';
        }) || options()[0];
        setMenuHighlight(selected, true);
        if (selected) selected.focus();
      } else {
        setMenuHighlight(null);
        typeahead = '';
        if (typeaheadTimer) clearTimeout(typeaheadTimer);
        typeaheadTimer = null;
      }
    }

    function focusAt(index) {
      const items = options();
      if (!items.length) return;
      items[(index + items.length) % items.length].focus();
    }

    function choose(code) {
      setOpen(false);
      trigger.focus();
      if (code === current) return;
      sel.value = code;
      syncPicker();
      sel.dispatchEvent(new Event('change', { bubbles: true }));
    }

    Array.from(sel.options).forEach(function (option) {
      const code = option.value;
      const button = document.createElement('button');
      button.type = 'button';
      button.className = 'language-picker-option';
      button.setAttribute('role', 'option');
      button.setAttribute('aria-selected', 'false');
      button.dataset.value = code;
      button.dataset.search = (code + ' ' + option.textContent).toLocaleLowerCase();

      const flag = document.createElement('img');
      flag.className = 'language-picker-option-flag';
      flag.src = flagSrc(code);
      flag.alt = '';
      flag.setAttribute('aria-hidden', 'true');
      button.appendChild(flag);

      const name = document.createElement('span');
      name.className = 'language-picker-option-name';
      name.textContent = option.textContent;
      name.dir = 'auto';
      button.appendChild(name);

      const codeLabel = document.createElement('span');
      codeLabel.className = 'language-picker-option-code';
      codeLabel.textContent = code.toUpperCase();
      codeLabel.dir = 'ltr';
      button.appendChild(codeLabel);

      const check = document.createElement('span');
      check.className = 'language-picker-check';
      check.textContent = '✓';
      check.setAttribute('aria-hidden', 'true');
      button.appendChild(check);

      button.addEventListener('click', function () {
        choose(code);
      });
      menu.appendChild(button);
    });

    sel.value = current;
    syncPicker();

    menu.addEventListener('pointerover', function (event) {
      const option = event.target.closest && event.target.closest('.language-picker-option');
      setMenuHighlight(option && menu.contains(option) ? option : null);
    });
    menu.addEventListener('pointerleave', function () {
      setMenuHighlight(selectedOption());
    });
    menu.addEventListener('focusin', function (event) {
      const option = event.target.closest && event.target.closest('.language-picker-option');
      if (option && menu.contains(option)) setMenuHighlight(option);
    });
    menu.addEventListener('focusout', function () {
      queueMicrotask(function () {
        if (!menu.contains(document.activeElement)) setMenuHighlight(selectedOption());
      });
    });

    trigger.addEventListener('click', function () {
      setOpen(trigger.getAttribute('aria-expanded') !== 'true');
    });
    trigger.addEventListener('keydown', function (event) {
      if (event.key !== 'ArrowDown' && event.key !== 'ArrowUp') return;
      event.preventDefault();
      setOpen(true);
      const items = options();
      const selectedIndex = Math.max(0, items.findIndex(function (button) {
        return button.getAttribute('aria-selected') === 'true';
      }));
      focusAt(selectedIndex + (event.key === 'ArrowDown' ? 1 : -1));
    });
    menu.addEventListener('keydown', function (event) {
      const items = options();
      const index = Math.max(0, items.indexOf(document.activeElement));
      if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
        event.preventDefault();
        focusAt(index + (event.key === 'ArrowDown' ? 1 : -1));
      } else if (event.key === 'Home' || event.key === 'End') {
        event.preventDefault();
        focusAt(event.key === 'Home' ? 0 : items.length - 1);
      } else if (event.key === 'Enter' || event.key === ' ') {
        event.preventDefault();
        if (document.activeElement.dataset.value) choose(document.activeElement.dataset.value);
      } else if (event.key === 'Escape') {
        event.preventDefault();
        setOpen(false);
        trigger.focus();
      } else if (event.key.length === 1 && event.key.trim()) {
        typeahead += event.key.toLocaleLowerCase();
        if (typeaheadTimer) clearTimeout(typeaheadTimer);
        typeaheadTimer = setTimeout(function () {
          typeahead = '';
          typeaheadTimer = null;
        }, 700);
        const ordered = items.slice(index + 1).concat(items.slice(0, index + 1));
        const match = ordered.find(function (button) {
          return button.dataset.search.startsWith(typeahead)
            || button.dataset.search.includes(' ' + typeahead);
        });
        if (match) match.focus();
      }
    });
    picker.addEventListener('focusout', function () {
      setTimeout(function () {
        if (!picker.contains(document.activeElement)) setOpen(false);
      }, 0);
    });
    document.addEventListener('pointerdown', function (event) {
      if (!picker.contains(event.target)) setOpen(false);
    });

    sel.addEventListener('change', function () {
      const target = sel.value;
      if (!LOCALES.includes(target)) return;
      if (target === current) return;
      const { pathname, search, hash } = window.location;
      const parts = pathname.split('/').filter(Boolean);
      if (parts.length && LOCALES.includes(parts[0])) {
        parts.shift(); // drop leading locale
      }
      const rest = parts.length ? '/' + parts.join('/') + '/' : '/';
      const next = target === 'en' ? rest : '/' + target + rest;
      window.location.href = next + search + hash;
    });
  })();
</script>

</body>
</html>