/* Workspace Capability — project page stylesheet */
:root {
  color-scheme: light dark;
  --bg: #f7f8fb;
  --surface: rgba(255,255,255,.82);
  --surface-solid: #fff;
  --surface-soft: #f0f3f8;
  --text: #121722;
  --muted: #5b6474;
  --faint: #8790a0;
  --line: #dfe4ec;
  --line-strong: #cbd2de;
  --blue: #0878cf;
  --blue-strong: #005fa8;
  --blue-soft: #e5f4ff;
  --cyan: #29b8ea;
  --green: #16875b;
  --green-soft: #e5f7ef;
  --code: #101624;
  --code-text: #e7edf7;
  --shadow: 0 16px 45px rgba(18, 34, 58, .08);
  --radius: 18px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e14;
    --surface: rgba(17,22,32,.84);
    --surface-solid: #111620;
    --surface-soft: #171d29;
    --text: #edf2f8;
    --muted: #a8b2c2;
    --faint: #778296;
    --line: #262e3c;
    --line-strong: #374154;
    --blue: #55b8f4;
    --blue-strong: #8ed2ff;
    --blue-soft: #102b3c;
    --cyan: #45c8f2;
    --green: #58d3a0;
    --green-soft: #102b23;
    --code: #080b11;
    --code-text: #e8eef8;
    --shadow: 0 18px 48px rgba(0,0,0,.28);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(41,184,234,.12), transparent 32rem),
    radial-gradient(circle at 88% 14%, rgba(8,120,207,.08), transparent 28rem),
    var(--bg);
  font: 15.5px/1.72 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 3px solid rgba(41,184,234,.55); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 99; padding: 9px 14px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero-grid > *, .docs-grid > *, .install > *, .cards > *, .rule > *, .status > *, .doc-block, .codebox, .terminal { min-width: 0; }
.card p, .note, .lede, .doc-block > p, .install p, li { overflow-wrap: anywhere; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}
.nav { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 5px 14px rgba(13,111,178,.18); }
.navlinks { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.navlinks a { text-decoration: none; }
.navlinks a:hover { color: var(--text); }
.lang { display: inline-flex; align-items: center; gap: 7px; color: var(--faint); font-size: 13.5px; }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--blue); }
.lang a[aria-current="page"] { color: var(--text); font-weight: 680; }
.github { padding: 7px 12px; color: var(--text)!important; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; white-space: nowrap; }
.hero { padding: 86px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 64px; align-items: center; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 12.5px; font-weight: 650; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent); }
h1 { max-width: 780px; margin: 0; font-size: clamp(42px, 6vw, 68px); line-height: 1.03; letter-spacing: -.055em; font-weight: 760; text-wrap: balance; }
html[lang="en"] h1 { font-size: clamp(38px, 4.6vw, 57px); letter-spacing: -.04em; line-height: 1.06; }
.gradient { color: var(--blue); background: linear-gradient(110deg, var(--blue-strong), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { max-width: 670px; margin: 25px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 680; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.button.primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, #0878cf, #20aee4); box-shadow: 0 9px 22px rgba(8,120,207,.22); }
.button:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.terminal { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--code); box-shadow: var(--shadow); }
.terminal::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.045), transparent 32%); }
.terminal-bar { display: flex; align-items: center; gap: 7px; height: 43px; padding: 0 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal-bar i { width: 8px; height: 8px; border-radius: 50%; background: #4d5667; }
.terminal-bar span { margin-left: auto; color: #6e788b; font: 11px var(--mono); }
pre { margin: 0; overflow: auto; color: var(--code-text); font-size: 13px; line-height: 1.72; tab-size: 2; }
.terminal pre { min-height: 290px; padding: 24px; }
.comment { color: #78859a; }
.key { color: #67cdf5; }
.value { color: #a8dfc4; }
.section { padding: 78px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 34px; }
.kicker { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h2 { margin: 8px 0 10px; font-size: clamp(29px, 4vw, 40px); line-height: 1.15; letter-spacing: -.035em; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.02); }
.icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 19px; border-radius: 11px; color: var(--blue); background: var(--blue-soft); font: 700 17px/1 var(--mono); }
h3 { margin: 0 0 9px; font-size: 18px; letter-spacing: -.018em; }
.card p { margin: 0; color: var(--muted); }
.docs-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 52px; align-items: start; }
.toc { position: sticky; top: 94px; padding: 17px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.toc strong { display: block; margin-bottom: 9px; color: var(--text); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.toc a { display: block; padding: 5px 0; text-decoration: none; }
.toc a:hover { color: var(--blue); }
.doc-block + .doc-block { margin-top: 55px; }
.doc-block h2 { font-size: 28px; }
.doc-block > p { color: var(--muted); }
.codebox { margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--code); overflow: hidden; }
.codebox .label { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; color: #8e99aa; border-bottom: 1px solid rgba(255,255,255,.08); font: 11px var(--mono); }
.codebox pre { padding: 17px 18px; }
.rule { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; margin: 24px 0; }
.rule-item { min-height: 90px; display: grid; place-items: center; padding: 13px; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); font-weight: 680; }
.rule-op {
  width: 28px; height: 19px; font-size: 0; color: transparent;
  border: 2.5px solid var(--faint); border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.note { margin: 20px 0; padding: 15px 17px; border-left: 3px solid var(--blue); border-radius: 0 11px 11px 0; background: var(--blue-soft); color: var(--muted); }
.note strong { color: var(--text); }
.status { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.status > div { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.status code { display: block; color: var(--blue); font-size: 12px; word-break: break-word; }
.status span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.install { padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(140deg, var(--surface-solid), var(--blue-soft)); box-shadow: var(--shadow); }
.install h2 { margin-top: 0; }
.install p { color: var(--muted); }
.install .codebox { margin-bottom: 0; }
.version { min-width: 155px; padding: 19px; text-align: center; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.version strong { display: block; font: 700 23px var(--mono); }
.version span { color: var(--muted); font-size: 12px; }
footer { padding: 40px 0 60px; color: var(--faint); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 17px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
@media (max-width: 860px) {
  .hero { padding-top: 60px; }
  .hero-grid, .docs-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .cards { grid-template-columns: 1fr; }
  .toc { display: none; }
  .terminal { max-width: 620px; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .navlinks { gap: 14px; }
  .navlinks .nav-text { display: none; }
  .brand span { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 48px 0 58px; }
  h1 { font-size: 41px; }
  .section { padding: 58px 0; }
  .rule { grid-template-columns: 1fr; justify-items: center; }
  .rule-item { width: 100%; }
  .rule-op { transform: rotate(90deg); }
  .status { grid-template-columns: 1fr; }
  .install { grid-template-columns: 1fr; padding: 25px; }
  .version { justify-self: start; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 460px) {
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none!important; }
}
