:root {
  --bg: #f7f6f3;
  --panel: #ffffff;
  --text: #17171a;
  --muted: #66666d;
  --faint: #9a9aa0;
  --line: #e6e4df;
  --line-strong: #d6d3cc;
  --accent: #e8a200;
  --accent-ink: #b87d00;
  --solid: #17171a;
  --solid-ink: #ffffff;
  --shadow: 0 30px 80px -30px rgba(23, 23, 26, 0.35), 0 2px 6px rgba(23, 23, 26, 0.06);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, "JetBrains Mono", "DejaVu Sans Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113; --panel: #1a1a1d; --text: #f2f1ee; --muted: #a3a3a9; --faint: #74747b;
    --line: #2a2a2e; --line-strong: #38383d; --accent: #feba01; --accent-ink: #feba01;
    --solid: #f2f1ee; --solid-ink: #111113; --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111113; --panel: #1a1a1d; --text: #f2f1ee; --muted: #a3a3a9; --faint: #74747b;
  --line: #2a2a2e; --line-strong: #38383d; --accent: #feba01; --accent-ink: #feba01;
  --solid: #f2f1ee; --solid-ink: #111113; --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
svg { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
.wrap.wide { width: min(1240px, 100% - 48px); }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
header.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 22%; }
.links { display: flex; gap: 26px; font-size: 15px; }
.links a { text-decoration: none; color: var(--muted); }
.links a:hover { color: var(--text); }
.end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 500 14px var(--sans); cursor: pointer; }
.icon-btn { text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.icon-btn:hover { color: var(--text); background: var(--panel); }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .moon { display: none; }
}
.gh { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; text-decoration: none; font-size: 15px; font-weight: 500; }
.gh:hover { background: var(--panel); }

