:root {
  --brand: #6c4df6;
  --brand2: #b44cf0;
  --grad: linear-gradient(135deg, #5b47f5 0%, #9b4df2 55%, #d14fd8 100%);
  --text: #16151c;
  --muted: #6b6878;
  --bg: #ffffff;
  --soft: #f5f3ff;
  --card: #ffffff;
  --line: #ebe8f5;
}
@media (prefers-color-scheme: dark) {
  :root { --text: #f3f2f8; --muted: #a9a6b8; --bg: #0e0d14; --soft: #17152a; --card: #17161f; --line: #2a2838; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* language switching: show only blocks for the current language */
html[data-lang="en"] [data-l]:not([data-l="en"]),
html[data-lang="zh"] [data-l]:not([data-l="zh"]),
html[data-lang="ja"] [data-l]:not([data-l="ja"]) { display: none !important; }

header.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.navlinks { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.navlinks a { color: var(--muted); }
.langs { display: flex; gap: 4px; background: var(--soft); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.langs button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 520px; background: var(--grad); opacity: .14; filter: blur(80px); z-index: -1; }
.hero img.icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 18px 40px rgba(108,77,246,.35); }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.12; margin: 26px 0 14px; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: 17px; }
.btn:hover { text-decoration: none; opacity: .9; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

.shots { display: flex; gap: 22px; justify-content: center; padding: 30px 0 70px; flex-wrap: wrap; }
.shots img { width: 240px; max-width: 30vw; min-width: 180px; border-radius: 34px; border: 8px solid #17161c; box-shadow: 0 24px 60px rgba(40,20,90,.25); background: #f2f2f7; }

section.block { padding: 64px 0; }
section.alt { background: var(--soft); }
h2 { font-size: clamp(28px, 4vw, 38px); text-align: center; margin: 0 0 12px; letter-spacing: -0.01em; }
.sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 620px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 820px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.plan.pro { border: 2px solid var(--brand); }
.plan h3 { margin: 0 0 4px; }
.plan .price { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.plan li { margin: 4px 0; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc .date { color: var(--muted); margin-bottom: 28px; }
.doc h2 { text-align: left; font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text); }
.contact { background: var(--soft); border-radius: 18px; padding: 22px; margin: 26px 0; }

footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .navlinks a.hide-sm { display: none; }
  .shots img { max-width: 44vw; min-width: 0; width: 44vw; border-width: 5px; border-radius: 24px; }
  .shots img:nth-child(3) { display: none; }
}
