:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f7f7f5;
  --text: #171717;
  --muted: #686868;
  --border: #e4e4e0;
  --strong-border: #c9c9c3;
  --accent: #d33aba;
  --accent-text: #b02a99;
  --page-title-size: clamp(2.25rem, 4vw, 3rem);
  --page-subtitle-size: 1rem;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

img,
iframe {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--muted);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.55rem 0.8rem;
  background: var(--text);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.product-command {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.94rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.home-page main .container {
  max-width: 1040px;
}

.hero {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 5.5rem 0;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
}

.cli-hero {
  padding: 4.5rem 0 4rem;
}

.cli-hero-layout {
  width: min(100%, 940px);
  margin: 0 auto;
}

.cli-copy h1 {
  margin-bottom: 1.75rem;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-align: center;
}

.cli-copy h1 strong {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

.cli-intro code {
  color: var(--accent-text);
  background: transparent;
  padding: 0;
  font-size: 0.95em;
  font-weight: 700;
}

.cli-title-end {
  white-space: nowrap;
}

.cli-title-logo {
  display: inline-block;
  width: auto;
  height: 0.82em;
  margin-left: 0.28em;
  object-fit: contain;
  vertical-align: -0.1em;
}

.terminal-prompt {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  letter-spacing: -0.1em;
}

.cli-copy h1 .terminal-prompt,
.cli-card h2 .terminal-prompt {
  display: inline-block;
  margin-right: 0.35em;
}

.cli-intro {
  display: grid;
  gap: 1rem;
  width: min(100%, 820px);
  margin: 0 auto;
}

.cli-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
}

.cli-intro b {
  color: var(--text);
  font-weight: 600;
}

.cli-intro .research-link {
  text-decoration-color: var(--accent);
}

.terminal-cursor {
  display: inline-block;
  width: 0.38em;
  height: 0.86em;
  margin-left: 0.15em;
  background: var(--accent);
  vertical-align: -0.05em;
}

.cli-principles {
  padding: 0 0 5rem;
}

.cli-card-list {
  display: grid;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cli-card {
  min-height: 220px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.cli-card .card-number {
  margin: 0 0 1rem;
  transform: none;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.cli-card h2 {
  margin-bottom: 0.65rem;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.cli-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.cli-card p + p {
  margin-top: 0.35rem;
}

:is(
  .terminal-page-title,
  .terminal-section-title,
  .section-heading h2,
  .example-header h2,
  .prose h2
)::before {
  content: ">_";
  margin-right: 0.45em;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: -0.1em;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.22rem;
  font-weight: 600;
}

.lead {
  max-width: 670px;
  margin: 0 auto;
  color: #858585;
  font-size: var(--page-subtitle-size);
  font-weight: 500;
  line-height: 1.65;
}

.actions {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  background: #b92ea2;
}

.button-secondary {
  border-color: var(--accent);
  background: white;
  color: var(--accent);
}

.button-secondary:hover {
  background: var(--surface);
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 650px;
  margin-bottom: 2.25rem;
}

.section-heading p,
.card p,
.page-intro p {
  color: var(--muted);
}

.section-heading,
.card,
.page-intro,
.prose {
  overflow-wrap: anywhere;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  min-height: 220px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 160ms ease;
}

.card:hover {
  border-color: var(--accent);
}

.card-number {
  display: block;
  margin-bottom: 3.5rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.install-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
}

.grid-three > *,
.install-panel > *,
.docs-layout > * {
  min-width: 0;
}

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

code {
  font-size: 0.9em;
}

pre {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.35rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre;
}

pre code {
  white-space: inherit;
  overflow-wrap: normal;
  word-break: normal;
}

.page-intro {
  max-width: 760px;
  padding: 5rem 0 3.5rem;
}

.page-intro h1 {
  font-size: var(--page-title-size);
}

.page-intro .terminal-page-title {
  font-size: var(--page-title-size);
}

.docs-page .page-intro {
  padding: 4rem 0 2.5rem;
}

.docs-layout {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 720px);
  gap: 3rem;
  align-items: start;
  padding-bottom: 4rem;
}

.docs-nav {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
}

.docs-nav a {
  color: var(--muted);
  text-decoration: none;
}

.docs-nav a:hover {
  color: var(--accent);
}

.prose section {
  min-width: 0;
  padding: 0 0 2.4rem;
  scroll-margin-top: 2rem;
}

.prose section:last-child {
  padding-bottom: 0;
}

.prose section + section {
  padding-top: 2.4rem;
  border-top: 1px solid var(--border);
}

.prose h2 {
  margin-bottom: 0.8rem;
  padding-top: 0.25rem;
  font-size: 2rem;
}

.prose h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.45rem;
}

.prose p,
.prose li {
  color: #444;
  overflow-wrap: anywhere;
}

.prose p,
.prose ul {
  margin-top: 0.65rem;
  margin-bottom: 0.85rem;
}

.prose :not(pre) > code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose pre {
  margin: 0.8rem 0 1rem;
  border-left: 2px solid var(--accent);
}

.note {
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
}

.visual-tour {
  margin-bottom: 3.5rem;
}

.visual-tour-heading {
  width: 100%;
  max-width: 880px;
  margin: 0 auto 1.25rem;
}

.screenshot-grid {
  display: grid;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.screenshot-step-1 {
  grid-column: 1;
  grid-row: 1;
}

.screenshot-step-2 {
  grid-column: 1;
  grid-row: 2;
}

.screenshot-card.screenshot-step-3 {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 85%;
  justify-self: start;
  margin-top: 4rem;
}

.screenshot-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 160ms ease;
}

.screenshot-card:hover,
.screenshot-card:focus-within {
  border-color: var(--accent);
}

.screenshot-card a,
.screenshot-card img {
  display: block;
}

.screenshot-card img {
  width: 100%;
  height: auto;
}

.screenshot-card figcaption {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--background);
  color: var(--muted);
  font-size: 0.9rem;
}

.screenshot-card figcaption span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.example-shell {
  width: 100%;
  max-width: 880px;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.example-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.example-header h2,
.example-header p {
  margin: 0;
}

.example-header h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
}

.example-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

.example-header .eyebrow {
  margin-bottom: 0.45rem;
  color: var(--accent-text);
  font-size: 0.78rem;
}

.example-heading-copy {
  min-width: 0;
  flex: 1;
  padding-right: 3.75rem;
}

.example-open-button {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.example-header .example-export-command {
  margin-top: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-left: 2px solid var(--accent);
}

.example-viewport {
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: #101010;
}

.example-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.examples-docs-link {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 5rem;
}

.examples-docs-link a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration-color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    padding: 0.75rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0 1.15rem;
    row-gap: 0;
  }

  .hero {
    min-height: 480px;
    padding: 4rem 0;
  }

  .hero-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .cli-hero {
    padding: 3.5rem 0 3rem;
  }

  .cli-hero-layout {
    max-width: none;
  }

  .cli-copy h1 {
    margin-bottom: 1.5rem;
  }

  .cli-intro p {
    font-size: var(--page-subtitle-size);
    line-height: 1.55;
  }

  .cli-principles {
    padding-bottom: 3.5rem;
  }

  .cli-card {
    min-height: auto;
    padding: 1.5rem;
    border-radius: 12px;
  }

  .cli-card .card-number {
    margin-bottom: 1rem;
  }

  .cli-card h2 {
    margin-bottom: 1.25rem;
  }

  .desktop-break {
    display: none;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.3rem);
  }

  .section,
  .page-intro {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  .docs-page .page-intro {
    padding-top: 2.75rem;
    padding-bottom: 2rem;
  }

  .grid-three,
  .cli-card-list,
  .install-panel,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .grid-three,
  .screenshot-grid {
    gap: 0.8rem;
  }

  .visual-tour {
    margin-bottom: 3.5rem;
  }

  .visual-tour-heading {
    margin-bottom: 1.5rem;
  }

  .screenshot-step-1,
  .screenshot-step-2,
  .screenshot-card.screenshot-step-3 {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  .card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 2rem;
  }

  .install-panel {
    gap: 2.25rem;
  }

  .docs-layout {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-bottom: 2.5rem;
  }

  .docs-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .docs-nav a {
    display: flex;
    align-items: center;
    min-height: 40px;
    overflow-wrap: anywhere;
  }

  .prose,
  .prose section,
  .prose pre {
    min-width: 0;
  }

  .prose section {
    padding-bottom: 2rem;
  }

  .prose section + section {
    padding-top: 2rem;
  }

  .example-header,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .example-viewport {
    height: 60dvh;
    min-height: 360px;
    max-height: 480px;
  }

  .footer-inner {
    min-height: auto;
    padding: 2.5rem 0;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .examples-docs-link {
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 480px) {
  .container,
  .nav {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .nav-links a {
    min-height: 40px;
  }

  .hero {
    min-height: 430px;
    padding: 3.5rem 0;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .actions {
    width: 100%;
    margin-top: 1.75rem;
  }

  .actions .button {
    width: 100%;
  }

  .page-intro h1 {
    font-size: var(--page-title-size);
  }

  pre {
    padding: 1rem;
    font-size: 0.78rem;
  }

  .prose ul {
    padding-left: 1.25rem;
  }

  .example-viewport {
    min-height: 340px;
  }
}

@media (max-width: 760px) and (max-height: 600px) {
  .example-viewport {
    height: 68dvh;
    min-height: 320px;
  }
}

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