/* Micro Fabric's landing page: flat and clean, one mint accent (the operator dashboard's), light and dark from
   the system (prefers-color-scheme). System fonts only, no remote assets; strict CSP, so nothing is inline. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --card: #ffffff;
  --card-alt: #f7f9fb;
  --text: #0b1220;
  --muted: #4a5567;
  --faint: #5b6678;
  --border: #e3e8ee;
  --border-strong: #cdd5df;
  --code-bg: #f2f5f8;
  --accent: #0a7a6e;
  --accent-strong: #075f55;
  --accent-2: #0b5cad;
  --accent-soft: rgb(10 122 110 / 0.08);
  --accent-line: rgb(10 122 110 / 0.35);
  --on-accent: #ffffff;
  --live: #16a34a;
  --grid-line: rgb(10 122 110 / 0.075);
  --glow: rgb(46 230 197 / 0.2);
  --header-bg: rgb(255 255 255 / 0.85);
  --shadow-lg: 0 1px 2px rgb(11 18 32 / 0.04), 0 28px 56px -20px rgb(11 18 32 / 0.18);
  --radius: 14px;
  --font:
    'Segoe UI Variable Text', 'Segoe UI Variable', Inter, 'Segoe UI', system-ui, -apple-system,
    Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-display:
    'Segoe UI Variable Display', 'Segoe UI Variable', Inter, 'Segoe UI', system-ui, -apple-system,
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono:
    'Cascadia Code', 'Cascadia Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas,
    'Liberation Mono', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05070a;
    --bg-alt: #080b10;
    --card: #0b0f15;
    --card-alt: #0f141b;
    --text: #e7ecf3;
    --muted: #a3adbc;
    --faint: #8691a2;
    --border: #1a222d;
    --border-strong: #283344;
    --code-bg: #0e131a;
    --accent: #2ee6c5;
    --accent-strong: #7af5df;
    --accent-2: #79c0ff;
    --accent-soft: rgb(46 230 197 / 0.1);
    --accent-line: rgb(46 230 197 / 0.4);
    --on-accent: #02201b;
    --live: #4ade80;
    --grid-line: rgb(46 230 197 / 0.055);
    --glow: rgb(46 230 197 / 0.11);
    --header-bg: rgb(5 7 10 / 0.8);
    --shadow-lg: 0 0 0 1px rgb(46 230 197 / 0.06), 0 32px 80px -24px rgb(0 0 0 / 0.8);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent-line);
}

a {
  color: var(--accent);
  text-decoration-color: var(--accent-line);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  padding: 0.05em 0.35em;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--code-bg);
  font-family: var(--mono);
  font-size: 0.875em;
  white-space: nowrap;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

p,
li,
dd,
summary {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(100% - 2.5rem, 75rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.icon {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--accent-line);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.label {
  color: var(--faint);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font: 700 1.0625rem/1 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav a:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.nav .nav-agents {
  margin-left: 0.5rem;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 600;
}

.nav .nav-agents:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 0 4.5rem;
}

/* A faint woven grid, fading out from the top, and a soft mint glow behind the example. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-position: center top;
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: -10rem;
  right: -14rem;
  z-index: -1;
  width: 56rem;
  height: 48rem;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0.875rem 0.25rem 0.3125rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.eyebrow-tag {
  padding: 0.125rem 0.5625rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.25rem, 1.1rem + 3.8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero-accent {
  display: block;
  padding-bottom: 0.06em;
  background: linear-gradient(100deg, var(--accent) 15%, var(--accent-2) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (forced-colors: active) {
  .hero-accent {
    background: none;
    color: CanvasText;
  }
}

/* Shapes drawn only with a background keep a (forced-colors-visible) transparent border. */
.demo-you,
.eyebrow-tag {
  border: 1px solid transparent;
}

.hero-lede {
  max-width: 34rem;
  margin: 1.375rem 0 2rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.hero-note {
  margin-top: 0.75rem;
  color: var(--faint);
  font-size: 0.875rem;
}

.preview-note {
  width: fit-content;
  max-width: 36rem;
  margin-top: 1.25rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 0.875rem;
}

/* Copyable commands: the hero's chat prompt, and shell commands with a `$` and a hanging indent. */

.command {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 38rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--card);
}

.command-prompt {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.command code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: normal;
}

/* A shell command under a header with its label and copy button. It wraps like a terminal, filling each line
   (the registry URL is one long word), with a hanging indent after the `$`. */
.codeblock {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--code-bg);
}

.codeblock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.375rem 0.375rem 0.375rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.codeblock pre {
  margin: 0;
  padding: 0.875rem 1rem;
}

.codeblock code {
  display: block;
  padding: 0 0 0 2ch;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 0.78125rem;
  line-height: 1.65;
  text-indent: -2ch;
  white-space: normal;
  word-break: break-all;
}

.codeblock code::before {
  content: '$';
  display: inline-block;
  width: 2ch;
  color: var(--accent);
  text-indent: 0;
}

