@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --surface: #fffefa;
  --ink: #19231c;
  --muted: #5e675f;
  --line: #d9dfd5;
  --accent: #245b42;
  --accent-hover: #163f2c;
  --tint: #e9eee3;
  --body-font: "Trebuchet MS", "Lucida Grande", "Segoe UI", sans-serif;
  --display-font: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --mono-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, canvas { font: inherit; }
button { cursor: pointer; }
p { line-height: 1.65; }
h1, h2, p, figure { margin: 0; }
code, pre { font-family: var(--mono-font); }
::selection { color: var(--ink); background: #d0e0c7; }
:focus-visible { outline: 3px solid #4f8563; outline-offset: 5px; }
.wrap { width: min(1224px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 10; padding: 12px 18px; color: white; background: var(--accent); }
.skip-link:focus { top: 16px; }

.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 100px; border-bottom: 1px solid var(--line); gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-family: var(--mono-font); font-size: 21px; font-weight: 600; letter-spacing: -.06em; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; }
.site-nav a:hover, .text-link:hover, .site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }

.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 68px; align-items: center; padding-block: 92px 88px; }
.eyebrow, .section-number { font-family: var(--mono-font); font-size: 11px; line-height: 1.6; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow { color: var(--accent); }
.status-dot { display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; background: var(--accent); border-radius: 50%; }
h1 { margin-block: 22px 24px; font-family: var(--display-font); font-size: clamp(44px, 4.7vw, 66px); line-height: 1.06; font-weight: 400; letter-spacing: -.045em; }
h1 em { color: var(--accent); font-weight: 400; }
.hero-description { max-width: 450px; color: var(--muted); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 30px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 18px; padding: 12px 18px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 600; transition: background-color 140ms ease; }
.button-primary { color: var(--surface); background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; font-size: 12px; font-weight: 600; }
.release-note { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 25px; font-size: 11px; color: var(--muted); }
.release-tag { border: 1px solid var(--line); border-radius: 3px; padding: 2px 5px; font-family: var(--mono-font); font-size: 10px; }

.workspace-figure { min-width: 0; }
.figure-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-family: var(--mono-font); font-size: 10px; color: var(--muted); }
.figure-label { opacity: .75; }
.workspace-map { display: grid; position: relative; grid-template-columns: 27% 1fr; grid-template-rows: 1fr 100px; gap: 3px; height: 330px; border: 1px solid #bac5b6; border-radius: 5px; padding: 3px; overflow: hidden; background: #cfd8c9; box-shadow: 0 12px 32px -22px #324a36; }
.map-pane { min-width: 0; overflow: hidden; background: var(--surface); }
.map-outline { grid-row: 1 / 3; }
.map-tabs { display: flex; height: 29px; align-items: stretch; overflow: hidden; background: #e9ede5; border-bottom: 1px solid #dce2d7; }
.map-tab { display: flex; align-items: center; padding-inline: 11px; font-size: 10px; color: #6d776b; white-space: nowrap; }
.map-tab.is-selected { background: var(--surface); border-top: 2px solid var(--accent); color: var(--ink); }
.map-tree { display: grid; justify-items: start; align-content: start; padding: 17px 11px; gap: 13px; font-size: 10px; color: var(--muted); }
.tree-child { padding-left: 10px; }
.tree-selected { margin-left: 4px; padding: 4px 8px; border-radius: 3px; background: var(--tint); color: var(--accent); }
.map-editor { position: relative; }
.map-code { padding: 23px 15px; color: #4d584b; font-family: var(--mono-font); font-size: 10px; line-height: 1.9; white-space: nowrap; }
.code-comment { color: #899183; }
.code-keyword { color: var(--accent); }
.map-cursor { position: absolute; left: 98px; top: 108px; width: 1px; height: 13px; background: #75886d; }
.map-log { display: flex; align-items: center; gap: 8px; margin: 17px 15px; color: #818b7a; font-family: var(--mono-font); font-size: 10px; }
.log-dot { width: 4px; height: 4px; background: #75a16b; border-radius: 50%; }
.map-floating { position: absolute; right: 18px; top: 142px; width: 178px; background: var(--surface); border: 1px solid #a9b6a3; border-radius: 4px; box-shadow: 0 8px 18px #23361e26; }
.floating-heading { display: flex; align-items: center; height: 27px; gap: 7px; padding-inline: 9px; border-bottom: 1px solid #d4dccf; background: #edf1e8; font-size: 10px; }
.grip { font-size: 14px; color: #7c8874; }
.floating-close { margin-left: auto; font-size: 14px; color: #7c8874; }
.floating-content { display: grid; padding: 13px; }
.inspector-title { font-size: 11px; margin-bottom: 14px; }
.inspector-label { font-size: 9px; color: var(--muted); }
.inspector-values { display: flex; gap: 4px; margin-top: 7px; font-family: var(--mono-font); font-size: 9px; }
.inspector-values span { padding: 5px; border-radius: 2px; background: #edf1e9; }
figcaption { margin-top: 12px; font-size: 11px; color: var(--muted); }

.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-block: 34px 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-number { color: #788174; }
.capabilities h2 { margin-block: 14px 10px; font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.capabilities p { max-width: 325px; font-size: 13px; color: var(--muted); }
.integration { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding-block: 72px; }
.section-intro h2, .source-section h2 { font-family: var(--display-font); font-weight: 400; font-size: 31px; line-height: 1.2; letter-spacing: -.025em; margin-block: 17px; }
.section-intro > p:last-child { max-width: 310px; color: var(--muted); font-size: 13px; }
.integration-list { border-top: 1px solid var(--line); align-self: center; }
.integration-row { display: grid; grid-template-columns: 160px 1fr 14px; gap: 18px; align-items: center; min-height: 83px; padding: 16px 2px; border-bottom: 1px solid var(--line); transition: background-color 140ms ease; }
.integration-row:hover { background: var(--tint); }
.integration-row code { font-size: 12px; color: var(--accent); }
.integration-row > span:nth-child(2) { font-size: 12px; line-height: 1.65; color: var(--muted); }
.integration-row > span:last-child { font-size: 13px; color: #71806a; }
.source-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding-block: 40px 72px; }
.source-section h2 { margin-top: 15px; }
.source-section p:not(.eyebrow) { max-width: 340px; font-size: 13px; color: var(--muted); }
.source-section .text-link { margin-top: 14px; }
.terminal { min-width: 0; align-self: center; border: 1px solid var(--line); border-radius: 5px; background: #edf0e8; }
.terminal-heading { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono-font); font-size: 10px; color: #72806b; }
.terminal pre { margin: 0; padding: 21px 18px; overflow-x: auto; font-size: 11px; line-height: 2; color: #354730; tab-size: 2; }
.terminal-prompt { color: #7f9475; user-select: none; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px 30px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.footer-divider { margin-inline: 8px; color: #a4aea0; }
.site-footer > div { display: flex; gap: 24px; }

.demo-document { color-scheme: light dark; background: Canvas; }
.demo-page {
  /* Match egui's panel fill, also used as the initial WebOptions clear color. */
  --demo-stage-fill: #f8f8f8;
  --demo-error: #a43b31;
  --demo-accent-ink: #fffefa;
  --demo-focus: #4f8563;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}
.demo-page[data-theme="dark"] {
  --paper: #181d1b;
  --surface: #222a25;
  --ink: #edf2ea;
  --muted: #b2bfb5;
  --line: #434f46;
  --accent: #9ad2ae;
  --accent-hover: #b1e1c0;
  --tint: #2b382f;
  --demo-stage-fill: #1b1b1b;
  --demo-error: #f0a697;
  --demo-accent-ink: #16251c;
  --demo-focus: #a4dcb7;
  color-scheme: dark;
}
.demo-page :focus-visible { outline-color: var(--demo-focus); outline-offset: 2px; }
.demo-page ::selection { color: var(--demo-accent-ink); background: var(--accent); }
.demo-header { display: flex; align-items: center; gap: 22px; min-height: 62px; padding: 10px 22px; border-bottom: 1px solid var(--line); }
.demo-header .wordmark { font-size: 17px; flex-shrink: 0; }
.demo-header .brand-mark { width: 21px; height: 21px; }
.demo-label { padding-left: 22px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; white-space: nowrap; }
.demo-status { margin-left: auto; max-width: 58ch; font-family: var(--mono-font); font-size: 10px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.demo-status[data-state="error"] { color: var(--demo-error); }
.demo-shell-button { display: inline-flex; align-items: center; flex-shrink: 0; padding: 7px 10px; min-height: 36px; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); font-size: 11px; }
.demo-shell-button:hover, .demo-shell-button[aria-expanded="true"] { background: var(--tint); }
.demo-shell-button[hidden] { display: none; }
/* The fullscreen control bar gets its own row so it never covers the canvas. */
.demo-stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; overflow: hidden; background: var(--demo-stage-fill); }
.demo-stage:fullscreen { background: var(--demo-stage-fill); }
.demo-surface { position: relative; min-width: 0; min-height: 0; isolation: isolate; }
.demo-fullscreen-controls { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 5px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.demo-fullscreen-controls[hidden] { display: none; }
.demo-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: safe center; overflow: auto; padding: 28px; background: var(--paper); }
.demo-loading[hidden] { display: none; }
.demo-loading-panel { width: min(100%, 420px); padding-block: 20px; }
.demo-loading-panel > img { display: block; margin-bottom: 22px; }
.demo-loading-panel h2 { margin-bottom: 28px; font-family: var(--display-font); font-size: 30px; font-weight: 400; letter-spacing: -.035em; }
.demo-loading-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; }
#demo-loading-percent { color: var(--accent); font-family: var(--mono-font); font-size: 12px; font-variant-numeric: tabular-nums; }
.demo-progress { position: relative; height: 6px; margin-block: 12px; overflow: hidden; border-radius: 3px; background: var(--line); }
#demo-loading-progress { display: block; appearance: none; width: 100%; height: 100%; border: 0; accent-color: var(--accent); background: var(--line); }
#demo-loading-progress::-webkit-progress-bar { background: var(--line); border-radius: 3px; }
#demo-loading-progress::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
#demo-loading-progress::-moz-progress-bar { background: var(--accent); border-radius: 3px; }
#demo-loading-progress:indeterminate { opacity: 0; }
.demo-progress-shimmer { display: none; position: absolute; inset: 0 auto 0 0; width: 42%; background: linear-gradient(90deg, transparent, var(--accent), transparent); transform: translateX(69%); }
#demo-loading-progress:indeterminate + .demo-progress-shimmer { display: block; animation: demo-progress-sweep 1.35s ease-in-out infinite; }
@keyframes demo-progress-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(240%); }
}
#demo-loading-detail { font-family: var(--mono-font); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; color: var(--muted); }
.demo-loading-steps { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-family: var(--mono-font); font-size: 11px; }
.demo-loading-steps [aria-current="step"] { color: var(--accent); font-weight: 700; }
.demo-loading-hint { margin-top: 22px; color: var(--muted); font-size: 12px; }
.demo-loading-actions { display: flex; flex-wrap: wrap; gap: 0 8px; }
.demo-loading-panel .button { margin-top: 12px; }
.demo-loading-panel .button[hidden] { display: none; }
.demo-loading-panel .button-primary { color: var(--demo-accent-ink); }
.demo-loading-panel .button:not(.button-primary) { border-color: var(--line); background: var(--surface); color: var(--ink); }
.demo-loading-panel .button:not(.button-primary):hover { background: var(--tint); }
.demo-loading[data-phase="error"] :is(.demo-progress, .demo-loading-steps) { display: none; }
.demo-loading[data-phase="error"] #demo-loading-detail { color: var(--demo-error); }
.demo-diagnostics { margin-top: 16px; font-size: 12px; }
.demo-diagnostics textarea { display: block; width: 100%; margin-top: 6px; padding: 8px 10px; resize: vertical; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font: 11px/1.55 var(--mono-font); }
.demo-copy-status { color: var(--muted); font-size: 11px; }
.demo-copy-status:not(:empty) { margin-top: 6px; }
#dockspace-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
#dockspace-canvas:focus-visible { outline: 2px solid var(--demo-focus); outline-offset: -2px; }
.demo-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); }
.demo-help-toggle { display: none; }
.demo-help { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; padding: 10px 22px; font-size: 11px; color: var(--muted); }
.demo-help p { line-height: 1.5; }
.demo-help a { flex-shrink: 0; text-decoration: underline; text-underline-offset: 3px; }
.demo-help kbd { padding: 1px 4px; border: 1px solid var(--line); border-radius: 3px; background: var(--tint); font-family: var(--mono-font); font-size: .9em; }
.demo-noscript { position: absolute; inset: 0; z-index: 2; padding: 24px; color: var(--ink); background: var(--paper); }
.demo-noscript a { text-decoration: underline; }

@media (width < 768px) {
  .demo-header { gap: 6px 13px; padding: 8px 12px; flex-wrap: wrap; }
  .demo-header .demo-status { order: 1; width: 100%; max-width: none; margin-left: 0; }
  .demo-label { padding-left: 13px; font-size: 11px; }
  #demo-fullscreen { margin-left: auto; }
  .demo-shell-button { min-height: 44px; }
  .demo-loading { padding: 16px; }
  .demo-footer { display: flex; justify-content: flex-end; padding: 3px 12px; }
  .demo-help-toggle { display: inline-flex; gap: 8px; }
  .demo-help-toggle::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 1px 1px 0 0; transform: translateY(2px) rotate(-45deg); }
  .demo-help-toggle[aria-expanded="true"]::after { transform: translateY(-2px) rotate(135deg); }
  .demo-help-toggle[aria-expanded="false"] + .demo-help { display: none; }
  .demo-help { display: grid; justify-content: stretch; gap: 10px; position: absolute; inset: auto 12px calc(100% + 6px); max-height: 50vh; max-height: 50dvh; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: 0 8px 24px #0003; font-size: 13px; }
  .demo-help a { justify-self: start; }
}

@media (max-width: 1100px) {
  .wrap { width: min(1224px, calc(100% - 56px)); }
  .hero { gap: 36px; padding-block: 70px; }
  .hero-actions { gap: 12px; }
  .integration, .source-section { gap: 38px; }
  .integration-row { grid-template-columns: 134px 1fr 12px; gap: 12px; }
  .workspace-map { height: 315px; }
  .map-floating { right: 13px; width: 160px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 80px; }
  .site-nav { gap: 19px; font-size: 12px; }
  .site-nav a:first-child { display: none; }
  .wordmark { font-size: 19px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 50px 44px; }
  h1 { font-size: clamp(44px, 9.5vw, 62px); }
  .hero-description { max-width: 510px; }
  .workspace-map { height: 320px; }
  .map-floating { width: 178px; right: 24px; }
  .capabilities { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; }
  .capabilities p { max-width: 500px; }
  .capabilities h2 { margin-top: 9px; }
  .integration, .source-section { grid-template-columns: 1fr; gap: 28px; padding-block: 44px; }
  .section-intro > p:last-child, .source-section p:not(.eyebrow) { max-width: 510px; }
  .integration-row { grid-template-columns: 145px 1fr 12px; min-height: 78px; }
  .source-section { padding-top: 12px; }
}

@media (max-width: 420px) {
  .site-header { gap: 12px; }
  .site-header .wordmark { gap: 8px; font-size: 18px; }
  .site-header .brand-mark { width: 28px; height: 28px; }
  .site-nav { gap: 13px; }
  .map-code { font-size: 8px; padding-inline: 10px; }
  .map-floating { width: 154px; right: 12px; }
  .integration-row { grid-template-columns: 1fr 12px; gap: 6px 10px; }
  .integration-row code { grid-column: 1; }
  .integration-row > span:nth-child(2) { grid-column: 1; }
  .integration-row > span:last-child { grid-column: 2; grid-row: 1 / 3; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .demo-label { border: 0; padding-left: 0; }
}

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