﻿:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --card: #fff;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --line: #d2d2d7;
  --accent: #0066cc;
  --hover: #e8e8ed;
  --code: #f5f5f7;
  --nav-surface: rgba(255, 255, 255, .82);
  --shadow: 0 24px 70px rgba(20, 40, 70, .14);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #161617;
  --card: #222224;
  --text: #f5f5f7;
  --secondary: #a1a1a6;
  --line: #424245;
  --accent: #75b7ff;
  --hover: #333336;
  --code: #1b1b1d;
  --nav-surface: rgba(22, 22, 23, .84);
  --shadow: 0 24px 70px rgba(0, 0, 0, .4);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; top: -80px; left: 16px; z-index: 30; background: var(--card); padding: 12px 20px; border-radius: 10px; }
.skip:focus { top: 8px; }
.wrap { width: min(100% - 96px, 1120px); margin: 0 auto; }
.site-header { background: var(--bg); }
.global-bar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: 12px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 16px; font-weight: 600; }
.brand img { display: block; }
.global-bar nav { display: flex; gap: 30px; }
.global-bar nav a { color: var(--secondary); }
/* A small, stationary blur surface; no refraction, displacement or animated filters. */
.top-nav { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .top-nav { background: var(--nav-surface); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
}
.local-bar { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: 24px; }
.product-name { color: var(--text); font-size: 25px; font-weight: 650; letter-spacing: -.8px; }
.nav-links { display: flex; align-items: center; gap: 27px; font-size: 12px; }
.nav-links > a { color: var(--text); }
.nav-links > a[aria-current=page]:not(.nav-cta) { color: var(--secondary); }
.nav-links button { color: var(--text); background: transparent; border: 0; padding: 10px 0; font-size: 12px; }
.nav-links .nav-cta { background: #0071e3; color: #fff; padding: 7px 17px; border-radius: 30px; }
.nav-cta:hover, .button:hover { background: #0077ed; text-decoration: none; }
.hero { padding-top: 80px; background: var(--card); text-align: center; }
.hero-logo { display: block; width: 104px; height: 104px; margin: 0 auto 26px; }
.eyebrow { font-size: 17px; font-weight: 600; margin: 0 0 20px; }
.hero .eyebrow { font-size: 22px; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.045em; margin: 0; }
.hero h1 { font-size: clamp(52px, 6.4vw, 90px); font-weight: 700; line-height: 1.12; }
.hero h1 span { color: #147ce5; }
:root[data-theme=dark] .hero h1 span { color: #82bcff; }
.hero-intro { color: var(--secondary); font-size: 23px; font-weight: 500; line-height: 1.65; margin: 28px 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; }
.hero .actions { justify-content: center; }
.button { display: inline-block; padding: 12px 25px; border-radius: 30px; background: #0071e3; color: #fff; font-size: 17px; }
.text-link { font-size: 19px; }
.hero-platforms { color: var(--secondary); font-size: 12px; letter-spacing: .04em; margin: 22px 0 0; }
.hero-visual { position: relative; padding-top: 66px; padding-bottom: 52px; }
.app-preview { display: block; max-width: 1020px; margin: auto; border-radius: 13px; box-shadow: var(--shadow); }
.app-preview img { display: block; width: 100%; height: auto; border-radius: inherit; }
.theme-dark { display: none !important; }
:root[data-theme=dark] .theme-light { display: none !important; }
:root[data-theme=dark] .theme-dark { display: block !important; }
.hero figcaption, .caption { font-size: 12px; color: var(--secondary); margin: 24px 0 0; line-height: 1.6; }
.section { padding: 110px 0; scroll-margin-top: 88px; }
.section h2 { font-size: clamp(36px, 4.5vw, 58px); font-weight: 650; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; margin-top: 72px; }
.feature-symbol { display: block; color: var(--accent); font-weight: 650; letter-spacing: -.05em; font-size: 29px; line-height: 1; margin-bottom: 27px; }
.feature h3 { font-size: 26px; letter-spacing: -.03em; line-height: 1.3; }
.feature p { color: var(--secondary); font-size: 17px; margin: 20px 0; }
.feature a { font-size: 15px; }
.design-section { background: var(--card); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 55px; }
.section-heading > p { color: var(--secondary); font-size: 17px; margin: 0 0 3px; }
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.showcase { border-radius: 24px; padding: 42px 32px 32px; background: var(--bg); min-width: 0; }
.showcase-copy { padding: 0 8px 28px; }
.showcase .eyebrow { color: var(--secondary); font-size: 14px; margin-bottom: 16px; }
.showcase h3 { font-size: 36px; font-weight: 650; }
.showcase p:not(.eyebrow) { color: var(--secondary); font-size: 16px; margin: 20px 0 16px; }
.showcase a { font-size: 15px; }
.showcase > a { display: block; }
.showcase img { display: block; width: 100%; height: auto; border-radius: 9px; }
.ssh-showcase { margin-top: 100px; }
.caption { text-align: center; margin-top: 34px; }
.code-layout { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 65px; }
.code-copy > p:not(.eyebrow) { color: var(--secondary); margin: 27px 0; }
.code-copy .actions { gap: 18px; }
.code-copy .text-link { font-size: 16px; }
.code-copy .note { font-size: 12px; margin-bottom: 0; }
.code-window { min-width: 0; background: #1d1d1f; border-radius: 18px; box-shadow: var(--shadow); color: #e8e8ed; }
.code-title { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; color: #a1a1a6; font-size: 11px; border-bottom: 1px solid #38383c; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff6057; }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .88em; }
pre { overflow-x: auto; padding: 22px; background: var(--code); border-radius: 12px; line-height: 1.8; font-size: 13px; tab-size: 4; }
pre code { font-size: inherit; }
.code-window pre { background: transparent; margin: 0; padding: 28px 25px; font-size: 12px; }
.syntax-muted { color: #b3b3b8; }
.syntax-string { color: #fc9b8e; }
.syntax-blue { color: #86c5ff; }
.syntax-number { color: #dac5ff; }
.build-command { margin-top: 64px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 65px; align-items: start; }
.build-command > span { color: var(--secondary); font-size: 14px; padding-top: 18px; }
.build-command pre { background: var(--card); margin: 0; font-size: 12px; }
.tutorials-section { background: var(--card); }
.tutorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tutorial { display: flex; flex-direction: column; align-items: start; border-radius: 24px; background: var(--bg); padding: 32px; color: var(--text); transition: transform .2s ease; }
.tutorial:hover { text-decoration: none; transform: translateY(-4px); }
.tutorial-index { font-size: 12px; color: var(--secondary); font-weight: 600; margin-bottom: 30px; }
.tutorial h3 { font-size: 27px; line-height: 1.3; font-weight: 650; }
.tutorial p { font-size: 14px; color: var(--secondary); margin: 22px 0 28px; }
.round-arrow { margin-top: auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: var(--card); font-size: 21px; }
.browse-wiki { text-align: center; margin: 42px 0 0; }
.help-layout { display: grid; grid-template-columns: 1fr 1.65fr; gap: 80px; }
.questions { min-width: 0; }
details { border-bottom: 1px solid var(--line); }
summary { padding: 24px 32px 24px 0; cursor: pointer; font-size: 18px; font-weight: 600; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; font-size: 24px; top: 18px; font-weight: 400; color: var(--secondary); }
details[open] summary::after { content: '−'; }
details p { font-size: 15px; color: var(--secondary); margin: 0 0 24px; }
.site-footer { background: var(--bg); color: var(--secondary); font-size: 12px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 24px; padding-bottom: 26px; }
.site-footer a { color: inherit; }
.site-footer .footer-links { justify-content: start; border-bottom: 1px solid var(--line); padding-top: 32px; }
/* The Wiki keeps its reading layout and original repository Markdown routing. */
.wiki-layout { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 48px; max-width: 1160px; padding: 54px 40px 80px; margin: 0 auto; align-items: start; }
.sidebar { position: sticky; top: 100px; max-height: calc(100dvh - 125px); overflow-y: auto; scrollbar-width: thin; font-size: 14px; padding: 0 6px 6px; }
.wiki-label { display: block; color: var(--text); font-size: 19px; font-weight: 600; margin-bottom: 24px; }
.search { display: block; margin-bottom: 18px; }
.search input { width: 100%; min-width: 0; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; font-size: 13px; }
.sidebar nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--secondary); }
.sidebar nav a[aria-current=page] { background: var(--hover); font-weight: 600; color: var(--text); }
.repo-link { display: block; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
#no-chapters { color: var(--secondary); }
.reading { background: var(--card); border-radius: 20px; padding: 30px 40px 40px; min-width: 0; min-height: 65vh; }
.doc-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--secondary); font-size: 12px; margin-bottom: 32px; }
.doc-toolbar a { color: var(--secondary); }
#status:not(:empty) { color: var(--secondary); padding: 24px 0; }
#retry { margin-bottom: 20px; border: 0; border-radius: 20px; color: #fff; background: #0071e3; padding: 9px 18px; }
.markdown { overflow-wrap: anywhere; font-size: 16px; line-height: 1.85; }
.markdown > :first-child { margin-top: 0; }
.markdown h1 { font-size: 36px; font-weight: 650; margin: 0 0 28px; }
.markdown h2 { font-size: 26px; font-weight: 600; margin: 48px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.markdown h3 { font-size: 21px; font-weight: 600; margin: 32px 0 14px; }
.markdown h4 { font-size: 17px; }
.markdown p, .markdown ul, .markdown ol { margin: 18px 0; }
.markdown li { margin: 6px 0; }
.markdown :not(pre) > code { background: var(--code); padding: 2px 5px; border-radius: 4px; }
.table-scroll { overflow-x: auto; margin: 20px 0; overscroll-behavior-inline: contain; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 100px; }
th { background: var(--code); font-weight: 600; }
.markdown blockquote { border-left: 3px solid var(--line); margin: 24px 0; padding: 1px 20px; color: var(--secondary); }
.markdown img { max-width: 100%; height: auto; }
.markdown hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.markdown :is(h1, h2, h3, h4, h5, h6) { scroll-margin-top: 100px; }
.outline { display: none; }
.pager { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; font-size: 14px; }
.pager a { max-width: 50%; }
.pager a:last-child { margin-left: auto; text-align: right; }
.mobile-menu { display: none; }
.noscript { text-align: center; margin: 30px; }
@media (min-width: 1400px) {
  .wiki-layout { max-width: 1400px; grid-template-columns: 185px minmax(0, 1fr) 165px; gap: 36px; }
  .outline { display: block; position: sticky; top: 100px; max-height: calc(100dvh - 125px); overflow-y: auto; font-size: 12px; line-height: 1.65; }
  .outline strong { display: block; margin-bottom: 14px; font-weight: 600; color: var(--secondary); }
  .outline a { display: block; padding: 5px 0; }
  .outline a.sub { padding-left: 12px; }
}
@media (max-width: 1000px) {
  .feature-grid { gap: 30px; }
  .feature h3 { font-size: 23px; }
  .section-heading { align-items: start; flex-direction: column; gap: 26px; }
  .code-layout { grid-template-columns: 1fr; gap: 40px; }
  .code-window { width: 100%; }
  .build-command { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .help-layout { grid-template-columns: 1fr 1.5fr; gap: 40px; }
  .tutorial { padding: 26px; }
  .tutorial h3 { font-size: 23px; }
  .wiki-layout { gap: 24px; padding-left: 24px; padding-right: 24px; }
  .reading { padding: 28px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .global-bar { min-height: 44px; }
  .global-bar nav { gap: 18px; font-size: 11px; }
  .local-bar { min-height: 60px; gap: 12px; }
  .product-name { font-size: 23px; }
  .nav-links { gap: 15px; font-size: 11px; }
  .nav-links button { font-size: 11px; }
  .nav-links .nav-cta { padding: 6px 12px; }
  .hero { padding-top: 58px; }
  .hero-logo { width: 80px; height: 80px; margin-bottom: 22px; }
  .hero .eyebrow { font-size: 18px; }
  .hero h1 { font-size: clamp(44px, 11vw, 65px); }
  .hero-intro { font-size: 17px; margin: 24px 0; }
  .button { padding: 11px 22px; font-size: 15px; }
  .text-link { font-size: 17px; }
  .hero-visual { padding-top: 44px; padding-bottom: 38px; }
  .app-preview { border-radius: 8px; }
  .hero figcaption { font-size: 11px; margin-top: 20px; }
  .section { padding: 68px 0; }
  .section h2 { font-size: 37px; }
  .eyebrow { font-size: 14px; margin-bottom: 16px; }
  .feature-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 42px; }
  .feature { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
  .feature:last-child { padding-bottom: 0; border-bottom: 0; }
  .feature-symbol { margin-bottom: 18px; }
  .feature h3 { font-size: 26px; }
  .feature p { max-width: 440px; margin: 16px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading > p { font-size: 15px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase { padding: 30px 22px 22px; border-radius: 20px; }
  .showcase h3 { font-size: 32px; }
  .showcase-copy { padding-left: 4px; padding-right: 4px; }
  .ssh-showcase { margin-top: 0; }
  .caption { font-size: 11px; }
  .code-copy > p:not(.eyebrow) { font-size: 16px; }
  .code-copy .note { font-size: 11px; }
  .code-window pre { font-size: 11px; padding: 22px 16px; }
  .build-command pre { font-size: 10px; padding: 16px; }
  .tutorial-grid { grid-template-columns: 1fr; gap: 16px; }
  .tutorial { padding: 28px; }
  .tutorial-index { margin-bottom: 20px; }
  .tutorial h3 { font-size: 28px; }
  .tutorial p { margin: 18px 0 24px; }
  .help-layout { grid-template-columns: 1fr; gap: 26px; }
  summary { font-size: 16px; }
  .site-footer .wrap { gap: 14px 20px; font-size: 11px; }
  .wiki-layout { display: block; padding: 24px 16px 48px; }
  .mobile-menu { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; padding: 12px 16px; font-size: 14px; }
  .mobile-menu::after { content: '+'; font-size: 20px; }
  .mobile-menu[aria-expanded=true]::after { content: '−'; }
  .sidebar { display: none; position: static; max-height: 60dvh; padding: 20px; background: var(--card); border-radius: 16px; margin-bottom: 16px; }
  .sidebar.open { display: block; }
  .reading { padding: 24px 20px 30px; border-radius: 16px; }
  .markdown { font-size: 15px; }
  .markdown h1 { font-size: 30px; }
  .markdown h2 { font-size: 24px; }
  .markdown pre { font-size: 11px; padding: 16px; }
  th, td { padding: 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .top-nav { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
