@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/inter-latin-variable.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --color-bg: #111318;
  --color-surface: #1a1e26;
  --color-raised: #232830;
  --color-text: #d8dbe2;
  --color-secondary: #9ea4b0;
  --color-cta: #b4bac4;
  --color-divider: #343a45;
  --color-brand: #e63312;
  --type-hero: clamp(3rem, 6.65vw, 6rem);
  --type-subtitle: clamp(1.125rem, 1.85vw, 1.625rem);
  --type-heading: clamp(1.5rem, 2.2vw, 2rem);
  --type-body: 1.0625rem;
  --type-label: 0.875rem;
  --type-small: 0.8125rem;
  --type-card: clamp(1rem, 1.5vw, 1.25rem);
  --type-demo: 0.875rem;
  --page-padding: clamp(1.5rem, 4.5vw, 4rem);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--type-body);
  line-height: 1.5;
}
::selection {
  color: var(--color-bg);
  background: var(--color-cta);
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
}
a:hover {
  color: #fff;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 5px;
  border-radius: 3px;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
.page-shell {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}
.skip-link {
  position: absolute;
  z-index: 3;
  left: var(--page-padding);
  top: 1rem;
  padding: 0.75rem 1rem;
  color: var(--color-bg);
  background: var(--color-cta);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
  color: var(--color-bg);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 106px;
  margin-bottom: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand img {
  width: 130px;
  height: auto;
}
.desktop-nav,
.simple-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: var(--type-label);
}
.desktop-nav a,
.simple-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.sign-in {
  padding: 0.4rem 1.5rem;
  border: 1px solid var(--color-divider);
  border-radius: 3px;
}
.sign-in:hover {
  background: var(--color-surface);
  border-color: var(--color-secondary);
}
.mobile-nav {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  column-gap: 2rem;
  align-items: end;
  margin-top: 2rem;
}
.hero-copy {
  min-width: 0;
}
h1 {
  font-size: var(--type-hero);
  font-weight: 650;
  line-height: 1.01;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero h1 > span {
  display: block;
}
.brand-period {
  color: var(--color-brand);
}
.hero-subtitle {
  max-width: 67ch;
  margin-top: 1.4rem;
  color: var(--color-secondary);
  font-size: var(--type-subtitle);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 0.4rem;
  padding-bottom: 0.15rem;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 56px;
  padding: 0.9rem 1.4rem;
  background: var(--color-cta);
  color: #111318;
  border: 1px solid var(--color-cta);
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
}
.primary-action:hover {
  background: var(--color-text);
  color: #111318;
  border-color: var(--color-text);
}
.primary-action:active {
  background: #a5acb8;
}
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: var(--type-label);
}
.tools {
  margin-top: 2.5rem;
}
.tools h2 {
  margin-bottom: 0.75rem;
  font-size: var(--type-body);
  font-weight: 400;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
  list-style: none;
}
.provider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 76px;
  padding: 1rem 1.5rem;
  border: 1px solid var(--color-divider);
  border-radius: 10px;
  background: var(--color-surface);
  font-size: var(--type-card);
  font-weight: 500;
}
.provider img {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.provider-name-only {
  justify-content: center;
}
.provider small {
  display: block;
  margin-top: 0.1rem;
  color: var(--color-secondary);
  font-size: var(--type-small);
  font-weight: 400;
}
.api-note {
  margin-top: 0.6rem;
  color: var(--color-secondary);
  font-size: var(--type-label);
}
.workspace-preview {
  margin: 1rem 0 0;
}
.workspace {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 230px;
  overflow: hidden;
  border: 1px solid #454d5a;
  border-radius: 10px;
  background: var(--color-bg);
  font-size: var(--type-demo);
}
.workspace-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.workspace-top img {
  width: 85px;
  height: auto;
}
.window-dots {
  display: flex;
}
.window-dots svg {
  fill: currentColor;
  stroke: none;
}
.workspace-sidebar {
  padding: 0.6rem 0.65rem 1rem;
  border-right: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.workspace-sidebar > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 34px;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
}
.workspace-sidebar svg {
  width: 17px;
  height: 17px;
}
.sidebar-active {
  background: var(--color-raised);
}
.new-task-mark {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.5rem 0.4rem;
  background: var(--color-raised);
  font-size: var(--type-body);
}
.workspace-stream {
  min-width: 0;
}
.stream-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 38px;
  padding: 0.5rem 1.2rem;
  border-bottom: 1px solid var(--color-divider);
  font-weight: 500;
}
.stream-heading svg {
  width: 17px;
  height: 17px;
}
.messages {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
}
.message {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.8rem;
}
.message strong {
  font-weight: 500;
}
.message p {
  margin-top: 0.15rem;
  color: var(--color-secondary);
}
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-raised);
  color: var(--color-secondary);
}
.agent-avatar {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.changed-file {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.45rem 0.6rem;
  margin-top: 0.65rem;
  border: 1px solid var(--color-divider);
  border-radius: 5px;
  background: var(--color-surface);
}
.changed-file svg {
  width: 17px;
  height: 17px;
}
.file-state {
  margin-left: auto;
  color: var(--color-secondary);
}
.example-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  margin: 0 1.2rem 1rem;
  border: 1px solid var(--color-divider);
  border-radius: 5px;
  color: var(--color-secondary);
  background: var(--color-surface);
}
.example-composer svg {
  width: 20px;
  height: 20px;
  color: var(--color-text);
}
.workspace-files {
  border-left: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.workspace-files > strong {
  display: block;
  min-height: 38px;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--color-divider);
  font-weight: 500;
}
.file-tree {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.7rem;
}
.file-tree span {
  min-height: 25px;
  padding: 0.1rem 0.3rem;
}
.tree-indent {
  margin-left: 0.7rem;
}
.tree-indent-2 {
  margin-left: 1.4rem;
}
.tree-updated {
  border-radius: 3px;
  background: var(--color-raised);
}
figcaption {
  margin-top: 0.45rem;
  color: var(--color-secondary);
  font-size: var(--type-small);
}
.how-it-works {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-divider);
}
.how-it-works h2 {
  font-size: var(--type-heading);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.how-it-works ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
}
.how-it-works li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  font-size: var(--type-body);
}
.step-mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-divider);
  border-radius: 50%;
  background: var(--color-surface);
}
.step-mark svg {
  width: 22px;
  height: 22px;
}
.step-number {
  display: none;
}
.step-arrow {
  width: 22px;
  height: 22px;
  margin-left: auto;
  color: var(--color-secondary);
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 100px;
  margin-top: 2rem;
  border-top: 1px solid var(--color-divider);
  color: var(--color-secondary);
  font-size: var(--type-small);
}
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.guide {
  max-width: 760px;
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.guide h1 {
  margin-top: 2rem;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}
.guide-intro {
  margin-top: 1rem;
  color: var(--color-secondary);
  font-size: var(--type-subtitle);
}
.guide-steps {
  display: grid;
  gap: 2rem;
  padding-left: 1.6rem;
  margin-block: 2.5rem;
}
.guide-steps li {
  padding-left: 0.4rem;
}
.guide h2 {
  margin-bottom: 0.4rem;
  font-size: var(--type-heading);
  font-weight: 500;
}
.guide p {
  max-width: 65ch;
  color: var(--color-secondary);
}
.guide p a,
.back-link {
  text-decoration: underline;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: var(--type-label);
}

@media (max-width: 1199px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-actions {
    max-width: 340px;
    margin-top: 1.5rem;
  }
  .workspace {
    grid-template-columns: 155px minmax(0, 1fr) 180px;
  }
  .how-it-works {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .how-it-works li {
    font-size: var(--type-label);
  }
}

@media (max-width: 760px) {
  :root {
    --type-hero: clamp(1.875rem, 9.2vw, 4rem);
    --type-subtitle: clamp(1.0625rem, 4.2vw, 1.5rem);
    --type-card: 1rem;
    --type-body: 1rem;
  }
  .site-header {
    min-height: 82px;
    margin-bottom: 1rem;
  }
  .brand img {
    width: 112px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    position: relative;
    display: block;
  }
  .mobile-nav summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .mobile-nav nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 2;
    display: grid;
    width: 190px;
    padding: 0.5rem;
    border: 1px solid var(--color-divider);
    border-radius: 5px;
    background: var(--color-surface);
    box-shadow: 0 10px 24px #0006;
  }
  .mobile-nav nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 0.75rem;
  }
  .mobile-nav nav a:hover {
    background: var(--color-raised);
  }
  .hero {
    margin-top: 1rem;
  }
  .hero h1 {
    line-height: 1.03;
  }
  .hero-subtitle {
    margin-top: 1rem;
    line-height: 1.4;
  }
  .hero-actions {
    width: 100%;
    max-width: none;
    margin-top: 1.5rem;
    gap: 0.35rem;
  }
  .primary-action {
    min-height: 52px;
  }
  .secondary-action {
    justify-content: flex-start;
    font-size: var(--type-body);
  }
  .tools {
    margin-top: 2rem;
  }
  .tools h2 {
    font-size: var(--type-body);
    font-weight: 500;
    margin-bottom: 1rem;
  }
  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .provider {
    min-height: 68px;
    gap: 0.65rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: var(--type-label);
  }
  .provider img {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .provider small {
    font-size: var(--type-small);
  }
  .provider-claude {
    gap: 0.5rem;
  }
  .api-note {
    margin-top: 0.75rem;
    font-size: var(--type-small);
  }
  .workspace-preview {
    margin-top: 1.25rem;
  }
  .workspace {
    position: relative;
    display: block;
  }
  .workspace-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 128px;
    height: 56px;
    padding: 0.75rem 1rem;
    min-height: 56px;
    border-right: 1px solid var(--color-divider);
    border-bottom: 0;
  }
  .workspace-top img {
    width: 90px;
  }
  .workspace-sidebar,
  .workspace-files,
  .stream-heading svg,
  .window-dots {
    display: none;
  }
  .stream-heading {
    min-height: 56px;
    font-size: var(--type-body);
    padding-inline: 1rem;
    padding-left: 144px;
    background: var(--color-surface);
  }
  .messages {
    gap: 1.2rem;
    padding: 1rem;
  }
  .example-composer {
    margin-inline: 1rem;
  }
  .changed-file {
    flex-wrap: wrap;
  }
  .how-it-works {
    display: block;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  .how-it-works ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 1rem;
  }
  .how-it-works li {
    position: relative;
    min-height: 62px;
    gap: 1rem;
    font-size: var(--type-body);
  }
  .step-mark {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border: 0;
    background: var(--color-raised);
  }
  .step-mark svg,
  .step-arrow {
    display: none;
  }
  .step-number {
    display: inline;
    font-variant-numeric: tabular-nums;
  }
  .how-it-works li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 49px;
    height: 26px;
    width: 1px;
    background: var(--color-divider);
  }
  .site-footer {
    min-height: 90px;
    margin-top: 1.5rem;
    gap: 1rem;
  }
  .site-footer nav {
    gap: 1rem;
  }
  .guide {
    padding-top: 0.5rem;
  }
  .guide h1 {
    margin-top: 1rem;
  }
  .simple-nav {
    gap: 1rem;
  }
  .simple-nav .sign-in {
    padding-inline: 0.75rem;
  }
}

@media (max-width: 360px) {
  .provider {
    padding: 0.5rem;
    gap: 0.375rem;
    font-size: var(--type-small);
  }
  .provider img {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  .provider-claude {
    gap: 0.375rem;
  }
  .provider-claude img {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}
