:root {
  color-scheme: light;
  --primary: #292524;
  --primary-active: #0c0a09;
  --ink: #0c0a09;
  --body: #4e4e4e;
  --muted: #777169;
  --muted-soft: #a8a29e;
  --hairline: #e7e5e4;
  --hairline-soft: #f0efed;
  --hairline-strong: #d6d3d1;
  --canvas: #f5f5f5;
  --canvas-soft: #fafafa;
  --surface-card: #ffffff;
  --surface-strong: #f0efed;
  --on-primary: #ffffff;
  --radius-xl: 16px;
  --radius-xxl: 24px;
  --container: min(1200px, calc(100vw - 48px));
  --section: 96px;
  --soft-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    "Satoshi",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.16px;
  font-weight: 500;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.top-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 30;
  display: grid;
  width: var(--container);
  min-height: 64px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(214, 211, 209, 0.72);
  border-radius: 999px;
  background: rgba(245, 245, 245, 0.82);
  backdrop-filter: saturate(160%) blur(20px);
  transform: translateX(-50%);
}

.top-nav.is-scrolled {
  background: rgba(245, 245, 245, 0.94);
}

.brand,
.top-nav nav,
.button,
.copy-button {
  cursor: pointer;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.brand img {
  border-radius: 10px;
  box-shadow:
    0 10px 100px 0 rgba(0, 0, 0, 0.08),
    0 4px 4px 0 rgba(0, 0, 0, 0.25) inset;
}

.top-nav nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
}

.top-nav nav a:hover {
  color: var(--ink);
}

.button,
.copy-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:active,
.copy-button:active {
  transform: scale(0.96);
}

.button-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button-primary:hover {
  background: var(--primary-active);
}

.button-outline {
  border-color: var(--hairline-strong);
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--primary);
}

.nav-button {
  justify-self: end;
}

.section-shell {
  position: relative;
  width: 100%;
  padding: var(--section) max(24px, calc((100vw - 1200px) / 2));
  overflow: hidden;
}

.hero-band {
  display: flex;
  min-height: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 52px;
  background: #ffffff;
  overflow-x: clip;
  overflow-y: visible;
  padding-top: 154px;
}

.hero-copy,
.section-heading,
.editorial-grid > div,
.build-section > div,
.final-cta > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  width: min(980px, 100%);
  justify-items: center;
  margin: 0 auto;
  text-align: center;
}

.badge-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.96px;
  text-transform: uppercase;
}

.lucide-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  overflow: visible;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.08;
}

h2 {
  margin-bottom: 16px;
  font-size: 32px;
  line-height: 1.12;
}

h3 {
  margin-bottom: 9px;
  font-size: 24px;
  line-height: 1.2;
}

h4 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

p {
  color: var(--body);
}

.hero-lede {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.4;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.media-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xxl);
  background: var(--surface-card);
  box-shadow: var(--soft-shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-media {
  width: 100%;
  margin: 0 auto;
}

.demo-media {
  position: relative;
  z-index: 1;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}

.demo-media img,
.demo-media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

.demo-media video {
  border: 1px solid #ececec;
}

.editorial-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  background: var(--canvas-soft);
}

.feature-heading,
.feature-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.feature-heading h2 {
  max-width: 680px;
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.feature-card,
.code-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--soft-shadow);
}

.feature-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.feature-card-art {
  margin: 0;
  aspect-ratio: 900 / 507;
  overflow: hidden;
  background: #ffffff;
}

.feature-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card-copy {
  display: grid;
  align-content: start;
  padding: 22px 24px 24px;
}

.feature-card p,
.section-heading p,
.final-cta p {
  margin-bottom: 0;
}

.provider-section {
  background: var(--canvas);
}

.provider-heading {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  gap: 12px clamp(32px, 8vw, 118px);
  align-items: end;
  margin: 0 auto 42px;
}

.provider-heading .badge-label {
  grid-column: 1 / -1;
}

.provider-heading h2,
.provider-heading p {
  margin-bottom: 0;
}

.logo-marquee {
  --provider-logo-size: 40px;
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 9%,
    #000 91%,
    transparent
  );
}

.logo-track {
  --logo-gap: clamp(42px, 6vw, 72px);
  display: flex;
  width: max-content;
  gap: var(--logo-gap);
  padding: 0 var(--logo-gap);
  animation: logo-marquee 32s linear infinite;
  will-change: transform;
}

.logo-set {
  display: flex;
  flex: 0 0 auto;
  gap: var(--logo-gap);
}

.provider-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.provider-logo > span:last-child {
  min-width: 0;
}

.provider-icon-shell {
  display: inline-flex;
  width: var(--provider-logo-size);
  height: var(--provider-logo-size);
  flex: 0 0 var(--provider-logo-size);
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.provider-icon-shell img {
  display: block;
  width: var(--provider-logo-size);
  height: var(--provider-logo-size);
  max-width: none;
  object-fit: contain;
}

.provider-icon-shell img[src*="openai"],
.provider-icon-shell img[src*="google"] {
  width: calc(var(--provider-logo-size) * 1.12);
  height: calc(var(--provider-logo-size) * 1.12);
}

@keyframes logo-marquee {
  to {
    transform: translateX(calc(-50% - (var(--logo-gap) / 2)));
  }
}

.centered {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.provider-frame {
  width: min(760px, 100%);
  margin: 0 auto;
  aspect-ratio: 1.15;
}

.workflow-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 7vw, 76px);
  justify-items: center;
  align-items: center;
  background: var(--canvas-soft);
}

.workflow-copy {
  position: relative;
  width: min(1180px, 100%);
  z-index: 1;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
}

