:root {
  color-scheme: light;
  --canvas: #f5f7ff;
  --surface: #fff;
  --ink: #10172b;
  --muted: #505c76;
  --line: #dce2f1;
  --accent: #2349cd;
  --accent-hover: #1837a5;
  --tint: #e9eeff;
  --night: #080e21;
  --night-text: #f4f6ff;
  --night-muted: #b7c4e9;
  --max-width: 1240px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.frame { width: min(var(--max-width), calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 2; padding: 8px 12px; background: var(--surface); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.site-header { background: var(--night); border-bottom: 1px solid #a7baff25; }
.site-footer { background: var(--surface); }
.nav { min-height: 70px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.nav nav, .footer-inner nav { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 18px; }
.site-header a, .site-footer a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 650; width: fit-content; }
.brand span { color: var(--muted); font-weight: 500; letter-spacing: .01em; }
.brand img { border-radius: 7px; }
.site-header .brand { color: var(--night-text); }
.site-header .brand span, .header-source { color: var(--night-muted); }
.nav nav a { border-radius: 6px; padding: 6px 8px; font-size: .875rem; color: var(--night-muted); }
.nav nav a:is(:hover, [aria-current="page"]) { color: var(--night-text); background: #a7baff18; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-source, .header-download { white-space: nowrap; font-size: .875rem; font-weight: 650; }
.header-source:hover { color: #fff; }
.header-download { border: 1px solid #9fb8ff60; border-radius: 6px; color: var(--night-text); padding: 6px 10px; }
.header-download:hover { color: #fff; background: #a7baff24; }
.site-header :focus-visible, .hero :focus-visible, .join :focus-visible { outline-color: #d0dbff; }
main.frame { min-height: calc(100vh - 158px); }
.preview-note { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.hero { position: relative; overflow: hidden; isolation: isolate; color: var(--night-text); background: linear-gradient(113deg, var(--night) 12%, #0c1738 57%, #1a3dba 110%); }
.hero::before, .hero::after { content: ""; pointer-events: none; position: absolute; inset: 0; z-index: -1; }
.hero::before {
  background-image: linear-gradient(#b1c5ff22 1px, transparent 1px), linear-gradient(90deg, #b1c5ff22 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 60% 95% at 90% 54%, #000 12%, transparent 90%);
}
.hero::after { background: radial-gradient(ellipse 50% 65% at 94% 100%, #2e60f077, transparent 93%); }
.hero-inner { position: relative; display: grid; grid-template-columns: .84fr minmax(0, 1.16fr); gap: clamp(32px, 5vw, 78px); align-items: center; min-height: min(650px, calc(100svh - 70px)); padding-block: clamp(54px, 7vw, 100px); }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: baseline; gap: 11px; color: var(--night-text); font-size: 1rem; font-weight: 650; margin: 0 0 20px; }
.eyebrow span { color: #9eb8ff; font-size: .75rem; letter-spacing: .14em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { line-height: 1.13; font-weight: 700; }
.hero h1 { font-size: clamp(2.75rem, 5.35vw, 5.1rem); line-height: 1.09; letter-spacing: -.07em; }
.hero h1 span { color: #a8bfff; }
.lead { font-size: clamp(1rem, 1.35vw, 1.15rem); max-width: 27em; color: var(--night-muted); margin: 23px 0 26px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: 9px; border-radius: 7px; padding: 10px 16px; border: 1px solid transparent; font-size: .9rem; font-weight: 650; text-decoration: none; transition: background-color 160ms, border-color 160ms, transform 160ms; }
.button:hover { transform: translateY(-2px); }
.primary { color: var(--surface); background: var(--accent); }
.primary:hover { color: var(--surface); background: var(--accent-hover); }
.secondary { background: var(--surface); border-color: var(--line); }
.secondary:hover { border-color: var(--accent); }
.hero .primary, .join .primary { color: #142455; background: #dbe5ff; }
.hero .primary:hover, .join .primary:hover { background: #fff; }
.hero .secondary, .join .secondary { color: var(--night-text); background: #0f1b40; border-color: #9fb8ff64; }
.hero .secondary:hover, .join .secondary:hover { background: #223b84; border-color: #bed0ff; }
.platforms, .product-shot figcaption { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--night-muted); font-size: .75rem; margin: 17px 0 0; }
.platforms span, .product-shot figcaption span { flex: none; background: #9eb8ff; border-radius: 50%; width: 5px; height: 5px; }
.product-shot { margin: 0; min-width: 0; padding: clamp(6px, 1vw, 13px); border: 1px solid #aec5ff54; border-radius: 17px; background: #102555bb; box-shadow: 0 23px 75px #0007, 0 0 50px #3163e938; }
.product-shot img { width: 100%; height: auto; border-radius: 9px; background: #111218; }
.product-shot figcaption { padding-inline: 5px; margin: 8px 0 2px; }
.product-shot figcaption .caption-divider { width: 1px; height: 11px; border-radius: 0; opacity: .65; }
.hero-copy { animation: enter 500ms ease-out both; }
.product-shot { animation: enter 650ms 80ms ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.demo-section { display: grid; grid-template-columns: .78fr minmax(0, 1.22fr); gap: clamp(26px, 5vw, 80px); align-items: start; padding-block: clamp(52px, 7vw, 102px); scroll-margin-top: 12px; }
.section-intro h2, .workflow h2, .join h2 { font-size: clamp(2rem, 3.4vw, 3.35rem); line-height: 1.17; letter-spacing: -.065em; }
.section-intro p { max-width: 28em; color: var(--muted); margin: 18px 0; }
.section-intro a, .workflow dd a { font-size: .9rem; font-weight: 650; }
.demo { background: var(--surface); border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 10px 34px #1a2c6a12; }
.demo-turn + .demo-turn { border-top: 1px solid var(--line); }
.demo-turn summary { position: relative; display: grid; grid-template-columns: 4.2em 1fr auto; gap: 10px; align-items: center; min-height: 58px; padding: 12px 18px; list-style: none; cursor: pointer; transition: background-color 150ms; }
.demo-turn summary::-webkit-details-marker { display: none; }
.demo-turn summary::after { content: ""; width: 7px; height: 7px; margin-inline-end: 3px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 160ms; }
.demo-turn summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.demo-turn summary:hover, .demo-turn[open] summary { background: #f0f3ff; }
.demo-turn[open] summary::after { transform: rotate(225deg); }
.demo-turn:first-child summary { border-radius: 11px 11px 0 0; }
.demo-turn:last-child:not([open]) summary { border-radius: 0 0 11px 11px; }
.turn-label { color: var(--accent); font-size: .8rem; font-weight: 700; }
.turn-question { font-weight: 580; }
.turn-response { padding: 15px 22px 22px; border-inline-start: 3px solid var(--accent); }
.demo-turn[open] .turn-response { animation: enter 200ms ease-out both; }
.answer-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .75rem; margin: 0 0 7px; }
.answer-label span { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.turn-opening { font-size: 1.08rem; font-weight: 650; color: var(--ink); margin: 0 0 8px; }
.turn-response ul { color: var(--muted); font-size: .9rem; margin: 0; padding-inline-start: 20px; }
.turn-response li + li { margin-top: 3px; }

.workflow { border-top: 1px solid var(--line); padding-block: clamp(36px, 5vw, 68px) clamp(52px, 7vw, 100px); }
.workflow dl { margin: 24px 0 0; }
.workflow dl div { display: grid; grid-template-columns: minmax(130px, .65fr) minmax(0, 1.4fr) minmax(130px, .45fr); gap: 20px; border-top: 1px solid var(--line); align-items: baseline; padding-block: 18px; }
.workflow dl div:last-child { border-bottom: 1px solid var(--line); }
.workflow dt { font-size: 1.17rem; font-weight: 650; }
.workflow dd { margin: 0; color: var(--muted); }
.workflow dd:last-child { text-align: end; }
.join { color: var(--night-text); background: linear-gradient(108deg, #0b132d, #182f80); }
.join-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; padding-block: clamp(44px, 6vw, 80px); }
.join p { color: var(--night-muted); margin: 11px 0 0; }
.join .source-link { display: inline-block; color: #d8e3ff; margin-top: 18px; font-size: .9rem; font-weight: 650; }
.join-actions p { font-size: .8rem; margin-top: 4px; }
.reading { max-width: 760px; margin-inline: auto; padding-block: 48px 64px; }
.page-intro { padding-bottom: 20px; }
.page-intro h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.03em; }
.page-intro p { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; }
.toc { border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; padding-block: 12px; font-size: .9rem; margin: 0 0 10px; }
.prose { border-bottom: 1px solid var(--line); padding-block: 23px; scroll-margin-top: 18px; }
.prose h2 { font-size: 1.27rem; margin: 0 0 8px; }
.prose p { margin: 6px 0 0; }
.prose :is(ul, ol) { margin: 10px 0; padding-inline-start: 24px; }
.prose li + li { margin-top: 6px; }
.prose .actions { margin-top: 14px; }
.release-meta { display: grid; gap: 5px 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.release-meta dt { color: var(--muted); font-size: .85rem; }
.release-meta dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.download-section .checksum { margin-bottom: 12px; }
.download-section code { display: block; overflow-wrap: anywhere; }
.reading > .button { margin-top: 20px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .875rem; }
.footer-inner nav a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .frame { width: min(var(--max-width), calc(100% - 48px)); }
  .nav { gap: 20px; }
  .nav nav { gap: 5px 7px; }
  .hero-inner { gap: 25px; }
}
@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; gap: 6px 12px; padding-block: 12px 8px; }
  .nav nav { grid-column: 1/-1; grid-row: 2; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 25px; padding-block: 37px 34px; }
  .hero h1 { font-size: clamp(2.6rem, 8.3vw, 4.3rem); }
  .hero::before { mask-image: radial-gradient(ellipse 65% 55% at 77% 78%, #000, transparent 95%); }
  .demo-section { grid-template-columns: 1fr; }
  .workflow dl div { grid-template-columns: 1fr auto; gap: 7px 16px; }
  .workflow dd:nth-child(2) { grid-column: 1/-1; grid-row: 2; }
  .join-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .frame { width: calc(100% - 32px); }
  .nav nav a { padding-inline: 6px; }
  .header-actions { gap: 10px; }
  .eyebrow { margin-bottom: 13px; }
  .lead { margin: 16px 0 20px; }
  .demo-turn summary { grid-template-columns: 2.4em 1fr auto; padding-inline: 12px; }
  .turn-response { padding: 14px 15px 17px; }
  .release-meta { grid-template-columns: 1fr; }
  .reading { padding-block: 34px 48px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .product-shot, .demo-turn[open] .turn-response { animation: none; }
  .button, .demo-turn summary, .demo-turn summary::after { transition: none; }
}
