html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 18rem;
  gap: 2.5rem;
  width: min(1100px, 92vw);
  margin: 2rem auto;
}

/* IMPORTANT: sticky breaks if any ancestor has overflow != visible */
.section-nav {
  position: sticky;
  top: 1.5rem;
  align-self: start; /* needed inside grid */
  border-left: 1px solid #eee;
  padding-left: 1rem;
}

.section-nav ol, .section-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.section-nav ul { padding-left: 1rem; margin-top: .25rem; }

.section-nav a {
  display: block;
  text-decoration: none;
  color: #999;
  padding: .15rem 0;
}
.section-nav a:hover,
.section-nav a:focus { color: #333; }

.section-nav li.active > a {
  color: #111;
  font-weight: 650;
}
.section-nav li.active-parent > a {
  color: #333;
  font-weight: 600;
}

/* Make anchor jumps land nicely */
section[id] { scroll-margin-top: 1.75rem; }

/* Demo spacing so you can scroll */
section { margin: 0 0 16rem; }
section section { margin: 0 0 12rem; }

.pill {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid #eee;
  border-radius: 999px;
  color: #666;
  margin-left: 8px;
  vertical-align: middle;
}

.hero-img{
  max-width: 100%;
  height: auto;
  display: block;
}

h3 {
  font-weight: normal; /* or 400 */
}

.img-wrap {
  text-align: center;
}

.hero-video{
  display:block;
  margin: 0 auto;
  max-width: 50%;
  height: auto;
}

.detect-video{
  display:block;
  margin: 0 auto;
  max-width: 70%;
  height: auto;
}

.two-images{
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
}

.two-images img{
  width: 100%;
  max-width: 420px; 
  height: auto;
}

.gear-img{
  max-width: 50%;
  height: 50%;
  display: block;
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  padding: 0.1em 0.35em;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #f7f7f7;
}