.workflow-copy > p {
  max-width: 680px;
  margin-bottom: 0;
}

.keep-together {
  white-space: nowrap;
}

.workflow-cards {
  display: grid;
  width: min(1200px, 100%);
  gap: clamp(54px, 7vw, 88px);
  margin: 0 auto;
}

.workflow-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  justify-items: center;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.workflow-card-media {
  align-self: center;
  width: 100%;
  height: fit-content;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--canvas-soft);
  box-shadow: var(--soft-shadow);
}

.workflow-card-media img,
.workflow-card-media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.workflow-card-copy {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  gap: 10px;
  justify-items: start;
  align-items: start;
  padding: 0;
  text-align: left;
}

.workflow-card-copy h3 {
  max-width: 620px;
  margin-bottom: 0;
}

.workflow-card-copy p:last-child {
  max-width: 520px;
  margin-bottom: 0;
}

.build-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  background: var(--canvas);
}

.code-card {
  overflow: hidden;
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}

.copy-button {
  min-height: 34px;
  padding: 0 14px;
  background: var(--surface-strong);
  color: var(--ink);
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.7;
}

pre code {
  display: block;
  min-width: max-content;
}

pre code.is-scrambling {
  color: var(--primary-active);
  text-shadow: 0 0 14px rgba(12, 10, 9, 0.16);
}

.faq-section {
  --faq-transition-duration: 300ms;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 680px);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
  background: var(--canvas-soft);
}

.faq-heading {
  position: relative;
  z-index: 1;
}

.faq-heading h2 {
  max-width: 360px;
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 44px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: -12px 0 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-question span {
  color: var(--ink);
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  transition: color 160ms ease;
}

.faq-question:hover span {
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 60%, transparent);
  stroke-linecap: round;
  stroke-width: 2.5;
  transition:
    stroke var(--faq-transition-duration) ease,
    transform var(--faq-transition-duration) ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  stroke: var(--ink);
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows var(--faq-transition-duration) ease-in-out,
    opacity var(--faq-transition-duration) ease-in-out,
    margin-top var(--faq-transition-duration) ease-in-out;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  margin-top: 10px;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  max-width: 600px;
  margin: 0;
  padding-bottom: 16px;
  color: var(--body);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.65;
}

.final-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  background: var(--canvas-soft);
}

.final-cta img {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  border-radius: 22px;
  box-shadow:
    0 10px 100px 0 rgba(0, 0, 0, 0.08),
    0 4px 4px 0 rgba(0, 0, 0, 0.25) inset;
}

.final-cta p {
  margin-bottom: 28px;
}

.site-footer {
  color: var(--on-primary);
  padding: 0 16px 16px;
}

.footer-inner {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding: 34px clamp(24px, 4vw, 44px);
  border-radius: var(--radius-xxl);
  background: var(--primary-active);
}

.footer-copy {
  display: grid;
  gap: 4px;
}

.footer-copy a {
  width: max-content;
  font-size: 17px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
}

.footer-links a {
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.footer-links a:hover {
  color: var(--on-primary);
}

.footer-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-primary);
}

.github-mark {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 14px;
}

@media (max-width: 980px) {
  :root {
    --container: min(100vw - 28px, 760px);
  }

  .top-nav {
    grid-template-columns: 1fr auto;
  }

  .top-nav nav {
    display: none;
  }

  .hero-band,
  .editorial-grid,
  .provider-heading,
  .build-section,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .provider-heading {
    text-align: center;
  }

  .feature-card {
    min-height: auto;
  }

  .hero-lede {
    margin: 0 auto 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 24px, 520px);
    --section: 72px;
  }

  .top-nav {
    top: 10px;
    min-height: 56px;
  }

  .brand span {
    display: none;
  }

  .nav-button {
    min-height: 40px;
  }

  .section-shell {
    padding-inline: 18px;
  }

  .hero-band {
    min-height: auto;
    padding-top: 120px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 20px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .logo-marquee {
    --provider-logo-size: 34px;
    padding: 6px 0;
  }

  .logo-track {
    --logo-gap: 32px;
  }

  .provider-logo {
    gap: 12px;
    font-size: 18px;
  }

  .feature-card {
    min-height: 156px;
  }

  .faq-section {
    gap: 26px;
    padding-top: 72px;
    padding-bottom: 76px;
  }

  .faq-heading h2 {
    max-width: 300px;
  }

  .faq-list {
    gap: 0;
  }

  .faq-item {
    padding-bottom: 0;
  }

  .faq-item:first-child {
    border-top: 1px solid var(--hairline);
  }

  .faq-question {
    min-height: 64px;
    align-items: flex-start;
    gap: 18px;
    margin: 0;
    padding: 18px 0;
  }

  .faq-question span {
    min-width: 0;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1.28;
  }

  .faq-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    margin-top: 1px;
  }

  .faq-item.is-open .faq-answer {
    margin-top: -2px;
  }

  .faq-answer p {
    max-width: none;
    padding: 0 42px 22px 0;
    font-size: 15px;
    letter-spacing: 0;
    line-height: 1.58;
  }

  pre {
    font-size: 12px;
  }

}

@media (max-width: 380px) {
  .faq-heading h2 {
    max-width: 260px;
  }

  .faq-question {
    gap: 14px;
  }

  .faq-question span {
    font-size: 17px;
  }

  .faq-answer p {
    padding-right: 0;
  }
}

@media (max-width: 980px) {
  .workflow-card-copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .workflow-card {
    padding: 0;
  }

  .workflow-card-copy {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .logo-track {
    animation: none !important;
    transform: none !important;
  }
}