/* The subcommand stays on one line. */
.codeblock .token {
  white-space: nowrap;
}

.copy {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
  font: 600 0.8125rem/1.2 var(--font);
  cursor: pointer;
}

.copy .icon {
  width: 15px;
  height: 15px;
}

.copy:hover,
.copy[data-state='done'] {
  border-color: var(--accent-line);
  color: var(--accent);
}

.copy .icon-done,
.copy[data-state='done'] .icon-copy {
  display: none;
}

.copy[data-state='done'] .icon-done {
  display: block;
}

/* The hero's example: what a coding agent reports after a deploy. */

.demo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--card-alt);
  color: var(--faint);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Three window dots from one element. */
.demo-dots {
  width: 10px;
  height: 10px;
  margin-right: 32px;
  border-radius: 50%;
  background: var(--border-strong);
  box-shadow:
    16px 0 var(--border-strong),
    32px 0 var(--border-strong);
}

.demo-body {
  display: grid;
  gap: 1.125rem;
  padding: 1.25rem;
}

.demo-you {
  justify-self: end;
  max-width: 88%;
  padding: 0.625rem 0.875rem;
  border-radius: 14px 14px 4px 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.demo-agent {
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.demo-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card-alt);
  color: var(--accent);
}

.demo-avatar .icon {
  width: 16px;
  height: 16px;
}

.demo-reply {
  display: grid;
  flex: 1 1 auto;
  gap: 0.625rem;
  min-width: 0;
  padding-top: 0.25rem;
}

.demo-status {
  color: var(--muted);
}

.demo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.demo-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.625rem 0.125rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}

.demo-steps li::before {
  content: '';
  width: 0.4375rem;
  height: 0.25rem;
  margin-top: -0.125rem;
  border-bottom: 1.5px solid var(--accent);
  border-left: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.demo-result {
  margin-top: 0.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-alt);
}

.demo-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 650;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot {
    animation: pulse 2.4s ease-in-out infinite;
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--live) 0%, transparent);
  }
}

.demo-fields {
  display: grid;
  gap: 0.375rem;
  margin: 0;
}

.demo-fields div {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.5rem;
}