/* Hero */
.hero { padding: 104px 0 72px; text-align: center; }
h1 { margin: 0; font-size: clamp(44px, 7.4vw, 84px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 750; }
.lede { max-width: 640px; margin: 26px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.cta { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--faint); }

.cmd { display: flex; align-items: center; height: 50px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); overflow: hidden; max-width: 100%; }
.cmd-tabs { display: flex; height: 100%; border-right: 1px solid var(--line); }
.cmd-tabs button { border: 0; background: transparent; padding: 0 14px; white-space: nowrap; font: 500 14px var(--sans); color: var(--faint); cursor: pointer; }
.cmd-tabs button[aria-selected="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.cmd-line { padding: 0 6px 0 16px; font: 14px var(--mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cmd-line .dim { color: var(--faint); }
.copy { display: grid; place-items: center; width: 44px; height: 100%; border: 0; background: transparent; color: var(--faint); cursor: pointer; }
.copy:hover { color: var(--text); }
.copy.done { color: #2f9e58; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: 600 16px var(--sans); text-decoration: none; white-space: nowrap; transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }

.app { margin: 64px 0 0; }
.app-frame { position: relative; border-radius: 16px; overflow: hidden; background: #0b0d14; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 1400 / 820; }
.app-frame video { width: 100%; height: 100%; object-fit: cover; }
.watch { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(20, 20, 24, 0.78); color: #fff; font: 600 14px var(--sans); cursor: pointer; backdrop-filter: blur(8px); }
.watch .dim { color: rgba(255, 255, 255, 0.6); font-weight: 500; }
.watch:hover { background: rgba(20, 20, 24, 0.92); }
.app figcaption { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* Sections */
section { border-top: 1px solid var(--line); }
section.hero { border-top: 0; }
#uses, .split, .inside, .closing { padding: 112px 0; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.sub { margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.side { position: sticky; top: 104px; }
.side h2 { font-size: clamp(28px, 3.2vw, 36px); text-wrap: balance; }
.side p { margin: 16px 0 0; color: var(--muted); }
.more { display: inline-block; margin-top: 22px; font-weight: 600; font-size: 15px; text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

.features { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.features li { display: grid; grid-template-columns: 52px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.features .n { font: 600 13px var(--mono); color: var(--accent-ink); padding-top: 4px; }
.features h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.features p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.tabbar { display: flex; align-items: center; justify-content: space-between; margin-top: 36px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 7px; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.pager { font: 13px var(--mono); color: var(--faint); }
.cards { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card h3 { margin: 16px 0 0; font-size: 17px; font-weight: 650; }
.card p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.shot { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #0b0d14; border: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .shot img { transform: scale(1.03); }
.chip { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 15, 18, 0.72); color: #fff; font: 600 12px var(--mono); backdrop-filter: blur(6px); }
.inside h2, .inside .sub { max-width: 720px; text-wrap: balance; }
.real { margin: 48px 0 0; }
.real-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.real-frame img { display: block; width: 100%; height: auto; }
.real figcaption { margin-top: 14px; font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 10px; }
.chip-static { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font: 600 11px var(--mono); }
.note { margin: 24px 0 0; font-size: 13px; color: var(--faint); }

.release { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 28px; }
.release-head { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.release-head img { border-radius: 22%; }
.release-head h3 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.release-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.release-head .btn { margin-left: auto; }
.steps { list-style: none; counter-reset: s; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #17171a; font: 700 14px var(--sans); }
.steps b { font-weight: 650; }
.steps span { color: var(--muted); font-size: 15px; }
.notes { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.notes h4 { margin: 0 0 8px; font-size: 14px; font-weight: 650; }
.notes h4 + ul { margin-bottom: 18px; }
.notes ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.notes li + li { margin-top: 4px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--faint); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: -6px 0 20px; color: var(--muted); max-width: 60ch; }
.side a { color: var(--text); }

.closing { text-align: center; }
.closing p { margin: 14px auto 30px; max-width: 520px; color: var(--muted); }

/* Guides share the product page's type, color and spacing. */
.guide-links { border-top: 1px solid var(--line); }
.guide-links article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.guide-links h3 { margin: 0; font-size: 20px; line-height: 1.4; }
.guide-links a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.guide-links p { margin: 10px 0 0; color: var(--muted); }
.reading { width: min(760px, 100% - 48px); margin: 0 auto; padding: 48px 0 88px; font-size: 18px; line-height: 1.85; }
.breadcrumbs { margin-bottom: 34px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { text-underline-offset: 4px; }
.reading h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.25; text-wrap: balance; letter-spacing: -0.025em; }
.reading h2 { margin: 48px 0 16px; font-size: clamp(24px, 3vw, 28px); line-height: 1.4; text-wrap: balance; }
.reading h3 { margin: 32px 0 12px; font-size: 21px; line-height: 1.4; }
.reading p { margin: 16px 0; }
.reading .article-meta { margin-top: 18px; color: var(--muted); font-size: 14px; }
.reading .answer { margin: 24px 0 32px; font-size: 21px; }
.reading a { text-underline-offset: 4px; }
.reading li + li { margin-top: 12px; }
.reading ol, .reading ul { padding-left: 1.5em; }
.reading figure { margin: 32px 0; }
.reading figure img { width: 100%; height: auto; border-radius: 12px; }
.reading figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
.reading table { width: 100%; min-width: 510px; border-collapse: collapse; font-size: 16px; text-align: left; }
.reading th, .reading td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.reading th { font-weight: 650; }
.reading th:first-child { width: 21%; }
.reading .sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.reading .related { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.guide-nav { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
.guide-nav a { text-decoration: none; }
.guide-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
::selection { background: var(--accent); color: #17171a; }

footer { border-top: 1px solid var(--line); }
footer .bar { min-height: 76px; flex-wrap: wrap; gap: 14px 28px; }
footer .fine { margin: 0 0 0 auto; }

dialog.player { width: min(1100px, 100vw - 32px); padding: 0; border: 0; border-radius: 14px; background: #000; overflow: hidden; }
dialog.player::backdrop { background: rgba(0, 0, 0, 0.72); }
dialog.player video { width: 100%; aspect-ratio: 16 / 9; }
dialog.player .close { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 22px; cursor: pointer; }

@media (max-width: 860px) {
  .links { display: none; }
  .grid2 { grid-template-columns: 1fr; gap: 32px; }
  .side { position: static; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  #uses, .split, .closing { padding: 72px 0; }
  .release-head { flex-wrap: wrap; }
  .release-head .btn { margin-left: 0; width: 100%; }
  .gh span { display: none; }
  footer .fine { margin-left: 0; }
}
@media (max-width: 520px) {
  .bar { gap: 12px; }
  .end .icon-btn, .end .gh { padding-inline: 6px; }
  .end [data-language-switch] svg { display: none; }
  .cmd { width: 100%; }
  .cta .btn { width: 100%; }
  .watch { left: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot img { transition: none; }
}
