: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; justify-content: flex-end; gap: 8px; }
.home { margin-right: auto; }
.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-wrap: wrap; justify-content: 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; }
@media (hover: hover) and (pointer: fine) {
  .agent:hover { background: var(--surface-control); }
}
@media (pointer: coarse) { .button { height: 44px; } }
.agents { display: flex; gap: 5px; margin-right: 2px; }
.agents svg { display: block; }
.swap { display: grid; justify-items: center; }
.swap > * { grid-area: 1 / 1; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.icons { color: var(--text-secondary); }
.done, .icon-check { opacity: 0; transform: translateY(4px); }
.icon-check { transform: scale(0.8); }
.agent[data-copied] .idle { opacity: 0; transform: translateY(-4px); }
.agent[data-copied] .icon-copy { opacity: 0; transform: scale(0.8); }
.agent[data-copied] .done, .agent[data-copied] .icon-check { opacity: 1; transform: none; }
.reveal {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin: 14px 0 0;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
  pointer-events: none;
}
.reveal code { font-size: 12px; line-height: 1.6; }
.actions:has([data-copied]) .reveal, .reveal.manual { opacity: 1; transform: none; pointer-events: auto; }
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; }
  .swap > *, .reveal, .agent[data-copied] .idle, .agent[data-copied] .icon-copy, .done, .icon-check { transform: none; }
}