.demo-fields dt {
  color: var(--faint);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.demo-fields dd {
  margin: 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-fields .demo-link {
  color: var(--accent);
}

/* For AI agents: a compact card right under the hero, with a gradient hairline like the CLI's result card. */

.agents {
  padding-bottom: 1rem;
}

.agents-card {
  padding: 1.75rem 2rem 1.625rem;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(
        115deg,
        var(--accent-line),
        var(--border) 35%,
        var(--border) 65%,
        var(--accent-line)
      )
      border-box;
}

.agents-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.agents-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}

.agents-text {
  max-width: 58rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.agents-card .codeblock {
  margin-top: 1.375rem;
}

.agents-note {
  margin-top: 0.625rem;
  color: var(--faint);
  font-size: 0.8125rem;
}

/* Sections */

.section {
  padding: 5rem 0;
}

.section-alt {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}

.section-head {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.section-head p:not(.kicker) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

h2 {
  font-size: clamp(1.75rem, 1.15rem + 1.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* How it works */

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

.step {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

/* A hairline from each step to the next. */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.75rem;
  right: -1.5rem;
  width: 1.5rem;
  height: 1px;
  background: var(--accent-line);
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.step-num {
  color: var(--faint);
  font: 600 0.8125rem/1 var(--mono);
  letter-spacing: 0.06em;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
}

/* What you get */

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

.card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.card-art {
  display: grid;
  place-items: center;
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--card-alt);
  background-image: radial-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 14px 14px;
}

.art {
  display: block;
  width: 100%;
  max-width: 18.5rem;
  height: auto;
}

.art-frame {
  fill: var(--card);
  stroke: var(--border-strong);
  stroke-width: 1;
}

.art-rule {
  stroke: var(--border);
}

.art-dot {
  fill: var(--border-strong);
}

.art-box {
  fill: var(--card-alt);
  stroke: var(--border-strong);
}

.art-well {
  fill: var(--code-bg);
  stroke: var(--border);
}

.art-line {
  fill: var(--border-strong);
}

.art-strong {
  fill: var(--muted);
}

.art-on,
.art-live {
  fill: var(--accent);
}

.art-pill {
  fill: var(--accent-soft);
  stroke: var(--accent-line);
}

.art-knob {
  fill: var(--on-accent);
}

.art-tick,
.art-check,
.art-arrow,
.art-fold,
.art-zip {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-tick {
  stroke: var(--on-accent);
  stroke-width: 1.6;
}

.art-check {
  stroke: var(--accent);
  stroke-width: 2.4;
}

.art-arrow {
  stroke: var(--accent);
  stroke-width: 2;
}

.art-fold {
  stroke: var(--border-strong);
}

.art-zip {
  stroke: var(--muted);
  stroke-width: 2;
}

.card-body {
  padding: 1.375rem 1.5rem 1.625rem;
}

.card-body p {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* Features and limits */

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

.feature h3 {
  margin: 1.125rem 0 0.375rem;
  font-size: 1.0625rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.limits {
  margin-top: 4rem;
}

.limits .label {
  margin-bottom: 0.875rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.stat {
  padding: 1.375rem 1.5rem;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat strong {
  display: block;
  font: 700 1.625rem/1.2 var(--font-display);
  letter-spacing: -0.025em;
}

.stat span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 2rem 4rem;
}

.faq-grid .section-head {
  position: sticky;
  top: 6.5rem;
  margin-bottom: 0;
}

.faq {
  border-top: 1px solid var(--border-strong);
}

.faq details {
  border-bottom: 1px solid var(--border-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.25rem;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: translateY(-25%) rotate(45deg);
}

.faq details[open] summary::after {
  transform: translateY(25%) rotate(225deg);
}

.faq summary:hover {
  color: var(--accent);
}

.faq details > :not(summary) {
  margin: -0.25rem 0 1.375rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare th,
.compare td {
  padding: 0.625rem 1rem;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare thead th,
.compare thead td {
  border-top: 0;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare tbody th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* Closing call to action */

.cta {
  padding: 5rem 0;
}

.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  text-align: center;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 90% at 50% 100%, var(--glow), transparent),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-position: center bottom;
  background-size:
    auto,
    32px 32px,
    32px 32px;
  -webkit-mask-image: linear-gradient(transparent, #000 85%);
  mask-image: linear-gradient(transparent, #000 85%);
}

.cta-card p {
  max-width: 32rem;
  margin: 0.875rem auto 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: 600 0.9375rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
}

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

.button-primary,
.button-primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.button-small {
  gap: 0.375rem;
  padding: 0.4375rem 0.75rem;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.button-small .icon {
  width: 15px;
  height: 15px;
}

/* Footer */

.site-footer {
  padding: 2.25rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .copy,
  .button,
  .nav a {
    transition:
      color 120ms ease,
      background-color 120ms ease,
      border-color 120ms ease;
  }
}

/* Up to small laptops: the hero's columns close up, and the agents card's command still fits one line at 1024px. */
@media (max-width: 75rem) {
  .hero-grid {
    gap: 3rem;
  }

  .agents-card {
    padding-inline: 1.5rem;
  }
}

/* Tablets: one column for the hero; steps and cards turn sideways, a row each. */
@media (max-width: 60rem) {
  .hero {
    padding: 3.5rem 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo {
    max-width: 38rem;
  }

  .steps,
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1.25rem;
  }

  .step-head {
    flex-direction: column;
    justify-content: flex-start;
    grid-row: span 2;
    gap: 0.625rem;
    margin: 0;
  }

  .step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -1.5rem;
    left: 2.75rem;
    width: 1px;
    height: 1.5rem;
  }

  .card {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  }

  .card-art {
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .card-body {
    align-self: center;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 48rem) {
  .nav a:not(.nav-agents) {
    display: none;
  }

  .section,
  .cta {
    padding: 4rem 0;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
  }

  .feature .icon-tile {
    grid-row: span 2;
  }

  .feature h3 {
    margin: 0.375rem 0 0.25rem;
  }

  .limits {
    margin-top: 3rem;
  }
}

/* Phones */
@media (max-width: 36rem) {
  .card {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-art {
    padding: 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .art {
    max-width: 13.5rem;
  }
}

@media (max-width: 30rem) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .eyebrow {
    font-size: 0.8125rem;
  }

  .hero-lede {
    font-size: 1.0625rem;
  }

  .command {
    gap: 0.5rem;
    padding-left: 0.875rem;
  }

  .command code {
    font-size: 0.8125rem;
  }

  .codeblock code {
    font-size: 0.8125rem;
  }

  /* The code block's header keeps one line: its copy button shows only the icon (its aria-label says it). */
  .codeblock-head .copy {
    padding: 0.4375rem;
  }

  .codeblock-head .copy-label {
    display: none;
  }

  .demo-body {
    gap: 1rem;
    padding: 1rem;
  }

  .demo-steps {
    display: none;
  }

  .demo-fields div {
    grid-template-columns: 3.75rem minmax(0, 1fr);
  }

  .agents-card {
    padding: 1.375rem 1.25rem;
  }

  .step {
    padding: 1.25rem;
  }

  .step:not(:last-child)::after {
    left: 2.5rem;
  }

  .stat {
    padding: 1rem 1.125rem;
  }

  .stat strong {
    font-size: 1.3125rem;
  }

  .cta-card {
    padding: 3rem 1.25rem;
  }

  .compare th,
  .compare td {
    padding-inline: 0.75rem;
  }
}

/* The narrowest phones: inline code may wrap too. */
@media (max-width: 22.4rem) {
  code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
