@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #1a1a1a;
  --fg: #ebebeb;
  --muted: #aeaeae;
  --card: #212121;
  --secondary: #262626;
  --border: #343434;
  --primary: #3fd98e;
  --on-primary: #082a1d;
  --header: 56px;
  scrollbar-gutter: stable;
  color: var(--fg);
  background: var(--bg);
  font-family: Inter, system-ui, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fff; --fg: #171717; --muted: #626262; --card: #fafafa;
  --secondary: #f2f2f2; --border: #dedede; --primary: #007e5f; --on-primary: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p, ul, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { background: transparent; border: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden], html:not(.js) .js-only { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header) + 18px); }
.icon { display: block; flex: none; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; top: 6px; left: 12px; padding: 10px; background: var(--bg); z-index: 20; }

header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); }
.nav-inner, .nav-links, .brand, .tools, .theme, .search-open { display: flex; align-items: center; }
.nav-inner { height: calc(var(--header) - 1px); max-width: 1600px; padding-inline: clamp(16px, 2vw, 32px); margin: auto; gap: 34px; }
.brand { gap: 6px; font-weight: 750; font-size: 23px; letter-spacing: -.07em; }
.brand img { border-radius: 6px; }
:root:not([data-theme="light"]) .brand img { filter: invert(1); }
.nav-links { gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a:hover, .nav-links [aria-current], .tools summary:hover, .github:hover { color: var(--fg); }
.tools { margin-left: auto; gap: 8px; }
.tools details { position: relative; }
.tools summary, .github { width: 32px; height: 36px; display: grid; place-items: center; color: var(--fg); }
.search-open, .theme { min-height: 34px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted); }
.search-open { width: clamp(130px, 17vw, 240px); gap: 7px; padding-inline: 10px 6px; font-size: 14px; }
.search-open .icon { width: 16px; height: 16px; }
kbd { margin-left: auto; border: 1px solid var(--border); border-radius: 5px; padding: 2px 5px; font: 12px ui-monospace, Consolas, monospace; }
.theme { gap: 1px; }
.theme .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; }
.theme[aria-pressed="true"] .icon:last-child, .theme[aria-pressed="false"] .icon:first-child { background: var(--border); color: var(--fg); }
.popover { position: absolute; z-index: 1; right: 0; top: calc(100% + 6px); width: max-content; min-width: 142px; padding: 5px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px #0004; }
.popover a { display: block; border-radius: 6px; padding: 9px 12px; font-size: 14px; }
.popover a:hover, .popover a[aria-current] { background: var(--secondary); }
.mobile-menu { display: none; }
.narrow, .wide, .about { width: 100%; margin: auto; padding-inline: 16px; }
.narrow { max-width: 1024px; }
.wide { max-width: 1152px; }
.about { max-width: 768px; }
.block { padding-block: 64px; }
.block h2 { margin-bottom: 40px; text-align: center; font-size: 24px; line-height: 1.33; font-weight: 650; letter-spacing: -.035em; }

.hero { text-align: center; padding: 64px 16px 16px; }
.badge { display: inline-block; border: 1px solid var(--border); background: var(--secondary); border-radius: 99px; padding: 6px 14px; color: var(--fg); font-size: 14px; font-weight: 550; line-height: 20px; }
.hero h1 { max-width: 768px; margin: 24px auto 0; font-size: 60px; line-height: 1; font-weight: 650; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 span { display: inline-block; }
.hero > p { max-width: 1152px; margin: 20px auto 0; color: var(--muted); font-size: 18px; line-height: 28px; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 9px 24px; border-radius: 8px; border: 1px solid var(--border); font-weight: 550; }
.button:hover { background: var(--secondary); }
.button.primary { color: var(--on-primary); background: var(--primary); border-color: transparent; }
.button.primary:hover { opacity: .9; }

.tour { max-width: 1280px; padding: 0 16px; margin: auto; position: relative; }
.stage { padding-top: 32px; }
.window, .shot { display: block; padding: 6px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); box-shadow: 0 25px 65px -26px #0008; }
.viewport { position: relative; overflow: hidden; border-radius: 12px; }
.slide { display: block; }
.slide img { width: 100%; aspect-ratio: 3 / 2; }
.slide:not(:first-child) { display: none; }
.tour-caption { display: none; }
.static-slides { margin-top: 12px; text-align: center; color: var(--muted); font-size: 14px; line-height: 2; }
.static-slides a:hover { color: var(--primary); }
.live .static-slides { display: none; }
.tour.live { height: calc(100svh - var(--header) + var(--travel)); }
.live .stage { position: sticky; top: var(--header); height: calc(100svh - var(--header)); padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; perspective: 2000px; perspective-origin: 50% 30%; }
.live .window {
  flex: none; width: min(100%, calc((100svh - var(--header) - 200px) * 1.5));
  transform-origin: center bottom;
  transform: translateY(calc((1 - var(--enter, 1)) * -20%)) rotateX(calc((1 - var(--enter, 1)) * 24deg)) scale(calc(.88 + .12 * var(--enter, 1)));
}
.live .slide:not(:first-child) { display: block; position: absolute; inset: 0; background: var(--card); transform: translateX(calc(100% - var(--reveal, 0%))); }
.live .slide:nth-child(2) { transform: none; clip-path: circle(var(--circle, 0%) at 95% 2%); }
.live .slide[aria-hidden="true"] { pointer-events: none; }
.live .tour-caption { min-height: 70px; display: block; max-width: 42rem; text-align: center; }
.tour-caption strong { font-size: clamp(19px, 1.8vw, 24px); }
.tour-caption p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.capabilities { position: relative; isolation: isolate; }
.capabilities::before { content: ""; position: absolute; z-index: -1; inset: 0 10% auto; height: 125px; background: radial-gradient(ellipse closest-side, color-mix(in srgb,var(--primary) 10%,transparent),transparent); }
.feature-grid, .faq-grid, .platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.card h3, .steps h3 { font-size: 16px; line-height: 1.5; font-weight: 600; }
.card p, .steps p { margin-top: 6px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.tile-icon { display: grid; place-items: center; width: 40px; height: 40px; background: color-mix(in srgb, var(--primary) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--card)); border-radius: 12px; color: var(--primary); }
.feature-grid .tile-icon { margin-bottom: 16px; }
.feature-grid .card:hover { border-color: color-mix(in srgb, var(--primary) 34%, var(--border)); }
.screen-row { display: grid; grid-template-columns: 1.7fr 1fr; align-items: center; gap: 48px; }
.screen-row + .screen-row { margin-top: 56px; }
.screen-row:nth-of-type(even) { grid-template-columns: 1fr 1.7fr; }
.screen-row:nth-of-type(even) .shot { order: 1; }
.shot img { width: 100%; border-radius: 10px; }
.shot { cursor: zoom-in; }
.screen-row h3 { font-size: 20px; letter-spacing: -.025em; line-height: 1.4; }
.screen-row p, .about p { color: var(--muted); line-height: 1.65; margin-top: 8px; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); counter-reset: step; list-style: none; padding: 0; gap: 1px; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; background: var(--border); }
.steps li { background: var(--card); padding: 24px; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 12px; font: 13px ui-monospace,Consolas,monospace; color: var(--primary); }
.about h2 { text-align: left; margin-bottom: 20px; }
.about p { font-size: 18px; }
.faq-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.faq-grid a, .download-content p a { display: inline-block; margin-top: 7px; font-size: 14px; color: var(--primary); text-underline-offset: 3px; }
.faq-grid a:hover, .download-content p a:hover, footer a:hover { text-decoration: underline; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .94em; }
footer { padding-bottom: 56px; color: var(--muted); font-size: 14px; }
footer > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 32px; }

