:root {
  /* Matches the app's SystemAccentColor ramp (App.xaml) and store artwork */
  --bg: #0b111d;
  --bg-alt: #0f1726;
  --surface: #151f31;
  --surface-2: #1b2740;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf5;
  --muted: #9aa7bb;
  --accent: #3d86de;
  --accent-strong: #2369c4;
  --accent-soft: #8cc0f2;
  --teal: #14b8a6;
  --green: #10b981;
  --orange: #f59e0b;
  --radius: 14px;
  --font: "Segoe UI Variable", "Segoe UI", "Noto Sans TC", system-ui, -apple-system, "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
:lang(zh-TW) { --font: "Segoe UI Variable", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; }
:lang(zh-CN) { --font: "Segoe UI Variable", "Segoe UI", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
:lang(ja) { --font: "Segoe UI Variable", "Segoe UI", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -48px; z-index: 20; padding: 8px 14px; border-radius: 6px; background: var(--accent-strong); color: #fff; }
.skip:focus { top: 8px; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 8px; font-weight: 600;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(255,255,255,.2); }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 16px; border-radius: 10px;
  background: #fff; color: #111; transition: transform .15s, box-shadow .15s;
}
.store-badge:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(61,134,222,.35); }
.store-badge svg { width: 28px; height: 28px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-badge small { font-size: 12px; color: #555; }
.store-badge b { font-size: 18px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 17, 29, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.brand + .nav-actions { margin-left: auto; }
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--muted);
  font-size: 13px; line-height: 1.4; cursor: pointer; user-select: none; white-space: nowrap; list-style: none;
  transition: color .15s, border-color .15s, background .15s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.lang-menu .chev { transition: transform .2s; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  animation: menu-in .14s ease-out;
}
.lang-menu li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.lang-menu li a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu li a[aria-current] { color: var(--text); font-weight: 600; }
.lang-menu li a[aria-current]::after {
  content: ""; flex: none; width: 16px; height: 16px; background: var(--accent-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .lang-menu ul { animation: none; } }

/* Hero */
.hero {
  text-align: center; padding: 80px 0 40px; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(35,105,196,.28), transparent 70%),
    radial-gradient(40% 40% at 85% 70%, rgba(20,184,166,.12), transparent 70%);
}
.hero h1 { font-size: clamp(34px, 6vw, 68px); font-weight: 900; letter-spacing: .02em; }
.lead { max-width: 720px; margin: 20px auto 0; font-size: clamp(16px, 2vw, 20px); color: var(--muted); }
.lead strong { color: var(--accent-soft); }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-meta { margin-top: 16px; font-size: 13px; color: var(--muted); }
.br-sm { display: none; }

.hero-visual { position: relative; margin: 56px auto 0; max-width: 1000px; }
.window {
  border-radius: 12px; overflow: hidden; background: #202020;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4);
}
.window-bar { display: flex; gap: 6px; padding: 10px 12px; background: #1a1a1a; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }

.chips { position: absolute; right: -60px; top: 61%; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.chip {
  display: flex; align-items: center; gap: 12px; width: 250px; padding: 12px 14px;
  background: rgba(21,31,49,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 12px; text-align: left;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  animation: float 5s ease-in-out infinite;
}
.chip:nth-child(2) { animation-delay: -1.6s; margin-left: 30px; }
.chip:nth-child(3) { animation-delay: -3.2s; }
.chip b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: #fff; flex: none; }
.chip span { flex: 1; display: grid; gap: 6px; }
.chip em { font-style: normal; font-weight: 700; font-size: 14px; }
.chip s { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); text-decoration: none; position: relative; overflow: hidden; }
.chip s::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--c); border-radius: inherit; }
.chip small { color: var(--muted); font-size: 13px; }
.c-blue { --c: var(--accent); } .c-blue b { background: var(--accent-strong); }
.c-teal { --c: var(--teal); } .c-teal b { background: #0f8f80; }
.c-green { --c: var(--green); } .c-green b { background: #0c8a60; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Scroll reveal: only hidden once main.js has marked the page, so no-JS still shows everything */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .row .crop.reveal { transform: translateX(40px); }
.js .row-flip .crop.reveal { transform: translateX(-40px); }
.js .reveal.is-visible, .js .row .reveal.is-visible { opacity: 1; transform: none; }
.js .row .crop.reveal { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  .chip { animation: none; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.kicker {
  margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--accent-soft);
}
.kicker span:first-child { font-variant-numeric: tabular-nums; color: var(--muted); margin-right: 6px; }
.headline { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 48px; max-width: 18em; }
.note { color: var(--muted); font-size: 14px; margin: 20px 0 0; }

/* Use cases: editorial rows */
.uses { margin: 0; border-top: 1px solid var(--border); }
.use {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: baseline;
  padding: 32px 0; border-bottom: 1px solid var(--border);
}
.use dt { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.use dd { margin: 0; color: var(--muted); font-size: 17px; }

/* Feature rows: text beside a cropped screenshot */
.row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center;
}
.row + .row { margin-top: 120px; }
.row-flip .row-text { order: 2; }
.row-text h3 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; margin-bottom: 16px; }
.row-text > p:not(.kicker):not(.note) { margin: 0; color: var(--muted); font-size: 17px; }
.crop {
  margin: 0; overflow: hidden; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1); background: #202020;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.crop img { width: 100%; }

.flow { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 0; counter-reset: f; font-size: 15px; }
.flow li { counter-increment: f; display: flex; align-items: center; }
.flow li::before { content: counter(f); color: var(--accent-soft); font-weight: 700; margin-right: 6px; }
.flow li:not(:last-child)::after { content: "→"; color: var(--muted); margin: 0 12px; }

.legend { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 20px; font-size: 15px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d-blue { background: var(--accent); }
.d-amber { background: #eab308; }
.d-red { background: #f87171; }

.extras {
  margin: 120px 0 0; padding-top: 32px; border-top: 1px solid var(--border);
  text-align: center; color: var(--muted); font-size: 15px;
}

/* Pricing table */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 18px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.compare thead th { font-size: 18px; font-weight: 700; border-bottom-color: rgba(255,255,255,.2); }
.compare tbody th { font-weight: 500; color: var(--muted); }
.compare td { width: 26%; }
.compare .pro { background: rgba(35,105,196,.12); }
.compare thead .pro { color: var(--accent-soft); border-radius: 10px 10px 0 0; }

/* FAQ */
#faq details { border-bottom: 1px solid var(--border); }
#faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 600; font-size: 17px; position: relative;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--accent-soft); font-weight: 400; }
#faq details[open] summary::after { content: "−"; }
#faq details p { margin: 0; padding-bottom: 18px; color: var(--muted); }
#faq summary::after { transition: transform .25s; }
#faq details[open] summary::after { transform: rotate(180deg); }

/* CTA + footer */
.cta {
  text-align: center; padding: 96px 0;
  background: radial-gradient(50% 70% at 50% 100%, rgba(35,105,196,.3), transparent 70%);
}
.cta img { margin: 0 auto 20px; border-radius: 16px; }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.cta p { color: var(--muted); margin: 10px 0 28px; }
.footer { border-top: 1px solid var(--border); padding: 24px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 20px; }
.footer-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-langs a[aria-current] { color: var(--text); font-weight: 600; }
.footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 1180px) { .chips { right: -16px; } }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .chips { display: none; }
  .use, .row { grid-template-columns: 1fr; gap: 12px; }
  .row { gap: 28px; }
  .row-flip .row-text { order: 0; }
  .row + .row, .extras { margin-top: 80px; }
  .section { padding: 80px 0; }
}
@media (max-width: 520px) {
  .br-sm { display: inline; }
  .hero { padding-top: 56px; }
  .compare th, .compare td { padding: 14px 8px; font-size: 14px; }
  .footer-inner { flex-direction: column; align-items: center; }
  .footer-links { gap: 16px; }
}

/* Privacy page */
.doc { padding: 72px 0 96px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 10px 0 40px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; }
.doc p, .doc li { color: #c9d2df; }
.doc ul { padding-left: 1.3em; display: grid; gap: 6px; }
.doc code { font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.doc a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.crumbs a:hover { color: var(--text); }
