:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #607087;
  --faint: #8d99aa;
  --line: #dfe5ec;
  --line-strong: #cbd4df;
  --paper: #ffffff;
  --soft: #f6f8fa;
  --blue: #1769c2;
  --blue-dark: #0e529d;
  --blue-soft: #eaf3fd;
  --navy: #132b4e;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; color: #fff; background: var(--navy); border-radius: 6px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(223, 229, 236, .9); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 16px; letter-spacing: -.01em; }
.brand img { display: block; border-radius: 8px; }
.brand strong { margin-right: 4px; }
.desktop-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; color: #34445a; font-size: 14px; }
.desktop-nav a, footer a { transition: color .2s ease; }
.desktop-nav a:hover, footer a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.language-switch button { min-width: 42px; padding: 5px 8px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.language-switch button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(20, 32, 51, .1); }
.github-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; }
.github-icon svg { width: 18px; fill: var(--ink); }

.hero { padding: 92px 0 76px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 90px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--blue); font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #36a269; box-shadow: 0 0 0 4px #eaf7f0; }
h1 { margin: 0; max-width: 760px; font-size: clamp(48px, 6.3vw, 78px); line-height: 1.08; letter-spacing: -.055em; font-weight: 720; }
.hero-lead { max-width: 680px; margin: 28px 0 34px; color: var(--muted); font-size: 19px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 19px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 650; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--ink); border-color: var(--line-strong); background: #fff; }
.button-secondary:hover { border-color: #aab7c7; background: var(--soft); }
.release-note { margin: 18px 0 0; color: var(--faint); font-size: 12px; }
.release-note strong { color: var(--muted); }
.dot-separator { margin: 0 8px; }
.hero-aside { display: flex; flex-direction: column; gap: 22px; }
.icon-card { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 24px; background: var(--soft); }
.icon-card img { width: 74%; border-radius: 23%; filter: drop-shadow(0 14px 20px rgba(20, 47, 83, .13)); }
.platform-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.platform-list div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.platform-list dt { font-size: 12px; font-weight: 680; }
.platform-list dd { margin: 4px 0 0; color: var(--faint); font-size: 10px; }

.product-shot { padding: 74px 0 88px; background: var(--soft); border-bottom: 1px solid var(--line); }
.window-frame { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; box-shadow: 0 24px 60px rgba(24, 43, 68, .12); }
.window-bar { height: 46px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 15px; color: #6c788a; border-bottom: 1px solid var(--line); font-size: 12px; }
.window-brand { display: flex; align-items: center; gap: 7px; color: #28384d; }
.window-brand img { width: 22px; height: 22px; border-radius: 5px; }
.window-controls { justify-self: end; display: flex; gap: 12px; }
.window-controls i { width: 10px; height: 10px; border: 1px solid #9ba6b5; border-radius: 50%; }
.app-layout { min-height: 570px; display: grid; grid-template-columns: 245px 1fr; }
.app-sidebar { border-right: 1px solid var(--line); background: #f7f8fa; }
.sidebar-tabs { height: 47px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; border-bottom: 1px solid var(--line); color: #68768a; text-align: center; font-size: 12px; }
.sidebar-tabs b { height: 47px; display: grid; place-items: center; color: var(--ink); border-bottom: 2px solid var(--blue); }
.search-placeholder { margin: 13px 12px 9px; padding: 7px 9px; color: #8b97a7; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 11px; }
.file-tree { margin: 0; padding: 0 7px; list-style: none; color: #506077; font-size: 12px; line-height: 2.5; }
.file-tree li { padding: 0 9px; border-radius: 5px; white-space: nowrap; }
.file-tree .folder { color: var(--ink); font-weight: 650; }
.file-tree .selected { color: #135da9; background: #e6eef8; }
.editor-preview { width: min(760px, calc(100% - 80px)); margin: 0 auto; padding: 66px 0 80px; font-family: ui-serif, Georgia, "Noto Serif SC", serif; }
.editor-preview h2 { margin: 0 0 22px; font-size: 33px; letter-spacing: -.03em; }
.editor-preview h2 span { margin-right: 8px; color: #a9b4c1; font-size: 23px; font-weight: 500; }
.editor-preview p { color: #3f4c5c; line-height: 1.8; }
.editor-preview blockquote { margin: 28px 0; padding: 12px 0 12px 17px; color: #556274; border-left: 3px solid #b9c5d3; line-height: 1.8; }
.editor-preview h3 { margin-top: 32px; font-size: 22px; }
.mock-columns { display: grid; grid-template-columns: 1fr 1.35fr; gap: 24px; align-items: start; }
.mock-columns ul { margin: 7px 0; padding-left: 22px; line-height: 2.15; }
.mock-columns pre { position: relative; overflow: hidden; margin: 0; padding: 30px 16px 14px; border: 1px solid #d8e0e8; border-radius: 7px; background: #f5f7f9; color: #26384e; font: 12px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-lang { position: absolute; top: 8px; left: 12px; color: #8290a3; font: 9px ui-sans-serif, sans-serif; text-transform: uppercase; }
.mock-columns code em { display: inline-block; width: 18px; color: #a0aab7; font-style: normal; user-select: none; }
.editor-preview table { width: 100%; margin-top: 28px; border-collapse: collapse; font: 12px ui-sans-serif, sans-serif; }
.editor-preview th, .editor-preview td { padding: 9px 12px; border: 1px solid #d7dfe8; text-align: left; }
.editor-preview th { background: #f6f8fa; }
.status-bar { height: 25px; display: flex; align-items: center; gap: 22px; padding: 0 13px; color: #fff; background: #1268b8; font-size: 10px; }
.screen-gallery-heading { display: grid; grid-template-columns: 52px 1fr; gap: 22px; margin: 74px 0 32px; }
.screen-gallery-heading h2 { margin: -7px 0 10px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; }
.screen-gallery-heading p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.screen-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.screen-card { overflow: hidden; display: grid; grid-template-columns: 190px 1fr; min-height: 330px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.screen-card-wide { grid-column: 1 / -1; grid-template-columns: 270px 1fr; min-height: 390px; }
.screen-card-copy { padding: 28px 24px; border-right: 1px solid var(--line); }
.screen-card-copy > span { color: var(--blue); font: 650 11px ui-monospace, monospace; }
.screen-card-copy h3 { margin: 58px 0 12px; font-size: 19px; }
.screen-card-wide .screen-card-copy h3 { margin-top: 108px; }
.screen-card-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.mini-window { position: relative; overflow: hidden; margin: 24px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; box-shadow: 0 10px 25px rgba(26, 48, 76, .08); }
.mini-titlebar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 11px; color: #8793a3; border-bottom: 1px solid var(--line); background: #fafbfc; font-size: 9px; }
.mini-titlebar i { width: 7px; height: 7px; border: 1px solid #9ca8b7; border-radius: 50%; }
.mini-titlebar span { margin-left: auto; }
.table-shot { padding-bottom: 30px; }
.table-toolbar { height: 42px; display: flex; align-items: center; gap: 5px; padding: 0 14px; }
.table-toolbar button { width: 27px; height: 27px; padding: 0; color: #68778a; border: 0; border-radius: 5px; background: transparent; }
.table-toolbar button:hover { background: #eef2f6; }
.table-shot table { width: calc(100% - 28px); margin: 0 14px; border-collapse: collapse; color: #35455a; font-size: 12px; }
.table-shot th, .table-shot td { height: 52px; padding: 9px 13px; border: 1px solid #d7dfe8; text-align: left; }
.table-shot th { color: var(--ink); background: #f4f7fa; }
.table-shot tr:nth-child(2) td:first-child, .table-shot tr:nth-child(2) td:nth-child(2) { background: #e8f2fd; box-shadow: inset 0 0 0 1px #73a8dd; }
.table-shot b { color: #2c7451; }
.code-shot { background: #f5f7f9; }
.code-shot .mini-titlebar { background: #fff; }
.code-head { height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #66768a; font-size: 10px; }
.code-head span { padding: 5px 9px; border-radius: 12px; background: #e8edf2; }
.code-head button { padding: 4px 8px; color: #66768a; border: 0; background: transparent; font-size: 9px; }
.code-shot pre { margin: 0; padding: 10px 14px 20px; font: 11px/2 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.code-shot pre em { display: inline-block; width: 25px; color: #97a4b3; font-style: normal; }
.code-shot pre code { color: #33445a; }
.code-shot pre b { color: #6d4ba3; }
.code-shot pre i { color: #1769c2; font-style: normal; }
.code-shot pre s { color: #a55438; text-decoration: none; }
.search-shot { padding-bottom: 18px; background: #f8f9fb; }
.search-shot .mini-titlebar { background: #fff; }
.search-box { height: 35px; display: flex; align-items: center; justify-content: space-between; margin: 13px; padding: 0 10px; color: #304158; border: 1px solid #8bb4dd; border-radius: 5px; background: #fff; font-size: 10px; }
.search-box kbd { color: #8793a3; font: 9px ui-monospace, monospace; }
.search-summary { margin: 0 14px 9px; color: #7b8899; font-size: 9px; }
.result-group { margin: 0 10px 7px; padding: 9px 10px; border-radius: 5px; background: #fff; box-shadow: 0 1px 0 rgba(30,48,70,.05); }
.result-group strong { color: #2b3b50; font-size: 10px; }
.result-group p { overflow: hidden; margin: 7px 0 0; color: #53647a; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.result-group p span { display: inline-block; width: 20px; color: #9aa6b4; }

.section { padding: 104px 0; }
.section-heading { display: grid; grid-template-columns: 52px 1fr; gap: 22px; margin-bottom: 54px; }
.section-index { color: var(--blue); font: 650 12px ui-monospace, monospace; letter-spacing: .08em; }
.section h2 { margin: -7px 0 12px; font-size: clamp(32px, 4vw, 48px); line-height: 1.18; letter-spacing: -.045em; }
.section-heading p, .workflow-grid > div > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid article { min-height: 240px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-icon { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 38px; color: var(--blue); border: 1px solid #cbd9e8; border-radius: 7px; background: var(--blue-soft); font: 650 13px ui-monospace, monospace; }
.feature-grid h3 { margin: 0 0 12px; font-size: 18px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.workflow-section { border-block: 1px solid var(--line); background: var(--soft); }
.workflow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; }
.workflow-grid .section-index { display: block; margin-bottom: 32px; }
.workflow-grid ol { margin: 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }
.workflow-grid li { display: grid; grid-template-columns: 52px 1fr; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.workflow-grid li > span { color: var(--blue); font: 650 12px ui-monospace, monospace; }
.workflow-grid strong { font-size: 15px; }
.workflow-grid li p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.download-section { padding-bottom: 120px; }
.release-state { color: var(--blue); white-space: nowrap; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.download-card { min-height: 280px; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--line); border-radius: 10px; }
.download-card.featured { border-color: #9dbde0; box-shadow: inset 0 3px 0 var(--blue); }
.download-card h3 { margin: 24px 0 7px; font-size: 23px; }
.download-card p { margin: 0; color: var(--muted); font-size: 13px; }
.download-card .button { width: 100%; margin-top: auto; }
.platform-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy); font-size: 28px; font-weight: 700; }
.platform-mark.windows { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; transform: skewY(-5deg); }
.platform-mark.windows span { width: 15px; height: 15px; background: var(--blue); }
.platform-mark.apple { font-size: 24px; }
.platform-mark.linux { font: 700 34px ui-monospace, monospace; }
.download-footnote { margin: 24px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.download-footnote a { color: var(--blue); font-weight: 650; }

footer { padding: 34px 0; border-top: 1px solid var(--line); color: #526176; background: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; font-size: 12px; }
.footer-inner p { margin: 0; text-align: center; }
.footer-inner > div:last-child { justify-self: end; display: flex; gap: 22px; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .hero { padding-top: 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-aside { display: grid; grid-template-columns: 220px 1fr; align-items: center; }
  .app-layout { grid-template-columns: 180px 1fr; }
  .editor-preview { width: calc(100% - 48px); padding-top: 48px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-card { grid-template-columns: 160px 1fr; }
  .screen-card-wide { grid-template-columns: 220px 1fr; }
  .workflow-grid { gap: 55px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 30px), var(--max-width)); }
  .header-inner { height: 60px; }
  .github-icon { display: none; }
  h1 { font-size: 46px; }
  .hero-lead { font-size: 16px; }
  .hero-aside { grid-template-columns: 120px 1fr; gap: 18px; }
  .icon-card { border-radius: 16px; }
  .platform-list { grid-template-columns: 1fr; padding: 0; border-top: 0; }
  .platform-list div { display: flex; justify-content: space-between; padding: 8px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .app-layout { min-height: 440px; grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .editor-preview { width: calc(100% - 34px); padding: 36px 0 50px; }
  .editor-preview h2 { font-size: 26px; }
  .mock-columns { grid-template-columns: 1fr; }
  .mock-columns ul { display: none; }
  .product-shot { padding: 42px 0 58px; }
  .screen-gallery-heading { grid-template-columns: 34px 1fr; gap: 10px; margin-top: 52px; }
  .screen-gallery { grid-template-columns: 1fr; }
  .screen-card, .screen-card-wide { grid-column: auto; grid-template-columns: 1fr; min-height: 0; }
  .screen-card-copy { padding: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .screen-card-copy h3, .screen-card-wide .screen-card-copy h3 { margin-top: 26px; }
  .mini-window { min-height: 255px; margin: 16px; }
  .section { padding: 76px 0; }
  .section-heading { grid-template-columns: 34px 1fr; gap: 10px; }
  .feature-grid, .download-grid, .workflow-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 205px; }
  .workflow-grid { gap: 48px; }
  .repo-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-inner p { text-align: left; }
  .footer-inner > div:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
