/* CAPTRIX 官網。視覺語言沿用 VideoGrab：白色導覽列、深藍粗體標題＋紫色強調字、
   紫色漸層主按鈕、淡紫漸層底、白卡片柔和陰影。 */

/* Inter 放在自己網站（2026-10-29 使用者決定）：不連 Google Fonts —— 中國大陸連不到 Google 會卡住整頁，
   歐盟也有載入 Google 字型違反 GDPR 的判決。可變字型，一個檔涵蓋 400–800 字重；只放拉丁、拉丁擴充、越南文三個子集，
   其他語言本來就用系統字型。授權 SIL OFL 1.1（fonts/Inter-OFL.txt），子集與 unicode-range 照 Google Fonts v20。 */
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/inter-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #19154e;          /* 標題深藍 */
  --text: #2b2a3f;
  --muted: #5b5e76;
  --purple: #7e22ce;
  --purple-2: #a356e6;
  --purple-soft: #f3e8ff;
  --lav-1: #ffffff;
  --lav-2: #f5ecff;
  --lav-3: #e9d8fd;
  --card: #ffffff;
  --line: #ece6f6;
  --ok: #16a34a;
  --rec: #ef4444;
  --shadow: 0 3px 11px -2px rgb(25 21 78 / .18);
  --shadow-lg: 0 18px 50px -12px rgb(76 29 149 / .28);
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; color: var(--text);
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", sans-serif;
  background: linear-gradient(180deg, var(--lav-1) 0, var(--lav-2) 520px, var(--lav-1) 1400px, var(--lav-2) 100%);
  -webkit-font-smoothing: antialiased;
}
:lang(zh-Hans) body, body:lang(zh-Hans) { font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; }
/* 阿拉伯文、泰文：Inter 沒有這些字，用系統字型（不另外下載字型檔）。字距一律 0 —— 負字距會把阿拉伯字母拆開、把泰文聲調符號擠在一起。 */
body:lang(ar) { font-family: Inter, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
body:lang(th) { font-family: Inter, Thonburi, "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif; line-height: 1.8; }
body:is(:lang(ar), :lang(th)) :is(h1, h2, h3, .lead, .eyebrow, .feat h3) { letter-spacing: 0; }
/* 泰文、越南文的聲調符號疊在字的上下方，標題行高太緊會被切掉 */
body:lang(th) .hero h1 { line-height: 1.35; }
body:lang(th) h2, body:lang(vi) h2 { line-height: 1.35; }
body:lang(vi) .hero h1 { line-height: 1.25; }
/* 德文長複合字：標題可斷字；所有語言的標題遇到放不下的長字都可以折行，不撐破版面 */
h1, h2, h3 { overflow-wrap: break-word; }
:lang(de) :is(h1, h2, h3) { hyphens: auto; }
:lang(de) .cmp :is(th, td) { hyphens: auto; overflow-wrap: anywhere; }  /* 手機上「QuickTime-Bildschirmaufnahme」會把比較表撐出畫面 */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); }
.accent { color: var(--purple); }
kbd { font: 12px ui-monospace, monospace; background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; margin: 0 3px; color: var(--ink); }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 導覽列 ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.3px; }
/* 字標用背景圖、不用 <img>：拖不出去、選不到、右鍵沒有「儲存圖片」（使用者 2026-10-28：要跟舊的一樣不能拖移複製） */
.brand { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.brand-mark { display: block; width: 157px; height: 40px; background: url(wordmark.png) no-repeat center / contain; }
.nav-links { margin-inline-start: auto; display: flex; align-items: center; gap: 26px; }
.nav-link { font-weight: 600; font-size: 15px; color: var(--ink); }
.nav-link:hover { color: var(--purple); }
/* 語言：下拉選單（使用者 2026-10-27：十種語言排成一排太佔位置）。<details> 不用 JavaScript，鍵盤 Enter／空白鍵可開關。 */
.lang { position: relative; flex: none; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: var(--lav-2);
  font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; cursor: pointer; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; color: var(--purple); }
.lang summary::after { content: ""; width: 6px; height: 6px; margin-inline-start: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lang summary:hover { color: var(--purple); }
.lang summary:focus-visible, .lang a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none;
  min-width: 200px; max-height: calc(100vh - 90px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.lang li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lang li a:hover { background: var(--lav-2); color: var(--purple); }
.lang li a[aria-current] { background: var(--purple-soft); color: var(--ink); }
.lang li a[aria-current]::after { content: "✓"; color: var(--purple); }

/* ---------- 按鈕 ---------- */
.cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, filter .15s, border-color .15s, color .15s;
}
.cta {
  color: #fff; border: none;
  background: linear-gradient(90deg, var(--purple-2) -40%, var(--purple) 60%);
  box-shadow: 0 6px 18px -6px rgb(126 34 206 / .6);
}
a.cta:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 24px -8px rgb(126 34 206 / .7); }
.btn { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn:hover { border-color: var(--purple-2); color: var(--purple); }
.big { height: 56px; padding: 0 30px; font-size: 18px; border-radius: 12px; }
.small { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero { max-width: 1000px; margin: 0 auto; padding: 72px 24px 40px; text-align: center; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 4px 14px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.hero h1 { margin: 0; font-size: clamp(36px, 6vw, 66px); line-height: 1.1; font-weight: 800; letter-spacing: -1.5px; }
.lead { margin: 22px auto 0; max-width: 680px; font-size: clamp(17px, 2vw, 21px); font-weight: 500; color: var(--muted); letter-spacing: -.2px; }
.lead b { color: var(--ink); font-weight: 700; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* 示意圖：螢幕＋選取範圍＋控制面板，純 CSS */
.stage { position: relative; margin: 56px auto 0; max-width: 860px; padding-inline-end: 150px; }
.screen { direction: ltr; background: #14112b; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.screen-bar { display: flex; gap: 7px; padding: 12px 14px; background: #1d1940; }
.screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3566; }
.screen-body { position: relative; aspect-ratio: 16 / 9; background:
  radial-gradient(circle at 20% 30%, rgb(163 86 230 / .25), transparent 45%),
  radial-gradient(circle at 80% 75%, rgb(126 34 206 / .3), transparent 50%), #14112b; }
.video-tile { position: absolute; left: 14%; top: 16%; width: 56%; height: 64%; border-radius: 10px;
  background: linear-gradient(135deg, #6d28d9, #a356e6 55%, #f0abfc); display: grid; place-items: center; }
.video-tile svg { width: 56px; height: 56px; fill: #fff; stroke: none; opacity: .92; }
.region { position: absolute; left: 11%; top: 11%; width: 62%; height: 74%; border: 2px solid var(--rec); border-radius: 4px; box-shadow: 0 0 0 9999px rgb(10 8 30 / .35); }
.region .h { position: absolute; width: 10px; height: 10px; background: #fff; border: 2px solid var(--rec); border-radius: 2px; }
.h.tl { left: -6px; top: -6px; } .h.tr { right: -6px; top: -6px; } .h.bl { left: -6px; bottom: -6px; } .h.br { right: -6px; bottom: -6px; }
.region-tag { position: absolute; left: 8px; top: -34px; display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 7px; background: var(--rec); color: #fff; font: 700 13px ui-monospace, monospace; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.panel-mock { position: absolute; inset-inline-end: 0; bottom: -28px; width: 280px; padding: 14px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); text-align: start; font-size: 14px; }
.pm-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pm-mode { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 2px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink); font-size: 13px; }
.pm-mode svg { width: 22px; height: 22px; }
.pm-mode.on { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); }
.pm-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 2px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.chip { font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; }
.chip.ok { background: #dcfce7; color: var(--ok); }
.chip.off { background: #f1f0f6; color: var(--muted); }
.pm-wave { display: flex; align-items: center; gap: 4px; height: 30px; padding: 4px 2px 0; }
.pm-wave i { flex: 1; border-radius: 3px; background: linear-gradient(var(--purple-2), var(--purple)); animation: wave 1.1s ease-in-out infinite; }
.pm-wave i:nth-child(odd) { animation-delay: -.4s; } .pm-wave i:nth-child(3n) { animation-delay: -.7s; } .pm-wave i:nth-child(4n) { animation-delay: -.2s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .dot, .pm-wave i { animation: none; } .pm-wave i { height: 60%; } html { scroll-behavior: auto; } }

/* ---------- 區塊 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 84px 24px; }
.wrap.narrow { max-width: 820px; }
.band { background: rgb(255 255 255 / .6); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -.8px; }
.sub { margin: 14px auto 0; max-width: 640px; font-size: 18px; color: var(--muted); }
.sub.left { margin-inline-start: 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

/* 比較表 */
.cmp { max-width: 820px; margin: 0 auto; overflow: hidden; }
.cmp table { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmp th { padding: 16px 18px; font-size: 14px; color: var(--muted); font-weight: 600; text-align: center; background: var(--lav-2); }
.cmp th.us { color: var(--purple); font-weight: 800; font-size: 16px; }
.cmp td { padding: 16px 18px; border-top: 1px solid var(--line); text-align: center; color: var(--ink); }
.cmp td:first-child { text-align: start; font-weight: 600; }
.cmp td.y { color: var(--ok); font-weight: 700; }
.cmp td.n { color: var(--muted); font-size: 14px; }
.cmp td:last-child { background: #fbf8ff; }

/* 功能卡片 */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feat { padding: 28px; transition: transform .15s, box-shadow .15s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--purple-soft); color: var(--purple); }
.ic svg { width: 24px; height: 24px; }
.feat h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* 剪片 */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split .eyebrow { margin-bottom: 14px; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { position: relative; padding-inline-start: 34px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); font-size: 13px; font-weight: 800; }
.checks b { color: var(--ink); }
.editor-mock { margin: 0; padding: 14px; }
.em-video { aspect-ratio: 16 / 9; border-radius: 12px; background: linear-gradient(135deg, #2e1065, #7e22ce 60%, #c084fc); display: grid; place-items: center; }
.em-video svg { width: 48px; height: 48px; fill: #fff; stroke: none; opacity: .9; }
.em-track { direction: ltr; position: relative; display: flex; gap: 4px; margin: 14px 0 12px; height: 46px; }
.seg { display: grid; place-items: center; border-radius: 8px; font-size: 13px; font-weight: 700; }
.seg.on { background: var(--purple-soft); color: var(--purple); border: 2px solid var(--purple-2); }
.seg.skip { background: repeating-linear-gradient(45deg, #f1f0f6 0 6px, #fff 6px 12px); color: #a3a6ba; border: 2px dashed #d6d3e4; text-decoration: line-through; }
.playhead { position: absolute; top: -6px; bottom: -6px; left: 33.5%; width: 2px; background: var(--rec); border-radius: 2px; }
.playhead::before { content: ""; position: absolute; top: -4px; left: -5px; border: 6px solid transparent; border-top-color: var(--rec); }
.em-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.keys { font-size: 13px; color: var(--muted); }

/* 步驟 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.steps li { padding: 28px; }
.num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 800;
  background: linear-gradient(90deg, var(--purple-2) -40%, var(--purple) 60%); box-shadow: 0 6px 18px -6px rgb(126 34 206 / .6); }
.steps h3 { margin: 16px 0 6px; font-size: 19px; font-weight: 800; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* 規格 */
.specs { max-width: 820px; margin: 0 auto; padding: 6px 28px; }
.specs div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.specs div:first-child { border-top: none; }
.specs dt { font-weight: 700; color: var(--ink); }
.specs dd { margin: 0; color: var(--muted); }

/* 常見問題 */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding-block: 18px; padding-inline: 0 28px; position: relative; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--purple); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* 結尾 */
.closing { text-align: center; padding: 56px 24px; border-radius: 24px; background: linear-gradient(135deg, #fff, var(--purple-soft)); box-shadow: var(--shadow-lg); }
.closing img { border-radius: 15px; box-shadow: var(--shadow); }
.closing h2 { margin-top: 18px; }
.closing p { margin: 12px 0 0; font-size: 18px; color: var(--muted); }
.closing .soon { display: inline-block; margin-top: 22px; padding: 8px 18px; border-radius: 999px; background: #fff; color: var(--purple); font-size: 15px; font-weight: 700; border: 1px solid #e3cffb; }
.closing .plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 26px; }
.closing .plan { flex: 1 1 200px; max-width: 260px; padding: 22px 20px; text-align: center; }
.closing .plan h3 { margin: 0; font-size: 17px; }
.closing .plan .price { margin: 10px 0 16px; font-size: 30px; font-weight: 800; color: var(--ink, inherit); }
.closing .plan .per, .closing .plan .price-note { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.closing .downloads { margin-top: 28px; }
.closing .downloads h3 { margin: 0 0 12px; font-size: 17px; }
.closing .dl-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.closing .dl-note { font-size: 14px; }

.foot { border-top: 1px solid var(--line); background: #fff; }
.foot-inner { max-width: 1180px; margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* ---------- 響應式 ---------- */
@media (max-width: 960px) {
  .nav-links { gap: 16px; }
  .grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .stage { padding-inline-end: 0; }
  .panel-mock { position: relative; inset-inline-end: auto; bottom: auto; margin: -40px auto 0; }
}
@media (max-width: 720px) {
  .nav-inner { padding: 10px 16px; gap: 12px; }
  .nav-links { display: none; }
  .lang { margin-inline-start: auto; }
  .hero { padding: 44px 16px 24px; }
  .lead br { display: none; }  /* 窄螢幕自然折行，避免一兩個字掉到下一行 */
  .wrap { padding: 60px 16px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .cmp table { font-size: 14px; }
  .cmp th, .cmp td { padding: 12px 10px; }
  .specs { padding: 4px 18px; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .region-tag { top: 6px; }
}

/* 找不到網頁（404.html）：連回十種語言的首頁 */
.notfound { max-width: 640px; text-align: center; }
.notfound h1 { color: var(--ink); }
.notfound ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.notfound a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--purple); text-decoration: none; font-weight: 600; }
