:root {
  --colors-background: #ffffff;
  --colors-foreground: #18243b;
  --colors-heading: #01112c;
  --colors-border: #cad3e2;
  --colors-border-subdued: #e3e8f2;
  --colors-hairline: #e1e3ec;
  --colors-ring: #7c76ff;
  --colors-muted: #f6f9fc;
  --colors-muted-foreground: #516381;
  --colors-primary: #7c76ff;
  --colors-primary-hover: #473ef6;
  --colors-accent: #efeffe;
  --colors-accent-foreground: #443bd2;
  --colors-ghost-hover: rgba(68, 59, 210, 0.08);
  --colors-button-primary: #01112c;
  --colors-button-primary-hover: #172138;
  --colors-button-action: #625bf8;
  --colors-sidebar: #f5f7f9;
  --colors-chrome: #f5f7f9;
  --colors-sidebar-border: #edf0f3;
  --colors-sidebar-current: #0b64dd;

  --tag-green-bg: #a7f0ba;
  --tag-green-fg: #0e6027;
  --tag-purple-bg: #e8daff;
  --tag-purple-fg: #6929c4;
  --tag-cool-gray-bg: #dde1e6;
  --tag-cool-gray-fg: #121619;

  --colors-code-ground: #01112c;
  --colors-code-ink: #c2bfff;
  --colors-code-string: #eff5fe;
  --colors-code-keyword: #8b83ff;
  --colors-code-muted: #7c86a3;
  --colors-code-edge: rgba(194, 191, 255, 0.12);

  --radius: 4px;
  --font-sans: "IBM Plex Sans Variable", sans-serif;
  --font-mono: "Source Code Pro Variable", Menlo, Courier, monospace;

  --header-h: 72px;
  --gutter: 16px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

@media (min-width: 1280px) {
  :root {
    --gutter: 64px;
  }
}

@font-face {
  font-family: "IBM Plex Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("assets/fonts/ibm-plex-sans-latin-ext-wght-normal.woff2")
    format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("assets/fonts/ibm-plex-sans-latin-wght-normal.woff2")
    format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Code Pro Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("assets/fonts/source-code-pro-latin-ext-wght-normal.woff2")
    format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Code Pro Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("assets/fonts/source-code-pro-latin-wght-normal.woff2")
    format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

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

html {
  color-scheme: light;
  accent-color: #7c76ff;
  background-color: #ffffff;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: var(--colors-foreground);
  background: var(--colors-background);
}

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

h1,
h2,
h3 {
  color: var(--colors-heading);
  font-weight: 700;
}

a {
  color: inherit;
}

:where(button) {
  cursor: pointer;
}

img,
svg {
  display: block;
  flex-shrink: 0;
}

code,
pre {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--colors-ring);
  outline-offset: 2px;
}

.sprite {
  position: absolute;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(1312px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 56px;
  scroll-margin-top: var(--header-h);
}

main > section:nth-of-type(even) {
  background: var(--colors-chrome);
}

@media (min-width: 768px) {
  .section {
    padding-block: 80px;
  }
}

.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--colors-muted-foreground);
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  margin-top: 8px;
}

.section-head .lede {
  color: var(--colors-muted-foreground);
  font-size: 17px;
  line-height: 28px;
  max-width: 560px;
}

@media (min-width: 768px) {
  .section-head {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
  }
}

.btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding-inline: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.btn:focus-visible {
  outline: none;
  border-color: var(--colors-ring);
  box-shadow: 0 0 0 1px var(--colors-ring);
}

.btn-primary {
  background: var(--colors-button-primary);
  color: #ffffff;
}

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

.btn-lg {
  height: 40px;
  padding-inline: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--colors-chrome);
  box-shadow: 0 1px 0 var(--colors-sidebar-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--colors-heading);
  font-size: 20px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}

.nav a {
  padding: 6px 14px;
  font-size: 14px;
  line-height: 20px;
  color: var(--colors-heading);
  text-decoration: none;
  transition: color 150ms ease;
}

.nav a:hover {
  color: var(--colors-button-action);
}

.menu {
  display: none;
}

@media (max-width: 767px) {
  .header-inner > .nav,
  .header-inner > .header-cta {
    display: none;
  }

  .menu {
    display: block;
    margin-left: auto;
  }

  .menu > summary {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    list-style: none;
    cursor: pointer;
    color: var(--colors-heading);
  }

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

  .menu > summary:hover {
    background: var(--colors-ghost-hover);
  }

  .menu .icon-close,
  .menu[open] .icon-open {
    display: none;
  }

  .menu[open] .icon-close {
    display: block;
  }

  .menu-panel {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: var(--colors-chrome);
    border-bottom: 1px solid var(--colors-hairline);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  }

  .menu-panel .nav {
    display: grid;
    margin: 0;
  }

  .menu-panel .nav a {
    padding: 10px 12px;
    font-size: 16px;
  }

  .menu-panel .btn {
    margin-top: 8px;
    height: 44px;
  }
}

.hero {
  padding-block: 56px 48px;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-block: 80px 64px;
  }
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.15;
  text-wrap: balance;
}

.hero .lede {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 17px;
  line-height: 28px;
  color: var(--colors-muted-foreground);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.slider {
  margin-top: 56px;
  text-align: left;
}

.slides {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.slides:focus-visible {
  outline-offset: -4px;
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 4px;
  scroll-snap-align: start;
}

.window {
  overflow: hidden;
  border: 1px solid var(--colors-hairline);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(43, 57, 79, 0.08);
}

.window img {
  display: block;
  width: 100%;
  height: auto;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 36px;
  padding-inline: 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--colors-hairline);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--colors-border-subdued);
}

.window-url {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--colors-muted-foreground);
}

