:root {
  color-scheme: light dark;
  --background: oklch(0.985 0.001 106.423);
  --foreground: oklch(0.147 0.004 49.25);
  --secondary: oklch(0.9583 0.0013 77.57);
  --border: oklch(0.923 0.003 48.717);
  --muted-foreground: oklch(0.45 0.01 50);
  --surface-canvas: var(--background);
  --surface-control: var(--secondary);
  --text-primary: var(--foreground);
  --text-secondary: var(--muted-foreground);
  --stroke-control: var(--border);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface-canvas);
  color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.191 0 0);
    --foreground: oklch(0.985 0 0);
    --secondary: oklch(0.23 0 0);
    --border: oklch(0.32 0 0);
    --muted-foreground: oklch(0.72 0 0);
  }
}

* { box-sizing: border-box; }
body { margin: 0; }
header { position: absolute; top: 24px; right: 28px; left: 28px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.brand { display: flex; align-items: center; min-width: 0; margin-right: auto; }
.logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 36px; border-radius: 999px; color: var(--text-primary); }
.logo svg { display: block; }
.logo:hover { background: var(--surface-control); }
.login, .home {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.login:hover, .home:hover { background: var(--surface-control); color: var(--text-primary); }
.hero { min-height: 100svh; display: grid; place-items: center; padding: 100px 24px; }
.hero section { width: 100%; text-align: center; }
h1 { margin: 0 0 28px; font-size: clamp(32px, 5vw, 44px); font-weight: 600; line-height: 1.15; }
.actions { position: relative; display: flex; flex-direction: column; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--stroke-control);
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button:focus-visible { outline-offset: 3px; }
.launch-video { width: 100%; max-width: 680px; margin: 0 auto 28px; }
.launch-player { position: relative; }
.launch-video video, .launch-video img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--stroke-control);
  border-radius: 12px;
  background: var(--surface-control);
}
.launch-video video { cursor: pointer; }
.video-overlay { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; background: rgb(0 0 0 / 35%); cursor: pointer; }
.video-overlay[hidden] { display: none; }
.video-overlay .video-play { width: 72px; height: 72px; padding: 0; border-color: rgb(255 255 255 / 45%); background: rgb(0 0 0 / 25%); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video-overlay .video-play:hover { background: rgb(0 0 0 / 35%); }
.video-play:focus-visible { outline: 3px solid var(--text-primary); box-shadow: 0 0 0 6px var(--surface-canvas); }
@media (max-width: 768px) {
  .video-overlay .video-play { width: 60px; height: 60px; }
}
@media (hover: hover) and (pointer: fine) {
  .agent:hover { background: var(--surface-control); }
}
@media (pointer: coarse) { .button { height: 44px; } }
.agent { min-width: 0; max-width: 100%; overflow: hidden; }
.agent > * { transition: opacity 120ms var(--ease-out); }
.agent[data-fading] > * { opacity: 0; }
.agent[data-copied] :is(.agent-instruction, .idle, .icon-copy), .agent:not([data-copied]) :is(.done, .icon-check) { display: none; }
.agents { display: flex; flex-wrap: wrap; justify-content: center; flex-shrink: 0; max-width: 100%; gap: 12px; margin-bottom: 10px; color: var(--text-secondary); }
.agent-instruction { flex-shrink: 0; color: var(--text-secondary); white-space: nowrap; }
.agents svg { display: block; flex-shrink: 0; width: 28px; height: 28px; }
.swap { display: grid; justify-items: center; }
.swap > * { grid-area: 1 / 1; }
.prompt-label { min-width: 0; grid-template-columns: minmax(0, 1fr); justify-items: stretch; overflow: hidden; white-space: nowrap; }
.agent-prompt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: inherit; line-height: inherit; }
.icons { flex-shrink: 0; color: var(--text-secondary); }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 5px; }
.prose { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 24px 72px; font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
.page { padding-top: 112px; }
.prose h1 { color: var(--text-primary); }
.prose h2 { margin: 40px 0 12px; color: var(--text-primary); font-size: 20px; font-weight: 600; line-height: 1.3; }
.prose h3 { margin: 28px 0 8px; color: var(--text-primary); font-size: 16px; font-weight: 600; line-height: 1.4; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose li > p { margin: 0 0 10px; }
.prose a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--stroke-control); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--text-secondary); }
.prose code { padding: 1px 5px; border-radius: 6px; background: var(--surface-control); color: var(--text-primary); font-size: 13px; }
.prose pre { margin: 0 0 16px; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--stroke-control); border-radius: 12px; background: var(--surface-control); }
.prose pre code { padding: 0; background: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.prose table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose th, .prose td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--stroke-control); text-align: left; vertical-align: top; }
.prose th { color: var(--text-primary); font-weight: 600; }
footer { padding: 0 24px 48px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; max-width: 680px; margin: 0 auto; }
footer a { color: var(--text-secondary); font-size: 13px; font-weight: 500; line-height: 36px; text-decoration: none; }
footer a:hover { color: var(--text-primary); }
@media (max-width: 480px) {
  .prose table { font-size: 12px; }
  .prose th, .prose td { padding-right: 8px; }
  header { top: 16px; right: 16px; left: 16px; }
  .hero, .prose { padding-inline: 20px; }
  .page { padding-top: 88px; }
  code { font-size: 12px; }
  .button { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:active { transform: none; }
}

.release-wrap { width: min(100% - 48px, 55rem); margin: 0 auto; padding-bottom: 72px; }
.releases h1, .release h1 { margin-bottom: 12px; }
.release-intro { margin: 0 0 48px; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
.release-intro p { margin: 0 0 8px; }
.release-intro a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--stroke-control); text-underline-offset: 3px; }
.release-intro a:hover { text-decoration-color: var(--text-secondary); }
.release-layout { display: grid; grid-template-columns: 10rem minmax(0, 42rem); column-gap: 3rem; align-items: start; }
.release-meta { color: var(--text-secondary); font-size: 13px; font-weight: 500; line-height: 1.45; }
.release-meta time, .release-meta p { display: block; margin: 0; }
.release-meta p { margin-top: 4px; }
.release-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.release-tag, .release-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--stroke-control);
  border-radius: 999px;
  background: var(--surface-control);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.release-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.release-entry h2 { margin: 0 0 12px; color: var(--text-primary); font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1.15; }
