:root {
  --primary: #0b57d0;
  --primary-dark: #0847ad;
  --primary-soft: #d8e2ff;
  --surface: #fffbff;
  --surface-muted: #f7f9ff;
  --border: #d8dbe5;
  --text: #1a1b20;
  --muted: #555a63;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Inter, Roboto, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

body > header,
main,
footer {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 0 24px;
}

body > header {
  padding-top: 72px;
  padding-bottom: 56px;
  text-align: center;
}

header > img {
  display: block;
  margin: 0 auto 20px;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(56px, 12vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

header > p {
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 22px);
}

a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

header > div:first-of-type {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

header > div:first-of-type a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 136px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

header > div:first-of-type a:first-child {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

header > div:first-of-type a:first-child:hover {
  background: var(--primary-dark);
}

.carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  max-width: 760px;
  margin: 0 auto;
  padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

figure {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease;
}

.carousel-dots button[aria-current="true"] {
  width: 22px;
  border-radius: 999px;
  background: var(--primary);
}

article {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.features-list {
  max-width: 760px;
  margin: 0;
  padding-left: 0;
  color: var(--muted);
  list-style: none;
}

.features-list li {
  position: relative;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 4px 0 4px 44px;
  font-size: 17px;
}

.features-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  content: "✓";
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.features-list li:last-child {
  margin-bottom: 0;
}

article > div {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

article > div:last-child {
  margin-bottom: 0;
}

pre {
  position: relative;
  overflow-x: auto;
  margin: 0;
  padding: 46px 16px 14px;
  border-radius: var(--radius);
  background: #111318;
  color: #e9eefc;
  font-size: 14px;
  line-height: 1.7;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(233, 238, 252, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e9eefc;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

footer span {
  margin-right: auto;
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 680px) {
  body > header {
    padding-top: 48px;
  }

  .carousel {
    max-width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer span {
    margin-right: 0;
  }
}

@media (max-width: 420px) {
  body > header,
  main,
  footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  header > div:first-of-type a {
    width: 100%;
  }
}