.download-content { padding-block: 48px 64px; }
.download-content > h1 { font-size: 36px; font-weight: 650; letter-spacing: -.035em; }
.download-content > p { margin-top: 20px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.download-content > p a { margin: 0; }
.platforms { margin-block: 32px 24px; }
.platform h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.platform h2 small { margin-left: auto; color: var(--primary); font-size: 11px; font-weight: 500; }
.platform ul, .results { padding: 0; list-style: none; }
.platform ul { margin-top: 16px; }
.package-link { display: flex; align-items: center; gap: 9px; padding: 9px 6px; border-radius: 8px; font-size: 14px; }
.package-link:hover, .results a:hover, .results a:focus-visible { background: var(--secondary); }
.package-link code { padding: 3px 5px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); font-size: 11px; }
.package-link small { margin-left: auto; color: var(--muted); font-size: 11px; }

dialog { width: min(560px, calc(100% - 32px)); max-height: min(70svh, 550px); padding: 0; color: var(--fg); background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px #0005; }
dialog::backdrop { background: #08080885; }
html:has(dialog[open]) { overflow: hidden; }
.search-field { position: sticky; top: 0; display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--card); border-bottom: 1px solid var(--border); }
.search-field input { flex: 1; min-width: 0; color: var(--fg); background: transparent; border: none; outline: none; }
.search-field button { padding: 5px; }
.results { padding: 6px; }
.results a { display: block; padding: 10px 12px; font-size: 14px; border-radius: 6px; }
.empty { padding: 18px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .nav-inner { gap: 20px; }
  .nav-links { gap: 14px; }
  .feature-grid, .platforms { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .screen-row, .screen-row:nth-of-type(even) { grid-template-columns: 1fr; gap: 18px; }
  .screen-row:nth-of-type(even) .shot { order: 0; }
}
@media (max-width: 720px) {
  .nav-inner { padding-inline: 16px; }
  .nav-links, .tools > .language, .tools > .theme, .tools > .github, .search-open span, .search-open kbd { display: none; }
  .mobile-menu { display: block; }
  .tools { gap: 2px; }
  .mobile-menu .theme { margin: 4px 10px 8px; }
  .search-open { justify-content: center; width: 34px; height: 36px; padding: 0; background: transparent; border: 0; color: var(--fg); }
  .search-open .icon { width: 19px; height: 19px; }
  .hero h1 { font-size: 36px; line-height: 1.12; }
  .hero > p { max-width: 580px; }
  .live .stage { gap: 20px; }
  .stage { padding-top: 24px; }
}
@media (max-width: 639px) {
  .feature-grid, .faq-grid, .platforms, .steps { grid-template-columns: 1fr; }
  footer > div { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce), print {
  .tour.live, .live .stage { height: auto; }
  .live .stage { position: static; display: block; padding-top: 24px; }
  .live .window { width: 100%; transform: none; }
  .live .tour-caption, .live .slide:not(:first-child) { display: none; }
}