.release-entry h2 a { color: inherit; text-decoration: none; }
.release-entry h2 a:hover { text-decoration: underline; text-decoration-color: var(--stroke-control); text-underline-offset: 4px; }
.release-summary { margin: 0 0 20px; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
.release-article .release-summary { margin-bottom: 0; }
.release-entry + .release-entry { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--stroke-control); }
.release-hero { display: block; }
.release-hero img, .release-figure img, .release-figure video, .release-body img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--stroke-control);
  border-radius: 12px;
  background: var(--surface-control);
}
.release-hero img { aspect-ratio: 16 / 9; object-fit: cover; }
.release-figure { margin: 0 0 28px; }
.release hr { margin: 28px 0; border: 0; border-top: 1px solid var(--stroke-control); }
.release-body.prose { max-width: none; margin: 0; padding: 0; }
.release-body.prose > :first-child { margin-top: 0; }
.release-empty { margin: 0; color: var(--text-secondary); }
.release-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 56px; color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.release-pager a { color: var(--text-primary); text-decoration: none; }
.release-pager a:hover { text-decoration: underline; text-decoration-color: var(--stroke-control); text-underline-offset: 3px; }
.release-pager span:last-child { justify-self: end; }
@media (max-width: 800px) {
  .release-layout { grid-template-columns: 1fr; row-gap: 16px; }
  .release-entry .release-meta { display: none; }
}
@media (max-width: 480px) {
  .release-wrap { width: min(100% - 40px, 55rem); }
}