.slider-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}

.slider-title {
  color: var(--colors-heading);
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
}

.slider-title + p {
  max-width: 640px;
  margin-top: 4px;
  color: var(--colors-muted-foreground);
}

.slider-arrows {
  display: flex;
  gap: 8px;
}

.slider-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--colors-hairline);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--colors-heading);
  transition:
    border-color 150ms ease,
    color 150ms ease;
}

.slider-arrow:hover {
  border-color: var(--colors-button-action);
  color: var(--colors-button-action);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  background: var(--tag-cool-gray-bg);
  color: var(--tag-cool-gray-fg);
}

.badge-green {
  background: var(--tag-green-bg);
  color: var(--tag-green-fg);
}

.badge-purple {
  background: var(--tag-purple-bg);
  color: var(--tag-purple-fg);
}

p code,
li code {
  padding: 1px 5px;
  border-radius: var(--radius);
  background: var(--colors-muted);
  border: 1px solid var(--colors-border-subdued);
  font-size: 0.875em;
  color: var(--colors-heading);
}

.card {
  border: 1px solid var(--colors-hairline);
  border-radius: var(--radius);
  background: #ffffff;
}

.control-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .control-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .control-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.control-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--colors-accent);
  color: var(--colors-accent-foreground);
}

.control-list li {
  padding: 24px;
}

.control-list h3 {
  font-size: 17px;
  line-height: 24px;
}

.control-list p {
  margin-top: 2px;
  font-size: 15px;
  color: var(--colors-muted-foreground);
}

.eco {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .eco {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eco-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
}

.eco-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  align-self: stretch;
  margin-bottom: 4px;
}

.eco-logo {
  width: 48px;
  height: 48px;
}

.eco-logo-empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--colors-border);
  border-radius: var(--radius);
}

.eco-logo-empty::before {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--colors-muted-foreground);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.eco-more {
  border-style: dashed;
  background: transparent;
}

.eco-card h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 20px;
  line-height: 28px;
}

.eco-card h3 span {
  font-size: 13px;
  font-weight: 700;
  color: var(--colors-muted-foreground);
}

.eco-card p,
.eco-card ul {
  margin: 0;
  font-size: 15px;
  color: var(--colors-muted-foreground);
}

.eco-card ul {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.eco-card ul li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eco-card ul li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: var(--colors-button-action);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.eco-card a {
  color: var(--colors-button-action);
}

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(40px, 1fr) auto minmax(40px, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: 40px 32px;
  border: 1px solid var(--colors-hairline);
  border-radius: var(--radius);
  background: #ffffff;
}

.flow-col {
  display: grid;
  height: 400px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.flow-in {
  grid-template-rows: repeat(4, 1fr);
}

.flow-out {
  grid-template-rows: repeat(3, 1fr);
}

.flow-col li {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--colors-hairline);
  border-radius: var(--radius);
  background: #ffffff;
  font-size: 14px;
  line-height: 20px;
}

.flow-col strong {
  font-weight: 700;
  color: var(--colors-heading);
}

.flow-col span {
  font-size: 12px;
  line-height: 16px;
  color: var(--colors-muted-foreground);
}

.flow-lines {
  width: 100%;
  height: 400px;
  overflow: visible;
}

.flow-lines path {
  fill: none;
  stroke: var(--colors-primary);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

@media (prefers-reduced-motion: no-preference) {
  .flow-lines path {
    animation: flow 1.2s linear infinite;
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -8;
  }
}

.hub {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--colors-code-ground);
  text-align: center;
}

.hub .eyebrow {
  font-size: 10px;
  color: var(--colors-code-ink);
}

.hub strong {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: #ffffff;
}

.hub > span:last-child {
  font-size: 12px;
  color: var(--colors-code-muted);
}

@media (max-width: 899px) {
  .flow {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    padding: 24px 16px;
  }

  .flow-lines {
    display: none;
  }

  .flow-col {
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    height: auto;
  }

  .flow-out {
    grid-template-columns: 1fr;
  }

  .flow-hub {
    position: relative;
    padding-block: 32px;
  }

  .flow-hub::before,
  .flow-hub::after {
    content: "";
    position: absolute;
    left: 50%;
    height: 32px;
    border-left: 1.5px dashed var(--colors-primary);
  }

  .flow-hub::before {
    top: 0;
  }

  .flow-hub::after {
    bottom: 0;
  }

  .hub {
    width: 150px;
    height: 150px;
  }
}

.points {
  display: grid;
  gap: 24px 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .points {
    grid-template-columns: repeat(3, 1fr);
  }
}

.points h3 {
  font-size: 17px;
}

.points p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--colors-muted-foreground);
}

@media (min-width: 1024px) {
  .faq {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
    align-items: start;
  }

  .faq .section-head {
    display: block;
    margin: 0;
  }
}

.faq-list {
  border-top: 1px solid var(--colors-hairline);
}

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

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--colors-heading);
}

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

.faq-list summary::after {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--colors-muted-foreground);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 150ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list summary:hover {
  color: var(--colors-button-action);
}

.faq-list details p {
  max-width: 680px;
  padding-bottom: 20px;
  color: var(--colors-muted-foreground);
}

.faq-list a {
  color: var(--colors-button-action);
}

.access {
  text-align: center;
}

.access h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  margin-top: 8px;
}

.access p {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--colors-muted-foreground);
  font-size: 17px;
  line-height: 28px;
}

.access .hero-actions {
  margin-top: 32px;
}

.site-footer {
  border-top: 1px solid var(--colors-hairline);
  padding-block: 32px;
  font-size: 14px;
  color: var(--colors-muted-foreground);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .brand {
  font-size: 17px;
}
