.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.hero-copy, .preview { min-width: 0; }
.release-link { display: inline-flex; gap: .45rem; border: 1px solid var(--line); border-radius: 2rem; color: var(--site-accent); font: .8rem var(--mono); padding: .35rem .65rem; }
.release-link:hover { background: var(--surface); }
h1, h2, h3, p, figure { margin: 0; }
.hero h1 { font-size: clamp(2.35rem, 4.1vw, 4rem); font-weight: 760; line-height: 1.12; letter-spacing: -.04em; margin: .9rem 0 .45rem; text-wrap: balance; }
.hero h1:lang(zh-cn) { letter-spacing: -.015em; }
.hero-subtitle { font-size: clamp(1.25rem, 2.15vw, 1.85rem); font-weight: 650; line-height: 1.35; color: var(--site-accent); margin-bottom: .9rem; text-wrap: balance; }
.hero-lead { max-width: 44ch; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1.4rem .85rem; }
.button { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: .5rem; font-weight: 650; font-size: .9rem; }
.button.primary { background: var(--accent-bg); color: var(--accent-text); border-color: transparent; }
.button.secondary { background: var(--surface); }
.button:hover { text-decoration: underline; text-underline-offset: .18em; }
.preview { container-type: inline-size; background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; padding: .55rem; box-shadow: 0 14px 32px #0002; }
.preview-bar { display: flex; flex-wrap: wrap; gap: .25rem; padding: .1rem .15rem .5rem; }
.preview-bar button { border: 0; border-radius: .4rem; background: transparent; color: var(--muted); padding: .35rem .65rem; font-size: .9rem; }
.preview-bar [aria-selected="true"] { background: var(--accent-bg); color: var(--accent-text); font-weight: 650; }
.preview figure + figure { margin-top: .75rem; }
.preview-bar:not([hidden]) ~ figure { margin-top: 0; }
/* Theme-aware, illustrative application previews. Product themes may override these tokens. */
.demo-window {
  --demo-panel: color-mix(in srgb, var(--surface) 84%, var(--bg));
  --demo-selected: color-mix(in srgb, var(--site-accent) 14%, var(--surface));
  --demo-plot-grid: color-mix(in srgb, var(--line) 75%, var(--bg));
  --demo-series-one: var(--site-accent);
  --demo-series-two: var(--preview-series-two, color-mix(in srgb, var(--site-accent) 45%, var(--muted)));
  --demo-series-three: var(--preview-series-three, var(--muted));
  --demo-series-four: var(--preview-series-four, color-mix(in srgb, var(--site-accent) 30%, var(--text)));
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 18rem;
  aspect-ratio: var(--preview-ratio, 1120 / 720);
  border: 1px solid var(--line);
  border-radius: .5rem;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-size: clamp(.68rem, 2.05cqi, .85rem);
  line-height: 1.45;
}
.demo-toolbar { display: flex; align-items: center; gap: .55em; min-width: 0; padding: .7em .8em; border-bottom: 1px solid var(--line); background: var(--demo-panel); }
.demo-toolbar > :last-child:not(:first-child) { margin-inline-start: auto; }
.demo-window-dots { display: flex; gap: .28em; }
.demo-window-dots i { width: .55em; height: .55em; border: 1px solid var(--muted); border-radius: 50%; opacity: .65; }
.demo-badge { padding: .18em .45em; border: 1px solid var(--line); border-radius: .3rem; color: var(--muted); white-space: nowrap; }
.demo-muted, .demo-label { color: var(--muted); }
.demo-accent { color: var(--site-accent); }
.demo-label { margin: .7em 0 .35em; font-size: .9em; }
.demo-workbench, .demo-scene-layout { display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); flex: 1; }
.demo-sidebar { min-width: 0; padding: .8em .65em; border-right: 1px solid var(--line); background: var(--demo-panel); }
.demo-brand { display: flex; align-items: center; gap: .35em; font-weight: 700; margin-bottom: .7em; }
.demo-brand img { width: 20px; height: 20px; }
.demo-nav-row { padding: .45em .5em; margin-block: .15em; border-radius: .3rem; color: var(--muted); overflow-wrap: anywhere; }
.demo-nav-row.selected { color: var(--site-accent); background: var(--demo-selected); font-weight: 650; }
.demo-conversation { min-width: 0; display: flex; flex-direction: column; }
.demo-tabs { display: flex; gap: .65em; padding: .4em .75em 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.demo-tabs span { padding-bottom: .4em; min-width: 0; overflow-wrap: anywhere; }
.demo-tabs .selected { color: var(--site-accent); border-bottom: 2px solid var(--site-accent); }
.demo-chat { flex: 1; display: grid; align-content: start; gap: .65em; padding: .75em; }
.demo-bubble { padding: .65em .75em; border: 1px solid var(--line); border-radius: .45rem; overflow-wrap: anywhere; }
.demo-bubble.user { background: var(--demo-selected); }
.demo-bubble.assistant { background: var(--surface); }
.demo-bubble ul { margin: .5em 0 0; padding-inline-start: 1.15em; }
.demo-bubble code, .demo-terminal code { color: var(--site-accent); font-size: .95em; }
.demo-prompt { display: flex; justify-content: space-between; align-items: center; gap: .5em; padding: .45em .55em; margin: .5em .75em 0; border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); color: var(--muted); }
.demo-send { display: inline-grid; place-items: center; width: 1.65em; height: 1.65em; background: var(--accent-bg); color: var(--accent-text); border-radius: .3rem; font-weight: 700; }
.demo-context { display: flex; justify-content: space-between; gap: .35em; padding: .5em .8em; color: var(--muted); font: .85em/1.45 var(--mono); }
.demo-terminal { font-family: var(--mono); }
.demo-terminal > .demo-toolbar { font-family: var(--sans); }
.demo-terminal-content { flex: 1; padding: 1em; display: grid; align-content: start; gap: .65em; overflow-wrap: anywhere; }
.demo-terminal-question { margin-top: .75em; padding: .65em; background: var(--demo-selected); border-radius: .3rem; }
.demo-terminal-input { display: flex; align-items: center; gap: .45em; margin-inline: 1em; min-height: 2.4em; border-block: 1px solid var(--site-accent); }
.demo-terminal-input i { display: inline-block; width: .55em; height: 1em; background: var(--site-accent); }
.demo-dashboard .demo-chart-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .65em; padding: .8em; }
.demo-chart { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: .45em; padding: .6em; border: 1px solid var(--line); border-radius: .45rem; background: var(--surface); }
.demo-bars { display: flex; align-items: end; gap: .22em; flex: 1; min-height: 4.8em; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), var(--demo-plot-grid) calc(25% - 1px) 25%); }
.demo-bars i { flex: 1; height: var(--value); background: var(--demo-series-one); border-radius: .12em .12em 0 0; }
.demo-chart-axis { display: flex; justify-content: space-between; color: var(--muted); font: .78em/1.2 var(--mono); }
.demo-plot { display: block; width: 100%; height: 0; flex: 1; min-height: 0; }
.demo-grid-lines { fill: none; stroke: var(--demo-plot-grid); stroke-width: 1; }
.demo-area { fill: color-mix(in srgb, var(--demo-series-one) 20%, transparent); }
.demo-line { fill: none; stroke: var(--demo-series-one); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.demo-area-one { fill: var(--demo-series-one); }
.demo-area-two { fill: var(--demo-series-two); }
.demo-area-three { fill: var(--demo-series-three); }
.demo-share-body { display: flex; align-items: center; justify-content: space-around; flex: 1; gap: .45em; min-width: 0; min-height: 0; }
.demo-donut { display: grid; place-items: center; width: 42%; aspect-ratio: 1; border-radius: 50%; flex: none; background: conic-gradient(var(--demo-series-one) 0 45%, var(--demo-series-two) 45% 75%, var(--demo-series-three) 75% 90%, var(--demo-series-four) 90%); }
.demo-donut span { display: grid; place-items: center; width: 66%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); font-weight: 650; font-size: .9em; }
.demo-legend { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; font-size: .78em; }
.demo-legend li { display: flex; flex-wrap: wrap; align-items: center; gap: .32em; margin-block: .22em; }
.demo-legend li::before { content: ''; width: .55em; height: .55em; border-radius: .12em; background: var(--demo-series-one); }
.demo-legend li:nth-child(2)::before { background: var(--demo-series-two); }
.demo-legend li:nth-child(3)::before { background: var(--demo-series-three); }
.demo-legend li:nth-child(4)::before { background: var(--demo-series-four); }
.demo-legend b { margin-inline-start: auto; font-weight: 500; color: var(--muted); }
.demo-scene-sidebar .demo-nav-row { margin-top: .55em; }
.demo-material { display: flex; align-items: center; gap: .4em; padding: .45em; border: 1px solid var(--line); border-radius: .3rem; }
.demo-material i { width: 1em; height: 1em; background: var(--site-accent); border-radius: .2em; }
.demo-level { width: 100%; background: var(--line); height: .35em; border-radius: 1em; overflow: hidden; }
.demo-level i { display: block; width: var(--value); height: 100%; background: var(--site-accent); }
.demo-viewport { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; background: radial-gradient(ellipse at 50% 38%, var(--surface), var(--bg)); }
.demo-scene { display: block; width: 100%; flex: 1; }
.demo-floor { fill: var(--demo-panel); stroke: var(--line); }
.demo-shadow { fill: color-mix(in srgb, var(--text) 16%, transparent); }
.demo-face-top { fill: color-mix(in srgb, var(--site-accent) 56%, var(--surface)); }
.demo-face-left { fill: var(--site-accent); }
.demo-face-right { fill: color-mix(in srgb, var(--site-accent) 56%, var(--text)); }
.demo-edge { fill: none; stroke: color-mix(in srgb, var(--site-accent) 40%, var(--text)); stroke-width: 1.35; stroke-linejoin: round; }
.demo-scene-status { display: flex; justify-content: space-between; padding: .5em .75em; color: var(--muted); border-top: 1px solid var(--line); font-family: var(--mono); }
@container (max-width: 26rem) {
  .demo-window { aspect-ratio: auto; }
  .demo-dashboard .demo-chart-grid { grid-template-rows: auto auto; }
  .demo-plot { height: auto; min-height: 4em; }
  .demo-bars { height: 6.5em; flex: none; }
  .demo-workbench { grid-template-columns: minmax(0, 1fr); }
  .demo-workbench > .demo-sidebar { display: none; }
  .demo-share-body { flex-direction: column; align-items: stretch; }
  .demo-donut { align-self: center; width: 48%; }
  .demo-legend { width: 100%; }
}
@container (max-width: 20rem) {
  .demo-share-body { gap: .3em; }
  .demo-chart { padding: .45em; }
  .demo-legend li { gap: .2em; }
  .demo-scene-layout { grid-template-columns: minmax(0, 1fr); }
  .demo-scene-sidebar { display: none; }
}
.preview figcaption a { color: var(--site-accent); text-decoration: underline; text-underline-offset: .15em; }
.preview figcaption { display: flex; flex-wrap: wrap; gap: .25rem .7rem; padding: .55rem .25rem .1rem; color: var(--muted); font-size: .85rem; }
.preview figcaption code { color: var(--text); }
.section { border-block-start: 1px solid var(--line); padding-block: clamp(1.8rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.25; }
h3 { font-size: 1.1rem; line-height: 1.35; }
.features, .advanced { display: grid; gap: 1rem; }
.features { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.25rem; }
.features article { display: flex; flex-direction: column; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; padding: 1.2rem; }
.card-number { color: var(--site-accent); font: .8rem var(--mono); }
.features p, .advanced p { color: var(--muted); }
.features a, .advanced a { color: var(--site-accent); font-weight: 650; font-size: .9rem; }
.features a { margin-top: auto; }
.features a:hover, .advanced a:hover { text-decoration: underline; text-underline-offset: .18em; }
.advanced { grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; }
.advanced p { margin-block: .65rem; }
.advanced a { display: inline-block; margin-inline-end: .5rem; }
@media (max-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 32rem) {
  .features, .advanced { grid-template-columns: minmax(0, 1fr); }
}
